Skip to content

refactor(agentctl): externalize task lifecycle - #4098

Merged
Sinity merged 2 commits into
masterfrom
codex/polylogue-external-beads
Aug 23, 2026
Merged

Sinity merged 2 commits into
masterfrom
codex/polylogue-external-beads

Conversation

@Sinity

@Sinity Sinity commented Aug 23, 2026

Copy link
Copy Markdown
Owner

Summary

  • remove tracked live Beads state and branch-local task lifecycle machinery
  • remove Beads graph/clustering DevTools and generated project-board surfaces
  • retain historical Beads evidence ingestion and move campaign-genesis verification to a read-only maintenance command

Problem

Polylogue still carried task authority through feature checkouts, PR policy, DevTools graph helpers, and tracked .beads files after Sinnixd established a canonical external task backend. Branch switches could therefore carry stale task snapshots and ordinary tracker work remained coupled to Git delivery.

Solution

Delete the checkout-owned task state, carrier conventions, board generation, Beads graph verifier, clustering helper, and their tests. Update agent and repository contracts so AgentCTL and the external task backend own lifecycle state. Preserve evidence capabilities: the historical Beads parser and append-only interaction-ledger watcher remain, while immutable reindex genesis records are checked against pinned Git blobs through polylogue maintenance campaign-genesis.

Verification

uv run devtools test tests/unit/maintenance/test_campaign_genesis.py tests/unit/sources/parsers/test_beads.py tests/unit/sources/test_live_watcher_catchup_order.py tests/unit/insights/test_work_effects.py tests/unit/devtools/test_command_catalog.py tests/unit/devtools/test_pre_push_hook.py tests/unit/devtools/test_verify.py
301 passed

uv run devtools verify --quick
success on exact final HEAD db6212feb

Net change: 338 insertions, 7,236 deletions.

Sinity added 2 commits August 23, 2026 13:44
Problem: branch-local Beads state and DevTools task protocols could carry live task authority through worktrees, PRs, and Pages publication.

What changed: remove the local Beads workspace, live graph/clustering tools, task-carrier guidance, and task-state publication paths. Preserve append-only Beads interaction ledgers as archive evidence and expose campaign-genesis verification as a read-only maintenance command over pinned historical Git blobs.

Compatibility: task authority is external to the checkout; historical Git evidence remains verifiable.
Remove the unregistered Pages template that still referenced tracked Beads task state.
@coderabbitai

coderabbitai Bot commented Aug 23, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 92d76ed2-fe3b-44d0-a755-6098af2aba4b


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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@Sinity
Sinity merged commit b8fb7f7 into master Aug 23, 2026
3 checks passed
@Sinity
Sinity deleted the codex/polylogue-external-beads branch August 23, 2026 11:56

@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: db6212febf

ℹ️ 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/pre_push_gate.py Resolved
Comment thread CLAUDE.md Resolved
Comment thread devtools/pages_templates.py Resolved
Sinity added a commit that referenced this pull request Aug 23, 2026
## Summary

- ignore the checkout-local `.beads/` redirect and external-authority
metadata

## Problem

After #4098 removed tracked Beads state, the canonical external task
authority’s local `.beads/redirect` made the main checkout appear dirty.
That contradicted the migration invariant that ordinary task operations
do not affect Git status.

## Solution

Root-ignore `/.beads/`. Historical Beads exports remain available
through Git history and product evidence parsers; live task state stays
under the external authority.

## Verification

```text
git check-ignore -v --no-index .beads/redirect
.gitignore:115:/.beads/ .beads/redirect

git diff --check
clean
```

Co-authored-by: Codex <[email protected]>
@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