Skip to content

docs(domain): reconcile the tier 2 map - #454

Merged
allisonmahmood merged 3 commits into
mainfrom
tier2/414-domain-docs
Oct 2, 2026
Merged

allisonmahmood merged 3 commits into
mainfrom
tier2/414-domain-docs

Conversation

@allisonmahmood

@allisonmahmood allisonmahmood commented Sep 30, 2026 •

Copy link
Copy Markdown
Owner

The tier 2 stack is built, but parts of the domain docs and generated SDK guidance still described it as future work or carried tier 1-only assumptions.

Reconcile the product narrative, glossaries, context map, ADRs, API/CLI/dev docs and skills with the implemented contracts. Update generated documentation at its source and refresh the global skill hash.

Implements #414 against #384. Leaves #294 and all issues open for Allison after merge.

The docs retain the outstanding boundaries. #406's role-only Fargate acceptance passed on 2026-09-30, so bf48d5c records it as done:

How it was verified

  • Full offline suite on 3394297: 138 files, 1,586 tests passed.
  • Typecheck: 38 tasks passed; lint passed.
  • On 05c46a6: 52 SDK/API/limits tests passed; full typecheck and lint passed. A disposable smoke verified catalogue output with changed and fractional registry-backed byte limits.
  • Generated-document smoke checks, skill hash, formatting and 232 local links passed.
  • Standards and Spec reviews have no remaining findings.

Release impact

  • Not breaking: documentation and generated guidance only; no runtime behavior, wire shape or schema changes. The catalogue now derives owned-row, batch, file and Postgres-result byte figures from registry-backed runtime constants instead of relying on the deleted prose-copy/regex test.

Implemented with openai-codex/gpt-6-astra through the omp harness.

@github-actions github-actions Bot added area:server Touches the server area area:ci CI, shared testing infrastructure, development scripts and tooling area:cli Touches the cli area area:docs Touches the docs area area:primitives Patch tables and files area:integrations Company connections and integration implementations size:l 501-1,000 changed lines labels Sep 30, 2026
@allisonmahmood

Copy link
Copy Markdown
Owner Author

Astra review

Reviewed 3394297 against origin/tier2/413-tier2-e2e at c803676, using #414 and #384 §19. One pass, no subagents; merge blockers only.

Standards

No merge-blocking method or YAGNI findings. The changes update the canonical documentation, skill templates and generation sources. They introduce no runtime feature or speculative abstraction.

Spec

No merge-blocking intent findings. The reconciliation covers the built tier 2 narrative, glossary ownership, package relationships, ADRs and agent guidance. It explicitly preserves the pending role-only Fargate acceptance, manual CRM and tier-choice checks, unresolved version revocation, and unbuilt production infrastructure and deployment. Those are not presented as completed work.

Verification

Ran the API and limits renderers in memory and compared their output with the checked-in documents. Both matched. The server skill's embedded limits and the global skill's lock hash also matched. Inspected the rendered capability catalogue, including its pending-acceptance caveat. No fleet or browser acceptance was rerun.

Summary: Standards 0 blockers, no worst issue; Spec 0 blockers, no worst issue.

@allisonmahmood

Copy link
Copy Markdown
Owner Author

Opus review

Three blocking findings, most severe first. Each one was checked against the code in this checkout (tier2/414-domain-docs at 3394297).

1. Internal ticket numbers and delivery status ship to company agents

Fix: keep the delivery status in docs/product.md § Tier 2 delivery status, ADR-0012 and DEVELOPMENT, which already carry it. In the packaged README and the catalogue, say only what a patch builder sees: tier 2 runs on hosted execution, and on the local executor under patchy dev.

