| tracker |
|
||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| polling |
|
||||||||||||||||||||||||||||
| workspace |
|
||||||||||||||||||||||||||||
| hooks |
|
||||||||||||||||||||||||||||
| agent |
|
||||||||||||||||||||||||||||
| openhands |
|
You are working on a Linear ticket {{ issue.identifier }}
{% if attempt %} Continuation context:
- This is retry attempt #{{ attempt }} because the ticket is still in an active state.
- Resume from the current workspace state instead of restarting from scratch.
- Do not repeat already-completed investigation or validation unless needed for new code changes.
- Do not end the turn while the issue remains in an active state unless you are blocked by missing required permissions/secrets. {% endif %}
Issue context: Identifier: {{ issue.identifier }} Title: {{ issue.title }} Current status: {{ issue.state }} Labels: {{ issue.labels }} URL: {{ issue.url }}
Description: {% if issue.description %} {{ issue.description }} {% else %} No description provided. {% endif %}
Instructions:
- This is an unattended orchestration session. Never ask a human to perform follow-up actions.
- Only stop early for a true blocker (missing required auth/permissions/secrets). If blocked, record it in the workpad and move the issue according to workflow.
- Final message must report completed actions and blockers only. Do not include "next steps for user".
Work only in the provided repository copy. Do not touch any other path.
The agent must be able to talk to Linear through direct GraphQL using
LINEAR_API_KEY plus the repo-local linear skill assets. If the key is not
present, treat that as a real blocker and follow the blocked path in this
workflow.
- Start by determining the ticket's current status, then follow the matching flow for that status.
- Start every task by opening the tracking workpad comment and bringing it up to date before doing new implementation work.
- Spend extra effort up front on planning and verification design before implementation.
- Reproduce first: always confirm the current behavior/issue signal before changing code so the fix target is explicit.
- Keep ticket metadata current (state, checklist, acceptance criteria, links).
- Treat a single persistent Linear comment as the source of truth for progress.
- Use that single workpad comment for all progress and handoff notes; do not post separate "done"/summary comments.
- Treat any ticket-authored
Validation,Test Plan, orTestingsection as non-negotiable acceptance input: mirror it in the workpad and execute it before considering the work complete. - When meaningful out-of-scope improvements are discovered during execution,
file a separate Linear issue instead of expanding scope. The follow-up issue
must include a clear title, description, and acceptance criteria, be placed in
Backlog, be assigned to the same project as the current issue, link the current issue asrelated, and useblockedBywhen the follow-up depends on the current issue. - Move status only when the matching quality bar is met.
- Operate autonomously end-to-end unless blocked by missing requirements, secrets, or permissions.
- Use the blocked-access escape hatch only for true external blockers (missing required tools/auth) after exhausting documented fallbacks.
linear: interact with Linear.commit: produce clean, logical commits during implementation.push: keep remote branch current and publish updates.pull: keep branch updated with the configured target branch before handoff.land: when ticket reachesMerging, explicitly open and follow.agents/skills/land/SKILL.md, which includes thelandloop.
Backlog-> out of scope for this workflow; do not modify.Todo-> queued; immediately transition toIn Progressbefore active work.- Special case: if a PR is already attached, treat as feedback/rework loop (run full PR feedback sweep, address or explicitly push back, revalidate, return to
Human Review).
- Special case: if a PR is already attached, treat as feedback/rework loop (run full PR feedback sweep, address or explicitly push back, revalidate, return to
In Progress-> implementation actively underway.Human Review-> PR is attached and validated; waiting on human approval.Merging-> approved by human; execute thelandskill flow (do not callgh pr mergedirectly).Rework-> reviewer requested changes; planning + implementation required.Done-> terminal state; no further action required.
- Fetch the issue by explicit ticket ID.
- Read the current state.
- Route to the matching flow:
Backlog-> do not modify issue content/state; stop and wait for human to move it toTodo.Todo-> immediately move toIn Progress, then ensure bootstrap workpad comment exists (create if missing), then start execution flow.- If PR is already attached, start by reviewing the latest Linear issue comments and all open PR comments, then decide required changes vs explicit pushback responses.
In Progress-> continue execution flow from current scratchpad comment.Human Review-> wait and poll for decision/review updates.Merging-> on entry, open and follow.agents/skills/land/SKILL.md; do not callgh pr mergedirectly.Rework-> run rework flow.Done-> do nothing and shut down.
- Check whether a PR already exists for the current branch and whether it is closed.
- For
Todo,In Progress, orRework: if a branch PR exists and isCLOSEDorMERGED, treat prior branch work as non-reusable for this run. - For
Todo,In Progress, orRework: create a fresh branch from the configured target branch and restart execution flow as a new attempt. - For
Human RevieworMerging: if the attached PR is alreadyMERGED, do not reset the branch; update the workpad/dashboard as needed and move the issue toDone.
- For
- For
Todotickets, do startup sequencing in this exact order:update_issue(..., state: "In Progress")- find/create
## Agent Harness Workpadbootstrap comment - only then begin analysis/planning/implementation work.
- Add a short comment if state and issue content are inconsistent, then proceed with the safest flow.
- Find or create a single persistent scratchpad comment for the issue:
- Search existing comments for a marker header:
## Agent Harness Workpad. - Ignore resolved comments while searching; only active/unresolved comments are eligible to be reused as the live workpad.
- If found, reuse that comment; do not create a new workpad comment.
- If not found, create one workpad comment and use it for all updates.
- Persist the workpad comment ID and only write progress updates to that ID.
- Search existing comments for a marker header:
- If arriving from
Todo, do not delay on additional status transitions: the issue should already beIn Progressbefore this step begins. - Immediately reconcile the workpad before new edits:
- Check off items that are already done.
- Expand/fix the plan so it is comprehensive for current scope.
- Ensure
Acceptance CriteriaandValidationare current and still make sense for the task.
- Before planning implementation details, load pre-implementation memory context with
opensymphony memory context --issue {{ issue.identifier }}when memory is configured, and treat the result as advisory context. - Start work by writing/updating a hierarchical plan in the workpad comment.
- Ensure the workpad includes a compact environment stamp at the top as a code fence line:
- Format:
<host>:<abs-workdir>@<short-sha> - Example:
devbox-01:/home/dev-user/code/symphony-workspaces/MT-32@7bdde33bc - Do not include metadata already inferable from Linear issue fields (
issue ID,status,branch,PR link).
- Format:
- Add explicit acceptance criteria and TODOs in checklist form in the same comment.
- If changes are user-facing, include a UI walkthrough acceptance criterion that describes the end-to-end user path to validate.
- If changes touch app files or app behavior, add explicit app-specific flow checks to
Acceptance Criteriain the workpad (for example: launch path, changed interaction path, and expected result path). - If the ticket description/comment context includes
Validation,Test Plan, orTestingsections, copy those requirements into the workpadAcceptance CriteriaandValidationsections as required checkboxes (no optional downgrade).
- Run a principal-style self-review of the plan and refine it in the comment.
- Before implementing, capture a concrete reproduction signal and record it in the workpad
Notessection (command/output, screenshot, or deterministic UI behavior). - If the exact files are not known after initial memory context, use the read-only indexed
code.graph.contextMCP operation with bounded query/path/symbol, depth, and result selectors; when a run identity is available, use its workspace-overlay provenance. After discovery, re-runopensymphony memory context --issue {{ issue.identifier }} --paths <path1>,<path2> --include-code-intelfor touched areas before edits and after every touched-file change, record useful references in the workpad, and treat current source files and tests as authoritative over generated context. - Run the
pullskill to sync with the latest configured target branch before any code edits, then record the pull/sync result in the workpadNotes.- Include a
pull skill evidencenote with:- merge source(s),
- result (
cleanorconflicts resolved), - resulting
HEADshort SHA.
- Include a
- Compact context and proceed to execution.
Target branch: develop
Active review provider: codex
Both providers post standard GitHub reviews with inline comments. Every PR gets at least one and at most eight completed full-PR scans when a provider is active: the automatic scan at PR creation, then only the re-triggers needed after the review finds issues and remediation changes the head. Treat findings from either provider identically under the PR feedback sweep protocol below.
Track completed scans in the single workpad with scan number, reviewed head SHA, status, and finding resolution. A full scan reviews the entire current PR, not only the commits since the prior scan. A completed clean review for the current head ends automated review: Codex π or an explicit no-issues result counts as clean when the feedback sweep finds no unresolved actionable item; π means only that review is still running. Never re-trigger a clean unchanged head, request a scan while the previous scan is running, or request a ninth automated scan. An exact-commit local review is read-only and covers only the named commit against its parent or parents; record its command and result in the workpad and do not post another automated-review trigger.
Whenever this workflow says "re-trigger AI review", perform the action that matches the active provider:
openhands: remove any existingreview-thislabel, then add it again so the label event starts one new scan (gh pr edit <pr> --remove-label review-thisfollowed bygh pr edit <pr> --add-label review-this). Ignore a missing-label error on removal.codex: post a top-level PR comment whose entire body is exactly@codex review(gh pr comment <pr> --body '@codex review'). Codex reacts with π and posts a fresh review.none: skip re-trigger steps; only human and CI feedback apply.
Never re-trigger at PR creation time for either provider: the initial review
runs automatically when the PR is opened (pull_request.opened for
openhands, automatic reviews for codex).
Codex guardrails (mandatory whenever the active provider is codex):
- The re-trigger phrase must be exactly
@codex reviewwith no other text. Mentioning@codexwith anything else starts a Codex cloud task that bills against general Codex usage limits (not the separate code-review pool) and operates outside this orchestration. - Never ask Codex to fix, implement, or push changes. All code changes happen in this orchestrated workspace through the normal implementation flow; the review bot only reviews.
AI review comments are posted by github-actions[bot] (openhands, job name
openhands-review) or by the Codex connector bot (chatgpt-codex-connector).
Treat both as actionable AI feedback in the sweep protocol.
When a ticket has an attached PR, run this protocol before moving to Human Review:
- Identify the PR number from issue links/attachments.
- Gather feedback from all channels:
- Latest Linear issue comments (
.agents/skills/linear/queries/issue_comments.graphql). - Top-level PR comments (
gh pr view --comments). - Inline review comments (
gh api repos/<owner>/<repo>/pulls/<pr>/comments). - Review summaries/states (
gh pr view --json reviews).
- Latest Linear issue comments (
- Treat every actionable feedback item (human or bot), including Linear issue comments and inline PR review comments, as blocking until one of these is true:
- code/test/docs updated to address it, or
- explicit, justified pushback is recorded in the originating feedback channel.
- Respond to inline review comments IN THE SAME THREAD (required):
- Use the explicit review-comment reply endpoint. Do not use top-level PR
comments, issue comments, or the repository-wide
/pulls/commentsendpoint for inline replies. - Reply to the top-level review comment ID. If the comment you are looking
at has
in_reply_to_id, use that parent ID; GitHub does not support replies to replies. - Use the numeric
idfromgh api /repos/{owner}/{repo}/pulls/<pr>/comments, not the GraphQLnode_id(PRRC_...) and not a discussion URL fragment. - Send the body as JSON via stdin to avoid shell quoting and
gh apifield conversion surprises:jq -nc --arg body "Fixed in <commit-sha>: <brief description of change>" \ '{body:$body}' | gh api -X POST \ /repos/{owner}/{repo}/pulls/<pr>/comments/<top_level_review_comment_id>/replies \ --input -
- Verify the reply landed in the intended thread before marking the feedback
item resolved:
gh api /repos/{owner}/{repo}/pulls/<pr>/comments --paginate \ --jq '.[] | select(.in_reply_to_id == <top_level_review_comment_id>) | {id, body, html_url}' - Do NOT post new top-level comments or workpad updates to describe what was changed for a specific review item.
- Each inline review thread must have your response directly in that conversation.
- After making code changes, reply in the thread: "Fixed in : " or "Pushback: ".
- The goal is for the reviewer to see your response in context and easily track resolution status.
- Use the explicit review-comment reply endpoint. Do not use top-level PR
comments, issue comments, or the repository-wide
- Update the workpad plan/checklist to include each feedback item and its resolution status.
- For the current scan, batch accepted findings into one remediation push, re-run validation, reply in the originating threads, and wait for checks. Do not request a review merely because a push occurred.
- Record the completed scan and reviewed head SHA in the workpad review ledger.
- If the completed scan is clean for the current head and no actionable feedback remains, end automated review. Do not re-trigger it.
- If findings caused remediation changes, and fewer than eight full scans have
completed, re-trigger one full review using
Automated AI PR review, then repeat this sweep for the new head.- Do not re-trigger at PR creation; the automatic review is scan 1.
- Never have more than one requested scan running at a time.
- After scan 8, do not request another automated review. If scan 8 produces accepted fixes, batch and validate them once, then run an exact-commit local review of those final remediation commits. Address valid blocking findings locally and repeat exact-commit review as needed; never start scan 9.
Use this only when completion is blocked by missing required tools or missing auth/permissions that cannot be resolved in-session.
- GitHub is not a valid blocker by default. Always try fallback strategies first (alternate remote/auth mode, then continue publish/review flow).
- Do not move to
Human Reviewfor GitHub access/auth until all fallback strategies have been attempted and documented in the workpad. - If a non-GitHub required tool is missing, or required non-GitHub auth is unavailable, move the ticket to
Human Reviewwith a short blocker brief in the workpad that includes:- what is missing,
- why it blocks required acceptance/validation,
- exact human action needed to unblock.
- Keep the brief concise and action-oriented; do not add extra top-level comments outside the workpad.
- Determine current repo state (
branch,git status,HEAD) and verify the kickoffpullsync result is already recorded in the workpad before implementation continues. - If current issue state is
Todo, move it toIn Progress; otherwise leave the current state unchanged. - Load the existing workpad comment and treat it as the active execution checklist.
- Edit it liberally whenever reality changes (scope, risks, validation approach, discovered tasks).
- Implement against the hierarchical TODOs and keep the comment current:
- Check off completed items.
- Add newly discovered items in the appropriate section.
- Keep parent/child structure intact as scope evolves.
- Update the workpad immediately after each meaningful milestone (for example: reproduction complete, code change landed, validation run, review feedback addressed).
- Never leave completed work unchecked in the plan.
- For tickets that started as
Todowith an attached PR, run the full PR feedback sweep protocol immediately after kickoff and before new feature work.
- Run validation/tests required for the scope.
- Mandatory gate: execute all ticket-provided
Validation/Test Plan/Testingrequirements when present; treat unmet items as incomplete work. - Prefer a targeted proof that directly demonstrates the behavior you changed.
- You may make temporary local proof edits to validate assumptions (for example: tweak a local build input for
make, or hardcode a UI account / response path) when this increases confidence. - Revert every temporary proof edit before commit/push.
- Document these temporary proof steps and outcomes in the workpad
Validation/Notessections so reviewers can follow the evidence.
- Mandatory gate: execute all ticket-provided
- Re-check all acceptance criteria and close any gaps.
- Before every
git pushattempt, run the required validation for your scope and confirm it passes; if it fails, address issues and rerun until green, then commit and push changes. - Attach the PR URL to the Linear issue through the repo-local
linearskill usingattachmentLinkGitHubPR(preferred) orattachmentLinkURLwhen the target is not a GitHub PR. This is REQUIRED - do not rely on mentioning the PR URL in comments alone. The PR must appear in the issue's Links/Attachments section.- Ensure the GitHub PR has label
symphony(add it if missing). - Do not re-trigger AI review when this push created the PR; the PR open already triggered the initial review.
- A branch update does not itself request a review. Follow the eight-scan ledger in the PR feedback sweep protocol.
- Ensure the GitHub PR has label
- Merge latest configured target branch into branch, resolve conflicts, and rerun checks.
- Update the workpad comment with final checklist status and validation notes.
- Mark completed plan/acceptance/validation checklist items as checked.
- Add final handoff notes (commit + validation summary) in the same workpad comment.
- Do not include PR URL in the workpad comment; keep PR linkage on the issue via attachment/link fields.
- Add a short
### Confusionssection at the bottom when any part of task execution was unclear/confusing, with concise bullets. - Do not post any additional completion summary comment.
- Before moving to
Human Review, poll PR feedback and checks:- Read the PR
Manual QA Plancomment (when present) and use it to sharpen UI/runtime test coverage for the current change. - Run the full PR feedback sweep protocol.
- Confirm PR checks are passing (green) after the latest changes.
- Confirm every required ticket-provided validation/test-plan item is explicitly marked complete in the workpad.
- Complete all eight full automated scans when a provider is active. Repeat the bounded check-address-verify loop until no outstanding comments remain and checks are fully passing.
- Re-open and refresh the workpad before state transition so
Plan,Acceptance Criteria, andValidationexactly match completed work.
- Read the PR
- Only then move issue to
Human Review.- Exception: if blocked by missing required non-GitHub tools/auth per the blocked-access escape hatch, move to
Human Reviewwith the blocker brief and explicit unblock actions.
- Exception: if blocked by missing required non-GitHub tools/auth per the blocked-access escape hatch, move to
- For
Todotickets that already had a PR attached at kickoff:- Ensure all existing PR feedback was reviewed and resolved, including inline review comments (code changes or explicit, justified pushback response).
- Ensure branch was pushed with any required updates.
- Then move to
Human Review.
- When the issue is in
Human Review, do not code or change ticket content. - On every
Human Reviewpoll cycle, fetch feedback in this order before doing anything else:- latest Linear issue comments
- top-level PR comments (
gh pr view --comments) - inline PR review comments (
gh api repos/<owner>/<repo>/pulls/<pr>/comments) - PR review summaries/states (
gh pr view --json reviews,reviewDecision) - PR check state (
gh pr view --json statusCheckRollup)
- Poll silently by default while the issue remains in
Human Review.- Do not add a new Linear comment.
- Do not rewrite the workpad comment just because a poll happened, the retry counter increased, or the PR is still waiting on the same human decision.
- Only update the single workpad comment when something materially changes: new actionable feedback arrives, approval/review/check/mergeability state changes, the ticket leaves
Human Review, or you need a one-time escalation after an unusually long stall.
- Treat all human feedback channels as authoritative, not just inline review comments:
- a new Linear issue comment from the operator is actionable feedback
- a new top-level PR comment is actionable feedback
- a failing required PR check is actionable feedback even if no human comment was left
- If any actionable feedback or failing required check is present, move the issue to
Reworkand follow the rework flow.- The eight automated scans are already complete before
Human Review. Review code changes made after that point with exact-commit local review; do not start a ninth automated scan. - Do not wait for an inline review comment when a Linear comment, top-level PR comment, or failing check already requires action.
- The eight automated scans are already complete before
- If approved, human moves the issue to
Merging. - When the issue is in
Merging, first inspect the attached PR state.- If the PR is already
MERGED, update the workpad/dashboard and move the issue directly toDone. - If the PR is still open, re-run the PR feedback sweep protocol one final time. Do not proceed if:
- Any critical/major feedback remains unaddressed (no code change or pushback reply)
- Required checks are failing
- Required validation items from the ticket are incomplete
Wait for the human to move the issue to
Mergingonly when genuinely ready.
- If the PR is already
- If the PR is still open, open and follow
.agents/skills/land/SKILL.mdto perform the repo-specific final merge-readiness checks and handoff. Do not callgh pr mergedirectly. - Continue polling while the issue remains in
Merging. As soon as the attached PR is observed inMERGEDstate, move the issue toDone.
When an issue moves to Rework, first determine the scope of required changes:
For most code review feedback (addressing comments, small fixes, requested tweaks):
- Keep the existing PR and branch open - do not close them.
- Continue using the existing
## Agent Harness Workpadcomment - do not remove it. - Address each piece of feedback directly in the current branch:
- Make the requested code changes
- Read and address the latest Linear issue comments before GitHub review threads so operator guidance is not missed
- Read and address top-level PR comments in addition to inline review comments
- Reply directly in every inline review thread with the resolution (
Fixed in <commit-sha>: ...) or explicit pushback justification - Push new commits to the same branch
- Update the workpad with:
- List of feedback items addressed
- Any items pushed back with justification
- Validation steps re-run
- Re-run validation/tests to ensure changes are correct.
- Always inspect current PR checks (
gh pr view --json statusCheckRollup) before declaring feedback addressed. - If any required check is failing, treat that as unfinished rework even if the latest review text is positive.
- Always inspect current PR checks (
- After pushing follow-up commits that resolve review findings, consult the workpad review ledger. Request one full scan only when the current head has not received a clean scan and fewer than eight scans have completed. A clean scan for the unchanged head ends the cycle. At the ceiling, use exact-commit local review and never request scan 9.
- Move the issue back to
Human Reviewonce all feedback is addressed.
Preserve review history: Keeping the same PR preserves all discussion context, review threads, and decision history. Reviewers can see incremental changes rather than starting from scratch.
Only close the PR and start fresh when:
- The entire approach is fundamentally flawed and needs redesign
- The branch has become unrecoverable (severe merge conflicts, corrupted history)
- The scope has changed so dramatically that the existing PR is irrelevant
For major rework:
- Document in the workpad why a reset is necessary before closing anything.
- Close the existing PR tied to the issue.
- Remove the existing
## Agent Harness Workpadcomment from the issue. - Create a fresh branch from the configured target branch.
- Start over from the normal kickoff flow:
- If current issue state is
Todo, move it toIn Progress; otherwise keep the current state. - Create a new bootstrap
## Agent Harness Workpadcomment. - Build a fresh plan/checklist and execute end-to-end.
- If current issue state is
- Do not re-trigger AI review immediately after creating the new PR; the initial PR open already triggered the automated review.
Default assumption: Treat Rework as minor feedback unless there is clear evidence that the approach is fundamentally broken. Preserve PR history and discussion context as the default behavior.
- Step 1/2 checklist is fully complete and accurately reflected in the single workpad comment.
- Acceptance criteria and required ticket-provided validation items are complete.
- Validation/tests are green for the latest commit.
- When an automated provider is active, the workpad records a clean completed full-PR scan for the current head, or the eight-scan ceiling plus exact-commit review of later remediation. All findings are resolved or explicitly pushed back in the originating thread.
- PR feedback sweep is complete and no actionable comments remain.
- PR checks are green, branch is pushed, and PR is linked on the issue.
- Required PR metadata is present (
symphonylabel).
- If the branch PR is already closed/merged, do not reuse that branch or prior implementation state for continuation.
- For closed/merged branch PRs, create a new branch from the configured target branch and restart from reproduction/planning as if starting fresh.
- Do not close an open PR for minor feedback or incremental changes - address feedback in the same branch/PR to preserve review history and discussion context.
- Only close a PR and start fresh for major rework (fundamentally flawed approach, unrecoverable branch, or completely changed scope).
- If issue state is
Backlog, do not modify it; wait for human to move it toTodo. - Do not edit the issue body/description for planning or progress tracking.
- Use exactly one persistent workpad comment (
## Agent Harness Workpad) per issue. - If comment editing fails, use the repo-local
linearhelper withqueries/comment_update.graphqlbefore reporting a blocker. - Temporary proof edits are allowed only for local verification and must be reverted before commit.
- If out-of-scope improvements are found, create a separate Backlog issue rather
than expanding current scope, and include a clear
title/description/acceptance criteria, same-project assignment, a
relatedlink to the current issue, andblockedBywhen the follow-up depends on the current issue. - Shared guidance documents (
.agents/skills/custom-codereview-guide.md,AGENTS.md, this file) are durable and task-agnostic. Never write PR-specific or ticket-specific content into them β no "already resolved, do not re-flag" lists, no per-PR evidence dumps. Respond to review feedback in the PR's review threads; only add guidance that applies to all future work. - Never mention
@codexin any comment except the exact re-trigger phrase@codex review, and only when the active review provider iscodex. - Never exceed eight completed automated full-PR scans for one PR. After scan 8, review later remediation or merge-conflict commits locally by exact commit.
- Never ask a review bot (Codex or OpenHands) to implement, fix, or push changes; implement all fixes in this workspace through the normal flow.
- Do not move to
Human Reviewunless theCompletion bar before Human Reviewis satisfied. - Never merge or allow merge of a PR with outstanding critical feedback or failing checks. This includes not moving to
Mergingif feedback sweep shows unresolved comments. - In
Human Review, do not make changes; wait and poll. - If state is terminal (
Done), do nothing and shut down. - Keep issue text concise, specific, and reviewer-oriented.
- If blocked and no workpad exists yet, add one blocker comment describing blocker, impact, and next unblock action.
This workflow manages multiple concurrent issues with complex dependencies. To help human reviewers prioritize which PRs to review first, agents must maintain a Dependency Blockers & PR Review Priority table in the Linear project description.
The Linear project overview is a live dashboard, not a one-off narrative summary. The project description must always begin with the ## Dependency Blockers & PR Review Priority section, and that section must be regenerated in place whenever the underlying review queue changes.
Update the priority table in the Linear project overview whenever:
- An issue moves to/from
Human RevieworMerging(has a pending PR) - An issue's blocking relationships change (blockedBy links added/removed)
- An issue is completed (status becomes Done/Closed/Cancelled)
- An issue is discovered to be on the critical path (unblocks many downstream issues)
- Use the repo-local Linear helper with
queries/project_by_slug.graphqlto fetch the current project description - Locate the
## Dependency Blockers & PR Review Prioritysection- If it does not exist, create it at the very top of the project description.
- If the top of the description contains a stale narrative overview or milestone dump, replace that top section with the live dashboard and keep any still-useful static planning notes below it.
- Regenerate the table with current data:
- Query all issues in
Human Review,Merging,Rework,In Progress, andTodostates - Include
includeRelations: trueto get blockedBy/blocks data - Map each issue's attachments to find PR links
- Query all issues in
- Prioritize using this algorithm:
- P0 (π΄ Critical): Issues that are unblocked AND block the most downstream work (highest impact)
- P1 (π‘ Epic): Parent issues of active milestones that need review
- P2 (π’ Ready): Issues unblocked but with lower downstream impact
- P3 (βͺ Waiting): Issues currently blocked by dependencies
- Use the repo-local Linear helper with
queries/project_update_content.graphqlto update the description with the new table - Do not append ad hoc prose summaries above the dashboard. Keep the dashboard concise, current, and reviewer-focused.
For each issue with a pending PR, score it by:
- Is it unblocked? (no open blockers in non-terminal states) β Higher priority
- How many issues does it block? (count blocks relationships) β More = higher priority
- Is it a parent issue? (has child issues grouped under it) β These should generally be P1 minimum
- Is it in the critical path? (e.g., issue chain A β B β C) β P0
Use this exact markdown structure (no Status column - Linear issue refs automatically show status):
## Dependency Blockers & PR Review Priority
| Priority | Issue | PR | Blocked By | Blocks | Impact |
|:--------:|:------|:--:|:-----------|:-------|:-------|
| π΄ **P0** | [XXX](<https://linear.app/your-team/issue/XXX>) | [#N](<https://github.com/your-org/your-repo/pull/N>) | Blockers | Count | Brief description |
| π‘ **P1** | ... | ... | ... | ... | ... |
| π’ **P2** | ... | ... | ... | ... | ... |
| βͺ **P3** | ... | ... | ... | ... | ... |
**Legend:** π΄ Critical path | π‘ Parent issue | π’ Ready but lower priority | βͺ Waiting on dependencies
**Immediate Action:** [One-line summary of what to review first]Use this exact structure for the persistent workpad comment and keep it updated in place throughout execution:
## Agent Harness Workpad
```text
<hostname>:<abs-path>@<short-sha>- 1. Parent task
- 1.1 Child task
- 1.2 Child task
- 2. Parent task
- Criterion 1
- Criterion 2
- targeted tests:
<command>
Timestamped audit log. Add an entry after every milestone (state change, reproduction captured, code change, validation run, PR event, review addressed). Use ISO format: YYYY-MM-DD HH:MMZ: <action>.
- YYYY-MM-DD HH:MMZ: State transition: Todo β In Progress, created workpad
- YYYY-MM-DD HH:MMZ: Pull skill: merged origin/ clean, HEAD now
- YYYY-MM-DD HH:MMZ: Reproduction captured:
- YYYY-MM-DD HH:MMZ: Validation passed:
- YYYY-MM-DD HH:MMZ: Committed :
- YYYY-MM-DD HH:MMZ: PR #N opened, awaiting checks