Skip to content

Fail loud when the report's reference adopter is unresolvable - #392

Merged
ptr727 merged 2 commits into
developfrom
report-guard-ref-adopter
Jul 22, 2026
Merged

Fail loud when the report's reference adopter is unresolvable#392
ptr727 merged 2 commits into
developfrom
report-guard-ref-adopter

Conversation

@ptr727

Copy link
Copy Markdown
Owner

Addresses a Copilot finding on the develop→main promotion (#391): in fidelity_honesty.py --report mode, an unresolvable reference adopter (a mistyped name) made manifest_gap_pass return no slug and an empty gaps list, and the report was written anyway — its empty gap section reading as a false clean.

Validate the reference adopter up front (before the fleet sweep) and exit non-zero with a clear message. Fails in ~0.04s on a typo instead of after a full sweep. The report output for a valid adopter is unchanged.

Verification

python3 spec/fidelity_honesty.py --report NoSuchRepo123 → prints the error and exits 1 in 0.04s, writes nothing; spec/validate.py green.

🤖 Generated with Claude Code

In --report mode, an unresolvable reference adopter (a mistyped name) made manifest_gap_pass
return no slug and an empty gaps list, and the report was written anyway - its empty gap
section reading as a false clean. Validate the reference adopter up front (before the fleet
sweep) and exit non-zero with a clear message instead. Fails in 0.04s on a typo rather than
after a full sweep.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
CopilotAI review requested due to automatic review settings July 22, 2026 20:26

CopilotAI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR hardens spec/fidelity_honesty.py --report so a mistyped/unresolvable reference adopter fails fast and does not write a misleading (false-clean) report.

Changes:

  • Adds an up-front registry lookup in --report mode to ensure the reference adopter exists before running the fleet sweep.
  • Emits a clear stderr error and exits non-zero when the adopter is not found, avoiding writing an empty/incorrect report.

Comment threadspec/fidelity_honesty.py Outdated
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
CopilotAI review requested due to automatic review settings July 22, 2026 20:29

CopilotAI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

@ptr727
ptr727 merged commit 6782da3 into developJul 22, 2026
7 checks passed
@ptr727
ptr727 deleted the report-guard-ref-adopter branch July 22, 2026 20:31
ptr727 added a commit that referenced this pull request Jul 22, 2026
…ence ledger (#391)
Merge-commit promotion of #386-#390 + #392 (fidelity-honesty tool, Python Scripts-profile config, manifest hardening, divergence ledger + burn-down report, report fail-loud guard). Copilot-clean; a human merge, so no release fires.
Sign up for freeto 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.

2 participants

@ptr727