Skip to content

Deliver: Review Conventions - #58

Merged
seanrreid merged 9 commits into
mainfrom
rad/review-conventions
Jul 3, 2026
Merged

Deliver: Review Conventions#58
seanrreid merged 9 commits into
mainfrom
rad/review-conventions

Conversation

@seanrreid

Copy link
Copy Markdown
Owner

Summary

Implements the /rad-insights Findings Recurrence suggestions (2026-07-03 session): the four recurring-category convention bullets land in CLAUDE.md, and the security suggestion becomes a real lint with a baseline ratchet.

What landed (2 waves, 3 tasks, all 6 ACs)

  • scripts/lint-shell-safety.sh — flags shell scripts interpolating positional/env-derived variables into git/jq/node -e/eval without a STRONG guard (regex [[ =~ ]] or case validation; -z/-f alone doesn't qualify). Grep-based heuristic, precision-first, limits documented in the header.
  • Baseline ratchet (lint-shell-safety-baseline.txt): pre-existing offenders warn (⚠ baseline:) instead of failing; new code must meet the strict bar; fixed entries self-report as ⚠ stale baseline:. The actual offender run diverged from the plan's estimate — baselined: check-events-append-only.sh, check-plan-approved.sh, check-scope.sh, classify-low-risk.sh, rad-status.sh, worktree-lifecycle.sh (check-approval-integrity.sh and open-pr.sh came up clean). Remediation of the six is a named follow-up plan.
  • Fixture test (test-lint-shell-safety.sh): guarded pass / unguarded fail / baselined warn-pass / stale-baseline warn / usage exit-2, plus env-into-node-e and case-guard cases. Auto-run by the existing script-tests CI job.
  • CI: new fail-closed shell-safety-lint job (checkout + invoke, mirrors agent-file-lint).
  • CLAUDE.md Coding Conventions: the testing, code-clarity, error-handling, and correctness bullets replace the empty placeholders.

Verification

  • check-scope: 5/5 in scope · check-tests: pass · fixture: ALL PASS · real-tree lint: exit 0 (baseline warnings only) · agent-file lint: still green
  • check-approval-integrity: PASS locally (ancestry, fingerprint, gate, authenticity)
  • Execution log: .agents/logs/review-conventions-2026-07-03.md

🤖 Generated with Claude Code

seanrreid and others added 9 commits July 3, 2026 13:24
Author: architect
Waves: 2
Tasks: 3
Out-of-scope deps: no
Plan:  .agents/plans/review-conventions.md
(Status + approved event written by: node harness/cli.js approve)
Wave 1, Task 1.1
Validated: AC#2, AC#3, AC#4 — bash scripts/test-lint-shell-safety.sh exits 0 (ALL PASS, 8 cases); bash scripts/lint-shell-safety.sh exits 0 on the real tree with baseline warnings only (6 frozen offenders)
Wave 1, Task 1.2
Validated: AC#1 — Coding Conventions section contains exactly the four bullets; git diff CLAUDE.md confined to that section; scripts/lint-agent-files.sh exits 0
Wave 1 log bookkeeping (a commit cannot embed its own hash)
Wave 2, Task 2.1
Validated: AC#5, AC#6 — yaml parses; local lint exit 0; additive diff

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@seanrreid seanrreid added the rad:deliver RAD delivery PR label Jul 3, 2026
@seanrreid
seanrreid merged commit 63a49d1 into main Jul 3, 2026
7 checks passed
@seanrreid
seanrreid deleted the rad/review-conventions branch July 3, 2026 17:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

rad:deliver RAD delivery PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant