Skip to content

fix(plugin-quality): read plugin_usage from the running-retro ledger - #11453

Merged
kyle-sexton merged 7 commits into
mainfrom
host-run/5819-usage-ledger-artifact
Oct 31, 2026
Merged

kyle-sexton merged 7 commits into
mainfrom
host-run/5819-usage-ledger-artifact

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

Refs: #5819

Summary

/plugin-quality:audit session searched installed plugins for session-flow's parser and ran it by path, which the plugin philosophy forbids. This builds the owner's recorded option (b): session-flow publishes plugin_usage in the running-retro ledger frontmatter, with the schema the parser emits, and session mode reads it from there.

Fix

  • New stamp_plugin_usage.py in session-flow runs the retro parser and replaces the ledger's one-line plugin_usage frontmatter key. Both writers call it: step 4 of the in-session checkpoint, and the observer after each append. A failed stamp leaves the ledger as it was and never costs the findings.
  • running-retro documents the ledger's path, name glob and session_id and plugin_usage keys as a public artifact.
  • session-mode.md steps 1 and 2 read the ledger instead of locating a script. With session-flow absent it reports the missing capability and the by-name form; with no ledger or no key it tells the operator to run /session-flow:running-retro and re-run, the acceptance reading the owner's decision set.
  • The plugin-quality SKILL, README and eval 16 expectations follow.

Verification

  • test_observer.py: 87 tests pass, including new tests that a second append replaces the stamp with the whole session's count and that an unstamped append keeps its findings.
  • scripts/check-affected.sh --tests on the committed head: 14 passed, 2 skipped; the two selected suites went to their CI lanes, so test_observer.py was run directly.
  • Left out: claude plugin eval for the running-retro and plugin-quality skill text (this lane's eval slot is held by another worker); a live /plugin-quality:audit session run.

Related

N/A

Remaining

  • Eval evidence for the skill text changes: eval 16's expectations changed with the session-mode steps, and they have not been run.

🤖 Generated with Claude Code

kyle-sexton and others added 2 commits October 31, 2026 01:19
Session mode searched installed plugins for session-flow's parser and ran it
by path, which the plugin philosophy forbids. session-flow now stamps
plugin_usage into the ledger frontmatter at each checkpoint and documents the
ledger as an artifact, and session mode reads that key. With no ledger or no
key it tells the operator to run a checkpoint and re-run.

Refs: #5819

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@kyle-sexton
kyle-sexton marked this pull request as ready for review October 31, 2026 05:45
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 31, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-31T05:47:34.123292Z 5b6f775 Draft marked ready
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions

github-actions Bot commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

claude-security-review reviewed 8228c3183322e7a6327659fb2ba20d960155fbab: 0 finding(s), 0 as inline comments.

Incremental review of plugins/plugin-quality/README.md since f820623. I found no security issues.

The change is two prose edits:

  • It drops the phrase "Named honestly:" from the auditor agent's tool description.
  • It rewords the context-guard sentence to say a long-session audit adapts its handling as the context fills.

The auditor's tool list (Read/Grep/Glob/WebFetch plus Bash) and its stated Bash purpose are unchanged. The README is not an instruction surface, and the diff removes no guardrail. It touches no trust control, manifest, workflow or script.

Skip gate 2 applies: this change has no security-relevant surface. The other 14 files are unchanged since the last review and I did not re-review them.

critical-findings: 0

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 5b6f775521

ℹ️ 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".

@github-actions

github-actions Bot commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

claude-review reviewed 8228c3183322e7a6327659fb2ba20d960155fbab: 0 finding(s), 0 as inline comments.

Incremental review of plugins/plugin-quality/README.md since f820623: two wording edits. One drops "Named honestly:" from the auditor-agent bullet. The other rewrites the context-guard sentence to "No context-guard install is required. With one, a long-session audit adapts its handling as the context fills." Both are docs-only, read correctly, and match the behaviour the surrounding text describes. I found no correctness, accuracy or consistency problems, and the change touches no trusted path. It spends no billable resources. No findings.

A failed write truncated the ledger, so a failed stamp could lose findings;
the stamp now writes a sibling file and replaces the ledger only on success.
It also parses with the single-session form, which reads no other transcript.

Refs: #5819

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@kyle-sexton kyle-sexton added the do-not-merge Hard merge gate: do not merge while applied. label Oct 31, 2026
kyle-sexton and others added 3 commits October 31, 2026 03:06
Three outcome cases for `/plugin-quality:audit session`: the list and
its confirmation stop, the missing session-flow stop, and the missing
usage record stop. Run them from the plugins directory with
`--eval-dir plugin-quality/evals`, because the list case loads
session-flow from a sibling path.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@kyle-sexton
kyle-sexton added this pull request to the merge queue Oct 31, 2026
Merged via the queue into main with commit 11276e0 Oct 31, 2026
40 checks passed
@kyle-sexton
kyle-sexton deleted the host-run/5819-usage-ledger-artifact branch October 31, 2026 08:49
@github-actions

Copy link
Copy Markdown
Contributor

Post-merge mutation testing

Killed 5, survived 2, timeout 0, no coverage 0, invalid 0, not run 0.
Covered-code score 71%; mutation score 71%.

File Killed Survived Timeout No coverage Invalid Not run
plugins/session-flow/skills/running-retro/scripts/observer.py 1 1 0 0 0 0
plugins/session-flow/skills/running-retro/scripts/stamp_plugin_usage.py 4 1 0 0 0 0

Surviving mutants

Location Operator Disposition Cause
plugins/session-flow/skills/running-retro/scripts/observer.py:872 SBR arid none
plugins/session-flow/skills/running-retro/scripts/stamp_plugin_usage.py:47 other unclassified none

The run's summary has the full report.

Sign up for free to 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.

1 participant