Repository navigation
Closed
Labels
app/pm-stackpm-stack (Pad/Grist) in developing-today/codepm-stack (Pad/Grist) in developing-today/codedesign/quota-planeDesign: quota-plane - all issues of this effort carry itDesign: quota-plane - all issues of this effort carry iteffort/lLarge: multi-day or open-ended; expect staged check-insLarge: multi-day or open-ended; expect staged check-insepic/pm-stackReprioritization program epic (2026-11-12)Reprioritization program epic (2026-11-12)kind/featureNew feature or capability requestNew feature or capability requestpriority/normalOrdinary priority (the default)Ordinary priority (the default)status:donetask/small-fixQueue packet kind: bounded fix with reproduction and targeted testsQueue packet kind: bounded fix with reproduction and targeted tests
Milestone
Description
Implements rung 4 of the browser-dependent quota watchdog (design #6031; core in the sibling watchdog-core issue). Separable from the core: the core detects and repairs; this issue is how a failure the ladder cannot fix becomes work for a browser-enabled agent — and, when only Drew can unblock it, becomes visible to Drew without delay.
Mechanism (per the design)
On escalation for a source, deduplicated by (source, failure class) — one open incident per pair:
- Fleet queue task enqueued (
agent.tasksviafleet queue) with the full context packet, in the fleet's standing packet shape:- outcome wanted: "source
<id>produces a freshlatest.jsonwith real quota windows again" - failure context: class + class history, consecutive failures, the watchdog's persisted
repairLog(every rung tried, with outcomes), producerhistory.jsonltail reference, state-file path, adapter file reference - required capability, named so the claiming lane can actually do it: browser-enabled agent; laptop Helium via CDP (:19222); adapter origins only
- acceptance check: a fresh producer document lands and the watchdog auto-closes the incident (the fixer does not close anything by hand)
- stop conditions: a human-only challenge (2FA / verify-it's-you / passkey) → stop, mark human-blocked, do not work around it; anything outside the adapter's origin allowlist → stop and report on the incident issue
- outcome wanted: "source
- GitHub incident issue opened in the repo that owns the adapter (Mistral: developing-today-forks/openchamber), cross-linked to design(pm-stack): browser-dependent quota watchdog — CDP scrape producers that self-repair, escalate to a browser-enabled agent #6031, labeled as a watchdog incident. This is the durable record and the fixing agent's reporting surface (FILE THE ISSUE discipline) — the queue task is the trigger, the issue is the record.
- Auto-close on recovery: the watchdog watches for the next producer success; on success it comments the resolution on the incident issue, closes it, and marks the queue task done. No human bookkeeping for recovery.
- Human-blocked surfacing: incidents whose blocker is a human-only step carry the flag/label the orchestration pass and stewardship sweep already use for NEEDS DREW items, and they surface immediately (not at the 24 h threshold) — a 2FA prompt is a 30-second Drew unblock, and the 2026-10-25 lesson (a sign-in wait sat unreported ~30 min) is the failure this prevents. Non-human escalations surface to Drew only if still unresolved 24 h after escalation (design open question 1 in design(pm-stack): browser-dependent quota watchdog — CDP scrape producers that self-repair, escalate to a browser-enabled agent #6031; threshold lives in one named constant).
Tradeoffs recorded in the design (why not the alternatives)
- Issue-only escalation: durable but waits for a sweep — too slow as the sole trigger.
- A dedicated cron spawning a browser agent on a flag file: guaranteed attention, but a standing job burning quota to watch an almost-always-empty inbox — rejected as primary (efficiency rule); revisit only if queue claim latency for browser-class tasks proves bad in practice, and say so on this issue if that evidence appears.
Acceptance criteria
- Escalating a fixture incident creates exactly one queue task and one incident issue; a second escalation for the same (source, class) while the incident is open creates neither (dedup demonstrated).
- The queue task packet contains the full context listed above — a browser-enabled agent can start from the packet alone.
- A subsequent producer success auto-comments + auto-closes the incident issue and completes the queue task, with the watchdog's state
incidentcleared. - A human-blocked fixture is flagged for NEEDS DREW surfacing in the same tick it is marked, with the reason stated in one line.
- An escalation unresolved at the threshold (24 h default) earns its NEEDS DREW line via the normal sweep path; before the threshold, Drew hears nothing (quiet-while-repairing rule).
Related: #6031 (design), #1260 (escalation split — Drew vs NEEDS ORCHESTRATOR), #2155 (orchestration residue in stewardship).
Metadata
Metadata
Assignees
Labels
app/pm-stackpm-stack (Pad/Grist) in developing-today/codepm-stack (Pad/Grist) in developing-today/codedesign/quota-planeDesign: quota-plane - all issues of this effort carry itDesign: quota-plane - all issues of this effort carry iteffort/lLarge: multi-day or open-ended; expect staged check-insLarge: multi-day or open-ended; expect staged check-insepic/pm-stackReprioritization program epic (2026-11-12)Reprioritization program epic (2026-11-12)kind/featureNew feature or capability requestNew feature or capability requestpriority/normalOrdinary priority (the default)Ordinary priority (the default)status:donetask/small-fixQueue packet kind: bounded fix with reproduction and targeted testsQueue packet kind: bounded fix with reproduction and targeted tests
Activity
developing-today commentedon Nov 5, 2026
CODE-1698
dezren39 commentedon Nov 5, 2026
Addendum (design doc updated): for the NEEDS DREW surfacing mechanics — non-human escalations reach the orchestrator through the aggregator's existing #1148 watchdog tier items (
watchdog:<input>, derived from input diagnoses) once the core (#6032) exposes the source state as a diagnosis; human-blocked promotion to Drew happens via the orchestrator's review of that item. The 24 h threshold and the queue-task + incident-issue mechanism are unchanged.dezren39 commentedon Nov 5, 2026
🤖 Agent note · done
Triage — task 10399, issue #6033
Verified fresh: issue #6033 OPEN, labels include
kind/feature,app/pm-stack,status/needs-triage— no hard-stop labels. Design issue #6031 is OPEN, so the design this issue says it implements ("per the design", rung 4) is not yet a closed/recorded decision; its open question 1 (24h surfacing threshold) is explicitly referenced by issue #6033 as still in the design.Routing: implementation is well-scoped once the design + the sibling watchdog-core land — acceptance is fixture-testable (dedup by (source, failure class) creating exactly one task + one incident issue, packet completeness, auto-close on producer success, human-blocked immediate surfacing, 24h threshold in one named constant). Sequence: issue #6031 design recorded → watchdog-core sibling → this escalation rung. Do not implement ahead of the core: this rung consumes the core's
repairLog/ incident state, which do not exist yet. No small_fix enqueued; issue #6033 stays OPEN, ready to route as an implementation task after the core.Outcome for task 10399: triaged.
119 remaining items
dezren39 commentedon Nov 17, 2026
Agent note — lane any-l · task 20118 · state: claimed / in-progress
Picked up task 20118 (rung-4 escalation wiring remainder for #6033). Lane assignment: direct — this session does the work.
Revalidated fresh this claim:
held,user/owned,do-not-merge,do-not-auto-editall absent).4b7965a3061cc9a628a01177890217babc7e89d1);pm-quota-watchdog.timeris active on the laptop (15-min cadence) runningpm-stack/exporters/src/watchdog.ts. So no dep-block — the live wiring proceeds in this claim, per the packet.pm-stack/exporters/src/watchdog-escalation.ts) is MERGED; the module is currently referenced only by itself andwatchdog-state.ts— the deployed core does not invoke it yet. That invocation + the fixture acceptance is exactly this task.Work area: laptop worktree
~/git/fleet/queue-20118-6033, branchqueue/20118-6033-rung4-wiringfrom origin/main557dd4fb54.Next: read the core's escalation rung and the escalation module's entry points, wire the invocation, add fixture acceptance tests (dedup per (source, failure class); producer success auto-closes; human-blocked surfaces NEEDS DREW immediately).
fix(pm-stack): watchdog recovery resolves the unclaimed escalation ta…
Merge pull request #11268 from developing-today/queue/20118-6033-rung…
dezren39 commentedon Nov 17, 2026
Agent note — lane any-l · task 20118 · state: done (fixed_merged)
The rung-4 live path is wired, deployed, and demonstrated end-to-end. Closing #6033.
What was actually missing. The #6032 core (PR #11243) already invoked the escalation module — but its production
enqueueTaskbuilt a packet the fleet queue validator rejects on 13 fields (nopayload.repo/problem/evidence/acceptance/tests/context_refs/scope/risk/timebox/dedupe, no payload identity, and a dedupe key matching no design pattern; proven withfleet queue validatebefore the fix). Since enqueue ran first, a live escalation would have created neither the queue task nor the incident issue.Fix — PR #11268 (merged,
6fe4d6dc7e25b5a46b755917a96b35caba2c3448), deployed to~/pm-stack/exporters/(verified identical to origin/main; timer active):small_fixpacket's fix-family dedupe key must name an existing issue — andapplyEscalationActionsstamps the confirmed issue number into the enqueue packet.buildQueueTaskWrappertranslates the escalation packet into the validated repo-task/v1 envelope, with the full escalation context inpayload.escalation_packet. The generated wrapper passes the real validator (packet valid (repo-task/v1)).completerequires holding a claim the watchdog never takes, so an untouched (never-claimed) escalation task is now cancelled with the recovery reason; a task with an owner is left to them.Acceptance, demonstrated live (production effectors, fixture adapter, 2026-11-17):
repo-health:v1:fix:developing-today/code:issue:<n>). A second failing tick created neither (refs unchanged).Tests: exporters suite 39 pass / 0 fail. Codex review produced no findings (its runs failed on Codex usage limits; disposition recorded on PR #11268).