Skip to content

fix(ce-compound): label stale learnings and clear the mark once settled - #2093

Merged
tmchow merged 2 commits into
mainfrom
fix/issue-2090-debug
Nov 20, 2026
Merged

tmchow merged 2 commits into
mainfrom
fix/issue-2090-debug

Conversation

@tmchow

@tmchow tmchow commented Nov 20, 2026

Copy link
Copy Markdown
Collaborator

Summary

Learnings that a refresh marks stale now reach plans, reviews, ideation, and optimization labeled as stale with the refresh's reason, instead of reading exactly like current guidance. A later refresh that settles the doc removes the mark, so the label does not stick forever.

Fixes #2090

What changes for a reader of learnings

  • All four learnings researchers (ce-plan, ce-code-review, ce-ideate, ce-optimize) read status. A stale-marked learning still ranks like any other, but its finding carries a Stale line with stale_reason and stale_date. A recommendation drawn from it is listed only when the current code or docs confirm the specific claim it relies on.
  • schema.yaml now defines status (only value: stale), stale_reason, and stale_date as optional fields, plus the title and category lines the resolution templates already write. The fields are optional, so schema_version stays at 1.
  • Refresh starts its check of a stale-marked doc from the recorded stale_reason. Settling the doc with any action other than another stale-mark removes the three fields, including on Keep, which is otherwise a no-edit outcome. When marks remain, the report says those docs keep reaching the researchers, labeled stale.

Design decision: label, don't hide

The issue offered two directions: skip stale docs, or keep them and say so. Skipping would drop guidance that may still hold. Refresh's own rule is that an unverifiable claim is not thereby false, and a stale mark means "not sure", not "wrong". Labeling keeps the doc visible and stops it from being quoted as a settled constraint.

Validation

  • tests/skills/learnings-stale-mark-contract.test.ts pins the writer, the schema, every researcher copy (found by glob, so a fifth copy is checked too), and the clearing rule. It fails 6 of 8 assertions against the pre-change skills and passes after. The changed-since suite, typecheck, release:validate, and plugin:validate pass.
  • Behavior eval of the researcher persona, pre-change (8c6ad30) against post-change, on Claude and Codex, with two throwaway fixtures. No regression. The measured gain is smaller than the issue implies: both hosts already noticed status: stale in frontmatter before the change, so stale docs being quoted as current did not reproduce on these models. After the change, both emit the Stale line consistently. Post-change Claude also declined to recommend the stale doc's unconfirmed header claim, which pre-change Claude had kept as "a sound constraint". A weaker researcher model was not tested, because the eval driver has no model flag.

The second commit records a lesson from that eval. A persona run on its own needs the facts its calling skill resolves; without the artifact root, a Codex arm searched the wrong directory and returned nothing. tests/CODING_STANDARDS.md (Evals) now states the rule, and docs/solutions/skill-design/callee-skill-evals-need-caller-shaped-tasks.md records the case. CONCEPTS.md's Learning entry now describes the stale mark.

Follow-up, not in this PR: docs/guides/ce-compound.md describes stale-marking but not that marked docs stay surfaced with a label. It is still accurate as written.

Security Disclosure

No security-relevant changes.

Agent Disclosure

  • Model: Claude Code · claude-opus-5-5

Compound Engineering

Refresh marks a learning it cannot settle with status: stale, but no
learnings researcher read the mark, schema.yaml did not define it, and no
later refresh cleared it. Researchers now surface a stale learning with its
reason and keep its unconfirmed claims out of Recommendations; the schema
defines the stale fields plus the templates' title and category; a refresh
that settles a marked doc removes the mark.

Fixes #2090
…ched persona

Running a dispatched persona alone in an eval cell leaves facts its calling
skill resolves, such as the artifact root, unresolved; a Codex arm then
searched the wrong directory and returned nothing. State the rule in the
test standards and record the case in the callee-eval learning.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 20, 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-20T07:54:36.237649Z a91f745 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.

@tmchow
tmchow merged commit 58d1a83 into main Nov 20, 2026
10 checks passed
@github-actions github-actions Bot mentioned this pull request Nov 20, 2026
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.

ce-compound: refresh marks unsure learnings as stale, but no learnings researcher checks the mark

1 participant