Repository navigation
v1.91.360.0 fix: a PR's changelog.d fragment no longer forces the full paid gate (GST-400) - #3674
Merged
Merged
Conversation
…T-400) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…ction, not a hardcoded input Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…(selection only, GST-400) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…ly in the folder; rename lists keep the old path) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…es; computed import unchanged, repin its hash Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
|
😎 This pull request was merged. |
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.
What changed
A PR whose only change is its changelog.d fragment no longer restores every paid gate case at the PR screen.
Before/after as text: A PR whose only change is its changelog.d fragment no longer restores every paid gate case (113 probes, 24 judges) at the PR screen.
Why
GST-400, found on #3668: since v1.91.342.0 every PR records its CHANGELOG entry as a
changelog.d/<slug>.mdfragment, and the PR eval selector read each fragment as an unknown dependency, so it fell back to the full gate on every PR and saved nothing. Fragments now count as having no eval dependents, so a PR's selection depends on its real changes again.Blast radius
The change narrows one exemption in
knownNonBehaviorFile(scripts/test-pr-profile.ts) and makesgetChangedFiles(test/helpers/test-selection.ts) list a rename's old path. Both can only remove a needless full fallback or add selections, never drop a case a touchfile maps. The exemption covers only.mdfiles directly in the policy's fragments folder, andselectTestsstill selects a case whose touchfile names a fragment. Script ran:test/test-pr-profile.test.tsandtest/changed-files-union.test.tsboth failed before the fix and pass after it, and the remote pregate's selected files passed at this tree (129 files, 3164 tests, 0 failed; not the complete free tier).Approvals
Source: gstack-approvals record for gst-400-fragment-selector (display only; not an approval citation).
Summary
The PR eval selector ran the full paid gate on every PR because each PR's changelog fragment looked like an unknown file. Now a
.mdfile directly inchangelog_fragments.dir(read from.gstack/ship-policy.json) has no eval dependents. Review then narrowed the exemption to that one folder level and file type, and made changed-file lists keep a rename's old path, so moving a file intochangelog.d/ordocs/cannot hide the code it came from from the PR eval selector (ready --screenstill lists only the new path atlib/ship-queue-train-ready.ts:94; see Review notes). The two shared-harness files are recorded as non-behavioral inscripts/harness-version.json, and the paid/free boundary test's audited hash fortest-selection.tsis re-pinned after a re-audit of its computed import.Test Coverage
All new code paths have test coverage. Coverage: deterministic (the changed runtime file has a changed test naming it; no audit reader).
Regression proof: the fragment, other-files-in-folder and rename assertions each failed on the code before the fix and pass after it.
Tests ran: selector 54
Tests ran: typecheck count unavailable
Pre-Landing Review
Pass 1: one INFORMATIONAL test-gap (an assertion that could not fail) was auto-fixed. The native adversarial pass found two FIXABLE items: the exemption covered any file at any depth under a head-read folder, and renames hid their old path. Both were fixed with failing-first tests. Pass 2 (scoped) found nothing at the blocking floor. Pass 3 covered the hash re-pin only (a fix-check and the adversarial pass, no findings).
REVIEW_LOOP: passes=3 blocking_found=0 deferred=0 noted=3 fixed=1 scope=frozen fix_checks=2 dispatches=4
Gate edits: 2 listed, 2 read, 0 findings. The
test/paid-free-boundary.test.tshash re-pin follows a re-audit: the computed import it excludes is unchanged, and the pin still fails closed on any other edit.test/helpers/test-selection.tsgains--no-renames, which widens selection.Outside review: not run (code class, no numeric claims; the review plan skips it).
Collector note: the pass-3 adversarial output said "nothing to sort into FIXABLE", and the collector parsed that phrase as a CRITICAL label. The judge cannot downgrade it, so merged.jsonl carries one spurious CRITICAL. The reader reported no findings.
Review notes
Below the blocking floor (advisory, informational, test-gap or wording items); recorded here and not fixed in this PR.
scripts/harness-version.json:53nonBehavioral notes for test-selection.ts and test-pr-profile.ts share one sentence that names both changes; each file holds only one.lib/ship-queue-train-ready.ts:94ready --screen builds its own changed-file list without --no-renames or core.quotePath=false, so a rename into changelog.d/ or docs/ still hides the old path from the PR screen (train gate census still catches it).scripts/test-pr-profile.ts:76changelog_fragments.dir is read from the PR head without lib/ship-policy.ts validation; a '.' value (not used today) would exempt every root .md file.Exploratory QA
Parent CLI probes, run as a smoke check (QA method files were not loaded). On main, a PR whose diff is only a fragment selects
pr (full-fallback): 113 behavioral probes and 24 judges. On this branch, the same diff selectspr (pr)with no cases. A branch that also edits a skill template still selects as before.Eval Results
No separate PR eval run.
scripts/test-pr-profile.tsis a full-gate input, so the train'sgstack/full-gateprovides the paid evidence for this change.Plan Completion
Plan: autoplan-20261031063100 (gate_rev 2, APPROVED), item D1 (GST-400): done. Items A1-C1 ship in the companion PR for GST-407/384/391.
TODOS
No TODO items completed in this PR.
Documentation
Status: current. No documentation edits were needed and no blockers were found.
Scope: base a77fae2 to head ec82fe3 on
gst-400-fragment-selector, with nothing staged, unstaged or untracked. The diff touches the changelog fragment,scripts/test-pr-profile.ts,test/helpers/test-selection.ts,scripts/harness-version.jsonand two test files. Mode: edit.Documentation health:
changelog.d/gst-400-fragment-selector.md [Current] (matches the diff)
changelog.d/README.md [Current]
docs/ship-policy.md [Current] (changelog_fragments.dir resolves to changelog.d)
docs/TESTING_INTERNALS.md [Current] (relevant passage read, no contradiction)
CONTRIBUTING.md [Current] (relevant passage read)
docs/TEST_PORTFOLIO.md [Current] (relevant passage read)
CHANGELOG.md [Not audited for edits] (protected in ship-owned mode)
TODOS.md [Not audited] (protected in ship-owned mode)
Documentation coverage:
changelog.d fragment exemption [reference: partial (fragment and ship-policy only)] [how-to: no] [tutorial: no] [explanation: no]
Documentation debt: the TESTING_INTERNALS fallback label list does not mention that
.mdfiles directly inchangelog.d/have no eval dependents. A one-line reference note would close it.Diagram drift: none; no diagrams reference the changed code.
Test plan
bun test test/test-pr-profile.test.ts test/changed-files-union.test.ts test/harness-version.test.ts test/paid-free-boundary.test.ts: 54 pass, 0 failbun run typecheck: exit 0