Skip to content

feat(orchestrator): GitHub intake triage — every new issue + issue comment assessed, labeled, horizon-set, answered #1480

Open

Description

@dezren39

Gap named by Drew (2026-10-27): "does orchestrator or triage workflow receive every issue and issue comment and assess priority, add labels, leave a comment? what about comments in already open issues? can we add a priority or a time frame — from github or how?"

CURRENT STATE (verified from the job bodies 2026-10-27): no event-driven intake exists. Coverage is polling, split by role:

  • The per-repo issue sweeps (every 2h, up to 5 items/run) FIX first and TRIAGE second — verify issues, comment findings, apply labels, close stale, re-prioritize the backlog file. New issues reach the backlog when a sweep's triage reaches them; comments on open issues are read when an issue is worked, not as an intake signal.
  • The orchestrator (hourly) reconciles the org Project: issues labeled now/next/epic auto-add as Todo; Status syncs from signals. It does not read issue comments and does not write labels or issue comments (single-writer rule covers Project fields only).
  • Drew's GitHub mentions/reviews surface only via the daily Gmail summary.

WORK — a real intake triage, owned by the orchestration pass (it already classifies everything else):

  1. Each run, poll the four repos for issues created and issue comments posted since the last run (persist a watermark in orchestrator-state.json).
  2. Every NEW issue gets assessed in that run: priority + Horizon (Project field write), labels applied (now/next + area), and a short triage comment on the issue itself: the assessment, the horizon, and what happens next (queued for a sweep / needs-orchestrator / needs-Drew with the one-line why, passing the triage gate).
  3. Every new comment on an open issue gets read: Drew's comments are directives — route them to the owning lane (the working session, the sweep backlog, or the orchestrator's tiers) and reflect any priority/timeframe change he states (label + Horizon updates). Others' comments get assessed for state changes (fixed? blocked? new info?) and the item re-classified when they move it.
  4. Authority to grant explicitly in the job body: the orchestrator may add labels and post triage comments on issues for intake purposes (Project single-writer rule unchanged).
    Acceptance: a test issue + a test comment demonstrate end-to-end intake within one pass, with the triage comment, label, and Horizon visible on GitHub.

Acceptance criteria

  • An orchestrator pass polls all four repos for issues created and issue comments posted since the persisted watermark in orchestrator-state.json, and the watermark advances only after a successful pass.
  • Every new issue is assessed in that same pass: priority label and Project Horizon set, intake labels applied (now/next + area as applicable), and a short triage comment posted on the issue stating the assessment, the horizon, and what happens next.
  • Every new comment on an open issue is read and classified: Drew's comments are routed as directives to the owning lane with any stated priority/timeframe change reflected in labels + Horizon; other comments are assessed for state changes and the item re-classified when they move it.
  • The orchestrator job body explicitly grants label + triage-comment authority for intake (Project single-writer rule unchanged).
  • End-to-end proof: a test issue and a test comment each receive intake within one pass, with the triage comment, label, and Horizon visible on GitHub.

