Skip to content

fix(ci): sparse-check out update-behind-prs.mjs for merge confidence - #355

Merged
BenSheridanEdwards merged 3 commits into
mainfrom
fix/confidence-sparse-checkout
Nov 13, 2026
Merged

BenSheridanEdwards merged 3 commits into
mainfrom
fix/confidence-sparse-checkout

Conversation

@BenSheridanEdwards

@BenSheridanEdwards BenSheridanEdwards commented Nov 12, 2026 •

Copy link
Copy Markdown
Owner

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)

  • Video: Not applicable because this changes CI checkout configuration without UI.
  • Screenshots: Not applicable because no rendered surface changes.
  • Behaviour tests: Red commit b952be7: 1 failed, 2 passed; missing scripts/update-behind-prs.mjs from confidence-label.mjs and required-gates.mjs. Green commit 96dd187: 3 passed. Removing enforcement-approval.mjs is detected through both importers.
  • Sparse reproduction: copied exactly the listed files to a temporary directory and ran 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.
  • E2E mapping: Not applicable because application behaviour is unchanged.

Verification Summary

  • Head commit: 4704a61
  • PRDs checked: None: workflow and tooling changes outside product behaviours
  • PRD impact: None
  • North Star commit: e3e180b
  • Commands run: pnpm install passed; targeted Jest red (1 failed, 2 passed), then green (3 passed); pnpm test:tooling --maxWorkers=3 passed (69 suites, 3100 tests); pnpm gates:check passed; pnpm lint:anti-slop passed on the clean committed tree. PACT_DIR=<workdir>/repo/.cache/sparse-pacts pnpm verify passed; pnpm e2e passed (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.
  • Results: Pre-commit hooks passed on all three commits. Timed replay on the green tree: typecheck 1.18s, staged Biome 0.77s, policy 1.66s, styles 0.73s, anti-slop 1.05s, suppressions 1.19s, architecture 2.09s, Fallow audit 1.41s, secret scan 0.70s; all exit 0 and below the ADR 0062 30-second budget. Fallow reports existing empty web-routes/web-features zone notices.
  • Definition of Done: Local verification satisfied; hosted runtime proof remains a post-merge maintainer follow-up.
  • pnpm verify
  • pnpm e2e
  • Behaviour is covered by the E2E map when user-visible behaviour changed. Not applicable, CI only.
  • Logic is unit-tested where logic changed.
  • Accessibility considered and verified for interactive/UI changes. Not applicable, CI only.
  • The diff follows .agents/project/ARCHITECTURE.md and CONVENTIONS.md; no new architectural decision.
  • No gates were bypassed or weakened.
  • Known risks: The PR cannot grade itself: workflow_run uses main's copy of confidence.yml. After merge, the maintainer must rerun Merge confidence on an open PR and link that run. The regex follows static relative imports/re-exports, excludes import type, and supports scalar and literal-block sparse lists; computed dynamic imports, require, directory/glob entries, folded and flow YAML forms are not covered. Rollback is reverting this PR, which restores the known missing-module failure.
  • Sign-off: .github/workflows/confidence.yml is 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

  • None

PR Proof Law

  • I followed .agents/project/PR_QUALITY.md and .agents/skills/pr-quality-contract/SKILL.md; the PR quality check verifies the proof format.

@github-actions

github-actions Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

Enforcement sign-off

Ran at Friday, the 13th of November, at 10:06 am on commit 4704a61.

This PR changes gated enforcement or product intent, so it needs sign-off.

File What changed How it affects
.github/workflows/confidence.yml Changes the step Check out the trusted default-branch script The named jobs, steps, action versions and trigger settings above determine which checks execute

@BenSheridanEdwards: tick to approve.

  • Approve these enforcement changes at 4704a61 ticked by Ben Sheridan Edwards at Friday, the 13th of November, at 10:05 am (@BenSheridanEdwards)

@BenSheridanEdwards
BenSheridanEdwards merged commit 8a376a4 into main Nov 13, 2026
21 of 23 checks passed
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.

1 participant