Skip to content

feat(examples): add the worktree-proximity composition reference (#104) - #256

Merged
ScriptedAlchemy merged 2 commits into
mainfrom
wave6/104-worktree-proximity
Sep 2, 2026
Merged

feat(examples): add the worktree-proximity composition reference (#104)#256
ScriptedAlchemy merged 2 commits into
mainfrom
wave6/104-worktree-proximity

Conversation

@ScriptedAlchemy

Copy link
Copy Markdown
Owner

Summary

Adds examples/worktree-proximity (#104): an advanced, intentionally demanding composition reference where one root task and two child agents in linked git worktrees coordinate current-intent proximity — path and dependency overlap — purely through public framework primitives, with no daemon and no collision logic in framework core.

Composition proven

Journey proof (route-unit level, real durable sqlite shared across renders via public @agent-bundle/runtime/mount)
journeys 3 (non-overlap silence), 4+5 (warning + pending directed notice), 6 (attempted delivery on the recipient's next event, evidence-backed attempted state), 7 (idempotent replayed envelope), 8 (missing-identity refusal), plus status-tool rendering and unmounted-handle honesty. The multi-process packed journey suite lands as the next slice.

Gates (local)

Refs #104, #251, #255.

Use generated request state and notice handles so cross-render coordination is durable, testable, and honest when capabilities are unavailable.
@changeset-bot

changeset-bot Bot commented Sep 2, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 70eee08

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@ScriptedAlchemy
ScriptedAlchemy merged commit 9a79972 into main Sep 2, 2026
4 checks passed
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 2, 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-09-02T02:09:00.230340Z 70eee08 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: 70eee08a7c

ℹ️ 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 on lines +80 to +82
recipient: {
actor: { id: conflict.actorId },
},

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Avoid actor recipients until event requests mount an actor

In generated artifacts, startEventRuntime in packages/agent-bundle/src/mcp-server-runtime.ts mounts host, session, and workspace but no actor, while notice admission requires the request principal's actor ID to match this recipient. Consequently these notices remain pending indefinitely in the documented real host flow; the route-unit test masks this by manually supplying context.actor. Resolve the actor before notice admission or use a recipient identity that the generated event request actually mounts.

AGENTS.md reference: AGENTS.md:L10-L13

Useful? React with 👍 / 👎.

status: 'success',
version: 1,
},
dedupeKey: `proximity:${resolution.actor.id}:${conflict.actorId}:${conflict.summary}`,

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Scope notice deduplication to a single conflict occurrence

When the same actor pair encounters the same path or dependency again, this stable key matches the first ledger entry even after that notice is attempted; the notice ledger deduplicates against entries in every state, so no new pending notice is created for the later conflict. Since the publish idempotency key already handles replay of one event, include the conflict occurrence in the dedupe key or omit it so recurring conflicts continue notifying the other actor.

AGENTS.md reference: AGENTS.md:L10-L13

Useful? React with 👍 / 👎.

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