Activity

  1. developing-today commented on Oct 27, 2026

    @developing-today
    Contributor
  2. added
    source/humanFiled directly by a human
    priority/normalOrdinary priority (the default)
    effort/lLarge: multi-day or open-ended; expect staged check-ins
    meta/enrichedIntake review done: acceptance criteria, links, and normalized labels added
    on Oct 27, 2026
  3. dezren39 commented on Oct 27, 2026

    @dezren39
    MemberAuthor

    Intake review

    🤖 Agent note · filed

    • Agent: fleet monitor
    • Session / ID: repo-fleet-monitor run 2026-10-27T18:20Z
    • Found via: monitor reconciliation
    • Task: intake enrichment (§5 pass)
    • Expectation: triage complete; the build itself is effort/l
    • Links: design context in this issue body

    Related: the hourly orchestration pass and the per-repo sweeps described in the body; fleet intake today is this monitor's §5 pass (hourly, bounded at 10/run, code-queue safety net only) — it does not read issue comments as an intake signal and does not set Project Horizon, so the gap as filed is real.

    Liveness: searched merged PRs for an intake implementation — none found (merged "intake" hits are unrelated research-workflow docs PRs). Not solved.

    Notes / risks: this is a job-body + state change to the orchestrator, not a code change in this repo's packages; the watermark and the comment-classification rules are the delicate parts (a missed watermark window silently drops intake). Drew's-comment routing needs care not to double-route items a lane is already working.

    Suggested approach: implement as a bounded step inside the existing orchestration pass (watermark in orchestrator-state.json), starting with new-issue intake only, then comment intake once the first part is proven by the test-issue acceptance check.

    Labels normalized this pass: kind/enhancement, source/human, priority/normal, effort/l, status/needs-triage, meta/enriched; an ## Acceptance criteria section was appended (original body preserved verbatim above it — the inline Acceptance line at the end of the original is now formalized there).

  4. added
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    and removed on Nov 1, 2026
  5. dezren39 commented on Nov 1, 2026

    @dezren39
    MemberAuthor

    agent-note:v1
    event: picked_up
    task: 2590 (repo-health-code-pilot, openchamber scheduled lane)
    state: Claimed triage; checking current ownership and implementation.

  6. 24 remaining items

  7. dezren39 commented on Nov 16, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · picked up

  8. dezren39 commented on Nov 16, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · triaged (re-packet triage, coherent packet)

    • Agent: queue worker (repo-worker-code), OpenChamber scheduled lane code-h · task 15160
    • Verified fresh 2026-11-16 on origin/main 2b6ada6: the gap as filed is still real — no intake exists that assesses every new issue + issue comment, applies priority/labels/Horizon, and posts a triage comment.
    • What exists now (repairs the task-2590 packet_defect — missing source refs):
      • Poll half exists as projection only: pm-stack/projector/src/reconcile.ts polls REPO_STREAMS issues/prs/issue_comments/review_comments/reviews with per-repo cursors and upserts to the store. Grep over pm-stack/projector/src shows zero label writes, zero triage-comment posts, zero Horizon writes — it heals the read model, it does not triage.
      • Orchestrator pass state: goal-workspace hidden_files/orchestrator-state.json (+ orchestration.json, orchestrator-log.md); durable successor public.orch_runs / public.orch_items via pm-stack/shared-schema/migrations/20261111_0001_orchestration_state.up.sql; contract pm-stack/shared-schema/ORCHESTRATION.md; pass code pm-stack/aggregator/src (derive/feed/actions/orchestration-db).
      • No merged PR implements the feat(orchestrator): GitHub intake triage — every new issue + issue comment assessed, labeled, horizon-set, answered #1480 intake (merged 'intake' hits are unrelated design-mill/doc PRs).
    • Scope for the fix (unchanged from the issue body): bounded intake step in the orchestration pass with a persisted watermark in orchestrator-state.json (advance only after a successful pass); new-issue assessment (priority + Horizon + now/next + area labels + triage comment) first, comment intake second; explicit grant for the orchestrator to write labels/triage comments (Project single-writer rule unchanged).
    • Disposition: triage complete — no code changed. Implementation is effort/l and unscheduled; it needs its own implementation task under epic/github-dynamic-compute (timing is a programme decision, not this triage). This comment is the coherent packet the re-triage was asked to produce.
  9. added
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    and removed
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    on Nov 16, 2026
  10. dezren39 commented on Nov 16, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · parked / duplicate check

  11. added
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    status/parkedDeliberately paused with a recorded resume condition
    on Nov 16, 2026
  12. removed their assignment
    on Nov 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort/lLarge: multi-day or open-ended; expect staged check-insepic/github-dynamic-computeEpic: epic/github-dynamic-compute (fleet reprioritization 2026-11-12)kind/enhancementmeta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedmeta/follow-upFollow-up spun out of earlier workmode/onlineFully doable remotely: design, config, code, cloudpriority/normalOrdinary priority (the default)queue/blockedQueue or user escalation statequeue/claimedQueue worker lifecycle statequeue/parkedQueue task is parked (waiting on CI, time, or an event)source/humanFiled directly by a humanstatus/blockedQueue or user escalation statestatus/in-progressQueue worker lifecycle statestatus/parkedDeliberately paused with a recorded resume conditiontask/triageQueue packet kind: verify, reproduce, and route this itemwork/assignedQueue worker lifecycle state

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions