Repository navigation
fix(#69): failed repo listing exits 2, no EXIT trap, rollout docs pass the audit - #72
Merged
enricopiovesan merged 1 commit intoNov 24, 2026
Conversation
…s the audit Fixes from the post-merge review of #71. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
7 tasks
Contributor
Author
|
Fallback review (Decision 133, fresh context, after the 4-hour window): pass.
Non-blocking nits:
|
6 tasks
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.
Summary
Fixes the defects the post-merge review of #71 found (#71 (comment)). #69's Definition of Done item 1 (API errors never pass) was not fully met.
Governing Spec
no-spec-needed (governance compliance; the rules are in
docs/ai-agent-hardening.md)Project Item
Refs #69 (Project 1, reopened).
What Changed
gh repo listran in< <(...)with no status check; a rate-limit error gave an empty list and "All repos compliant." with exit 0. It is now captured with stderr; a failure, or zero active repos, exits 2 ("audit incomplete").set -uabort into exit 0, because$?is already 0 when the trap runs. The review's suggestedrc=$?; …; exit "$rc"does not help there (checked on macOS/bin/bash3.2.57). Every deliberate exit now goes throughfinish(), which removes the temp file; a crash only leaves a temp file.rollout_governance.shwrote aCLAUDE.mdcontaining ".github, version $VERSION" (flagged as a prose version) and noAGENTS.md(fails the pointer column). It now points at.governance-versionand also writes anAGENTS.mdpointing atCLAUDE.md.FAKE_FAILnow matches the end of the API path, so the 500 cases cover the per-repo constitution read and the workflow listing separately from the org constitution andhas_file cla.yml. New cases: HTTP 500 (403 rate limit) onrepo list, and an org with no active repos.[Unreleased]updated.Not changed: N2 (rulesets
?on 5xx; pre-existing, ruleset reads need admin) and N3 (prose-check wording edge cases).Validation
bash scripts/org/audit_compliance_test.sh: all checks pass.bootstrap-governanceaudit fails therepo listand no-repos cases (exit 0)./bin/bash3.2: injecting an unbound variable now exits 1 (was 0 with the trap).CLAUDE.md.bash -non all changed scripts.🤖 Generated with Claude Code