Repository navigation
feat(devtools): resolve verification-graph roots through a read-only parent indirection - #4460
Conversation
…parent indirection
Codex Review SummaryThis 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. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: a0b97e59df
ℹ️ 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".
…parent indirection (#4460) ## Summary A worktree resolves sealed verification-graph roots through `POLYLOGUE_VERIFY_GRAPH_PARENT` (pointing at the main checkout) instead of needing a seed copy; publication still writes only locally. Also declares the harvest `publish`/`close` parameters that `agentctl lane publish` (sinnix #30) passes. ## Problem Graph roots are immutable content-addressed manifests, but every worktree needed its own copy of the testmon seed to use affected selection (polylogue-c2a5l); provisioning never copied one, so every lane ran static-only. The one-verb publication route needed two bool parameters the descriptor didn't declare. ## Solution `_root_bases` adds an optional external roots directory (env var; bare checkout path or explicit roots dir), local first; `eligible_root`/`latest_eligible_root` scan both with unchanged eligibility validation. Writes never touch the indirection. Descriptor gains `publish`/`close`. ## Verification `devtools test tests/unit/devtools/test_verification_graph.py` → 6 passed, including the new worktree-resolves-parent-root test (asserts read-through and local-only publication). `devtools verify --quick` green (one order-dependent browser-extension flake surfaced on the first run — `background.test.js` 'holds the job visibly...' — passes in isolation and on rerun; inherited, not from this diff). ## Residual risk The indirection trusts the parent path the caller sets; eligibility checks still gate every manifest read. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_014BQsaB1NBY8mTR6yZByfMA
|
Codex review threads on this PR whose cited code is gone (checked against master at 23f91a5):
Resolving these threads. |
Summary
A worktree resolves sealed verification-graph roots through
POLYLOGUE_VERIFY_GRAPH_PARENT(pointing at the main checkout) instead of needing a seed copy; publication still writes only locally. Also declares the harvestpublish/closeparameters thatagentctl lane publish(sinnix #30) passes.Problem
Graph roots are immutable content-addressed manifests, but every worktree needed its own copy of the testmon seed to use affected selection (polylogue-c2a5l); provisioning never copied one, so every lane ran static-only. The one-verb publication route needed two bool parameters the descriptor didn't declare.
Solution
_root_basesadds an optional external roots directory (env var; bare checkout path or explicit roots dir), local first;eligible_root/latest_eligible_rootscan both with unchanged eligibility validation. Writes never touch the indirection. Descriptor gainspublish/close.Verification
devtools test tests/unit/devtools/test_verification_graph.py→ 6 passed, including the new worktree-resolves-parent-root test (asserts read-through and local-only publication).devtools verify --quickgreen (one order-dependent browser-extension flake surfaced on the first run —background.test.js'holds the job visibly...' — passes in isolation and on rerun; inherited, not from this diff).Residual risk
The indirection trusts the parent path the caller sets; eligibility checks still gate every manifest read.
🤖 Generated with Claude Code
https://claude.ai/code/session_014BQsaB1NBY8mTR6yZByfMA