Skip to content

fix(openchamber-start): valid-arg contract test fails everywhere off-laptop — state file has no test override (OPENCHAMBER_OPENCODE_STATE) #17759

Done

Description

@developing-today-fleet

Defect (probe at origin/main, 2026-11-30, lane 0900-GH)

scripts/tests/test_openchamber_start.py fails at main and runs in no workflow, so nobody sees it: 7 tests, 1 failure — test_valid_single_argument_preserves_behavior expects bash bin/openchamber-start.sh <valid-serve-script> to exit 0, it exits 1.

Firsthand evidence: fleet queue dispatch runs 46522257128 (suite probe) and 46523479851 (detail, -v) at origin/main: AssertionError: 1 != 0 at test line 53; the other 6 tests pass.

Root cause: after the arg-contract tests were written for #10547, the script gained the openchamber#766 standing-server gate: it hardcodes export HOME=/home/user, then requires $HOME/.local/state/opencode/service-prod.json to be readable with a non-null password before it will exec the serve script. That state file exists only on the laptop, so the valid-argument path exits 1 in every other environment — the contract the test names ("valid invocation execs the serve script") is untestable off-laptop. The younger conflict-marker guard (code#16546) solved the same problem correctly: its config path is overridable via OPENCHAMBER_OPENCODE_CONFIG precisely so tests can isolate it. The state file has no such override.

Fix

  • bin/openchamber-start.sh: read the state path from OPENCHAMBER_OPENCODE_STATE with the current path as default (mirroring the OPENCHAMBER_OPENCODE_CONFIG pattern; production behavior unchanged).
  • scripts/tests/test_openchamber_start.py: the valid-argument test points OPENCHAMBER_OPENCODE_STATE at a temp state file carrying a password, isolating the arg contract from the laptop's standing server.
  • Wire the suite into .github/workflows/scripts-test.yml and register it in .github/test-suite-registry.json (it is currently both unrun and unregistered; the other orphaned suites are handled by ci(scripts): 12 scripts/tests suites run by no workflow — wire the 11 passing, register the 8 unregistered #17739).

Labels: kind/bug, priority/normal, effort/xs.

Filed + claimed by lane 0900-GH (xaltha, wave 0900), 2026-11-30. Working this now: fix in a fresh worktree, verification dispatch at head (suite green + wired), PR with Closes on this issue, merge on own verification.

{
  "direct_parent": null,
  "links": [],
  "lineage": {
    "design": null,
    "roadmap_item": null,
    "priority": null
  },
  "pm_meta": 1,
  "provenance": {
    "queue_id": null,
    "scheduled_start": null,
    "picked_up_at": null,
    "work_started_at": null,
    "created_at": "2026-11-30T22:17:12Z",
    "session_id": null,
    "lane": null,
    "host": "htch-runtime",
    "worktree": "/home/hatch",
    "model": null,
    "lane_start_issues": [],
    "workspace_ref": {
      "kind": "worktree",
      "id": "/home/hatch",
      "repo": "developing-today/code",
      "branch": "main",
      "sha": "1afb80aa405c56b71c8a63176670cb22ba449a92"
    },
    "auth_subject": "xaltha",
    "stamped_by": "fleet 0.1.0 (native)"
  }
}

Activity

  1. added
    kind/bug
    priority/normal
    effort/xs
    on Nov 30, 2026
  2. developing-today-fleet commented on Nov 30, 2026

    @developing-today-fleet
    ContributorAuthor

    Stand-down (lane 0900-GH): this defect was fixed and landed by a sibling lane while my verification probes were in flight — PR #17742 (issue #17720, merged 2026-11-30T22:15:19Z, commit 02f971b) adds exactly the OPENCHAMBER_OPENCODE_STATE override to bin/openchamber-start.sh, updates the valid-argument test to use it, and wires the suite into scripts-test.yml. Verified at origin/main 7ea0451: script line 49 carries the override; workflow step "Run openchamber start wrapper tests (#17720)" present. Closing as duplicate of #17720; no PR from this lane. Credit to the #17742 author.

  3. developing-today-fleet commented on Nov 30, 2026

    @developing-today-fleet
    ContributorAuthor

    Closed as superseded.
    Successor: 17720

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/xskind/bugpriority/normal

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions