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 — claimant mode file: guard the silent-deletion single point of failure · Issue #10332 · developing-today/code

claimant mode file: guard the silent-deletion single point of failure #10332

New issue
Copy link
New issue
Copy link
Done
Done
claimant mode file: guard the silent-deletion single point of failure#10332
Copy link
Labels
status:done

Description

@dezren39
dezren39
opened on Nov 14, 2026
Issue body actions

Problem (five words: silent mode deletion shadows claimant)

The opencode claimant's mode file (~/.local/state/opencode-claimant/mode on the laptop) is an unguarded single point of failure: when the file is missing, the claimant silently defaults to shadow mode (discovery only, no launches) with no signal. This has now bitten twice:

  • 2026-11-08: mode file missing, claimant never launched anything until set to live by hand.
  • 2026-11-14: fires.jsonl shows reads flipping live -> shadow at 14:46Z; the file was deleted ~5.5h after working live fires (deleter unattributed from available logs). This blocked the epic: ID/Atlas extensible primitives, federation, namespaces — major design iteration (2026-11-12 directive) #9106 summit dispatch (mode_not_live, task 15354) until restored under Drew's authorization.

Acceptance

  • Mode file deletion or unreadability produces a VISIBLE alert within one surfacing cycle (wire into the Silent-failure surfacing: claimant mode + pm-git-sync health must be visible #10141 silent-failure surfacing, now live) instead of a silent shadow fallback.
  • Claimant startup/heartbeat records the mode it read and where from, so a flip is attributable in the log after the fact.
  • Consider making the mode part of managed config (repo/systemd state) rather than a bare file any process can delete.
  • A missing file must never again present as 'summits just aren't launching' for hours.

Refs: #9106, #10141, #9103. Filed from the 2026-11-14 summit-pool investigation (Track B).

Activity

  1. developing-today commented on Nov 14, 2026

    @developing-today
    developing-todayBot
    on Nov 14, 2026 – with developing.today
    Contributor
    More actions

    CODE-3724

  2. github-actions
    assigned
    dezren39
    on Nov 14, 2026
  3. dezren39 commented on Nov 16, 2026

    @dezren39
    dezren39
    on Nov 16, 2026
    MemberAuthor
    More actions

    Third occurrence, 2026-11-15/16 (opencode-claimant scheduled fire, laptop).

    Evidence from ~/.local/state/opencode-claimant/fires.jsonl and the fire captures:

    • claimant-fire-exec-20261115T233030Z.out: starting in live mode.
    • fires.jsonl entries 2026-11-16T00:16:21Z / 00:16:25Z / 00:16:32Z: mode shadow -> live -> shadow within 11 s. These are off the 5-minute fire grid, so manual or test-harness invocations, not scheduler fires.
    • Every fire after 00:16:32Z read shadow; the scheduled fires at 04:30:42Z and 04:35:22Z read a MISSING file.
    • claimant-fire-exec-20261116T043039Z.err is the first capture carrying the Silent-failure surfacing: claimant mode + pm-git-sync health must be visible #10141 loud warning: mode file /home/user/.local/state/opencode-claimant/mode is MISSING - defaulting to shadow; dispatch will return mode_not_live and stall.

    So the deletion window is bounded: file present and live at 2026-11-16T00:15:27Z, three flips ending shadow by 00:16:32Z, gone by 04:30:42Z. The flips match the real-install mutation pattern in #8742 (tests can switch the real installation's mode); a harness that writes the mode file and removes it on teardown would produce exactly this sequence. No test in pm-stack/opencode-claimant/ references MODE_FILE or unlink, so attribution is still open from these logs alone.

    Impact: the opencode lane has been shadow-only for ~4 h. No candidates existed in any of the four queues during those fires (cap_room 32 of 36, 4 active roots), so nothing was lost this time; the next real candidate would have stalled exactly as in the #9106 case.

    The claimant did NOT recreate the file: restoring mode is an operator decision, and the fire recorded the state plus the warning instead. That covers the "record the mode it read and where from" acceptance item; the alerting half still depends on wiring #10141's warning into the health surface.

  4. dezren39 commented on Nov 16, 2026

    @dezren39
    dezren39
    on Nov 16, 2026 – with ChatGPT Codex Connector
    MemberAuthor
    More actions

    Read-only live verification, Nov 16 ~05:00 UTC: mode path still absent; recent claimant fires report shadow. The host-health collector completed successfully at 04:55:02 UTC, snapshot generatedAt=2026-11-16T04:55:02.830612+00:00 and claimantMode.state=missing. The currently running packaged aggregator’s /api/attention.json returns item watchdog:claimant-mode with the explicit missing-file/shadow/dispatch-stall reason. This verifies the alert on the actual active service, not just HTTP 200 or a source blob. The tracked #8742 shell harness really does write shadow, write live, run the claimant, then rm -f the literal live mode path, but no event yet proves it caused this disappearance. Keep #8742 isolation and incident attribution separate; no mode restoration or service changes in this check.

  5. dezren39 commented on Nov 16, 2026

    @dezren39
    dezren39
    on Nov 16, 2026 – with ChatGPT Codex Connector
    MemberAuthor
    More actions

    Drew authorized restoration Nov 16. Rechecked missing state and created the mode file atomically without overwriting any operator update; regular fires at 05:21:26Z and 05:22:07Z reported live with zero candidates and zero launches (no forced run). The 05:20 host-health snapshot was live and the missing-mode attention card cleared. #10612 merged the offline replacements for both dangerous Slice 1 scripts and Make test targets after 113 unit and four safety checks; it prevents that deletion path on updated checkouts, not proof it caused this incident. Keep incident attribution and any managed-mode hardening separate; no restart or silent auto-restore was added.

  6. dezren39 commented on Nov 17, 2026

    @dezren39
    dezren39
    on Nov 17, 2026
    MemberAuthor
    More actions

    Triage verdict (repo-queue task 19233, openchamber scheduled lane, 2026-11-17 UTC)

    Fresh state: issue is OPEN, no labels. Checked the comments through 2026-11-16 05:30Z.

    Status of the four acceptance items:

    1. Visible alert on missing/unreadable mode file: done in part. Comment 2026-11-16 04:58Z verifies the watchdog:claimant-mode attention item on the live aggregator. Remaining: the alert is only proven on the live host, not as a regression test.
    2. Record mode read and source at startup/heartbeat: partly done. The fire capture records the mode state (2026-11-16 04:37Z). Not yet confirmed that every startup logs the path it read.
    3. Managed config instead of a bare file: open. No decision recorded. This is the hardening item that needs a design choice.
    4. A missing file must not look like "summits just aren't launching": covered by item 1 on the live host.

    Other facts from the thread: mode restored 2026-11-16 05:21Z under Drew's authorization. #10612 blocks the test-harness rm -f on the real mode path, but attribution of the 2026-11-16 deletion is still open.

    Verdict: keep open. Not a closure candidate. The remaining work is items 2 and 3 plus attribution, and it belongs to the claimant owner (#9106/#10141 track). I did not route a new packet: item 3 needs a design decision first, and a worker packet now would duplicate work already in progress. Recommend the owner decide on managed config and add a regression check for the alert.

  7. dezren39 commented on Nov 18, 2026

    @dezren39
    dezren39
    on Nov 18, 2026
    MemberAuthor
    More actions

    Triage — queue task 20565, openchamber scheduled lane (oc-code-03), 2026-11-18.

    Fresh GitHub state (08:52 UTC): #10332 OPEN, no labels, no native blockers. The 2026-11-17 verdict still applies: items 1 and 4 are covered on the live host. Item 2 (startup logging of the mode path) and item 3 (managed config, which needs a design decision) remain open, with attribution of the 2026-11-16 deletion.

    Verdict: triaged, keep open with the claimant owner (#9106/#10141 track). No follow-on packet enqueued, because item 3 needs a design choice before any worker packet makes sense.

  8. developing-today
    added
    status:in-review
    on Nov 18, 2026
  9. dezren39
    added a commit that references this issue on Nov 18, 2026

    Merge pull request #11794 from developing-today/fix/claimant-mode-pro…

    21132cb
  10. dezren39
    removed their assignment
    on Nov 20, 2026
  11. dezren39 commented on Nov 22, 2026

    @dezren39
    dezren39
    on Nov 22, 2026 – with Claude
    MemberAuthor
    More actions

    Merged work, still open. Every pull request that references this issue has merged (#10612, #11794) and none is open, but the issue kept status:in-review. Tasks that name it as a blocker have been waiting on it.

    status:in-review is removed. Whoever takes this next: run the issue's done check against main. Close the issue if it passes; if not, list what is left here and carry on with it (AGENTS.md, "Finishing work").

    By: Claude, 2026-11-22 flow review.


    Generated by Claude Code

  12. dezren39
    removed
    status:in-review
    on Nov 22, 2026
  13. dezren39 commented on Nov 24, 2026

    @dezren39
    dezren39
    on Nov 24, 2026
    MemberAuthor
    More actions

    🤖 Second-pass verdict (task 22021, lane code-f): NOT resolved — 3 of 4 items done, decision packet routed for the last.

    Fresh revalidation 2026-11-24:

    • claimant mode file: guard the silent-deletion single point of failure #10332 OPEN, no labels, no assignees. Referencing PRs test(claimant): make Slice 1 checks hermetic #10612, feat(claimant): record where each fire's mode came from (#10332) #11794, feat(claimant): record primary-clone branch+commit in every fire log entry (#12813) #13008 all MERGED; none open.
    • Item 1 + 4 DONE: missing-mode alert live (watchdog:claimant-mode attention item); Silent-failure surfacing: claimant mode + pm-git-sync health must be visible #10141 CLOSED.
    • Item 2 DONE since last triage: PR feat(claimant): record where each fire's mode came from (#10332) #11794 merged 2026-11-18 — every fires.jsonl entry + startup line carries mode_source (path, state, file + dir mtimes), with tests.
    • Item 3 OPEN: managed config vs bare file — needs a design decision, unchanged since the 2026-11-17/18 triages.
    • Action: enqueued queue task 22933 (triage-decide, repo-health-code-pilot, priority 70) to record the item-3 decision with a default on this issue — then route implementation or close per the decision. No worker implementation packet: the design choice comes first.
  14. dezren39
    closed this as completedon Nov 24, 2026
  15. developing-today
    added
    status:done
    on Nov 24, 2026
  16. dezren39 commented on Nov 24, 2026

    @dezren39
    dezren39
    on Nov 24, 2026
    MemberAuthor
    More actions

    Item-3 decision — code-g, 2026-11-24 (queue task 23363, triage-decide follow-on of 22933)

    Decision (default applied): deliberate KEEP-BARE-FILE. No managed-config migration.

    Rationale, verified fresh on main 2026-11-24:

    • The failure mode that motivated item 3 (silent live→shadow flip, hours of "summits just are not launching") is already covered by the other three items, all landed: missing-mode alert live (watchdog:claimant-mode, verified on the live host 2026-11-16), mode_source (path, state, file+dir mtimes) in every fires.jsonl entry + startup line via merged PR feat(claimant): record where each fire's mode came from (#10332) #11794, and Silent-failure surfacing: claimant mode + pm-git-sync health must be visible #10141 silent-failure surfacing CLOSED.
    • The bare file (~/.local/state/opencode-claimant/mode) is still the live mechanism; deletion is now VISIBLE within one cycle and ATTRIBUTABLE after the fact — the SPOF is guarded, not merely documented.
    • A managed-config migration (repo/systemd state, migration path, live-service cutover) was explicitly out of scope for this packet and touches live laptop claimant services; its risk/cost exceeds the residual benefit while the alert+attribution hold.
    • Revisit trigger: if a mode-file deletion recurs AND the alert/attribution fails to surface it within one cycle, re-open the managed-config question.

    Done check: decision recorded here; no implementation packet needed; issue already CLOSED as COMPLETED (2026-11-24T11:18Z) with status:done — consistent with this decision.

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

    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.