GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — impl(orchestrator): recurring orchestration job — queue triage, priority ladder, blocker awareness, goal measurement · Issue #899 · developing-today/code

impl(orchestrator): recurring orchestration job — queue triage, priority ladder, blocker awareness, goal measurement #899

New issue
Copy link
New issue
Copy link
Closed
Closed
impl(orchestrator): recurring orchestration job — queue triage, priority ladder, blocker awareness, goal measurement#899
Copy link
Assignees
dezren39
Labels
status:done

Description

@dezren39
dezren39
opened on Oct 25, 2026
Issue body actions

Slice 2B of the PM program, from Drew's direction 2026-10-25: "We need to start integrating so that you have an orchestration job which runs regularly and reviews the 'needs orchestrator' / 'needs decision' jobs. It pushes them back or sends them to me if absolutely required, and measures our top goals and the tasks lined up."

Companion to the aggregator slice-2 issue (dashboard tiers + today view). The dashboard presents; this job does the work behind the NEEDS ORCHESTRATOR tier.

The job

A recurring orchestration pass (cron) that each run:

  1. Reviews the queues: NEEDS ORCHESTRATOR and NEEDS DECISION items (sessions stalled on questions, errored runs, pending decisions, blocked tasks — sources: the aggregator's attention feed, jules-review state, the repo backlogs, the goals' tracked items).
  2. Acts on what the fleet can resolve: route/poke/dispatch sessions, answer machine-answerable questions from recorded context, unblock what's unblockable — following the fleet's standing rules (plan-only quotas, measurement gate, model ladder). Push work BACK into motion instead of letting it sit.
  3. Escalates to Drew only when absolutely required: a genuine decision, a physical step, a credential only he can supply. Escalations land in the NEEDS DREW tier with a one-line reason. Everything else must NOT reach Drew.
  4. Measures the top goals: for each of Drew's top goals, compare the goal against the tasks lined up under it — progress since last run, stalls, gaps (a goal with nothing lined up is a finding). Write the measurement summary the dashboard's today view consumes.

Priority ladder for assigning todo/job work

  1. Today's objectives
  2. Tomorrow's objectives
  3. Next 3 days
  4. Longer-horizon goals
  5. Random incoming (new GitHub issues, ad-hoc requests)

Not exclusive: dependency awareness beats ladder order. Before assigning a task, check whether it is blocked by another task; if the blocker has an active worker, take different work and record the dependency. The dependency picture must be visible in one place: for any task, "blocked by X; X is being worked by session S" — and conversely "to reach this task, session S must first complete prerequisite Y."

Coordination with existing jobs (do not duplicate)

  • stewardship-cycle (hourly) owns quota/model routing, the stalled-agenda sweep, and pool health. The orchestrator owns task-level triage and assignment. If the cleanest implementation extends stewardship-cycle with an orchestration step, do that and say so here; if it is a separate cron, draw the boundary explicitly.
  • jules-review (keeper) owns session-level supervision of running fleet sessions. The orchestrator consumes its state; it does not re-supervise sessions.
  • The repo sweeps own issue/PR work inside each repo; the orchestrator sets priorities across them rather than doing their work.

Done when

The job is scheduled and has completed at least one observed live run: queues reviewed, at least the classification + escalation output recorded, goal-measurement summary written where the dashboard reads it, and a run report exists that a human can audit (what was pushed back into motion, what was escalated and why, what was measured). Plan-only discipline throughout: a quota wall is a stop-and-record, never a spill.

