Repository navigation
fix(ci): sparse-check out update-behind-prs.mjs for merge confidence - #355
Merged
Merged
Conversation
Contributor
Enforcement sign-offRan at Friday, the 13th of November, at 10:06 am on commit This PR changes gated enforcement or product intent, so it needs sign-off.
@BenSheridanEdwards: tick to approve.
|
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.
Why does this feature exist?
Since #349, Merge confidence cannot load its required-gates dependency. Failing run: required-gates.mjs imports update-behind-prs.mjs, which was absent from the sparse checkout.
What changed?
Add the missing trusted script to confidence.yml and test all workflow sparse lists against transitive static relative imports. Record the task in tasks.md and link this PR in its Waiting section. No dependencies or architecture changes.
Behavioural Proof (with video and screenshots)
node scripts/confidence-label.mjs --labels. Before: exit 1, ERR_MODULE_NOT_FOUND for scripts/update-behind-prs.mjs imported by scripts/required-gates.mjs. After: exit 0, prints confidence green, amber and red label definitions.Verification Summary
pnpm installpassed; targeted Jest red (1 failed, 2 passed), then green (3 passed);pnpm test:tooling --maxWorkers=3passed (69 suites, 3100 tests);pnpm gates:checkpassed;pnpm lint:anti-sloppassed on the clean committed tree.PACT_DIR=<workdir>/repo/.cache/sparse-pacts pnpm verifypassed;pnpm e2epassed (15 tests). Full suites run through the machine limiter. Initial verify failed in provider contract verification because the shared temporary Pact directory contained unrelated todos.add contracts; rerunning with an empty worktree-local PACT_DIR passed.pnpm verifypnpm e2e.agents/project/ARCHITECTURE.mdandCONVENTIONS.md; no new architectural decision..github/workflows/confidence.ymlis a guarded path, so enforcement-approval needs the approver's sign-off. This keeps/tightens enforcement by adding a trusted file from main so the gate can run again; no check or trigger is removed. The guarded diff is final and remains identical for ADR 0122 sign-off stability.PRD Behaviours to Review
PR Proof Law
.agents/project/PR_QUALITY.mdand.agents/skills/pr-quality-contract/SKILL.md; the PR quality check verifies the proof format.