Skip to content

feat(session-flow): report what is still reported in recall - #16030

Merged
kyle-sexton merged 16 commits into
mainfrom
feat/recall-still-reported-15839
Nov 13, 2026
Merged

kyle-sexton merged 16 commits into
mainfrom
feat/recall-still-reported-15839

Conversation

@kyle-sexton

@kyle-sexton kyle-sexton commented Nov 13, 2026 •

Copy link
Copy Markdown
Member

Closes #15839
session: GitHub Support

Summary

/session-flow:recall gains a Still reported section. It lists tracker items of an incident or user-report kind that were closed and later reopened (read from the tracker's state history), items whose fix was reverted, items that repeat the same symptom, and postmortems on the topic.

This pull request carries the same diff as #15920 at its last head 69d15f782d (main merged in), opened from the owner login because the merge lane closed #15920 at its verifier cap: the third judged head was pushed before the eval record below existed, so the verifier judged it against the earlier, missed compare. Nothing in the diff changed after that judgment.

Fix

  • work-items: the tracker seam gains a state-history read. get-item <id> --history adds state_history to the item, gated in core by features.state_history; the GitHub adapter fills it from the issue timeline's closed and reopened events, and every other shipped adapter answers available: false with a reason. /work-items:track view --history exposes it to other plugins.
  • session-flow recall, Step 5: searches open and closed items through /work-items:track search, reads the state history of up to ten matched items with view --history, and marks an item reopened once or more under Still reported with its dates and count. Item text is read for a reopen only when the history was not read or is not available, and "not available" is never read as "not reopened".
  • session-flow recall, Step 6: the report says whose history was read, whose was not available or failed, and which items were past the cap.
  • Settings: recall_report_kinds (default Bug) and recall_doc_paths (default *.md) resolve repository file over user option over default. Each recall_doc_paths entry is passed to a read-only git grep as one single-quoted pathspec after --, and the schema pattern allows no quotes, ;, $(, leading / or ...
  • Eval cases: recall-still-reports-reopened-bug (a stand-in work-items plugin inside the case directory, loaded only by that case) and recall-still-reports-reverted-fix.

Verification

  • Before/after eval, pass 4, pre-registered, at this head: VALID and met on Sonnet and on Opus. BEFORE 3e181469d6 (main), AFTER 69d15f782d, 6 runs per case per side, judge claude-opus-5-5.

    Case (mean of 6) Sonnet BEFORE Sonnet AFTER Opus BEFORE Opus AFTER
    recall-asks-before-other-projects 1.00 0.98 1.00 1.00
    recall-reports-tried-kept-reverted 1.00 1.00 1.00 1.00
    recall-states-scope-searched 0.94 0.94 0.72 0.83
    recall-still-reports-reopened-bug (new) n/a 1.00 n/a 1.00
    recall-still-reports-reverted-fix (new) n/a 1.00 n/a 1.00

    Sonnet: change -0.01, 95% interval -0.02 to +0.01, non-inferior at margin 0.05, no case drop. Opus: change +0.04, 95% interval -0.04 to +0.11, non-inferior at margin 0.05, no case drop. AFTER shows no denied tool call in 60 runs. The full record is on feat(session-flow): report what is still reported in recall #15920: feat(session-flow): report what is still reported in recall #15920 (comment)

  • Pass 3's drop is explained and gone. Pass 3 recorded a Sonnet drop on recall-reports-tried-kept-reverted (1.00 to 0.67). The cause was that case's regex graders failing correct answers, fixed on main by fix(session-flow): stop three recall eval graders failing correct answers #15985; with those graders the case scores 1.00 on both sides and both models.

  • Tests (run on feat(session-flow): report what is still reported in recall #15920's heads, unchanged code): work-item-tracker.test.sh 171 passed; adapters/github/get-item.test.sh 28 passed; conformance/run-conformance.sh --binding local-markdown 137 cases, 0 failed.

  • Dogfooding step for this repository: drive the skill with /app-control:drive claude-code-plugins session-flow/recall (AGENTS.md, "Driving this repository's skills") on a topic with a reopened or reverted bug, and check that the item appears under Still reported; the tracker read it uses is /work-items:track view '<id>' --history from the updated work-items plugin.

  • Review threads on feat(session-flow): report what is still reported in recall #15920: all ten were answered with evidence and resolved at this head.

  • Limits: no detection control was run, so the eval does not show the cases would catch a loss. Three pattern graders in the shared recall cases (asks-before-widening, scope-stated, scope-resolved) fail some correct answers on both sides; they were left frozen for the compare and are a follow-up on main.

Related

🤖 Generated with Claude Code

https://claude.ai/code/session_01RMa43yD6ENjKAwDyeHp3bc

melodic-automation-lanes Bot and others added 15 commits November 13, 2026 09:07
Lane-Activity: work-resolve-issue/resolve-issue
Lane-Activity: pr-unblock/address-feedback
Lane-Thread: PRRT_kwDOTCGFQM63Bub7
…tection

The tracker surface recall reads (`/work-items:track search` and
`view --comments`) returns no state history, so a reopen is visible only
where an item's own body or comments record it. Step 5 now says so and
forbids reading the absence as "not reopened"; Step 6 reports that limit
when the tracker was searched. The README, config reference and changelog
fragment stop promising reopen detection.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01RMa43yD6ENjKAwDyeHp3bc
`get-item <id> --history` adds state_history to the item object. The
flag is core-gated by features.state_history: the GitHub adapter reads
the issue timeline's closed and reopened events over REST, one
paginated read made only when asked for; every adapter that declares no
state history (local-markdown and the jira, gitea and linear seeds) gets
available: false with a reason, never an empty history. `track view
--history` exposes it to other plugins.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01RMa43yD6ENjKAwDyeHp3bc
Recall's tracker step now reads the state history of up to ten matched
report-kind items with /work-items:track view --history and lists an
item that was closed and later reopened under Still reported, with its
dates and reopen count. When the tracker cannot report history, recall
says so instead of reading that as "not reopened". A new eval case loads
a work-items stand-in whose view returns a closed-then-reopened bug no
comment mentions.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01RMa43yD6ENjKAwDyeHp3bc
… read shell-plain

The first eval run found that recall never asked for view --history.
The reopened-bug case's work-items stand-in printed every item's state
history in its skill body, so the model already had the reopen after
search. The stand-in now answers through a bundled reader that prints
the history only on view <id> --history, and nothing else in the case
mentions the reopen. Recall's history read is now its own Step 5
bullet, which runs for every matched report-kind item even when the
search rows already show kind and state.

The settings step led the model to one compound Bash command, with a
loop, $( ) and the literal ${user_config.*} placeholder, which a
don't-ask session denies. Step 2 now gives the three user option values
in its own text and runs one plain command per call: the git root, the
check, and the reader once per key.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01RMa43yD6ENjKAwDyeHp3bc
…in reads through the skill

The second eval run showed three wording and fixture gaps:

- The work-items stand-in told the model to run its reader with Bash,
  so later reads skipped /work-items:track. Its SKILL.md now renders the
  reader's output at load time with !`...` and $ARGUMENTS, so each read
  is one Skill call and the model never receives a command to run.
- Recall's Still reported entries could put the reason on a sub-bullet.
  Step 6 now puts the item id and why it is still reported on one line.
- Step 2's key = value layout led opus to paraphrase transcript_scope.
  Step 2 returns to its earlier prose and one-line report, keeps the
  rule that no option or placeholder goes into a shell command and no
  command is chained, and skips the check and readers when the
  repository has no session-flow.yaml. Step 6 asks for each setting as
  Step 2's line, key as is, and the scope reached in Step 3's words.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01RMa43yD6ENjKAwDyeHp3bc
Conflicts resolved by hand:
- plugins/session-flow/reference/config.md: kept this branch's
  recall_report_kinds and recall_doc_paths rows and main's verification
  row (default light).
- docs/contracts/config-cascade/README.md: took main's rows (no value
  resolves light) and re-applied this branch's session-flow row change,
  naming the two recall keys after transcript_scope with its comma.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01RMa43yD6ENjKAwDyeHp3bc
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-13T20:54:36.663094Z 69d15f7 PR opened
ℹ️ 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 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

claude-security-review: 2 inline finding(s) on 69d15f782dd7b33cbfa3752019c3af2e44a743c4; the summary is in this lane's pull request comment.

claude-lane: claude-security-review

@github-actions

github-actions Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

claude-security-review reviewed 64786252a7d642b02ca86ace36e899353b5b10fd: read 4 of 4 changed file(s); 0 finding(s), 0 as inline comments.

Security review: PR #16030, incremental (69d15f78 → 64786252)

This incremental review covered the 4 files in this push, and I read every hunk of each. The review posts only blocking findings, because the prior-findings file says this lane already reviewed an earlier head (blocking only: yes). None of the 4 files matches a TRUSTED PATHS glob, and the push changes no trust control: the trusted-trigger check, lane token, kill switch, token broker and merge holds are untouched.

I found no security issues in this push.

  • plugins/session-flow/evals/recall-still-reports-reopened-bug/case.yaml and samples/still-reported-same-symptom.json: these add an expected outcome, a regex grader and its pass/fail samples. They are eval data only, with nothing executable and nothing that holds credentials.
  • work-items-stub/skills/track/scripts/track.sh: adds a fixed item feat: add discovery plugin (explore + research skills) #61, an empty base64 state history, and a search row and view branch for it. All values are hard-coded literals and the row count is a plain integer. No new input reaches a command. The stub only runs inside this one eval case and is never installed as a plugin.
  • plugins/session-flow/skills/setup/scripts/setup-apply.test.sh: adds tests that run --check on recall_doc_paths and recall_report_kinds. They confirm the schema pattern rejects a leading /, .., a single quote and empty entries. That supports the quoting safety the earlier recall_doc_paths review relied on. Every input is a literal defined in the test, so printf '%b' and the grep patterns handle only test-controlled strings.

Earlier manifest flags (not restated): the two manifest flags from the earlier review are on plugins/session-flow/.claude-plugin/plugin.json: userConfig.recall_report_kinds (discussion_r4568553187) and userConfig.recall_doc_paths (discussion_r4568553193). That file has not changed since the head they were posted at, so it is outside this incremental scope. Both threads are resolved with an owner decision and show lines changed since resolution: no. This push adds the pattern tests the owner's reply said would come.

PR context and settled threads: I found no text in either aimed at this lane.

Spend: one more regex grader on an existing eval case uses only prepaid or subscription usage. No hold.

critical-findings: 0

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

claude-review: 2 inline finding(s) on 69d15f782dd7b33cbfa3752019c3af2e44a743c4; the summary is in this lane's pull request comment.

claude-lane: claude-review

@github-actions

github-actions Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

claude-review reviewed 64786252a7d642b02ca86ace36e899353b5b10fd: read 4 of 4 changed file(s); 0 finding(s), 0 as inline comments.

Code review (incremental): PR #16030, from 69d15f78 to 64786252

I read the whole incremental diff (4 of 4 files). I also read the code the new lines depend on:

  • the track.sh stub in full
  • the helpers in setup-apply.test.sh (run, seed, settings, READER)
  • how setup-apply.mjs builds the WARN message (allowedText at L321-326, the report at L575)
  • the two schema patterns
  • recall SKILL.md L163 and L196

This lane already reviewed an earlier head, so this review reports blocking findings only. I found none.

The three earlier findings are fixed by this push

  • Repeat-symptom rule had no test (r4568568342): fixed.
    • The stub now has an open bug #61. It has a different title and the same /login → /callback loop. A query on the case prompt finds it, because its title contains login, redirect and sso.
    • The new still-reported-same-symptom grader requires #57 and #61 on one line that says same symptom, inside the Still reported section. That wording matches the form recall SKILL.md L196 asks for (#88 ...: same symptom as #91).
    • I traced each pass and fail sample through the regex by hand and got the outcome each sample expects. The Still open heading and a sub-bullet without the item's id both fail, as intended. I did not run the grader.
  • The two new settings had no test (r4568568355): fixed.
    • setup-apply.test.sh now covers writing each key quoted, reading it back, and --check accepting it.
    • It also checks that --check rejects ../x, /abs, a'b, *.md, and Bug,. Each of these breaks the schema pattern at L37 or L43.
    • The test greps for <key>=… is not a string of matching , which matches the message setup-apply.mjs actually prints: neither key sets minLength, so the text reads "a string of matching ".
    • I did not run the test.
  • Unmet criterion "The pull request body names this repository's dogfooding step": now met. The PR body has a "Dogfooding step for this repository" bullet that names /app-control:drive claude-code-plugins session-flow/recall.

Other notes

  • Usage spend (not billing): one more regex grader on an existing eval case. It adds no runs, only one more pattern check on each run.
  • The settled manifest threads on plugin.json are unchanged, and nothing in this push touches them.

Verifier dropped 0 of 0 candidates.

@github-actions

Copy link
Copy Markdown
Contributor

The pr-verify verifier failed head 69d15f782dd7b33cbfa3752019c3af2e44a743c4. What it wrote, as data:

What it wrote (28 lines)
Summary: Issue #15839 (closes): adds a Still reported section to /session-flow:recall. The diff
  covers all of the issue except one done-when item, which is about the PR body. What is delivered:
  Step 5 searches open and closed items through /work-items:track search. It reads state history
  with a new core-gated `get-item --history` / `track view --history`: GitHub reads it from the REST
  timeline, and other adapters report `available: false` with a reason. It marks reopened items,
  reverted fixes and repeated symptom reports as Still reported, and it searches the
  `recall_doc_paths` pathspecs with a read-only git grep to find postmortems. `recall_report_kinds`
  (default Bug) and `recall_doc_paths` (default *.md) resolve repository file over user option over
  default (plugin.json, schema, config.md, setup). The new eval case
  `recall-still-reports-reverted-fix` covers the closed, reverted bug. The PR body (trusted, by the
  issue's author) records a VALID non-inferior two-version compare on both models at this head (pass
  4), so the eval record has landed. Recall still writes no files and never calls
  /discovery:trace-intent. The seam code handles usage errors, a failed timeline read (mapped exit
  code, no output) and the not-available path, and tests that can fail cover all three. Test Bash
  (0–2), Lint Shell, Check Plugins and Check Skills all passed on the judged head
  (https://github.com/melodic-software/claude-code-plugins/actions/runs/43505342377/job/132161754467).
  The schema pattern keeps quotes, colons, `..` and a leading `/` out of `recall_doc_paths`, so
  passing each entry as a single-quoted pathspec is safe. No file in the takeover set is touched,
  there are no binary files, and the body has no evidence-cap line. The capture was blocked by a
  rate limit, which counts neither for nor against the change. Extending the work-items seam with
  `--history` goes beyond the issue's wording, but it is additive and is what lets the skill detect
  reopens. The one item not met: the issue requires the PR body to name this repository's dogfooding
  step. This body replaces #15920's and has no such step: its Summary, Fix, Verification and Related
  sections never mention dogfooding.
- PR body: done-when item 5 is not met. The body does not name this repository's dogfooding step,
  which the superseded #15920 body did. Add a line, for example under Verification, naming the
  dogfooding step for this change (how the updated session-flow and work-items plugins get exercised
  in this repository).

This pull request leaves the merge queue, and ci-status holds it out while it carries pr-verify-failed. A pr-verify pass removes the label, at a new commit or at this same head: once a trusted person edits the body, and only trusted people have edited it since the fail, this head is judged again, so a fail on the body or the issues it links needs only the body fixed, no new commit.

@github-actions github-actions Bot added the pr-verify-failed pr-verify failed this head; a pass at a new commit, or after a trusted body edit, removes it. label Nov 13, 2026
…rule

setup-apply.test.sh now writes recall_doc_paths=*.md and
recall_report_kinds=type: bug and reads them back unchanged, written
double-quoted, and has --check flag recall_doc_paths values ../x, /abs,
a'b and *.md, and recall_report_kinds value Bug, by their schema pattern.
With both patterns loosened to ^.*$ the five rejecting cases go red (15
assertions); restored, all pass.

The recall-still-reports-reopened-bug case's tracker stand-in gains open
bug #61, which reports the same redirect loop as #57 under another title,
and the regex grader still-reported-same-symptom requires one Still
reported line naming #57 and #61 with a same-symptom reason, with pass
and fail samples.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01RMa43yD6ENjKAwDyeHp3bc
@github-actions github-actions Bot removed the pr-verify-failed pr-verify failed this head; a pass at a new commit, or after a trusted body edit, removes it. label Nov 13, 2026
@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 13, 2026
Merged via the queue into main with commit 9662b2c Nov 13, 2026
56 checks passed
@kyle-sexton
kyle-sexton deleted the feat/recall-still-reported-15839 branch November 13, 2026 22:39
@github-actions github-actions Bot added the merge-path: owner-agent Post-merge accounting record (README.md, Merge paths) label Nov 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-path: owner-agent Post-merge accounting record (README.md, Merge paths)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Report what did not hold and what users still report in session-flow:recall

1 participant