Activity

  1. developing-today commented on Oct 25, 2026

    @developing-today
    developing-todayBot
    on Oct 25, 2026 – with developing.today
    Contributor
    More actions

    CODE-145

  2. github-actions
    assigned
    dezren39
    on Oct 25, 2026
  3. dezren39 commented on Oct 25, 2026

    @dezren39
    dezren39
    on Oct 25, 2026
    MemberAuthor
    More actions

    Implementation design (2026-10-25)

    Form: a separate cron, orchestration-pass, hourly — not a stewardship-cycle step. Boundary, drawn explicitly per the issue:

    Job Owns Never does
    stewardship-cycle (hourly) quota/model routing + pool health, stalled-agenda sweep (names stalls/blockers), portfolio dispatch (≤2/cycle) task-level queue triage; answering session questions
    jules-review / keeper (4h) session-level supervision of RUNNING sessions: Jules plan approvals + feedback replies, OpenCode error retry/failover answering question-waiting OpenCode sessions (report-only there by design); goal measurement
    repo sweeps issue/PR work inside each repo cross-system priority setting
    orchestration-pass (new, hourly) task-level triage + assignment + goal measurement: reviews NEEDS ORCHESTRATOR + NEEDS DECISION queues, answers machine-answerable questions on waiting OpenCode sessions, unblocks/dispatches per the priority ladder, classifies escalations into NEEDS DREW, writes the goal-measurement summary re-supervising running sessions (no Jules messaging, no model failovers — that is the keeper); quota policy (consumes stewardship's quota view + the registry)

    Non-overlap mechanics: the orchestrator never sends Jules messages (it records recommendedAction for Jules items; the keeper executes within its own rules), never retries/fails-over running OpenCode sessions (keeper), and checks the live attention feed + keeper state before any dispatch so it never duplicates in-flight work. Dispatch cap: 2 per run, measurement gate + model ladder + plan-only discipline identical to stewardship's.

    Data contract (settled with #898 in its issue comments): the orchestrator writes hidden_files/orchestration.json (keep-the-four-repos-healthy goal workspace); the fleet-feed collector embeds it as the feed's orchestration section; the aggregator serves GET /api/orchestration.json. Tier items carry a one-line reason, blockedBy[] carries {task, status, workerSessionId, workerLabel} so "blocked by X; X is being worked by session S" renders from one place; goal measurements carry per-task horizon buckets (today / tomorrow / next-3-days / longer / incoming) with horizonWhy, progress-since-last-run, stalls, and gaps.

    Priority ladder (from the issue): today > tomorrow > next 3 days > longer goals > incoming; dependency awareness beats ladder order — a task whose blocker has an active worker is skipped for other work and the dependency is recorded in the output.

    Discipline: plan-only quotas; fresh quota read ≤60 min before placing work; the Meta pool per the 2026-10-25 console correction (weekly 85% at the 09:38 read, resets Sun 19:00 CDT; the morning's wall was the SHORT window; NO charge-past-plan disable exists — a wall is a stop-and-record, never a spill). Escalations reach Drew only for a genuine decision, a physical step, or a credential only he can supply — everything else is resolved or recorded by the fleet.

    First observed live run + audit will be filed as a follow-up comment here.

  4. dezren39 commented on Oct 25, 2026

    @dezren39
    dezren39
    on Oct 25, 2026
    MemberAuthor
    More actions

    Data contracts with the aggregator (slice 2, #898) — proposed by the #898 implementer

    We meet at the fleet feed (pm-stack/aggregator/scripts/collect-fleet-feed.ts → fleet-feed.json, sandbox → laptop every ~5 min). Two contracts:

    1. Orchestration summary (you write, the collector embeds, the dashboard renders)

    Write one JSON file on the sandbox, replaced atomically each run:

    Path: ~/workspace/goals/keep-the-four-repos-healthy/hidden_files/orchestration-state.json (override on my side: ORCHESTRATION_STATE_PATH)

    Schema:

    {
      "generatedAt": "2026-10-25T17:30:00Z",          // required, ISO
      "objectives": [                                  // the day's priorities, your ladder order
        { "title": "…", "horizon": "today|tomorrow|3d|week|longer",
          "status": "…", "detail": "…", "ref": "developing-today/code#123" }  // all but title optional
      ],
      "momentum": [                                    // one per top project/goal
        { "project": "developing-today/code", "state": "moving|stalled|blocked",
          "accomplished": ["…"], "blockedBy": "…", "detail": "…" }
      ],
      "escalations": [                                 // items you pushed to NEEDS DREW
        { "sessionId": "ses_… or the Jules numeric id", "title": "…",
          "reason": "one line: why only Drew can resolve this", "at": "ISO" }
      ],
      "notes": ["…"]                                   // optional free lines
    }

    The collector validates it loosely (object + generatedAt + arrays) and embeds it as feed.orchestration. The today view renders it verbatim with provenance "orchestrator summary · ". Until the file exists, the today view derives objectives/momentum from board + roadmap + item activity and labels itself derived — no action needed from you to unblock the dashboard.

    2. Attention tiers (the aggregator classifies; your escalations win)

    /api/attention.json stays a flat array of current entries; each entry now carries:

    • source: opencode-sandbox | opencode-laptop | jules | claude-code
    • parentId, agent, outcome (OpenCode sub-sessions collapse under parents; finished runs expire: finished >2h or anything >24h drops out, counted in /api/coverage.json)
    • tier: needs-drew | needs-orchestrator | in-motion, plus drewReason (why Drew, explainable per item) or orchestratorNote (what the fleet will do with it)

    Classification is rule-based in the aggregator (decision-shaped questions, destructive permission requests, credential/sign-in walls, keeper "escalate" notes) — but an escalations[] record from you overrides everything: matching session → NEEDS DREW with your reason verbatim. Conversely, if you resolve an orchestrator-tier item, it disappears from the feed on its own (session state changes); no write-back to the aggregator is needed.

    Session sources status (for your queue review)

    Wired: OpenCode sandbox (via feed), OpenCode laptop (live), Jules (new in slice 2) — mapped from jules-review-state.json items, with the keeper's run totals in feed.julesSummary. Not wired: Muse — the assistant runtime exposes no session registry file/API to read; the dashboard carries an explicit coverage note and the gap is tracked in #898. If your job has a Muse session source, name it on #898 and I'll wire it.

    Boundary check: this matches your issue's split — stewardship owns quota/routing, jules-review owns session supervision, you own task-level triage + goal measurement, the aggregator only displays + classifies. Shout on this issue if any field needs to change shape.

  5. dezren39
    added 6 commits that reference this issue on Oct 25, 2026

    feat(aggregator): carry the orchestration section in the fleet feed (#…

    92d17e3

    feat(aggregator): slice-2 model — session sources, tiers, orchestrati…

    81a8316

    feat(aggregator): slice-2 derivations — tiers, expiry, hierarchy, roa…

    56d4bd0

    feat(aggregator): slice-2 session sources — parent/agent/outcome mapp…

    0693dae

    feat(aggregator): slice-2 views — mobile pass, tiered needs-you, road…

    55937e6

    docs(aggregator): slice-2 README + stack hostname; Jules questions ar…

    d30f707
  6. dezren39 commented on Oct 25, 2026

    @dezren39
    dezren39
    on Oct 25, 2026
    MemberAuthor
    More actions

    Done — implemented, scheduled, and audited over two observed live runs (2026-10-25)

    The job: cron orchestration-pass, hourly, owned by the keep-the-four-repos-healthy goal; delivery to the main chat. State + outputs in that goal's hidden_files/: orchestration.json (published section), orchestrator-state.json, orchestrator-log.md (auditable run reports), claim file. Boundary vs stewardship-cycle and jules-review is drawn in the design comment above and encoded in the job body (no Jules messaging, no running-session supervision, no quota policy of its own).

    Plumbing: PR #900 (MERGED 2026-10-25T17:19:47Z, 7394e2cf) — contract types in src/model.ts, the collector embeds orchestration.json fail-soft, the aggregator serves GET /api/orchestration.json. Deployed: collector clone updated to the merge; laptop aggregator reinstalled from merged main and restarted. Contract settled with #898 in its comments before the first run.

    Run reports (audited by the implementer against the published files)

    Run 1 — orch-2026-10-25T17:12:25Z (12:12 CDT, manual first run):

    • Queues reviewed: fleet feed (50 sandbox attention entries) + laptop attention, keeper state (last_run 14:58Z), all four repo backlogs' NEXT sections, tracking + user goals, stewardship cycle 34 + quota view + registry POOL MAP.
    • Classified: 7 NEEDS DREW (each with a one-line only-Drew reason: Plaid/Citi credential sign-in; RustDesk-vs-KRdp choice; tonight's late-night priorities + limits; code id phase-10: the world directory feed was not built — id world list --json is admin-only, has no presence counts, and 'open' means loaded-in-memory #812 owner design decision; queue/worker pilot Phase 0 build approval; dezren39/nix GitHub App decision; Dot/Aster one-time Slack step) and 9 NEEDS ORCHESTRATOR (Jules id phase-9: a joiner's resize (up to 500x200) can permanently poison a world via the guest layout() call exceeding presentation_bytes #811 keeper-verification, the interrupted openchamber chore(opencode): untrack runtime state and stale backups under .opencode/ (#367) #385/docs: ROADMAP and planning roadmaps list closed #301/#304/#305/#300 work as open Now items #386 session, code id(ci): nightly NixOS VM checks fail — home page no longer contains 'Files' (serve/e2e assertions, integration timeout) #896 / id(world-line): PR #808 — join pump --command-mode kills the session on a parse Message (SSH shows it and continues), and /logs [seconds] is parsed then discarded by both consumers #819 / id(world-manifest): PR #801 — 'id world apply' prints 'applied N step(s)' for steps it explicitly did not apply, and diff/plan run against a fabricated seed=0 / empty-schedules state #818 remainders, PR fix(web): match world surface presenter validation with rust wire rules #759 draft, the design(aggregator): quota + throughput view — pooled quotas, resets, burn rates, model-choice support #851/design(aggregator): 'needs you' attention view — session state taxonomy, machine-first #852 design-link gap, openchamber docs(mcpx): name the downstream darwin -skip coupling on the canonical checkPhase line #445, plus dependency records: id(world-manifest): PR #801 — 'id world apply' prints 'applied N step(s)' for steps it explicitly did not apply, and diff/plan run against a fabricated seed=0 / empty-schedules state #818 blocked by id: F12.1 apply wiring — module install + schedules reconciliation #807).
    • Pushed back: 0 question answers (no session was waiting on a question in any source) and 0 dispatches — every candidate task was already owned by a sweep or keeper lane, and duplicating in-flight work is exactly what the job must not do.
    • Wall: Meta High Usage at 85% (doNotStart), resets today 19:00 CDT — stop-and-record, no spend escalation, per the console correction (no charge-past-plan disable exists).
    • Measured: 6 top goals with lined-up tasks, horizons, and momentum. Gap found and named: "Late night shift priorities" has nothing lined up — no picks since 2026-10-24 22:13 CDT.
    • Audit finding: run 1 improvised several field shapes (object provenance, off-enum kind/source/status values, URL refs, id/title instead of goalId/goal, linedUp task without status). The classifications were right; the shapes were not.

    Fix: the job body gained a CONTRACT FIDELITY section (closed enums, RefKey-only refs, exact field names, a mandatory pre-publish self-check) and environment constraints (pool walls) were moved out of the tiers into the run log/actions.

    Run 2 — orch-2026-10-25T17:20:44Z (12:16 CDT): republication passed the self-check and an independent re-audit by the implementer — zero fidelity errors. Queues re-verified live via fresh gh reads; same 7 + 9 items (unchanged NEEDS DREW items correctly not re-reported). Progress recorded since run 1: opencode #443 closed via PR #445, #457 via PR #458. Jules #811 still shows AWAITING_USER_FEEDBACK despite the keeper's 14:58Z proceed — the orchestrator recorded a recommendedAction for the keeper and sent nothing itself (boundary held).

    Live verification: GET http://127.0.0.1:4870/api/orchestration.json on the laptop serves run 2's section (7 / 9 / 6 goals / 2 dependencies; the #818 → #807 blockedBy renders as a RefKey; the late-night gap renders). The collector embeds the section in the fleet feed every ~5 min.

    Incidents found while auditing (fixed, follow-ups noted):

    • The sandbox recycle at ~16:32Z dropped the fleet-feed-collector systemd units (they live only in /etc/systemd/system, installed imperatively) — the feed had been stale ~40 min. Units reinstalled from pm-stack/aggregator/systemd/ and the timer is active again. Boot-persistence of these units is filed as fix(pm-stack): fleet-feed-collector units do not survive a sandbox recycle #903.
    • install.sh uses enable --now, which does not restart a running aggregator — the first redeploy served old code until a manual systemctl --user restart. Worth a one-line fix in install.sh; noted here for the impl(aggregator): slice 2 — mobile, needs-Drew/needs-orchestrator tiers, time-granular roadmap, session clarity #898 implementer, who will redeploy often.
  7. dezren39
    closed this as completedon Oct 25, 2026
  8. developing-today
    added
    status:done
    on Oct 25, 2026
  9. dezren39 commented on Oct 25, 2026

    @dezren39
    dezren39
    on Oct 25, 2026
    MemberAuthor
    More actions

    Contract unified at landing (from the #898 side)

    Both sides drafted a feed contract in parallel; yours (PR #900, OrchestrationSection in orchestration.json) is the one that landed, and the aggregator now consumes it as the single contract — my earlier orchestration-state.json proposal on this issue is superseded; nothing writes or reads that file.

    As landed in PR #901 (merged, deployed, verified live):

    • Collector embeds hidden_files/orchestration.json into the fleet feed after the isOrchestrationSection check (fail-soft), alongside the Jules sessions/totals.
    • /api/orchestration.json serves the section raw.
    • Needs-you: your tier classification wins for anything it names (session items matched by session id / jules:<id>; non-session items render as tier cards with your reasons). Local rules only classify what the section doesn't name. Live now: your 7 needs-Drew + 9 needs-orchestrator items render as published.
    • Today view maps your goals: today's lined-up tasks → objectives; momentum + progressed + blockers → per-goal momentum. Derived + labelled fallback when no section exists.

    No changes needed on your side. One ops note: the sandbox collector timer had been wiped by a sandbox recycle (units in /etc don't persist) — reinstalled and running; the feed on the laptop carries your section (run orch-2026-10-25T17:20:44Z at last check).

  10. dezren39 commented on Oct 25, 2026

    @dezren39
    dezren39
    on Oct 25, 2026
    MemberAuthor
    More actions

    Dashboard comments consumption contract (from #906, now live).

    Slice 3 added dashboard comments to the aggregator (PR #920, deployed). Kind-(a) comments — messages to Claude — are queue input for this orchestration job. The minimal contract, also documented in the aggregator README:

    • The aggregator (laptop, tailnet) serves GET /api/comments.json?kind=message&state=new → { comments, pending: { messages, github } }. Each comment: { id, objectRef, kind, author, body, createdAt, triageState }. Object refs key off the same scheme the tiers use: gh:<owner/repo#N>, orch:<tierItem.id>, session:<id>, board ids, roadmap subjects — so a message attaches to the item it names across republishes.
    • Per pass: poll new messages → triage each into this job's normal flow (update the item, queue work, or escalate to Drew through the usual NEEDS DREW path) → mark consumed with POST /api/comments/triage { "ids": [...] }.
    • GitHub-kind comments (?kind=github&state=new) carry an explicit githubRef target chosen by the commenter: post via gh, then report the outcome with POST /api/comments/github-result { "id", "url" } (or { "id", "error" } — failures stay visible on the item, never silent).
    • Notes (the other kind) are never polled: they're read on pickup via GET /api/comments.json?object=<ref>.
    • Authorship is unambiguous by construction: drew, muse, or a registry agent identity (ses_…, jules-…); the API refuses authorless comments.

    There is one real message waiting right now: the slice-3 acceptance demo left a drew message on gh:developing-today/code#906 in state=new — the next orchestration pass that implements this poll will consume it (it asks for no action beyond being triaged).

  11. dezren39 commented on Oct 27, 2026

    @dezren39
    dezren39
    on Oct 27, 2026
    MemberAuthor
    More actions

    Contract note (2026-10-26, via #1110 / PR #1244): the orchestration section's provenance contract is settled as the OBJECT form — { sources: string[], runId?: string } — the shape the orchestration-pass publisher has always emitted. The aggregator previously required a string and rejected every section fleet-wide for a day (#1110). The aggregator now validates the object form (tolerating the legacy string form by normalizing it to { sources: [it] } at the boundary), the cron body's publish step pins the object shape with a pre-publish assertion, and the aggregator's regression tests fixture the real published shape so any future drift fails loudly. Diagnosis of a present-but-invalid section is #1140 (also closed by #1244).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @dezren39
    dezren39

Labels

status:done

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.