Repository navigation
fix(ce-compound): label stale learnings and clear the mark once settled - #2093
Merged
Merged
Conversation
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.
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
ce-plan,ce-code-review,ce-ideate,ce-optimize) readstatus. A stale-marked learning still ranks like any other, but its finding carries aStaleline withstale_reasonandstale_date. A recommendation drawn from it is listed only when the current code or docs confirm the specific claim it relies on.schema.yamlnow definesstatus(only value:stale),stale_reason, andstale_dateas optional fields, plus thetitleandcategorylines the resolution templates already write. The fields are optional, soschema_versionstays at 1.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.tspins 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, andplugin:validatepass.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 noticedstatus: stalein frontmatter before the change, so stale docs being quoted as current did not reproduce on these models. After the change, both emit theStaleline 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, anddocs/solutions/skill-design/callee-skill-evals-need-caller-shaped-tasks.mdrecords the case.CONCEPTS.md's Learning entry now describes the stale mark.Follow-up, not in this PR:
docs/guides/ce-compound.mddescribes 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