Agent workflow#

A cuGeo contributor turns a ready issue into a branch and worktree, runs an implementer there, and asks an independent reviewer to check the change. The issue records the decision, the result and the review. The contributor uses those records and the library’s test results to hand the change to a maintainer.

Records and sessions#

From the repository root, use Python 3 to read the Markdown issue tracker. Run this listing to find unblocked work.

python3 tools/markdown_issues.py list --label status::ready

Issues and milestones live under .planning/issues/ in the checkout. For a shared queue, agree with the other contributors how to exchange that directory. A checkout sees its own files and local branches, so coordinate claims before starting overlapping work. Keep transient logs and draft notes in scratch space. Put decisions, test results, and review findings on the issue that owns the work.

Roles#

Role

Responsibility

Contributor

Authorizes work and external actions, coordinates claims, and records results from sessions with read-only access.

Implementer

Delivers the issue on its branch, runs the affected checks, and addresses review findings.

Reviewer

Reads the proposed commit and its issue in a separate session and checkout, runs checks as appropriate, and returns findings.

Lead

Sequences issues, assigns independent work, and records decisions within the agreed scope.

Maintainer

Decides the questions on the maintainer list and approves landing.

A contributor can run an implementer or reviewer directly in their chosen agent harness. Give the implementer the issue, the worktree, and the build and test constraints. Give the reviewer the issue, the base and head commit SHAs, and the review scope. Use a different harness and model provider for review when available. In every case, start a fresh review session with access to the same relevant checks.

Authority and readiness#

Read the issue body and its notes before claiming it. A ready brief names the expected outcome, the evidence that establishes the gap, and the checks that will confirm the outcome. Keep unsettled decisions in status::triage and wait for open blockers before starting dependent work.

Decision boundary#

Decide choices the existing contract and evidence settle. If the work needs a public contract change or a weaker validation requirement, record the question, the options and their consequences on the issue. Move it to status::triage and ask the lead or maintainer for a decision.

Maintainer list#

Ask a maintainer to decide changes to shared workflow, build requirements, dependencies or toolchain floors. Bring deliberate departures from reference answers, changes to public promises, proposed critical priorities, and unsettled blockers to the maintainer as well. Get the contributor’s authorization before actions that affect shared systems, data or hardware.

Lead decision note#

Record the question, options, choice, reason and evidence that would reopen the decision. Add decision::lead after recording the choice. Use decision::maintainer while a question needs a maintainer’s decision.

Terse tracker text#

Start with the result or verdict. Preserve the exact commit, command, measured input, status code and file location when they support the claim. Report skipped checks and the reason. Keep tentative plans on the issue and state current behavior in documentation.

Claims, worktrees and result notes#

Claim an issue with update ISSUE --assignee NAME --apply, using the numeric issue ID. Run sync --apply in the checkout that holds the issue files. Create an isolated worktree from the intended base and name its branch agent/ISSUE-short-title. Give a reviewer the base and head commit SHAs and a separate worktree at the proposed head.

Record the implementation result once the change is committed. Put the outcome, test commands, relevant build or hardware details, and skips in result.md. Set issue to the numeric issue ID and head to the full reviewed or tested commit before running the note command in the tracker checkout.

python3 tools/markdown_issues.py note "$issue" --body-file result.md \
  --author implementer --kind result --commit "$head" --apply

Grouping issues#

One branch can carry related ready issues when the changes share an owner and can be reviewed together. Keep each issue’s acceptance criteria and results visible. Coordinate independent branches so two implementers avoid editing the same files at the same time.

Reviews and merging#

Record the branch or commit under review with update ISSUE --review REF --apply, then run sync --apply. A review result names the base and head, the verdict, any findings, and what the reviewer checked. Append it to the same issue with note --kind review --commit HEAD. Review fix commits before handing off the final head. Record disputed findings with the evidence and refer unresolved blockers to a maintainer.

Run the checks listed in the touched library’s documentation and the issue. Hand off the tested head, test results and review notes to the maintainer. After the maintainer lands the change, close the issue with update ISSUE --close --apply and run sync --apply. Check the worktree for local changes and recoverable evidence before removing it.