Skip to content

ci(fork-sync): strip dangling ADR path references (#2434)#2443

Merged
alexey-pelykh merged 1 commit intomainfrom
ci/2434-strip-adr-path-refs
Apr 20, 2026
Merged

ci(fork-sync): strip dangling ADR path references (#2434)#2443
alexey-pelykh merged 1 commit intomainfrom
ci/2434-strip-adr-path-refs

Conversation

@alexey-pelykh
Copy link
Copy Markdown

Summary

CI scripts referenced an ADR file path that doesn't exist in this repo. Per the decision on #2434, ADRs stay in the private HQ and CI keeps only the stable rule names (ADR 0005 H5, ADR 0005 H6) — no broken paths.

Changes

  • scripts/check-stub-debt.mjs:13 — strip (engineering/decisions/0005-fork-sync-hardening.md) from header comment
  • scripts/check-obsolescence-audit.mjs:34 — strip (engineering/decisions/0005-fork-sync-hardening.md) from header comment
  • scripts/check-obsolescence-audit.mjs:357 — strip , engineering/notes/provider-model-obsolescence-audit.md from FAIL error message

scripts/check-stub-debt.mjs:108 was already correct (rule name only) and is not touched.

Verification

  • node scripts/check-stub-debt.mjs → exit 0, Stub debt check passed: 12 == baseline 12.
  • node scripts/check-obsolescence-audit.mjs → exit 0
  • grep -rn "engineering/decisions\|engineering/notes" . (excluding build dirs) → no matches; unrelated npm scope @martian-engineering/* correctly excluded
  • Fresh-context adversarial validation: all 6 AC PASS (trace in .tmp/validate-intent.task.jsonl)
  • pnpm check pre-commit hook: format + lint + custom gates all pass

Cascade impact

Unblocks #2435, #2436, #2437 from the #2433 hardening epic — none require an ADR file to exist in this repo.

Test plan

  • Both CI scripts still execute without errors after path stripping
  • Rule name references (ADR 0005 H5, ADR 0005 H6) preserved as stable identifiers
  • No stale references remain elsewhere in the repo

Closes #2434.

CI scripts referenced `engineering/decisions/0005-fork-sync-hardening.md`
and `engineering/notes/provider-model-obsolescence-audit.md` but neither
directory exists in this repo — the referenced docs live only in the
private HQ. Contributors hitting these gates could not resolve the paths.

Decision: ADRs stay HQ-internal; CI keeps the rule names only
(`ADR 0005 H5`, `ADR 0005 H6`) as stable identifiers without broken paths.

- check-stub-debt.mjs:13: strip path from header comment
- check-obsolescence-audit.mjs:34: strip path from header comment
- check-obsolescence-audit.mjs:357: strip path from FAIL error message

Unblocks #2435, #2436, #2437 from the #2433 hardening epic — none
require an ADR file to exist in this repo.
@alexey-pelykh alexey-pelykh enabled auto-merge (squash) April 20, 2026 09:58
@alexey-pelykh alexey-pelykh merged commit df56d02 into main Apr 20, 2026
13 checks passed
@alexey-pelykh alexey-pelykh deleted the ci/2434-strip-adr-path-refs branch April 20, 2026 10:04
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.

ci(fork-sync): strip dangling ADR path references (ADR stays HQ-internal)

1 participant