feat(claude-memory): /init-then-prune eval fixture graded against C1/C2/C5 (#2989) - #3013
Conversation
…C2/C5 Add eval case init-shaped-bloat-graded-with-c5-carve-out to the audit skill's suite: a static bloated CLAUDE.md fixture in the shape /init produces (212 visible lines, file-by-file codebase inventory, restated standard conventions, copied framework documentation), graded against expected findings. Expectations pin C1 (line-budget FAIL over the 200-line target), C2 (derivable standard-convention lines, grouped by section), and C5 (codebase-description and framework-doc flagging) — plus the discrimination side: the fixture's curated runbook pointer is KEEP under C5's navigation-pointer carve-out, and its non-obvious first-run gotcha is not flagged. Static fixture chosen over live /init generation for determinism (lane 9 decision). claude-memory 0.10.0 -> 0.11.0 with CHANGELOG entry. Refs #2989 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QbfCrj3X9FfGL7VRZYmrn4
|
Claude finished @kyle-sexton's task in 3m 11s —— View job Code review complete
SummaryReviewed against the CLAUDE.md/AGENTS.md-linked repo conventions and the Verified independently (not just author-claimed):
One finding posted inline on Not independently run (outside this lane's allowed tools — |
|
Claude finished @kyle-sexton's task in 41s —— View job Security review — skipped (no security-relevant surface)
Per All four changed files are content/config for the
None of these introduce executable code, GitHub Actions workflow changes, permission changes, secret/credential handling, or any injection surface (command, SQL, path, template). The fixture is inert text consumed as a documentation string by the audit skill's grading harness — it is not parsed as code or executed. No findings. |
|
Last security-reviewed head: |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: b99a703382
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
Claude has reviewed this PR 2 times. The lane skips further automatic reviews after 5; deleting this comment resets the count. |
…citation Review findings on PR #3013: - Codex: the fixture ships without the fictional repository it describes, so a full per-check audit would hit host-dependent behavior — C7 would FAIL the runbook pointer as a missing file (colliding with the KEEP discriminator) and C9 could not validate commands against a manifest that does not exist. The prompt now restricts the case to C1/C2/C5 (the issue's stated scope), the negative expectations name their checks (C5 / C2), and a new expectation pins that no C7/C9 findings are reported against the fictional paths and commands. - Claude reviewer: the CHANGELOG cited docs/upstream/aihero-steering-lanes.md, which was dissolved into docs/upstream/aihero-course.md at chain close; the citation now points at the current location. Refs #2989 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QbfCrj3X9FfGL7VRZYmrn4
|
Claude finished @kyle-sexton's task in 1m 19s —— View job Code review complete
SummaryThis push (010b25d) is a direct fix-up in response to the two findings raised on the prior head (b99a703): Codex's P2 (case 12 audited a fictional repo the fixture doesn't ship, so C7/C9 would misfire against it) and my own note about a stale Verified independently:
Not independently run (this lane's tools are No new findings on this push — both prior findings are resolved correctly and no regressions were introduced. |
|
Claude finished @kyle-sexton's task in 39s —— View job Security review — skipped (no security-relevant surface)
Per The only commit since the last security review (
Both are prose/config edits to an eval fixture's grading text — no executable code, no GitHub Actions workflow changes, no permission changes, no secret/credential handling, and no injection surface (command, SQL, path, template). This mirrors the prior full-PR review of |
Closes #2989
Summary
Adds the /init-then-prune eval fixture to
claude-memory:audit's eval suite (AI Hero course lane 9, #2911): a static bloated CLAUDE.md in the shape/initproduces, graded against expected audit findings — including the discrimination the C5 navigation-pointer carve-out (#2987 / PR #3009) introduced.Fix
plugins/claude-memory/skills/audit/evals/fixtures/init-bloated-claude-md.md— a fictional TypeScript-monorepo CLAUDE.md with 212 visible lines: a file-by-file Repository Structure inventory and per-file Package Details prose (C5 codebase-description material), restated standard conventions in Code Style Guidelines and Git Workflow (C2 deletion-test material), a copied Express Middleware Reference section (C5 framework-doc material) — plus deliberate KEEP content so the eval grades discrimination rather than blanket flagging: a curated runbook pointer (docs/runbooks/2025-11-retry-storm.md, "Where to Look First") that must survive under C5's navigation-pointer carve-out, and a non-obviouspnpm build:protofirst-run gotcha that must not be flagged. A static fixture was chosen over live/initgeneration for determinism (lane 9 decision,docs/upstream/aihero-steering-lanes.md).init-shaped-bloat-graded-with-c5-carve-out(id 12) inevals/evals.json, referencing the fixture viafiles[]. Expectations pin C1 (FAIL over the 200-visible-line target), C2 (standard-convention lines flagged, grouped by section per C2's collapse rule), C5 (inventory + framework-doc flagging), and the two KEEP discriminators above.claude-memory0.10.0 → 0.11.0 with the matching CHANGELOG entry.Verification
check-jsonschema --schemafile plugins/skill-quality/reference/evals.schema.json plugins/claude-memory/skills/audit/evals/evals.json— okbash plugins/skill-quality/scripts/check-evals-quality.sh …/evals.json— PASS (2 pre-existing WARNs on cases 3 and 11, untouched by this PR; the new case carriesfiles[]so Q4 prose-path does not fire)bash scripts/check-orphaned-fixtures.sh --check— no orphans (fixture consumed viafiles[])bash scripts/validate-plugins.sh— all manifests + catalog validated;generate-catalog.mjs --checkandgenerate-cheatsheet.mjs --checkin syncbash scripts/check-changelog-parity.sh --check/--check-bump origin/main/--check-order— all greenbash scripts/check-changed-skills.sh origin/main— CHECK-SKILL audit: PASSnpx markdownlint-cli2on the fixture and CHANGELOG — 0 issuesclaude plugin eval) is not executable in this container; the repo's CI eval gates (schema + quality lint) are the checks exercised here and both passRelated
🤖 Generated with Claude Code
https://claude.ai/code/session_01QbfCrj3X9FfGL7VRZYmrn4
Generated by Claude Code