René's URL Explorer Experiment


Title: opencode-claimant(claimant.py): launch_step ignores its mode argument — a shadow fire creates and binds a session if discovery ever returns a candidate · Issue #7366 · developing-today/code · GitHub

Open Graph Title: opencode-claimant(claimant.py): launch_step ignores its mode argument — a shadow fire creates and binds a session if discovery ever returns a candidate · Issue #7366 · developing-today/code

X Title: opencode-claimant(claimant.py): launch_step ignores its mode argument — a shadow fire creates and binds a session if discovery ever returns a candidate · Issue #7366 · developing-today/code

Description: Summary pm-stack/opencode-claimant/claimant.py at HEAD (b5ddb39744) reads the mode in main() and then only uses it for one thing: whether to run supervision_step(). It is never consulted before a launch. # claimant.py:512-550 mode = read...

Open Graph Description: Summary pm-stack/opencode-claimant/claimant.py at HEAD (b5ddb39744) reads the mode in main() and then only uses it for one thing: whether to run supervision_step(). It is never consulted before a l...

X Description: Summary pm-stack/opencode-claimant/claimant.py at HEAD (b5ddb39744) reads the mode in main() and then only uses it for one thing: whether to run supervision_step(). It is never consulted before a l...

Opengraph URL: https://github.com/developing-today/code/issues/7366

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.4


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"opencode-claimant(claimant.py): launch_step ignores its mode argument — a shadow fire creates and binds a session if discovery ever returns a candidate","articleBody":"## Summary\n\n`pm-stack/opencode-claimant/claimant.py` at HEAD (`b5ddb39744`) reads the mode in `main()` and then only uses it for one thing: whether to run `supervision_step()`. It is **never consulted before a launch**.\n\n```python\n# claimant.py:512-550\nmode = read_mode()\nif mode == \"live\":\n    supervision_step(mode)\n...\nlaunched, skips = launch_step(mode, cap_room)   # mode is passed and ignored\n```\n\n`launch_step(mode, cap_room)` takes `mode` as a parameter and never reads it. The body goes straight from the cap check to `POST /api/session` and `repo-queue bind`.\n\nThe task packet (`pm-stack/opencode-claimant/prompt.md`, §MODE) is explicit: \"In shadow mode ... Never claim, bind, launch, or mutate a task in shadow mode.\" The living fire instruction is equally explicit that shadow is the default when `~/.local/state/opencode-claimant/mode` is absent.\n\n## Reproduction (verified 2026-11-08, laptop)\n\nPatched `read_mode` → `\"shadow\"`, `run_poll` → one valid `handed_off` candidate, and stubbed `subprocess.run` to record argv:\n\n```\n$ python3 \u003cstub harness invoking claimant.main()>\nOpenCode claimant starting in shadow mode\nRunning gate step...\nRunning cap step...\nCap room: 36 sessions available\nRunning launch step...\nFire complete. Launched 1 sessions.\nsubprocess calls:\n  curl -s -m 10 -X POST ... -d {\"location\": {\"directory\": \"/home/user/git/code\"}, ...} http://127.0.0.1:13420/api/session\n  repo-queue bind 999999 --worker opencode-claimant --session-id ses_FAKE --launched-by opencode-claimant\n```\n\n`main()` returns 0 having created and bound a session **while `mode == \"shadow\"`**.\n\n## Why it is invisible today\n\nShadow is currently safe by accident, not by design: `gate_step()` → `run_poll()` → `poll.py` → `repo-queue list`, which prints a human table (#7325), so every queue reads empty and the fire exits before `launch_step`. The moment #7325 lands — or any caller passes a candidate list, or the mode file is written `live` and later reverted while a fire is in flight — the guard that should have stopped it does not exist.\n\nThis is the same class as the shadow-vs-live boundary the packet relies on for the parallel-run gate: the gate is *supposed* to be \"mode file says shadow ⇒ nothing is mutated\", and that property is presently unenforced.\n\n## Suggested acceptance\n\n1. `launch_step` refuses to create/bind when `mode != \"live\"` (early return `([], [{\"reason\": \"shadow_mode\"}])`), and `main()` does not call it in shadow mode at all — belt and braces, since the packet describes shadow as read-only by construction.\n2. `supervision_step`'s recovery path is likewise unreachable in shadow mode (it already returns early — pin it with a test that asserts no `subprocess.run` argv contains `bind` or `DELETE`).\n3. Test that fails today: with `read_mode` → `\"shadow\"`, one candidate, and a recording subprocess stub, assert **zero** calls whose argv contains `bind`, `DELETE`, or a `POST` to `/api/session`.\n4. Test the inverse: `read_mode` → `\"live\"` still launches, so the gate is not a silent kill switch.\n\nFound by the laptop opencode-lane claimant fire 2026-11-08 (shadow), while working #3026 slice 1. Related: #7356 (launch_step's other missing steps), #7325 (the gate that currently masks this), #6257.\n\n## Acceptance criteria\n\n- In shadow mode, `launch_step` performs no session create, no `repo-queue bind`, and no other mutation — the mode argument is consulted before any launch action, per the packet's §MODE rule ('Never claim, bind, launch, or mutate a task in shadow mode').\n- In live mode, launches proceed as today.\n- The filer's stub harness (patched `read_mode` → shadow, one valid `handed_off` candidate, recorded argv) shows zero mutating subprocess calls after the fix.\n","author":{"url":"https://github.com/dezren39","@type":"Person","name":"dezren39"},"datePublished":"2026-11-08T06:49:23Z","url":"https://github.com/developing-today/code/issues/7366"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:318490f2-512c-bb19-70ea-9fa9f7fe97e5
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idC166:345F05:AD3B12:E71FFA:6B064246
html-safe-noncea96426bdda9f538666a88225af462000310eafe8d05ffe2a7a514cecbe05ce88
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMTY2OjM0NUYwNTpBRDNCMTI6RTcxRkZBOjZCMDY0MjQ2IiwidmlzaXRvcl9pZCI6IjE1MDE2NDc3NDY3NTM3NzQxNTAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac1798cd68d25e3a18f80e57d296b5fbca0c170cec258ec81975384aa43bc5e1d8
hovercard-subject-tagissue:6268472514
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/developing-today/code/7366/issue_layout
twitter:imagehttps://opengraph.githubassets.com/cb8c250debd14227695a0fc43534b02e4389b15a3adf2721f11ef44e3a18300b/developing-today/code/issues/7366
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/cb8c250debd14227695a0fc43534b02e4389b15a3adf2721f11ef44e3a18300b/developing-today/code/issues/7366
og:image:altSummary pm-stack/opencode-claimant/claimant.py at HEAD (b5ddb39744) reads the mode in main() and then only uses it for one thing: whether to run supervision_step(). It is never consulted before a l...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamedezren39
hostnamegithub.com
expected-hostnamegithub.com
None1bff4f6bfaa96dc9c42cacf315424c24ebb548b06142ced5e3aaccb2a42dd652
turbo-cache-controlno-preview
go-importgithub.com/developing-today/code git https://github.com/developing-today/code.git
octolytics-dimension-user_id26439447
octolytics-dimension-user_logindeveloping-today
octolytics-dimension-repository_id627308783
octolytics-dimension-repository_nwodeveloping-today/code
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id627308783
octolytics-dimension-repository_network_root_nwodeveloping-today/code
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releaseac613d3698d3d8565651455086e1f74da07bf277
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/developing-today/code/issues/7366#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdeveloping-today%2Fcode%2Fissues%2F7366
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdeveloping-today%2Fcode%2Fissues%2F7366
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=developing-today%2Fcode
Reloadhttps://github.com/developing-today/code/issues/7366
Reloadhttps://github.com/developing-today/code/issues/7366
Reloadhttps://github.com/developing-today/code/issues/7366
developing-todayhttps://github.com/developing-today
codehttps://github.com/developing-today/code
Codehttps://github.com/developing-today/code
Issues1.1k (1.1k)https://github.com/developing-today/code/issues
Pull requests171 (171)https://github.com/developing-today/code/pulls
Discussionshttps://github.com/developing-today/code/discussions
Actionshttps://github.com/developing-today/code/actions
Projectshttps://github.com/developing-today/code/projects
Wikihttps://github.com/developing-today/code/wiki
Security and qualityhttps://github.com/developing-today/code/security
Insightshttps://github.com/developing-today/code/insights
https://github.com/developing-today/code
New issuehttps://github.com/login?return_to=https://github.com/developing-today/code/issues/7366
New issuehttps://github.com/login?return_to=https://github.com/developing-today/code/issues/7366
#7834https://github.com/developing-today/code/pull/7834
opencode-claimant(claimant.py): launch_step ignores its mode argument — a shadow fire creates and binds a session if discovery ever returns a candidatehttps://github.com/developing-today/code/issues/7366#top
#7834https://github.com/developing-today/code/pull/7834
effort/shttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22effort%2Fs%22
kind/bughttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22kind%2Fbug%22
meta/enrichedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22meta%2Fenriched%22
priority/highhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22priority%2Fhigh%22
source/design-architecthttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22source%2Fdesign-architect%22
status:donehttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22status%3Adone%22
task/triagehttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22task%2Ftriage%22
https://github.com/dezren39
dezren39https://github.com/dezren39
on Nov 8, 2026https://github.com/developing-today/code/issues/7366#issue-6268472514
#7325https://github.com/developing-today/code/issues/7325
#7325https://github.com/developing-today/code/issues/7325
#3026https://github.com/developing-today/code/issues/3026
#7356https://github.com/developing-today/code/issues/7356
#7325https://github.com/developing-today/code/issues/7325
#6257https://github.com/developing-today/code/issues/6257
dezren39https://github.com/dezren39
task/triagehttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22task%2Ftriage%22
on Nov 8, 2026https://github.com/developing-today/code/issues/7366#event-35480179892
https://github.com/apps/developing-today
developing-todayhttps://github.com/apps/developing-today
on Nov 8, 2026https://github.com/developing-today/code/issues/7366#issuecomment-6718410798
developing.todayhttps://kaneo.security.cab
CODE-2268https://kaneo.security.cab/dashboard/workspace/6oQgIkST0YGrCcxrnhbHPOUCfgdD3cqE/project/pfcq432h349r20up18gttfv4/task/slwezdoi58ihm0gkbnx3dv59
dezren39https://github.com/dezren39
queue/queuedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22queue%2Fqueued%22
on Nov 8, 2026https://github.com/developing-today/code/issues/7366#event-35492880043
https://github.com/dezren39
dezren39https://github.com/dezren39
on Nov 8, 2026https://github.com/developing-today/code/issues/7366#issuecomment-6722028387
pkgs/id crate split — step 6: extract id-directory, then id-web #4409https://github.com/developing-today/code/issues/4409
54f6beehttps://github.com/developing-today/code/commit/54f6bee9df17062ba61ba55ec47a92fcfcc76b6e
opencode-claimant(poll): repo-queue list emits a table, not JSON — every queue read fails and candidate discovery is blind fleet-wide #7325https://github.com/developing-today/code/issues/7325
opencode-claimant: repo-queue list emits a table, claimant poll/claimant parse JSON — candidate discovery silently no-ops #7375https://github.com/developing-today/code/issues/7375
opencode-claimant(claimant.py): every OpenCode server call is unauthenticated — session create always 401s, and the delete gate trusts curl's exit status #7367https://github.com/developing-today/code/issues/7367
opencode-claimant(claimant.py): launch_step binds a session and never sends the prompt — every live launch creates a zero-message bound session #7356https://github.com/developing-today/code/issues/7356
dezren39https://github.com/dezren39
on Nov 8, 2026https://github.com/developing-today/code/issues/7366#event-35505139608
Act only on a verified read — one seam contract for the opencode-claimant #7770https://github.com/developing-today/code/issues/7770
dezren39https://github.com/dezren39
source/design-architecthttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22source%2Fdesign-architect%22
on Nov 8, 2026https://github.com/developing-today/code/issues/7366#event-35505173157
https://github.com/dezren39
dezren39https://github.com/dezren39
on Nov 8, 2026https://github.com/developing-today/code/issues/7366#issuecomment-6724966893
#7770https://github.com/developing-today/code/issues/7770
Act only on a verified read — one seam contract for the opencode-claimant #7770https://github.com/developing-today/code/issues/7770
Act only on a verified read — one seam contract for the opencode-claimant #7770https://github.com/developing-today/code/issues/7770
opencode-claimant(claimant.py): launch_step binds a session and never sends the prompt — every live launch creates a zero-message bound session #7356https://github.com/developing-today/code/issues/7356
opencode-claimant(claimant.py): gate-exit logs a hardcoded cap_room 0 — idle fires read as cap-saturated #7732https://github.com/developing-today/code/issues/7732
Act only on a verified read — one seam contract for the opencode-claimant #7770https://github.com/developing-today/code/issues/7770
Act only on a verified read — one seam contract for the opencode-claimant #7770https://github.com/developing-today/code/issues/7770
dezren39https://github.com/dezren39
kind/bughttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22kind%2Fbug%22
priority/highhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22priority%2Fhigh%22
effort/shttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22effort%2Fs%22
status/needs-triagehttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22status%2Fneeds-triage%22
meta/enrichedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22meta%2Fenriched%22
on Nov 8, 2026https://github.com/developing-today/code/issues/7366#event-35506889579
https://github.com/dezren39
dezren39https://github.com/dezren39
on Nov 8, 2026https://github.com/developing-today/code/issues/7366#issuecomment-6725389917
#7356https://github.com/developing-today/code/issues/7356
#7367https://github.com/developing-today/code/issues/7367
#7325https://github.com/developing-today/code/issues/7325
#7325https://github.com/developing-today/code/issues/7325
#7375https://github.com/developing-today/code/issues/7375
developing-todayhttps://github.com/apps/developing-today
completedhttps://github.com/developing-today/code/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#7834https://github.com/developing-today/code/pull/7834
on Nov 8, 2026https://github.com/developing-today/code/issues/7366#event-35518147388
developing-todayhttps://github.com/apps/developing-today
status:donehttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22status%3Adone%22
on Nov 8, 2026https://github.com/developing-today/code/issues/7366#event-35518492182
https://github.com/dezren39
dezren39https://github.com/dezren39
on Nov 8, 2026https://github.com/developing-today/code/issues/7366#issuecomment-6728836684
opencode-claimant(claimant.py): launch_step ignores its mode argument — a shadow fire creates and binds a session if discovery ever returns a candidate #7366https://github.com/developing-today/code/issues/7366
opencode-claimant(claimant.py): launch_step ignores its mode argument — a shadow fire creates and binds a session if discovery ever returns a candidate #7366https://github.com/developing-today/code/issues/7366
fix(opencode-claimant): make handed-off tasks actually bind and execute (task 13488) #7834https://github.com/developing-today/code/pull/7834
dezren39https://github.com/dezren39
status/needs-triagehttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22status%2Fneeds-triage%22
queue/queuedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22queue%2Fqueued%22
on Nov 8, 2026https://github.com/developing-today/code/issues/7366#event-35520414451
https://github.com/dezren39
dezren39https://github.com/dezren39
on Nov 11, 2026https://github.com/developing-today/code/issues/7366#issuecomment-6783209936
#7770https://github.com/developing-today/code/issues/7770
#7772https://github.com/developing-today/code/issues/7772
claimant: #7770 Phase 4 closing audit — seam contract, fire-log unknowns, stub-shape fix (#7772) #8367https://github.com/developing-today/code/pull/8367
opencode-claimant(claimant.py): launch_step binds a session and never sends the prompt — every live launch creates a zero-message bound session #7356https://github.com/developing-today/code/issues/7356
claimant: #7770 Phase 4 closing audit — seam contract, fire-log unknowns, stub-shape fix (#7772) #8367https://github.com/developing-today/code/pull/8367
opencode-claimant(claimant.py): gate-exit logs a hardcoded cap_room 0 — idle fires read as cap-saturated #7732https://github.com/developing-today/code/issues/7732
Sign up for freehttps://github.com/signup?return_to=https://github.com/developing-today/code/issues/7366
Sign in to commenthttps://github.com/login?return_to=https://github.com/developing-today/code/issues/7366
effort/shttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22effort%2Fs%22
kind/bughttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22kind%2Fbug%22
meta/enrichedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22meta%2Fenriched%22
priority/highhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22priority%2Fhigh%22
source/design-architecthttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22source%2Fdesign-architect%22
status:donehttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22status%3Adone%22
task/triagehttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22task%2Ftriage%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.