oficina / equipo Public

Plan 2b follow-ups (from the build ledger) open

On branch plan-2b

These are follow-ups from the plan 2b build, collected from the controller ledger. None blocks the branch, but the first two must be done before any release.

Must fix before release

  1. Copy gate marker. The new copy entries say "Pending copy review" (copy.go:213, copy.go:256, copy.go:258). The release gate only looks for "COPY REVIEW REQUIRED" (equipotest/task_pages_test.go:300). Make them match, then run the copy review.
  2. Runtime-home allowlist (provider/runtime_home.go). It may be missing directories the real CLIs create: Claude shell-snapshots and session-env, Codex tmp. Set it from a listing of a real dedicated runtime home taken during the first live step. Until then, a turn with an unlisted directory fails closed.

Live certification (see discussion 5)

  • Refresh through the auth hosts, a real account change, and the full Codex native/image tool inventory.
  • The driver cannot certify either provider yet: - no-subscription-currency-cap is hard-coded false (directlive/probes.go). - Claude no-hooks-plugins is always false (directlive/readback.go).
  • Codex mcp_servers.equipo.tool_timeout_sec is null, so a provider-side MCP timeout may still cap ask_person waits.
  • Read(//workspace/**) is now allowed automatically, so the live symlink probe must pass with that rule in place.
  • The Claude closed-stdin preflight outcome has to be pinned at the first live step.
  • The directlive credential restore can undo a refresh committed during the probe (directlive/staged_source.go).

Smaller deferred items

  • Claude probe diagnostic uses %v, not %w (claude/launcher.go:799), so the lease does not latch on containment or journal errors during the probe.
  • Migration 0019 cancels unclaimed tasks in raw SQL, outside Core.Cancel.

Deferred minors from per-task reviews (ledger, verbatim)

  • Task 2: minor (deferred): nested userns could mount cgroup2 at runner's cgroup root (read stats/create dirs); add capable-CI test or per-attempt cgroup
  • Task 2: minor (deferred): killed flag overwrites clean harness exit on late Stop (linux.go:338)
  • Task 2: minor (deferred): m.processes never pruned (linux.go:314)
  • Task 2: minor (deferred): Start ctx cancellation kills attempt anytime; undocumented in ProcessHost (Tasks 5/6/9 must pass attempt-lifetime ctx)
  • Task 2: minor (deferred): identity-save failure kills init without waiting on pidfd (linux.go:306) — brief says kill and reap
  • Task 2: minor (deferred): /usr exception applies to policy mounts (mounts.go:57)
  • Task 2: minor (deferred): workspace socket/FIFO walk per Start is slow and misses later sockets (mounts.go:62)
  • Task 2: minor (deferred): tests hard-code /home/paulca (linuxtest.go:298, recoverytest.go:76)
  • Task 2: minor (deferred): waitPID polls every 25 ms (recovery.go:91)
  • Task 2: minor (deferred): removeScratch chmod walk also runs on unverified exit path; os.Chmod follows symlinks (recovery.go:226-238 via linux.go:359-361) — skip walk when !Verified or chmod via O_NOFOLLOW fd
  • Task 2: minor (deferred): EINTR not retried in test helpers alive/exited (linux_test.go:100-125) and exactPID zero-timeout poll (recovery.go:76) — flake risk
  • Task 2: minor (deferred, carry to Tasks 7/9): intent-only record (HostPID=0, crash before init identity saved) always errIdentity on Recover (recovery.go:173); brief wants parent-death cleanup then admit
  • Task 2: minor (deferred): PID reused as non-leader thread → pidfd_open EINVAL → errIdentity until thread exits
  • Task 2: minor (deferred): TestNamespaceRecoveryStaleDurableTicks now asserts verified exit for a live namespace; name stale; saved record integrity is the only defence
  • Task 3: minor (deferred): shared-net positive control runs in host process, not a shared-net launch
  • Task 3: minor (deferred): dials only addresses[0], no fallback (proxy.go:238)
  • Task 3: minor (deferred): provider set duplicated in ProviderPolicy and Hash (policy.go:27-34,:67)
  • Task 3: minor (deferred): smuggling subtest names collide (case037); use index
  • Task 3: minor (deferred): header deadline not reset before 200 write after slow dial (proxy.go:212,:220)
  • Task 3: minor (deferred): TestEgressStartupFailureClosesProxy counts process-wide socket fds (flaky if parallel)
  • Task 3: minor (deferred): no containment-level test that a dedicated staged home gets the auth host in its hash
  • Task 4: minor (deferred): declared /tmp outer mount wrong (policy.go:327 vs mounts.go:132); literals duplicated from containment
  • Task 4: minor (deferred): Workspace/Scratch validation ignores HomeRules/configured roots (policy.go:224)
  • Task 4: minor (deferred): Settings env block can carry routing/proxy vars (policy.go:147) — refuse env/helper keys
  • Task 4: minor (deferred): BuildPolicy does not require start/resume ThreadPolicy keys (policy.go:245)
  • Task 4: minor (deferred): DiscoverDirect reports expected identity not observed (connections.go:187,:205)
  • Task 4: minor (deferred): PersonID optional on bindings (connections.go:20)
  • Task 4: minor (deferred): hard-coded /home/paulca path in accounts_test.go:136
  • Task 4: minor (deferred): TestPrivateHomeDoesNotTouchInteractiveConfig asserts little; real side-effect check is a Task 5/6/11b obligation
  • Task 4: minor (deferred): certifying host bwrap/runner requires mounting them (mounts.go:139-160) — separate certified-host from mounted-runtime
  • Task 4: minor (deferred): PolicyHash not validated on Record load (recovery.go:161); not on wire proof — Task 7/9 carry
  • Task 4: minor (deferred): CommitRefresh can overwrite a newer source login when source generation moved while refresh pending (accounts.go:452-455,:565-570) — refuse to maintenance
  • Task 4: minor (deferred): validateLaunch during l.checking returns raw snapshot error without latch (accounts.go:646-649)
  • Task 7: minor (deferred): runnerproto.Event.Validate does not check new direct kinds (events.go:52)
  • Task 7: minor (deferred): v1 journals skip v1 table block (journal.go:95) — keep IF NOT EXISTS for version<=1
  • Task 7: minor (deferred): redaction json.Marshal HTML-escapes and may push frame over 1 MiB (capture.go:393); redactFrameSecrets duplicates RedactJSON walker
  • Task 7: minor (deferred): stderr diagnostics lost on failure path (capture.go:200)
  • Task 7: minor (deferred): Codex cached tokens overcounted when base.Cached nil (direct_usage.go:97)
  • Task 7: minor (deferred): chunk payload Index/Total lack JSON tags; dead RequestID assignment (direct_events.go:190,:167)
  • Task 7: minor (deferred): before-stdin crash stages identical to intent; consumed-before-write window untested; no real adapter against NewCaptureFactory
  • Task 7: minor (deferred, carry to Task 8): pending-answer invalidation runner-wide (direct_recovery.go:332) — scope per attempt
  • Task 7: minor (deferred): internal/runner source budget raised to 7,800 (224 headroom) — justified; Task 8 may need another raise
  • Task 7: minor (deferred, carried to Task 8): interruptDirect invalidates all pending answers journal-wide (direct_recovery.go:341) — now reachable without fence
  • Task 7: minor (deferred): startup-only frames held until restart (direct_recovery.go:314)
  • Task 7: minor (deferred): direct_frames(pending) index redundant (all rows pending=1)
  • Task 7: minor (deferred, final review to decide): full 128 MiB pending budget fences journal permanently (capture.go:308) vs refuse admission
  • Task 7: minor (deferred): direct_events/turns/attempts/usage never pruned
  • Task 7: minor (deferred): AdmissionAllowed unreconciled query error not storageFailure-classified (journal.go:157)
  • Task 8: minor (deferred): /opt/equipo-tool-proxy mount checked ReadOnly only, not digest (codex/launcher.go:230)
  • Task 8: minor (deferred): Claude native path check ignores Glob/Grep absolute pattern (claude/answers.go)
  • Task 8: minor (deferred): person cannot decline async/requestUserInput Codex question (codex/answers.go:137)
  • Task 8: minor (deferred): tool-* dirs under journal dir never swept after crash
  • Task 8: minor (deferred): unreachable claude ask_person branch in runnerproto ValidateAnswer
  • Task 8: minor (deferred): idle test bypasses accept(); wire subtests inject same ErrPolicy
  • Task 8: minor (deferred, carry to Task 9): Codex Respond(allow) returns nil after sending a decline — wiring must not read nil as approved; transient Authorize failures become declines
  • Task 8: minor (deferred): partial frame unbounded now idle deadline is gone (same-UID peer holds a goroutine until lease end)
  • Task 8: minor (deferred): AdmissionAllowed failure in current() now refuses without invalidating (tool_socket.go:350-358) — undocumented/untested
  • Task 10: minor (deferred): TestPublishTransportIsProduction is a source grep (publish_test.go:97)
  • Task 10: minor (deferred): describe-* token dirs survive SIGKILL; sweep at runner start (description_transport.go:58)
  • Task 10: minor (deferred): reordered case only prepends a field; python3 shebang fakes; process-wide os.Stdout reassignment
  • Task 10: minor (deferred): journals latched before the fix stay read-only after upgrade (conservative); real CLI not exercised (11b)