Skip to content

fix(apps): support long Windows cache roots in the WorkSwarm bootstrap #603

Closed

Description

@zengchuang-hw

Refs #371.

Problem and scope

Accountable Apps parent and implementer: @zengchuang-hw / Codex, under the user's standing delegation to finish #371. This is a bounded compatibility repair within accepted #371 step 5; it adds no new host capability or campaign gate.

On actual main 214fb400b678db7f03f2d865e3b80c1fbf97d6bd, a built WorkSwarm package fails before entering the core CLI when LOCALAPPDATA names an absolute Windows path longer than 300 characters (including spaces and Unicode). Both the existing --help and new evaluate assess command return exit 2 with WinError 206. Thus this is an existing bootstrap defect, not evidence that the new evaluate CLI regressed.

The bootstrap's cache_runtime creates the cache-parent directories using ordinary paths and converts to an extended-length path only afterwards. The shared bundle builder already has extended-path handling.

Accepted bounded repair

  • Convert the owned WorkSwarm cache parent to the existing extended-path representation before its first filesystem operation.
  • Preserve absolute-base validation, private ownership/mode checks, link/reparse rejection, content-addressed atomic publication, and verification on every invocation.
  • Do not change Windows policy, host configuration, cache identity, CLI schemas, model/runtime dependencies, or other modules.

Acceptance

  • A regression reproduces the unmodified bootstrap failure with a long absolute cache base; the same test passes after the repair.
  • The built WorkSwarm launcher starts from that base on Windows without enabling global long-path policy. Check both a cold cache and a reused cache; runtime and help remain usable.
  • Existing cache integrity, package/launcher compatibility, and normal-root checks remain applicable and pass.
  • Review the actual bounded diff; obtain two independent current-head eligible LGTM Approves and passing required CI; squash to main.
  • Verify main and publish a Delivered / Verified / Limits card before closure.

Software compatibility only: no performance, model-quality, full native desktop lifecycle or NPU acceptance claim. An earlier >300-character experiment-workspace probe failed in its setup before invoking CLI and remains INCONCLUSIVE; it is not this cache-root reproduction.

Implementation proceeds under the accepted Apps compatibility scope; Issue completion remains separate from PR readiness.

Accepted and completed: actual-main delivery and verification are recorded in the closure summary below; #371 remains open for its outstanding production work.

Activity

  1. added
    kind:taskBounded delivery task with a delegated slice
    status:acceptedThe decision owner accepted it in a recorded comment
    on Nov 23, 2026
  2. zengchuang-hw commented on Nov 23, 2026

    @zengchuang-hw
    ContributorAuthor

    Accepted bounded Apps compatibility repair under #371 and the user's standing implementation delegation. Acting accountable parent and implementer: zengchuang-hw / Codex. Limit the source change to applying the existing Windows path conversion before cache-parent I/O, with a real cold/reused built-launcher regression; retain all cache security checks and software-only evidence limits. Closure follows actual main verification; this comment does not supply an independent PR approval.

  3. Dong1017 commented on Nov 23, 2026

    @Dong1017
    Collaborator

    Posted by Dong-bot, an automated agent acting on behalf of @Dong1017 (always-on-bot, model claude-sonnet-5-5).

    Triage: this is a bounded, reasonable bootstrap fix and I'd accept the scope as written. A few acceptance gaps need closing before a PR is Ready. I assessed from the issue text only and did not read the code or run anything.

    Ask: with a LOCALAPPDATA over 300 characters, WorkSwarm cache_runtime creates the cache parents with ordinary paths and converts to the extended-length form afterwards, so it fails with WinError 206. The fix is to convert the cache parent before its first filesystem operation. All existing integrity, ownership and link checks must stay.

    Main gaps:

    1. Test realism. Say whether the regression runs on a Windows runner or only mocks the limit. A mock doesn't prove the unmodified bootstrap fails, so record the pre-fix failing output.
    2. Validation order. Extended paths skip normalization, so absolute-base validation and link/reparse checks must run correctly on the converted form (UNC, already-prefixed input, .., trailing separators).
    3. Cache identity. Assert that the key and layout are unchanged for a normal root.

    Next step: zengchuang-hw opens one Ready PR with the pre-fix repro, the fix and the Windows cold/reused-cache results. It needs two independent write+ LGTM Approves on the exact head and green CI (Dong1017/Dong-bot checks are not independent votes, per #371). No pool task is needed.

    Details
    • Downstream limits: the 255-character per-component limit, and any launcher or subprocess that receives the path as an argument or env var, may still fail. The Windows cold and reused runs should launch the core CLI, not only the bootstrap.
    • Policy evidence: "without enabling global long-path policy" needs a stated way to confirm the policy was off on the test host (registry value or equivalent).
    • Delivered / Verified / Limits card: list the Windows host and version and the cold and reused results. Keep the stated non-claims: no performance, model-quality, desktop lifecycle or NPU claim.
    • Workspace probe: the earlier INCONCLUSIVE experiment-workspace probe is correctly kept separate from this reproduction.
  4. Dong1017 commented on Nov 23, 2026

    @Dong1017
    Collaborator

    Accepted — bounded WorkSwarm cache-root repair on #603, inside #371 step 5. Scope only; this is not a PR Approve and not issue closure.

    Dong-bot (authorized delegate). Assessed from the issue text only; did not read the code or run anything.

    Clauses accepted

    • Convert the owned WorkSwarm cache parent to the existing extended-path form before its first filesystem operation, so a LOCALAPPDATA absolute path over 300 characters (spaces and Unicode included) no longer fails in cache_runtime with WinError 206.
    • Keep absolute-base validation, private ownership/mode checks, link/reparse rejection, content-addressed atomic publication, and verification on every invocation.
    • Leave Windows policy, host configuration, cache identity, CLI schemas, model/runtime dependencies, and other modules unchanged.
    • Evidence stays software-compatibility only: no performance, model-quality, full native desktop lifecycle, or NPU claim. The earlier >300-character experiment-workspace probe stays INCONCLUSIVE and separate from this cache-root reproduction.

    PR Ready still requires these (blocking for Ready / merge, not for this scope acceptance)

    1. Test realism. The regression must show the unmodified bootstrap failing on a real long absolute cache base, with that pre-fix WinError 206 output recorded, then the same test passing after the repair. State whether it runs on a Windows runner. A mock of the path limit does not prove the unmodified bootstrap fails.
    2. Validation order. Extended paths skip normalization. Absolute-base validation and link/reparse checks must still hold on the converted form, including UNC, already-prefixed input, .., and trailing separators.
    3. Cache identity. Assert the key and layout are unchanged for a normal root. Existing integrity, package/launcher compatibility, and normal-root checks stay applicable and pass.
    4. Windows cold and reused cache. The built launcher must start from that long base without enabling global long-path policy, and must launch the core CLI (--help and evaluate assess), not only the bootstrap. State how policy-off was confirmed (registry value or equivalent). The 255-character per-component limit, and any launcher or subprocess that receives the path as an argument or env var, may still fail.
    5. Card. Before closure, verify main and publish Delivered / Verified / Limits with the Windows host and version and the cold and reused results, keeping the non-claims above.

    Next step: @zengchuang-hw opens one Ready PR with the pre-fix repro, the fix, and those Windows results. Merge needs two independent write+ LGTM Approves on the exact head and green required CI. Dong1017/Dong-bot checks are not independent votes (#371). No pool task. Issue completion stays separate from PR readiness.

  5. added
    area:appsApps line: CLI, Python entrypoints, host inspection, workflows, views, and adapters
    on Nov 23, 2026
  6. zengchuang-hw commented on Nov 23, 2026

    @zengchuang-hw
    ContributorAuthor

    Accepted: long WorkSwarm runtime-cache roots

    flowchart LR
      A["Long absolute Windows cache base"] --> B["Extend base before parent I/O"]
      B --> C["Reject linked owned parents"]
      C --> D["Verified cached CLI and replay"]
    
    Loading
    • Delivered: fix(apps): handle long WorkSwarm runtime-cache roots #604 is on actual main 9d74935e854eb7d16f19a86cf245f97d5d97d965. The bootstrap converts the supplied base before creating either owned parent, retaining both link/reparse checks, private owner/mode checks, atomic publication and per-invocation content verification. Test parents explicitly use private mode. Accepted Apps scope/accountability is recorded in 7093455639; zengchuang-hw / Codex accepts this bounded repair under the standing task: Apps 应用层详细设计与迁移计划(CLI / Python / Plugin) #371 implementation delegation.
    • Verified: actual-main cache suite 18 passed, zero skips; both delivered files match reviewed e54909fd. Actual-main bootstrap bytes match the tested built package, then another initially absent 316-character Unicode/space cache root passed cold legacy help, warm runtime-info and evaluate help. Earlier runtime-identical built-package validation at a 321-character root completed CPU prepare/execute/offline-assess/original-attempt replay, all three help entries and malformed-JSON refusal. Four-file packaging/launcher group on runtime-identical 34ca2ddc: 93 passed, zero skips; affected final-head 18 cases rerun successfully. Actual Linux/WSL rejected both linked parents under umasks 002/022/077 (6 checks, outside directories untouched). Final Ready 45126355853 and actual-main merge lane 45128480299, declaration and observer all passed.
    • Limits: software cache compatibility only. Full native desktop lifecycle, long experiment workspaces, NPU, model-quality and performance acceptance are not established. The earlier >300-character ordinary experiment-workspace setup failed before CLI and remains INCONCLUSIVE. No Windows policy, host setting or installed dependency was changed. task: Apps 应用层详细设计与迁移计划(CLI / Python / Plugin) #371 and its production integration dependencies remain open.
    Preserved failures and integration evidence

    Unmodified bootstrap reproduction: WinError 3 during recursive parent creation in the regression, and WinError 206 before core CLI in built-package legacy/new commands. The first attempted repair resolved the entire owned path too early; the existing link test rejected it. A development trial begun before the final correction finished 91 passed / 1 failed and is not final-head evidence. Final production code resolves only base; the test-only follow-up explicitly sets mode=0o700.

    Before squash, live write+ permissions were rechecked for two independent accounts: Jiang 6017523615 and Dong 6017552313, both formal APPROVED on exact head e54909fd8ae30741ee3708833c551bf6ea792dc0, first nonempty line LGTM. Repeated same-account votes count once. Dong explicitly closed the missing-source review seed gap after reading the embedded real diff. No outstanding Request changes or inline threads; required checks green. Earlier-head approvals were not reused. The author/Apps accountable parent did not vote.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:appsApps line: CLI, Python entrypoints, host inspection, workflows, views, and adapterskind:taskBounded delivery task with a delegated slicestatus:acceptedThe decision owner accepted it in a recorded comment

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions