Skip to content

Deliver: Insights Feedback Loop - #57

Merged
seanrreid merged 10 commits into
mainfrom
rad/insights-feedback-loop
Jul 3, 2026
Merged

Deliver: Insights Feedback Loop#57
seanrreid merged 10 commits into
mainfrom
rad/insights-feedback-loop

Conversation

@seanrreid

Copy link
Copy Markdown
Owner

Summary

Delivers the approved insights-feedback-loop plan — the feedback-loop piece of the Agent Reliability Stack review. Pure read-side: no new event types, no log writes, gate fold untouched.

What landed (3 waves, 4 tasks, all 7 ACs)

Wave 1 — read helpers (Part A foundation)

  • Four pure read helpers appended to harness/events.js below totalUsage, same tolerance contract: outcomeCounts, failReasonCounts, retryCounts, hookVetoCounts. Writer/fold code byte-identical (append-only diff verified). Unit tests cover counting from spine-shaped synthetic histories plus the zeros contract on empty/approved-only logs.

Wave 2 — /rad-insights sections

  • Reliability (Part A): new step folding every .agents/state/*/events.jsonl cross-feature via the events.js helpers — success rate by the frozen 7-outcome vocabulary, retries, failure-reason distribution, hook vetoes, token spend per wave — with an explicit "no wave data yet" zeros rendering (validated against the real repo, which has no wave events yet, and against synthetic wave data).
  • Findings Recurrence (Part B): categories ≥ threshold (RAD_FINDINGS_THRESHOLD, default 5) each emit a ready-to-paste CLAUDE.md convention line or described lint rule, framed "suggestion — apply via PR; never auto-applied". Today's data triggers: testing (14), code-clarity (12), security (9), error-handling (7), correctness (5). Env knob documented in .env.example.

Wave 3 — /wrap touchpoint (droppable tail)

  • Threshold-gated "Recurring findings" line in the session summary, omitted entirely when nothing meets the threshold; same computation as rad-insights.

Verification

  • check-scope.sh: 5/5 changed files in declared scope · check-tests.sh: pass · harness suite: 0 failures
  • check-approval-integrity.sh: full PASS locally (ancestry, fingerprint, gate, authenticity) — this PR is the first delivered end-to-end under the new CI
  • Execution log: .agents/logs/insights-feedback-loop-2026-07-03.md

🤖 Generated with Claude Code

seanrreid and others added 10 commits July 3, 2026 12:27
Author: architect
Waves: 3
Tasks: 4
Out-of-scope deps: no
Plan:  .agents/plans/insights-feedback-loop.md
(Status + approved event written by: node harness/cli.js approve)
Wave 1, Task 1.1
Validated: AC#1, AC#2 — node --test green; append-only diff verified

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…rt A)

Wave 2, Task 2.1
Validated: AC#3 — documented Step 4c one-liner run against the real repo (noWaveData zeros path) and a synthetic events.jsonl fixture (non-zero outcome/retry/fail-reason/veto/spend counts)

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…tion + env knob (Part B)

Wave 2, Task 2.2
Validated: AC#4, AC#5 — documented Step 3b computation run against the real findings.jsonl (default threshold 5 lists exactly testing/code-clarity/security/error-handling/correctness; RAD_FINDINGS_THRESHOLD=100 lists none; unset/0/NaN/negative all parse to 5); .env.example block matches the existing commented doc-block style

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Wave 3, Task 3.1
Validated: AC#6 — ran the documented Step 4b computation against the real .agents/findings.jsonl: default threshold 5 yields testing, code-clarity, security, error-handling, correctness; RAD_FINDINGS_THRESHOLD=100 yields nothing (line omitted)

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 33e993f into main Jul 3, 2026
6 checks passed
@seanrreid
seanrreid deleted the rad/insights-feedback-loop branch July 3, 2026 17:00
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