feat(ce-compound): add lightweight headless depth - #1143
Conversation
1f5e7af to
f042580
Compare
|
Thanks for the contribution. I pushed a follow-up commit to this branch. The selector itself is useful, but the first version had a few contract problems:
I tightened the routing prose, made the reduced coverage explicit, added regression guards, and removed the pending-PR solution note. The focused tests, full suite, release validation, plugin validation, and fresh behavior checks all pass. The PR description now reflects the final behavior. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 43df43c708
ℹ️ 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".
|
Reviewed the follow-up at I also addressed the remaining discoverability inconsistency in Validation at |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 7e414aff64
ℹ️ 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".
|
@yaniv256 You found a smaller valid issue (Lightweight needed to evaluate discoverability before reporting a result). I had to implement a followup though to fix an issue you added:
|
- preserve frontmatter parser-safety validation in Lightweight
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 256ad42d4a
ℹ️ 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".
- preserve CONCEPTS.md discoverability in headless Lightweight
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: b3935d529c
ℹ️ 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".
- guard Lightweight writes against exact-path collisions
|
I reviewed the current branch through I also reviewed the later fixes. Headless Lightweight now preserves frontmatter parser-safety validation, reports For any further changes, I’ll check the complete Lightweight workflow against the harness contract and the existing work in #662 before pushing. |
@yaniv256 Please make sure humans are reviewing your contributions and comments to the repo. |
Summary
Adds an explicit depth selector for unattended
ce-compoundruns:mode:headless depth:lightweightuses the existing single-pass Lightweight workflowmode:headless depth:fulluses Full, including the automatic session-history probemode:headlessremains a backward-compatible alias for FullLightweight keeps the same solution-doc artifact type, deterministic claims check, and frontmatter parser-safety check, but deliberately skips parallel research subagents, overlap and duplicate detection, session-history research, and semantic grounding validation. Unknown, conflicting, or non-headless
depth:flags fail withDocumentation skipped.Before writing, Lightweight checks the exact proposed solution path. It updates an occupied path only when the existing document covers the same problem; otherwise it selects a distinct unused filename. This prevents unattended retries from overwriting unrelated learnings without adding Full mode's semantic overlap research.
Lightweight evaluates
docs/solutions/discoverability from the active project instructions already in context. It never reopens or edits instruction files. When no project instructions are active, the terminal report recordsnot applicableinstead of inventing a gap result. When Lightweight refinesCONCEPTS.md, the headless report separately records whether those active instructions surface the shared vocabulary.This is a focused implementation of the unattended depth request explored in #662. Thanks @benwilson for the earlier design and evaluation work, and @yaniv256 for the implementation in this PR.
Validation
bun test ./tests/skills/ce-compound-headless-depth.test.ts: 13 passbun run release:validate: passedbun run plugin:validate: passedbun test: 2,094 passCONCEPTS.mdreported its instruction-file discoverability gap; an occupied-path run preserved the unrelated existing document and created the learning at a distinct unused path