This repository was archived by the owner on Sep 28, 2026. It is now read-only.
Repository navigation
fix: scope mid-graph worker prompts to node-local obligations - #12
Merged
Merged
Conversation
Lisbon family day-trip dogfood (frozen-lisbon-v1) showed synthesis self-blocking when the generated N3 prompt embedded the full publication and audit contract that only the root gate owns. Document the scoping rule, example sentence, and anti-pattern; require validator phrases; preserve completed upstream handoffs on blocked terminals.
📝 WalkthroughWalkthroughThe changes scope worker obligations to each node, preserve completed upstream handoffs in blocked results, and extend validation checks for the updated lifecycle and worker guidance. ChangesWorker and lifecycle contracts
Estimated code review effort: 2 (Simple) | ~10 minutes 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Devin review: SKILL.md still said every worker must use the full publication-inclusive contract, which contradicted the node-local scoping rule. Share contract ID and fields; keep publication/audit/ root-gate obligations on the nodes that own them.
1 of 2 tasks
1 of 2 tasks
jnyross
added a commit
that referenced
this pull request
Aug 9, 2026
…es (#16) * feat: dynamic-workflow golden test cases from real Grok/Claude orchestration shapes Turn curated Grok Rhai workflows (destination/hotel discovery funnels, fixed-lane research DAGs) and Claude multi-agent patterns (disjoint worktree implementers, review-scorer panels) into a maintainable codex-graph test-case pack: - docs/dynamic-workflow-testcase-catalog.md: source survey, shape analysis, tier/contract mapping, prioritized shortlist - skills/codex-graph/testcases/: catalog.json + six case bundles (GOAL.md, EXPECTATIONS.md with fenced machine contract, topology.hint.mmd passing graph_coherence.py) - testcases/harness/: offline expectations loader + static workflow.js checker (per-node env #14, read-first collection #13, node-local prompt scoping #12, result normalization #11) with CLI and 15 tests - task_collection_harness.test.js: three pattern-derived fixtures (atomic screen fan-out terminal-at-first-read, screen-then-POV staged cardinality with root-owned fail-open, adversarial dual validators failing closed on malformed verdicts) - both regression runners execute the new suite and lint the hints Goals are synthetic and anonymized; no live Desktop run required. * fix: harden expectations checker per PR #16 review - collection:read-first / read-after-wait judge await-adjacent call sites only; parameter lists, bindings, and comments can no longer flip the verdict (v3 param-swap now fails; wrapper-based correct collectors are no longer false-failed) - setup:pending-resolution requires bounded-resolution evidence (attempts constant or task-list poll) alongside the clientThreadId identifier; mentions-only scripts fail - checkWorkflowText refuses vacuous ok on an empty contract - atomic-screen-fanout goal genericized (composition/origin/month) - disjoint-writers-worktree contract declares its drawn repair path (single_repair, R1, V2) - four new negative/positive controls in testcases.test.js; README semantics updated to match the strengthened checks * fix: fail collection checks when read/wait tools are absent Await-adjacent matching correctly skips wrapper collectors, but treated scripts with no read/wait bindings the same way and green-lit #13. Require tool bindings when there are no await-adjacent call sites. --------- Co-authored-by: Cursor Agent <[email protected]>
2 of 3 tasks
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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
code-mode-script-patterns.md.task-lifecycle.md).Evidence
Lab:
jnyross/mac-vm-testing-harnessbranchcodexgraph-vm-test@7f1ae76—candidates/frozen-lisbon-v1/(terminalstatus: blocked, 3 research workers complete with 16 candidates, N3 self-blocked demanding audit results that run after synthesis). SeeCRITIQUE.md.Test plan
python3 skills/codex-graph/scripts/validate_skill.pypython3 skills/codex-graph/scripts/graph_coherence.py --selfchecknode --test skills/codex-graph/scripts/task_collection_harness.test.js(10/10)python3 scripts/test_auto_release.pyNote
Low Risk
Documentation and skill validation phrase checks only; no runtime orchestration or product code changes.
Overview
Mid-graph workers must not receive whole-graph acceptance (publication rules, multi-lane audit, root-gate semantics) in their prompts—only the shared contract ID, vocabulary, and this node’s obligations and handoff schema.
SKILL.md,code-mode-script-patterns.md, and a new Scope worker prompts to node-local obligations section document the rule, example scoping sentence, anti-patterns (e.g. synthesis blocking on later audits), and a pitfalls bullet so workers don’t self-blockedwhen upstream work is already done.Blocked terminals must carry completed upstream handoffs (compact, schema-valid), not only live handles, so resume/critique doesn’t re-read threads (
task-lifecycle.md).validate_skill.pyadds required phrase checks so these lessons can’t silently drop from the references.Reviewed by Cursor Bugbot for commit 86ba583. Bugbot is set up for automated code reviews on this repo. Configure here.
Summary by CodeRabbit
Documentation
Validation