Repository navigation
Conversation
There was a problem hiding this comment.
All reported issues were addressed across 3 files
Reply with feedback, questions, or to request a fix.
View guided diff | Turn on auto-fix | Re-trigger cubic
6a58261 to
f9189c2
Compare
f9189c2 to
a8f7dd3
Compare
a8f7dd3 to
eca0098
Compare
|
This PR is ready at eca0098. I found no code problems in the test and fixture placement rules. CI is still pending, with all jobs queued and none failed, and there are no conflicts. I did not check the Ownership and context budgets job against the +7 lines in AGENTS.md, and I did not trace the R11 test-kit factory-import claim or the host-kit/process, command and file module list. I reviewed against base bce7f7d, so I don't know if the stacked base PR merges unchanged. Not blocking, and you can take or leave these: the diff also drops unrelated lines from docs/agents/testing.md (the fuzz worker-process sentence, the "never through a barrel" import rule, and the selectors and capture-kit fixture pointers, including PROPERTY_RUNS and makeSnapshotState), so restoring them or moving the trims to a separate PR would keep those pointers; and the fixture and test-kit rules now appear in both AGENTS.md and testing.md, so one line in AGENTS.md pointing to R83/R84 and testing.md would keep AGENTS.md as a routing file. Before merge, CI needs to go green, in particular the Ownership and context budgets job for the AGENTS.md size. |
d4ba21b to
7000d35
Compare
|
Note for review order: this layer carries the |
|
The earlier note on eca0098 is now addressed. I reviewed 7000d35 and found no problems with the docs changes in AGENTS.md, docs/agents/testing.md and docs/agents/test-audit.md. The evidence is not complete yet. All 12 remaining checks are still queued and none has failed. The "Ownership and context budgets" job is the one that matters here, because I could not confirm AGENTS.md stays within its size budget until it runs. These docs hunks touch no route the other queued jobs exercise. Not blocking, and you can take or leave it: testing.md:73 lists six packages that cannot declare test-kit, but R83 in Could testing.md say "any package test-kit reaches through its dependencies (R83, Cubic has not reviewed this head. I did not check the 4 resolved threads one by one. My review covered only the three docs files, since the delta stat spans the whole stacked layer. Once the list question is settled and the queued checks pass, especially the context-budget job, this is ready for another look. |
AGENTS.md states the two colocation conventions (index-<aspect> package tests, test/repo-guards/ for repo-level guards) and the no-test-exports rule with test-kit as the only home for shared helpers; docs/agents/testing.md carries the test-kit placement rules (packages it builds on keep helpers local, no test-kit import in a vi.mock factory) inside the existing docs/agents byte budget. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… rule AGENTS.md says to add no test-support exports and that the legacy count only falls; test-audit limits the junk pattern to production-package exports (test-kit's entry is intentional); testing.md names the modules whose mock factories must not import test-kit and notes that still-exported fixtures stay importable until moved. A fuzz-harness sentence that restated the harness is dropped to stay inside the docs/agents byte budget. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
7000d35 to
c10f6a2
Compare
|
Stacked on #3669 (R84) on #3667 (test-kit) on #3659 (R11 devDependencies) on #3645 (R83).
What
Docs for the stack, with no new files:
index-<aspect>.test.tsbesideindex.ts, and repo-level guards on Swift sources, manifests, docs or scripts live intest/repo-guards/. It also states R83 in one place: no packageexportsentry points at test support, a fixture one package uses stays inside it, and helpers shared across packages live only in@agent-device/test-kit, adevDependencythat production source never imports and that never depends onplatform-*,provider-*, the daemon or root.@agent-device/selectors/snapshot-geometry-fixturesandcapture-kit/snapshot-state-fixturespaths with the placement rules: one package's fixture is a*.fixtures.tsbeside its module; the packages test-kit builds on cannot declare it (project references are acyclic); never import test-kit inside avi.mockfactory (it loads the module being mocked), spy it in place aspinOwnProcessStartTimedoes.exportsentry only tests import" to the junk patterns.Budget
docs/agents/is at 39,999 of its 40,000-byte total (agent-guidance-contract.test.ts), 17 bytes of headroom on main before this PR. I paid for the additions by tightening nearby prose (smoke-test path list, the Gesture Handler canary, the docs-only paragraph) rather than raising the budget or adding a file. Any laterdocs/agentsaddition must delete duplication first.Gates
pnpm check:quick,check:doc-prose,check:doc-links,check:gate-manifest,check:affected --run, repo-widepnpm format.🤖 Generated with Claude Code