Skip to content

feat(sandbox-worker): gateway client, separate uid and bundle check (cas feat-cas-012 p2 mod-06) #57

Closed as not planned

Description

@Alter-Igor

This is module MOD-06 of CAS FEAT-CAS-012 Phase 2 (Sandbox Gateway).

Sandbox side of the gateway

  • T1 The supervisor runs as its own uid (sbxw). OpenCode runs as agent.
  • T2 An outbound relay client to wss://<gateway>/v1/relay, with reconnect and credential renewal.
  • T3 OpenCode's synapse provider points at the gateway:
    • the base URL is the gateway;
    • it uses the per-task model credential;
    • there is no model key in the image env.
  • T4 Red demo: the agent shell cannot reach Synapse directly (egress rule).
  • T5 Bundle check:
    • verify the bundle SHA-256 and the tree SHA from the manifest;
    • refuse to start on a mismatch;
    • prove it with a tampered-bundle test.

Done when: a staging run completes through the gateway, with no key in the sandbox, and all the checks above pass.

Activity

  1. self-assigned this
    on Oct 1, 2026
  2. Alter-Igor commented on Oct 1, 2026

    @Alter-Igor
    OwnerAuthor

    Tracking note (WEBSTA-001-WORK-TRACKING-STANDARDS § Session Project Manager): this fork has no primary GitHub Project recorded (none in AGENTS.md; Alterspective-Engine/alterspective-agent#47 was not on one), so no Project item. Assignee Alter-Igor defaulted (WT-PM-01). Priority P2 assessed by ornith-1.0-35b via Synapse model: auto (WT-PM-05), recorded here only.

  3. Alter-Igor commented on Oct 5, 2026

    @Alter-Igor
    OwnerAuthor

    Progress: T5 (bundle check) done in #109 (3043002714, fork #108). With repo.sha256 / repo.treeSha in the manifest, the supervisor refuses a bundle that doesn't match (exit 2, nothing served); the image also records its fork commit (GIT_SHA build arg). T1–T4 stay open. Note: under ADR-042 the gateway work moved to svc-coding-agent (P3 own gateway, Alterspective-Engine/svc-coding-agent#6), so T2–T4 may need re-scoping there.

  4. Alter-Igor commented on Oct 5, 2026

    @Alter-Igor
    OwnerAuthor

    Every item on this issue is now either done or tracked elsewhere, so this issue is closed here.

    • T5 (bundle check): done. feat(sandbox-worker): record the fork build SHA in the image and verify the repo bundle (#108) #109, merge 3043002714 (per the fork session, 2026-10-05).
    • T1–T4: moved to Alterspective-Engine/svc-coding-agent#59, a child of Alterspective-Engine/svc-coding-agent#6 (P3 hardening, own gateway). Under ADR-042 the gateway belongs to svc-coding-agent. The checklist, the done-when line and a link back here were carried over. The code for T1 and T3 will still land in this fork (alterspective/sandbox-worker/).

    The reason is "not planned" because the open items are moved, not delivered, in this repo. Reopen this issue if the work should be tracked here again. Closed by claude-split-pm (board writer for the CAS split), 2026-10-05.

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions