Skip to content

#384 minors: guard runtime-service layer lines; boot test ignores machine policy #410

Closed

Description

@scuttletoby

Minors from the order lens on #384 (#384 (comment)). Neither is a regression; both were there before #384.

  1. No test guard for dropping the runtime-service lines. If a sync drops both the ForkLayers.layerRuntimeServices and ForkLayers.layerRoutes lines from apps/server/src/server.ts (together with the two /mcp reads in forkLayers.ts:39-46), the server still boots and holdWork.boot.test.ts stays green. The usage pacing gate and the slot gate are then silently off, and automatic updates are gone. The seam check only notes dropped lines during a sync. Fix: add a boot or layer test asserting that UsagePacer and the slot gate are present in the built runtime (for example, resolve them in the boot test), so dropping the lines goes red.
  2. holdWork.boot.test.ts reads the machine's managed policy file. On a machine whose policy turns T3 Connect off, the held phase waits forever. Fix: point the spawned server at an empty or temporary policy path, as other Connect tests do. The test also clears the environment, which on some machines drops a library path node needs: keep the variables node needs to start.

Part of HO2 (#320 follows).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions