feat: add top-level thread actions#32
Merged
Merged
Conversation
Contributor
Author
This stack of pull requests is managed by Graphite. Learn more about stacking. |
Contributor
Author
galligan
added a commit
that referenced
this pull request
Jun 5, 2026
## Context Implements the stable refs and flat CLI/MCP reshape from `.agents/plans/stable-refs-flat-cli/PLAN.md`, stacked on PR #32 (`feat/top-level-thread-actions`). Full Codex thread ids remain accepted; dispatch refs are stored local selectors for managed lanes; titles and `@handles` are mutable convenience labels. ## What changed - Added dispatch-local Codex ref allocation and v3 registry migration/backfill. - Added a shared selector resolver for refs, full ids, handles, exact titles, and read-only fuzzy title matching. - Flattened canonical CLI routes: `attach`, `list`, `get`, `tail`, `watch`, `sync`; split persisted `tail` from bounded live `watch`. - Renamed grouped MCP tools to `dispatch_thread_read`, `dispatch_thread_write`, and `dispatch_thread_destroy` while preserving safety annotations. - Managed-thread outputs now consistently include identity context: `lane`, `ref`, full `id`, `title`, `handle`, `managed`, `source`, `status`, and `cwd` for send/goal/sync/tail/watch-style outputs. - Updated schemas, tests, README, usage/design docs, ADR-0019, agent rules, skills, plugin docs, and the plan RETRO ledger. ## How to test - `uv run pytest tests/core/test_handlers.py tests/core/test_triggers.py tests/surfaces/test_mcp_routing.py tests/surfaces/test_parity.py tests/core/test_examples.py -q` - `uv run dispatch schema send` - `uv run dispatch schema 'goal status'` - `uv run dispatch schema sync` - `uv run dispatch schema tail` - `uv run dispatch schema watch` - `uv run ruff check src/outfitter/dispatch tests` - `uv run ruff format --check src/outfitter/dispatch tests` - `uv run mypy src tests --strict` - `just check` ## Risks / notes - Registry schema bumps to v3 and backfills refs for existing lanes in `created_at, id` order. - `lane` remains in these output payloads as a compatibility field for the full Codex thread id; `ref` and `id` are the stable thread-oriented fields for new consumers. - `search --lane` and `stop --lane` remain accepted compatibility aliases, but docs teach `--thread` / positional selectors as canonical. - CI is intentionally left in draft until checks finish green.
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.

No description provided.