Repository navigation
Let a repository name its own docs-only paths in its ship policy (GST-1974) - #4185
Merged
Merged
Conversation
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
… (GST-1974) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
|
😎 This pull request was merged. |
…base gained in the docs-only class Review-Finding: review/specialist-batched#1 reader=security Review-Finding: review/red-team#1 reader=red-team Review-Finding: review/red-team#2 reader=red-team Review-Finding: voices/adversarial-native#1 reader=adversarial-native Review-Finding: voices/adversarial-native#3 reader=adversarial-native Review-Finding: voices/adversarial-native#5 reader=adversarial-native Review-Finding: voices/outside-voice#1 reader=outside-voice Review-Finding: voices/outside-voice#2 reader=outside-voice Review-Finding: voices/outside-voice#3 reader=outside-voice Review-Finding: voices/outside-voice#4 reader=outside-voice Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…eps the full checks Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…l and land's base-reader check Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A repository can now name its own human-docs folders in its base branch's ship policy, so a pull request that only edits prose there skips the test suites the way README.md, docs/ and changelog.d/ already do. This serves gstack's goal of shipping fast without skipping the checks that matter.
What changed
Add a
docs_onlyblock to.gstack/ship-policy.jsonon the base branch:lib/docs-only.tsreads the block with git from the base tip (CI: the merge commit's first parent; pregate and ci-carry:origin/<base>; land: the tip it merges onto). A pull request that edits the policy is never docs-only.lib/ship-policy-docs-only.tsand now also covers prompt files, hidden directories and anyevals/orinventory/folder.allowtakes only narrow Markdown globs under a literal directory.'wiki','./wiki','../wiki',root + '/wiki',${root}/wiki) keeps the class off unless one of the declaredtestscovers it. Those tests run in the docs check, and a declared test missing from the branch keeps the class off.land.docs_only_skipreads the block at the base tip and keeps every merged check when the base gained a reader of a changed doc's folder after the pin branched.docs_onlyandlandare warnings, not errors.land.docs_only_skipneedsmin_gstack_versionat its own introducing release (LAND_DOCS_ONLY_SKIP_KEY_VERSION), andgstack-ship-policy validatesays so.Why
"gstack-evals keeps posts in wiki/board/ and every typo fix runs every suite, then /ship runs them again." A repository can now mark folders like that as human docs from its base branch, and the checks that read those folders still run.
Blast radius
The classifier is shared by CI's docs-scope gate, pregate's docs lane, ci-carry and land. gstack's own policy turns on neither
docs_onlynorland.docs_only_skip, and with no block every repo-only branch returns early (directoryReadersandpathRefusalread at lib/docs-only.ts). The free suite passed at this exact tree in run 42559023322.Approvals
Plan: approved: autoplan-20261109024402 (GStack Minder ruling: inside Garry's R81 freeze exception and his "do it").
Summary
Docs that live outside
docs/used to run every suite on every edit. This PR lets the base branch's ship policy name those folders, keeps gstack's own deny list in charge, and fails closed on anything it cannot read. Review found four ways the first draft could skip a test that would then fail on main. Relative directory paths went unseen, a missing declared test passed silently, a rename intodocs/dropped the folder's tests, and land ignored readers the base gained. All four are fixed here with failing-first tests.Test Coverage
Coverage: 79% value-weighted (79% including 0 weakly covered paths), 3 gaps. 0 tests added by the audit.
Test value: 0 tests written, 0 rejected by the authoring gate, 0 existing tests extended, 0 paths weakly covered.
--jsonwarnings mergeReview added 4 regression tests in test/docs-only-policy.test.ts (relative directory readers, a missing declared test, a rename into docs/ keeping the folder's tests, land keeping checks for a base-gained reader). Each failed at 96efd50 on its own assertion and passes at 2b66bbc.
Tests ran: test 1649 (files, carried from CI run 42559023322)
Pre-Landing Review
Pass 1 (full panel: batched testing/security/state-machines specialist, Red Team, native adversarial, outside voice) found 10 blocking-floor findings, all one of four defects, fixed in 2b66bbc. Pass 2 on the fix range found only informational notes.
Gate edits: 2 listed, 1 read, 0 findings (test/ship-queue-land-direct.test.ts now expects an unknown land key to be accepted, matching the documented warning rule)
Outside review: completed by a Capy subagent on openai/gpt-6.1-sol (Codex CLI is not installed on this machine, so Codex coverage is unavailable).
Review notes
Below the blocking floor; recorded here and not fixed in this PR.
lib/pregate/docs-only-lane.ts:37docs_only.tests always run under bun testlib/land-docs-only.ts:24land never runs the change's docs tests on the merged treelib/docs-only.ts:177extensionless substring tie matches unrelated wordslib/docs-only.ts:115classifier honours a base docs_only block that validatePolicy refuses for min_gstack_versionlib/land-merged-checks.ts:51unknown land keys are warnings here but errors on older gstacklib/ship-policy-docs-only.ts:71tests entries with spaces split in CI; --json warnings only on validatelib/docs-only.ts:225missing-test refusal on a stale branch names the wrong fix (fails safe)lib/land-docs-only.ts:25land compares base and pin readers by path only; a base edit to an existing reader or declared test still skipsdocs/pregate.md:1491docs do not describe base-gained readers or the missing-test refusal (addressed by the documentation audit in d57f493)Exploratory QA
Smoke: the focused suites above (132 pass) plus the adjacent consumers test/docs-only-carry.test.ts, test/docs-only-workflow.test.ts, test/pregate-always-run.test.ts and test/pregate-guards.test.ts (32 pass). The QA method sections were not loaded in this unattended run, so no separate exploratory charter ran.
Design Review
No frontend files changed — design review skipped.
Eval Results
No prompt-related files changed — evals skipped.
Review bot comments
No review bot comments.
Scope Drift
Scope Check: CLEAN
Plan Completion
Plan completion audit: not run (no plan file is bound to this branch). The approved plan is autoplan-20261109024402.
Verification Results
No plan verification items were bound to this run.
TODOS
No TODO items completed in this PR.
Documentation
Status: updated. Four factual corrections bring the docs in line with the docs-only classifier and land changes.
Scope: this branch against base e077053 (14 files, 3 commits): lib/docs-only.ts and lib/land-docs-only.ts diffs, changelog.d/repo-docs-only-paths-gst-1974.md, and the changed regions of docs/pregate.md and docs/ship-policy.md. Not checked against the docs: lib/ship-policy-docs-only.ts, lib/ship-policy.ts, lib/ship-policy-keys.ts, lib/land-merged-checks.ts, lib/pregate/run-check.ts, bin/gstack-ship-policy and the tests. No staged or unstaged changes. Banned terms: none.
Documentation health
./dir,../dir,root + '/dir'and template-literal paths, and says adocs_only.testsfile missing from the classified tree refuses the change.docs_onlyrow now says a listed test missing from the branch refuses the class.Coverage debt: the
docs_onlyreference (ship-policy.md) and how-to and explanation (pregate.md) are covered, with no tutorial; that is acceptable for a policy key. No diagram drift: the edited sections have no diagrams.Test plan
🤖 Generated with Claude Code
Agent notes
Approvals
Approved: yes (record r-f4caee3fd561). The full approval record stays private: this repository is public or its visibility is unknown.
Plan: approved (record r-cb0ed963b15a)
Plan check: approved (record r-cb0ed963b15a)
REVIEW_LOOP: passes=2 blocking_found=10 deferred=0 noted=9 fixed=10 scope=frozen ledgers_read=3 dispatches=8
Gate edits: 2 listed, 1 read, 0 findings
Refs GST-1974