2. ADR-0002 and docs/API.md claim a drift test that no longer exists

  • docs/adr/ADR-0002-api-is-the-contract-package.md:26 still says docs/API.md` is rendered from them and a test fails when the file drifts.
  • docs/API.md:4, generated from packages/api/src/markdown.ts:51, says a test fails when this file and the schemas disagree.

packages/api/src/api-md.test.ts was deleted in the stack by 7f6c59b ("fix(api): preserve capacity metadata in generated docs"). No other test and no CI step renders and compares docs/API.md: the only *-md.test.ts left is packages/limits/src/limits-md.test.ts. This PR saw the problem. It removed the same claim from packages/api/scripts/render-api-md.ts:3 and edited ADR-0002 two lines above, but it left both statements in place. An agent changing a wire shape will trust a guard that is gone. Either restore the drift test (preferred, since ADR-0002's point 1 depends on it) or correct both sentences. docs/API.md does currently match renderApiMarkdown(); I rendered it and compared.

3. The only catalogue-to-registry guard was deleted, and the test is not "wording-only"

This PR removes packages/sdk/src/SdkApi.test.ts "renders capability runtime limits consistently with the generated catalogue". The description calls it "a wording-only catalogue-copy test". It is not. It checked that every catalogue entry renders into the patchy-loop skill with its entrypoints, runs and limits. It also checked that the MiB figures in the primitives.tables, primitives.files and integrations.postgres limits equal runtime.row.bytes, runtime.batch.bytes, runtime.file.bytes and runtime.result.bytes in the registry. I evaluated both parts against HEAD's sdkCapabilitiesMarkdown and registry, and all assertions pass. Nothing in the PR required removing it. No other test in packages/sdk or packages/patchy ties catalogue figures to the registry, and those figures ship to agents in every generated loop skill. Restore the test. A docs pass should not remove the drift guard for the numbers it documents.

Checked and fine

@allisonmahmood

Copy link
Copy Markdown
Owner Author

Review dispositions for 05c46a6

Read Astra and Opus in the conversation, plus the Reviews and inline-comment APIs. Rechecked after the latest CI run: two conversation reviews, no review bodies or inline comments, and no additional Grok finding.

Fixed

  1. Opus: internal delivery status reaches company agents. Removed the ticket links and acceptance/deployment paragraph from the packaged README, and the internal status line from the generated capability catalogue. Builder guidance now describes hosted handlers and the local executor under patchy dev. Internal delivery status remains in the product docs, ADRs and DEVELOPMENT. Inspected the rebuilt release tarball's README, not just its source.
  2. Opus: nonexistent API drift test. Corrected ADR-0002 and the API renderer, then regenerated docs/API.md. They now state that no automated API-document drift check runs and give the regeneration command. The generated file matches the renderer.
  3. Opus: deleted test also guarded numeric limits. Accepted this concern; the earlier “wording-only” description was incomplete and the PR body is corrected. The owned-row, batch, file and Postgres-result figures now derive from runtimeByteLimits, which reads the Limits registry. Those four figures can no longer drift as independent catalogue literals.

Kept, with reasons

Verification and merge state

  • Local: 52 tests across SDK generation, API and limits passed; all 38 typecheck tasks, lint and formatting passed. Generator smoke and rebuilt-package inspection passed.
  • Latest head: 05c46a66e3d99715caff5f51881cf330d6fc40c4.
  • All 10 reported checks passed: Node 22 and 24 tests, lint/typecheck/format, CLI smoke, tier 2 smoke, Postgres concurrency, live Clerk, dependency review, image and labels. CI, image.
  • GitHub reports MERGEABLE / CLEAN against tier2/413-tier2-e2e. That stacked base has no configured required checks; all reported checks were nevertheless required to be green for this handoff.

No unresolved blocker specific to this docs PR. No merge performed.

@allisonmahmood allisonmahmood linked an issue Oct 1, 2026 that may be closed by this pull request
Base automatically changed from tier2/413-tier2-e2e to main October 1, 2026 07:53
@allisonmahmood

Copy link
Copy Markdown
Owner Author

Landing fix: bf48d5c

This branch said in ten places that #406's role-only Fargate acceptance was waiting on the IAM grant. That acceptance passed on 2026-09-30 (#406 comment), #439 merged and #406 is closed. ADR-0012's own measurements section already recorded the rerun, so the ADR contradicted itself.

bf48d5c drops the pending claims from README, product, API (source in packages/api/src/markdown.ts plus the generated docs/API.md), DEVELOPMENT, SKILL_DISTRIBUTION, the dev-loop skill and ADRs 0004, 0010 and 0012. The #413, #425 and #415/#416 boundaries stay. The global skill is untouched, so the skills-lock.json hash still holds.

Opus 5.5 in Claude Code

allisonmahmood and others added 3 commits October 2, 2026 13:08
The docs pass was written while #406's role-only acceptance waited on the IAM
grant. That run passed on 2026-09-30 and #439 merged, so the "pending" claims
contradicted ADR-0012's own measurements section.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@allisonmahmood
allisonmahmood merged commit 439c38c into main Oct 2, 2026
10 checks passed
@allisonmahmood
allisonmahmood deleted the tier2/414-domain-docs branch October 2, 2026 11:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:ci CI, shared testing infrastructure, development scripts and tooling area:cli Touches the cli area area:docs Touches the docs area area:integrations Company connections and integration implementations area:primitives Patch tables and files area:server Touches the server area size:l 501-1,000 changed lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docs(domain): the map after tier 2

1 participant