Skip to content

Latest commit

 

History

History
294 lines (234 loc) · 13.5 KB

github-work-tracking.md

File metadata and controls

294 lines (234 loc) · 13.5 KB

GitHub work tracking

Use GitHub Issues for durable development work and the Cave Project for planning. Keep one issue per outcome, not one task per conversation or agent.

gh issue list --repo OpenCoven/coven-cave --state open --limit 20
gh issue view 5399 --repo OpenCoven/coven-cave --comments
gh project view 9 --owner OpenCoven

pnpm work:issues and pnpm work:project are read-only shortcuts for these entrypoints. A bounded list is a starting point, not proof that no work matches. pnpm work:queue reads every open issue by lane and state; see Lanes, states, and the work block.

Issue #5399 moved development tracking to GitHub on 2026-09-14. Issue #5566 removed Beads from the repository (closed 2026-09-26): its data, tooling, and guidance first, then the worktree lifecycle tooling and the product surfaces.

Find and own the work

Load work continuity before starting multi-step work. Prefer an explicit issue, PR, or artifact reference. Otherwise, search distinctive outcome and target terms in this repository:

gh issue list --repo OpenCoven/coven-cave --state all \
  --search 'work tracking in:title,body' --limit 20
gh pr list --repo OpenCoven/coven-cave --state all \
  --search 'work tracking in:title,body' --limit 20

Read candidate issues, owner comments, linked PRs, and completion evidence, including closed issues and PRs before declaring that no matching work exists. A result at its limit is potentially truncated; narrow or paginate the search. An empty result is not proof that an inaccessible execution source has no matching work.

Reuse the canonical issue. Create a new issue only for a distinct authorized outcome. Preserve existing owners, dependencies, approval requirements, and original messages. An old status or a missing process does not authorize takeover.

Record the acting familiar, exact scope, branch, worktree, and next step in an issue comment before editing. Use assignees only for real GitHub accounts. Re-read ownership before proceeding. GitHub assignment and comments are coordination records, not atomic execution leases.

Keep implementation decisions and evidence in the issue or linked approved documents. Do not maintain a parallel queue or a permanent local Markdown task list.

Lanes, states, and the work block

Every open issue carries one lane:* label, one state:* label, and a compact block at the top of its body. The labels make the queue filterable; the block names the owner, the unit and one next step.

pnpm work:queue            # the open queue, grouped by lane
pnpm work:queue --ready    # what an agent can start now
pnpm work:queue --lane native --state needs-device
pnpm work:lint             # fails when labels, block and links disagree
Lane Covers
lane:mvp Smaller Cave MVP trimming, dashboard and continuity work
lane:authority Grants, permissions, containment, approvals and security correctness
lane:native The native iOS client
lane:release Releases, packaging, CI policy and repository operations
lane:reliability Runtime, daemon, diagnostics and observability correctness
lane:core-ux Retained chat, familiar and settings experience
State Meaning Cleared by
state:ready No open blocker, decision or device is needed Any agent with authority for the issue
state:in-progress A session is working on it now, before any pull request That session, when it opens a PR or stops
state:in-review An open pull request carries it Review and delivery of that PR
state:blocked Waits on a linked issue or PR The blocker closing
state:needs-owner Waits on the owner's decision, authorization or login The owner
state:needs-device Waits on a physical device, VM, human pass or upstream producer Whoever holds that device or producer
state:parked Paused by the owner An explicit request to resume

An issue labelled epic groups native sub-issues. It carries a lane and no state; its progress is its children's.

<!-- cave-work:v1:start -->
lane: native
state: in-review
owner: BunsDev
unit: fix/issue-6090-latest-reply-bounce · PR #6385 (draft)
blocked-by: —
clears-when: rendered-content acceptance on a physical iPhone
next: Inspect the cancelled native run, then continue #6385.
updated: 2026-11-11
<!-- cave-work:v1:end -->
  • Change the labels and the block together; pnpm work:lint reports any drift.
  • next is one imperative sentence. unit names the branch, the worktree and the pull request as PR #<number>. Use — for an empty field.
  • Native sub-issue and blocked-by links are the dependency record. The block's blocked-by mirrors them so the body reads on its own.
  • clears-when names what ends a wait and who can end it. A blocked issue needs an open blocked-by link or this field.
  • Set state:in-progress when you claim an issue, so --ready stops offering it, and state:in-review when your pull request opens. When you stop, restore the state the issue is really in and refresh next and updated. Lint questions an in-progress claim that has not been refreshed for a week.
  • A label is a filter. It is not a claim, an execution lease or an approval. The claim comment above still records who is working where.

Resume an issue

One prompt serves every issue; do not store a copy in each body.

Continue OpenCoven/coven-cave#<number>. Read its work block, original
criteria and newest checkpoint comment, then refresh the owner, linked PR head
and blockers before acting. Advance the block's next step if you have authority
for it. If it is blocked, record the exact clearing condition and the
responsible actor. Report delivered, locally verified and device-verified
evidence separately, and update the block and labels when the state changes.
A saved prompt is not an execution lease.

Apply a reviewed batch

Bulk metadata changes go through a manifest that the owner reads first.

pnpm work:propose --overrides overrides.json --out manifest.json
pnpm work:propose --overrides overrides.json --table   # the same, as a review table
pnpm work:apply manifest.json                          # dry run
pnpm work:apply manifest.json --apply

overrides.json maps an issue number to the fields a person decided: lane, state, unit, next, clearsWhen, parent, blockedBy, close. Anything not overridden is carried over from the issue. Apply re-reads each issue and skips one whose body, labels or comments changed after the manifest was generated; a re-run resumes where a failed run stopped. It closes nothing without --include-closures, and a closure still needs its own evidence on the close-out ledger.

