Skip to content

docs(okf): restructure okf-bundle for per-change loading - #9552

Merged
russellwheatley merged 5 commits into
mainfrom
russell/okf-bundle-docs-cleanup-ef021e
Dec 4, 2026
Merged

russellwheatley merged 5 commits into
mainfrom
russell/okf-bundle-docs-cleanup-ef021e

Conversation

@russellwheatley

@russellwheatley russellwheatley commented Dec 4, 2026 •

Copy link
Copy Markdown
Member

Cuts how much of okf-bundle/ an agent loads per change.

  • AGENTS.md routes by change type to okf-bundle/routes/. Large docs are split verbatim into task-sized files; old paths stay as catalogs that keep every anchor.
  • Forbidden commands sit at the top of agent-command-policy.md.
  • Removes the unused ts-js-validation skill, whose command list had drifted from the bundle.
  • Work-queue trackers removed from the repo (history keeps them).

Agents were loading 100+ KB of testing docs for small changes (a Jest-only
change read the whole command allowlist and validation checklist, then ran
the full lint, tsc, prepare and type-parity set). AGENTS.md now routes by
change type to a short route per diff kind that names the work type, tier,
files to load per step and exact commands, linking to the existing rule
owners without adding rules.

The five large testing docs are split verbatim into task-sized files under
testing/commands, authoring, validation, e2e and code-coverage. Each old
path stays as a catalog that keeps every old anchor, so links from code,
CI, CONTRIBUTING.md and skills keep resolving. Links inside the bundle now
point at the new homes; a few pre-existing broken links and fragments are
fixed along the way.
Nothing loads it, and its command list had drifted from okf-bundle: it
ran full yarn lint (rewrites Java, banned during frozen review) and
yarn format:js, and skipped the docs checks. The AGENTS.md routes own
validation per diff.
ci-workflows/ios.md and new-architecture/architecture-decisions.md were
the two largest stable docs left (about 12k tokens each) after the testing
split. Both are split verbatim into ios/ and decisions/ with the same
catalog convention: the old path keeps every old anchor, and links inside
the bundle point at the new homes. The ADR catalog gains a one-line
decision index so finding NewArch-AD-<n> costs one small read.

The forbidden-command table moves from testing/commands/forbidden.md into
agent-command-policy.md, directly under the agent rule, so the file every
agent is sent to first shows what never to run without another hop.
Four phase trackers (monorepo tooling rollout, App Check iOS provider init,
Firestore pipeline coverage, compare-types parity) still lived in the
bundle as grandfathered queues, about 128 KB of mutable status next to
stable reference, plus an ephemeral prepare benchmark log. Three queues
were marked complete; compare-types had not moved since August.
Reference docs linked into them for live status.

The files are removed (git history keeps them). Reference docs no longer
link into them or cite their phase ids, and the one durable fact that
only lived in a queue (known gaps in the lint:deps allowlist) moves to
prepare-and-cache.md. The policy drops the grandfathered exception:
queues live in Linear project documents and no tracker goes back into
the repo.
The route table missed paths that read as one change type and are another:
packages/*/specs/*.ts are TurboModule specs (native, not js-lib), tests/**
is the e2e test app and had no row at all, and Ruby tests under
__tests__ are not Jest. AGENTS.md and the routes catalog now name these
paths, and routes/index.md gains a look-alike table so an agent picks the
right route before loading anything.
@russellwheatley
russellwheatley force-pushed the russell/okf-bundle-docs-cleanup-ef021e branch from fe5b31c to 3588cc6 Compare December 4, 2026 09:19
@russellwheatley
russellwheatley marked this pull request as ready for review December 4, 2026 09:38
@russellwheatley
russellwheatley merged commit db8befb into main Dec 4, 2026
12 checks passed
@russellwheatley
russellwheatley deleted the russell/okf-bundle-docs-cleanup-ef021e branch December 4, 2026 09:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants