Skip to content

Track planned work as tickets for parallel agents - #20

Merged
gh-slee merged 2 commits into
mainfrom
claude/agent-ticket-setup-cc5181
Nov 6, 2026
Merged

gh-slee merged 2 commits into
mainfrom
claude/agent-ticket-setup-cc5181

Conversation

@gh-slee

@gh-slee gh-slee commented Nov 6, 2026

Copy link
Copy Markdown
Owner

Change Summary

Planned work had no shared tracker that several development agents could split safely; it is now a Markdown ticket backlog with a claim tool, so agents can work different tickets in parallel and resume each other.

  • scripts/tickets.py (standard library, Python 3.9+) shows the board, makes atomic claims and resource locks in the shared Git directory, creates one worktree per ticket and handles heartbeats and stale-claim takeover.
  • 27 tickets (prefix INK) record the done work, this change and the plan. The critical path is reviewing CrossInk v2.0.0-RC, published 2026-11-04, so the latest release stays editable.
  • tickets/ROADMAP.md lists phases, a dependency graph, four parallel lanes and the owner decisions that unlock more work.
  • The publication guard accepts only ticket files named by ticket ID, plus the fixed workflow files.

Files Changed

  • scripts/tickets.py, tests/test_tickets.py: board/claim tool and its tests. The tests also validate every real ticket, so a broken ticket fails the normal unittest discovery and CI.
  • tickets/README.md, tickets/TEMPLATE.md, tickets/ROADMAP.md, tickets/INK-*.md: protocol, template, plan and the tickets. The README includes project gotchas (guard naming, no real cards, shared recovery storage).
  • scripts/check_publication.py, tests/test_publication.py: allow CLAUDE.md, the workflow files and tickets/<PREFIX>-P<0-2>-<nnn>[A-Z].md. A new test confirms that other names under tickets/ and work/ are still rejected.
  • AGENTS.md, CLAUDE.md, docs/development.md, docs/agent-development.md: describe the ticket workflow, add tickets.py check to the verified commands and load AGENTS.md for Claude Code. GitHub Issues stay for bug and hardware reports.
  • CHANGELOG.md: Unreleased entry.

Testing & Evidence

Local Verification

  • PASS: python3 scripts/tickets.py check: 27 tickets, 0 errors.
  • PASS: XTEINK_TESTING=1 python3 -m unittest tests.test_tickets on Python 3.9.6 and 3.12.2: 8 tests OK.
  • PASS: tests.test_publication (29 tests), test_pr_description, test_xteink_sd_migrate, test_safety, test_recovery and test_extract_contract, run separately on Python 3.12.
  • FAIL: full XTEINK_TESTING=1 python3 -m unittest discover -s tests -b (280 tests) had 1 failure and 48 errors in test_config, test_config_stores, test_snapshots and test_helper, on both Python versions. Each error is a PermissionError creating a directory in the per-user macOS temp folder, which the local sandbox blocks. These modules are unchanged in this PR. CI is the unsandboxed result.
  • PASS: python3 -m compileall -q with the AGENTS.md file list, scripts and tests.

CI Verification

  • PENDING: Tests and publication checks workflow on this PR's head commit.

Independent QA / Architecture Review

  • NOT RUN: no independent review yet. The change adds tooling and docs only; application and card code are unchanged.

Required Pre-PR Validation

  • PASS: python3 scripts/check_configuration_docs.py; publication audit --worktree (113 revisions), --staged (113) and --all-history (373) at commit a385767, also run by the pre-commit and pre-push hooks.

Behavior & Compatibility

  • No change to the app, helper, migration CLI, schemas or backup formats.
  • Claim locks live under the Git common directory and claim tokens under the already-ignored work/. Ticket branches default to origin/main.

Risks, Limitations & Rollback

  • Claims are per machine; across machines the pushed ticket branch is the record.
  • The guard now allows any file matching the ticket-ID pattern under tickets/. Content checks for credentials and home paths still apply to those files.
  • Rollback: revert the commit. No user data or settings are involved.

Reviewer Focus

  • The ticket priorities and owner decisions in tickets/ROADMAP.md, especially the CrossInk v2.0 path (INK-P0-010 to INK-P0-012E).
  • The publication guard pattern in scripts/check_publication.py.

Related Issues / Documentation

  • tickets/README.md (protocol) and tickets/ROADMAP.md (plan).

Add the ticket board script and its tests, the ticket protocol, a roadmap and one ticket per done and planned work item. Allow ticket files by exact ID name in the publication guard, point the agent and development docs at the backlog, and load AGENTS.md from CLAUDE.md.
@gh-slee
gh-slee merged commit 6646a8d into main Nov 6, 2026
5 checks passed
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