Repository navigation
Description
Raised by the Spec review of #690 while implementing #673.
Finding
Public Security fix publishing now removes the four GitHub token variables and sets a fresh empty GH_CONFIG_DIR, including on Resume. This prevents automatic authenticated GitHub commands across all six Harnesses, but an unrestricted session running as the same OS user can explicitly reuse that user's stored credentials. The literal "any attempt ... fails" / "thirdshift remains the only writer" acceptance criteria require a stronger boundary than environmental credential removal.
Evidence
The review's complete temporary-fixture test was independently run against commit 280736e, using the existing CLI scenario and authentication-aware GitHub stand-in. It stored a dummy token in the scenario's ordinary HOME/.config/gh/hosts.yml, then ran env -u GH_CONFIG_DIR gh api --method PATCH repos/acme/widgets/issues/7 --input - inside public fix publishing. The expected unchanged-state assertion failed (exit 101): issue #7's body became Unvalidated public write. This used only local fixtures, with no real credentials or GitHub writes. The reproduction is retained in the Spec report at .thirdshift-review-1d5wAY/spec.md in the implementation worktree.
The ordinary denied-write and Resume tests pass, as do valid single/Spec publishing across all six Harnesses. Those passing tests do not refute credential reacquisition.
Decision for the Spec / Day shift
#673 prescribes removing credentials from the process environment and using an empty gh config. ADR 0013 requires fully trusted sessions and says "The worktree is the only boundary." Guaranteeing that publishing tools cannot reacquire credentials requires a publishing-only OS identity/container or equivalent enforced isolation, while supplying the selected Harness's model authentication and configuration, preserving its protocol and access to the worktree/private-record prompt. Changing HOME alone cannot prevent absolute-path access.
The implementation session cannot resolve this contradictory scope by quietly changing the documented trust boundary and provisioning requirements for six Harnesses and both supported platforms. Decide whether #673's contract means removing automatic authentication, or specify the additional enforced isolation and how it is provisioned. This issue only asks for that decision; it introduces no run pause or blocking edge.
Existing #398 is optional Codex sandboxing; #608 is host readiness to sandbox executed target code. Neither decides isolation of the publishing agent itself across all Harnesses.
Activity