docs: keep internal guides focused on architecture #9755
main fromrefs/pull/9755/head·merged by juliusmarminge View on GitHubInternal documentation had become a second description of the code. Routine feature notes and implementation inventories made architectural decisions and important constraints harder to find.
Rewrites the internal guides around those decisions and constraints, moves setup procedures into operations runbooks, and removes redundant pages and an obsolete auth diagram. Adds documentation rules for both audiences. The only source edits update two moved-document references in desktop build errors.
Internal Markdown shrinks from 24,160 to 7,842 words, including the relocated runbooks. The user-guide rewrite follows in #9756.
Verification:
- Checked 155 local links and anchors and parsed the JSON example against this layer's tree.
- Scoped formatting, whitespace, and build-script lint checks passed.
- Both existing Linux/Windows build-prerequisite tests passed.
- No visual changes requiring screenshots.
Model: GPT-6. Harness: Codex.
Note
Condense internal architecture docs and add operations runbooks#
- Replaces long-form internal architecture documents in
docs/internals/with shorter, focused summaries covering only essential architecture and constraints. Removes detailed tables, protocol sequences, and reference sections from server-updates.md, providers.md, remote.md, overview.md, and several others. - Deletes t3-connect.md and terminal-renderers.md entirely.
- Adds new operations runbooks: connect-setup.md (OAuth, passkeys, code-signing) and development.md (checkout, debugging, packaging).
- Updates AGENTS.md and CONTRIBUTING.md with a documentation policy distinguishing internal architecture docs, user guides, and operations runbooks, plus rules on when to update or omit docs.
- Reroutes cross-references in release.md, scripts/build-desktop-artifact.ts, README.md, and infra/relay/README.md from removed internal sections to the new operations runbooks.
- Risk: external links or bookmarks to deleted
docs/internals/t3-connect.mdordocs/architecture/terminal-renderers.mdwill 404.
Note
Low Risk Documentation-only changes with no product runtime behavior; the main downside is broken external links to removed internal pages.
Overview
Documentation policy now lives in AGENTS.md and CONTRIBUTING.md: internal docs should capture cross-boundary decisions and traps, not duplicate the code; user docs cover tasks; setup and procedures belong in docs/operations/.
Internal guides (docs/internals/*, glossary, overview, providers, remote, connection runtime, etc.) are rewritten from long inventories into shorter constraint- and architecture-oriented pages with links into source instead of narrating implementation.
Structure cleanup moves maintainer setup out of docs/internals/scripts.md (removed) into the development runbook, refreshes docs/README.md navigation, trims apps/mobile/README.md, and deletes redundant or relocated pages such as docs/architecture/terminal-renderers.md and docs/internals/ci.md. Cross-references (e.g. CONTRIBUTING.md, desktop build errors) point at the new runbook paths.
- 1
github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:trusted
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:XXL
juliusmarminge changed the title
Thread transfer impact#
✅ Thread transfer remains within every enforced ceiling.
Provider Metric Main baseline This PR Impact PR ceiling Codex Total thread wire 13.6 KiB 13.6 KiB −21 B (−0.2%) 15.1 KiB ✅ Codex Thread snapshot wire 7.0 KiB 7.0 KiB +4 B (+0.1%) 7.3 KiB ✅ Codex Live turn WebSocket wire 6.6 KiB 6.5 KiB −25 B (−0.4%) 7.8 KiB ✅ Codex Live turn WebSocket decoded 57.1 KiB 57.0 KiB −44 B (−0.1%) 66.4 KiB ✅ Codex Live turn messages 10 9 −1 (−10.0%) 21 ✅ Claude Total thread wire 13.6 KiB 13.5 KiB −60 B (−0.4%) 15.1 KiB ✅ Claude Thread snapshot wire 7.0 KiB 7.0 KiB +1 B (+0.0%) 7.3 KiB ✅ Claude Live turn WebSocket wire 6.6 KiB 6.5 KiB −61 B (−0.9%) 7.8 KiB ✅ Claude Live turn WebSocket decoded 57.9 KiB 57.8 KiB −44 B (−0.1%) 66.4 KiB ✅ Claude Live turn messages 10 9 −1 (−10.0%) 21 ✅ Baseline:
f6db420· PR result:33a9aae· Source CI: successScenario and decoded snapshot size
10 historical turns, 5 command tools per turn, 878.9 KiB retained MCP result per historical turn, and a 1.05 MiB retained result in the measured turn.
- Codex decoded thread snapshot: 113.8 KiB
- Claude decoded thread snapshot: 114.5 KiB
Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed.
Approvability#
Verdict: Would Approve
Macroscope's review found this PR approvable — This PR reorganizes and condenses internal and operational documentation, adds replacement runbooks, and updates documentation links. The sole code change only changes build prerequisite error text; production runtime behavior and product defaults remain unchanged.
Not approved because:
- Per-review cost limit exceeded (workspace setting). Approvability relies on correctness review in order to determine eligibility
No code changes detected at
Review your spending limits in [Billing settings](https://app.macroscope.com/pingdotgg/settings/billing), or comment `@macroscope-app review this PR` to bypass the limit and review now. You can add or adjust custom eligibility rules. [Learn more](https://docs.macroscope.com/approvability#example-custom-eligibility-rules).33a9aae. Prior analysis still applies.juliusmarminge merged this2e688a5
juliusmarminge closed this
Sign in to join this conversation.
Macroscope skipped reviewing this pull request. Per-review cost limit exceeded (workspace setting).
This review would cost an estimated $12.24, which exceeds your per-review limit of $10.00.
The top 3 files driving up this estimate:
docs/internals/providers.mddocs/internals/product-analytics.mddocs/internals/t3-connect.mdTip
To get this pull request reviewed, you can:
@macroscope-appon this PR to request a manual review (monthly spend limits still apply)..macroscope/ignore.md— note that creating this file replaces Macroscope's built-in default ignores rather than extending them.