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 — home-resolution contract: the last three os.homedir() files outside bin/ and pm-stack (unit 3 of #8220) · Issue #14757 · developing-today/code

home-resolution contract: the last three os.homedir() files outside bin/ and pm-stack (unit 3 of #8220) #14757

New issue
Copy link
New issue
Copy link
Done
#14808
Done
home-resolution contract: the last three os.homedir() files outside bin/ and pm-stack (unit 3 of #8220)#14757
#14808
Copy link
Labels
effort/sSmall: expected under 2 hours of workkind/refactorCode restructuring with no behavior changemeta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedpriority/normalOrdinary priority (the default)status:donetask/small-fixQueue packet kind: bounded fix with reproduction and targeted tests

Description

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

Follow-up from the #8220 closing inventory (contract design #5762). Units 1 (pm-stack, #14741, #14746, #14750) and 2 (bin/ and the mcpx plugin, #11205 / #11487) are converted. A fresh git grep "homedir()" over main at 9394e0d finds five executable calls left, in three files that neither unit's inventory listed:

  • home/openclaw/acpx/muse-agent-acp-wrapper.mjs:55, 58, 59: the Meta pool reading (override MUSE_ACP_POOL_FILE), the usage ledger (override MUSE_ACP_LEDGER) and the muse auth file (no override), all resolved at module load. Its muse-agent-acp-wrapper.test.mjs is not run by any workflow today.
  • pkgs/fleet/hosted-worker/cli.ts:40: the caller token file (override FLEET_HOSTED_TOKEN_FILE), resolved at module load.
  • pkgs/queue-transport-alert/worker/deploy.mjs:245: the broker token file read during a deploy (override QTA_BROKER_TOKEN_FILE); the file is optional, so the deploy carries the old secret over when it is absent.

All three fall back to the passwd entry when HOME is unset, which the contract declines.

Acceptance

  • Each site converted to a non-empty-HOME named error for its unit (bin/home-dir.mjs, pm-stack/aggregator/src/home.ts and pm-stack/dispatch/src/home.ts are the existing shapes), resolved only when its override is absent, or dispositioned as conforming with the reason recorded per the design's exception rule.
  • The probe matrix as tests where the unit has a suite run by CI: HOME unset and empty are named errors, a set HOME gives unchanged paths, an override needs no HOME. For the acpx wrapper, either wire its test file into a workflow or record why not.
  • For the optional deploy token in queue-transport-alert, decide whether a missing HOME should fail the deploy or behave like a missing file, and say which in the PR.

Acceptance criteria

  • All five remaining executable os.homedir() calls in the three named files are converted to the home-resolution contract from Home is not optional — one home-resolution contract for the repo's tools #5762 / home-resolution contract: disposition the os.homedir() surface against #5762 #8220.
  • A fresh git grep "homedir()" over main shows no remaining executable calls outside the bin/ and pm-stack units already converted.
  • The documented environment overrides (e.g. MUSE_ACP_POOL_FILE, MUSE_ACP_LEDGER) are honoured by the converted code.

Activity

  1. dezren39
    added
    task/small-fixQueue packet kind: bounded fix with reproduction and targeted tests
    on Nov 25, 2026
  2. developing-today commented on Nov 25, 2026

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

    CODE-5392

  3. dezren39 commented on Nov 25, 2026

    @dezren39
    dezren39
    on Nov 25, 2026
    MemberAuthor
    More actions

    Claim: ITEM-WORK-255 (Archer direct lane) is taking this item. Worktree ~/wt-lane-iw255-14757, branch lane/iw255-14757, off origin/main. Premise check in progress; completion record will follow here.

  4. developing-today-fleet
    added
    kind/refactorCode restructuring with no behavior change
    priority/normalOrdinary priority (the default)
    effort/sSmall: expected under 2 hours of work
    meta/enrichedIntake review done: acceptance criteria, links, and normalized labels added
    on Nov 25, 2026
  5. developing-today-fleet commented on Nov 25, 2026

    @developing-today-fleet
    developing-today-fleetBot
    on Nov 25, 2026 – with developing.today fleet
    Contributor
    More actions

    Intake review

    Related: #8220 (closing inventory), #5762 (contract design), units #14741/#14746/#14750, #11205/#11487

    Notes: Unit 3 of a closing contract migration; the five calls were found by a fresh grep at 9394e0d and are live.

    Risks: Wrapper files run outside the usual test surface; a missed override changes where the agent reads its pool/ledger files.

    Suggested approach: Convert file by file, re-grep to zero, and smoke-test the wrapper's override paths.

    🤖 Agent note · filed

    • Agent: fleet monitor
    • Session / ID: repo-fleet-monitor run 2026-11-25T02:14Z
    • Found via: monitor reconciliation
    • Task: intake enrichment (protocol §5)
    • Expectation: see the Intake review comment on this issue
  6. developing-today
    added
    status:in-review
    on Nov 25, 2026
  7. dezren39
    added a commit that references this issue on Nov 25, 2026

    Merge pull request #14808 from developing-today/lane/iw255-14757

    e736c4e
  8. dezren39
    closed this as completedin #14808on Nov 25, 2026
  9. developing-today
    added
    status:done
    and removed
    status:in-review
    on Nov 25, 2026
  10. dezren39 commented on Nov 25, 2026

    @dezren39
    dezren39
    on Nov 25, 2026
    MemberAuthor
    More actions

    Completion record — ITEM-WORK-255 (Archer direct lane).

    Landed: PR #14808, merged e736c4e; this issue closed by the merge.

    All five call sites converted, each resolved only when its override is absent:

    • home/openclaw/acpx/muse-agent-acp-wrapper.mjs (pool, ledger, auth) now resolves through a new sibling home-dir.mjs (HomeUnsetError / resolveHome / homePath, shaped after bin/home-dir.mjs). home/openclaw/default.nix installs home-dir.mjs beside the deployed wrapper in ~/.openclaw/acpx so the relative import resolves deployed as well as in a checkout.
    • pkgs/fleet/hosted-worker/cli.ts token file now resolves through callerTokenFile in src/cli.ts over a new src/home.ts (HomeUnresolvedError / requireHome, shaped after pm-stack's; env passed explicitly because src/ is platform-neutral in this package).
    • pkgs/queue-transport-alert/worker/deploy.mjs broker token file now resolves through resolveBrokerTokenFile in deploy-lib.mjs.

    Decision on the optional deploy token: a missing HOME fails the deploy. The token file stays optional (absent file = warn + previous version's BROKER_AGENT_TOKEN carries over), but an unset/empty HOME with no QTA_BROKER_TOKEN_FILE override throws the named error before any upload, rather than silently behaving like an absent file and pinning the previous secret. Recorded in the PR body as asked.

    Probe matrix as tests: acpx +4 (unset/empty named errors at startup; overrides need no HOME — with both set, startup fails only on the no-override auth file; set HOME gives the unchanged default ledger path through a full session), hosted-worker +6 in new test/home.test.ts (registered in the package test script), queue-transport-alert +3 in test/deploy-lib.test.mjs.

    Workflow wiring for the acpx suite: new .github/workflows/acpx-wrapper-tests.yml (nightly + dispatch, fail-if-missing guard). Post-merge proof: dispatched run 45535454404 on the merge commit — completed success.

    Verification (laptop worktree route, named fallback — CI runs on main only): acpx 13/13 pass; queue-transport-alert 44/44 pass; hosted-worker npm test 243 pass / 2 skipped (known sqld-gated pair) / 0 fail, npm run typecheck clean; node --check clean on deploy.mjs and the wrapper; nix-instantiate --parse on default.nix OK; git grep homedir() over the three converted files shows no executable call sites left.

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/sSmall: expected under 2 hours of workkind/refactorCode restructuring with no behavior changemeta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedpriority/normalOrdinary priority (the default)status:donetask/small-fixQueue packet kind: bounded fix with reproduction and targeted tests

    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.