Use the existing Project

Add the issue to Cave rather than creating another board:

gh project item-add 9 --owner OpenCoven \
  --url https://github.com/OpenCoven/coven-cave/issues/5399
gh project field-list 9 --owner OpenCoven --format json

The current Status options are Todo, Started, and Done. Resolve field and option IDs from field-list before scripting updates; do not assume IDs from another Project.

Situation Project status Issue record
Ready, deferred, or awaiting pickup Todo Scope and imperative next step
Being worked on now Started Current owner, branch/worktree, and scope
Blocked or waiting on approval Todo Named primary blocker, unresolved dependencies, next step, and responsible actor
Merged or explicit completion criteria met Done Completion evidence and local worktree disposition

Use the existing Blocked by and Surface fields when helpful. A blocked item must name what clears the blocker; a model's confidence is not approval. Do not leave a stopped session marked Started.

Old Project items may carry Bead ID, Bead status, and Bead owner fields. They are historical notes; do not delete them as part of ordinary work.

Git hooks

Keep the existing secret-scanning and contributor-attribution hooks:

bash scripts/install-git-hooks.sh
git config --get core.hooksPath

The installer points core.hooksPath at scripts/git-hooks. It preserves a different, existing hook directory and warns about any guard missing from it. A configured directory that no longer exists, such as the removed .beads/hooks, is replaced. It also drops a stale merge.beads-jsonl driver section left in older clones. Do not use --no-verify or an empty hook path.

The commit-msg hook accepts Co-authored-by only in the numeric GitHub no-reply form and accepts the Coven-Familiar, Coven-Harness and Coven-Session provenance trailers. Every other co-author address, including <id>@opencoven.ai, and every AI credit footer is rejected (#6068).

The automatic SessionEnd cleanup hook and wt:retire-on-exit shortcut are removed. Stale calls to scripts/worktree-session-exit-retirement.mjs exit 2 before any status probe or Git operation. A local SAFE-RETIRE verdict cannot authorize unlocking another session's checkout or deleting its worktree/branch.

The old worktree-sweep.sh exits with an explicit retirement refusal before running any tracker or Git operation. Remove machine-specific schedules that still invoke it; repository changes do not uninstall external scheduler entries. The read-only hygiene report does not run a lifecycle inventory. Its park and unpark --apply paths are unavailable; they must refuse before mutation, not skip a safety gate.

Worktrees

Start from current origin/main and isolate changes from the shared checkout:

git fetch origin main
pnpm wt:status
git worktree list --porcelain
git worktree add --no-track -b <branch> .worktrees/<slug> origin/main

Use an issue-based name such as fix/issue-123-example. Record its path, purpose, owner, and starting commit on the issue. --no-track prevents a feature branch from inheriting origin/main as its upstream.

The working budget remains 28 registered worktrees. Count the whole checkout, including its primary worktree. At the limit, preserve existing units and obtain an attributed, scoped exception on the issue before creating another; do not remove somebody else's unit to make room.

The managed worktree creator and lifecycle patrol were removed with Beads (#5566). Do not manufacture metadata.coven.worktree records. An uncertain classification in older patrol output is not permission to delete a worktree.

Throwaway run worktrees need no issue record. That covers a detached worktree created from origin/main only to build, run or capture the app, such as the run-cave-app skill's .worktrees/run-<unique>. It must never be committed to, it must hold no work anyone needs, and the same run must remove it. It still counts toward the budget while it exists, and it grants no authority over any other unit.

pnpm wt:status is local evidence, not an ownership or deletion receipt. A paused merge/rebase can look like ordinary dirtiness. Preserve every dirty path, other owners' work, foreign locks, and uncertain units.

Pull requests and completion

main stays canonical and protected. Do not push directly to it, use gh pr merge --admin, alter protection, or assume the maintainer's exemption. Do not commit, push, or merge without the current request's authority.

Use branch-to-merge when authorized to land work. Reuse an existing PR for the branch, link the issue, and review the exact current head. Read all review threads and paginated comments. Required checks must pass on that head; pending, missing, stale, cancelled, or failed results are incomplete.

A review-only request stays read-only. Do not repair, push, merge, resolve threads, or change PR state unless separately authorized.

At handoff, record changed paths, relevant evidence, branch/worktree, owner, remaining blocker, and one imperative next step. If work is only prepared locally, say so. A plan or an unmerged implementation does not close the issue. Close after merge or the issue's explicit completion criteria, not after writing a proposal.

Preserve before retirement

Issue completion and local deletion are separate decisions. Record the worktree as removed and verified, or intentionally preserved with an owner and reason.

Use branch-curator for any removal. It must require explicit scope, exact current OIDs, clean state, retention on a verified remote ref, and evidence that no live owner needs the unit. A merged squash PR does not retain the branch's own commits.

When needed, preserve the exact head with a pushed archive/ or retention/ tag before authorized local retirement. A local-only tag does not count. Never remove a dirty tree, override another owner's lock, or infer that a remote branch is retained from a stale tracking ref. Remote deletion by an agent remains proposal-only. GitHub deletes a merged PR's same-repository head branch automatically (delete_branch_on_merge); refs/pull/<#>/head keeps that head.

The missing legacy maintenance planes are not made safe by changing trackers. No GitHub issue comment replaces a runtime exclusion lock. Preserve a unit whenever the required evidence or authority is unavailable.

Legacy references

Historical plans, specs, and CHANGELOG entries cite old cave-* Bead IDs. They are evidence, not the current operating guide. When legacy work is intentionally resumed, create one scoped issue for the outcome and cite the old ID; do not bulk-import old records or reopen completed work.