Skip to content

feat(devtools): resolve verification-graph roots through a read-only parent indirection - #4460

Merged
Sinity merged 1 commit into
masterfrom
feature/graph-root-indirection
Aug 31, 2026
Merged

Sinity merged 1 commit into
masterfrom
feature/graph-root-indirection

Conversation

@Sinity

@Sinity Sinity commented Aug 31, 2026

Copy link
Copy Markdown
Owner

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.ai/code/session_014BQsaB1NBY8mTR6yZByfMA

@Sinity
Sinity merged commit e0a4fb3 into master Aug 31, 2026
@Sinity
Sinity deleted the feature/graph-root-indirection branch August 31, 2026 00:11
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Aug 31, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-08-31T00:15:13.729186Z a0b97e5 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.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment thread devtools/verification_graph.py Resolved
Sinity added a commit that referenced this pull request Sep 1, 2026
…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
@Sinity

Sinity commented Sep 28, 2026

Copy link
Copy Markdown
Owner Author

Codex review threads on this PR whose cited code is gone (checked against master at 23f91a5):

Resolving these threads.

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.

1 participant