Skip to content

W7 T28a: passioncode anchor install, the service package hand-off (PC-249) - #370

Open
sshlg wants to merge 14 commits into
mainfrom
w7-anchor-launcher-2026-11-25
Open

sshlg wants to merge 14 commits into
mainfrom
w7-anchor-launcher-2026-11-25

Conversation

@sshlg

@sshlg sshlg commented Nov 25, 2026

Copy link
Copy Markdown
Contributor

W7 T28a, the service package hand-off: passioncode anchor install (not in the help yet; a step of a guided install). Backlog rows PC-249 and PC-250.

As the person, before macOS Installer is opened: Gatekeeper assessments on, the package's SHA-256 against the release's SHA256SUMS (and a deployment manifest's package pin when one is given; a manifest without one is refused), the GitHub build attestation made by the anchor workflow on a brain-anchor-v tag, pkgutil --check-signature (notarised Developer ID Installer of the team, to the Apple Root CA by fingerprint), spctl as a further check, and the embedded pin with its commit. --role is required. spctl, pkgutil and open run by absolute path. Then it writes ~/.passioncode/brain-anchor.json (role, organisation, roster row) and runs open -a Installer. It refuses to run as root and never runs sudo.

Checks: node --test test/anchor.test.js 22 of 22; full npm test after merging origin/main (0.2.84) 711 tests, 706 pass, 4 skipped, 1 fail. The one failure on this build machine is PC-246 (the PC-163 socket-table test), which fails the same on unchanged main 7421947 here. IP gate (public) on the changed code, SECURITY.md, the backlog rows and the commit messages: pass. Blind review: 11 rounds across the lane, rounds 10 and 11 clean.

Known limit: PC-250, the same-user window between the checks and Installer's read (SECURITY.md names it).

Not released: a launcher release follows the owner's sitting. Handoff: docs/handoffs/2026-11-25-w7-anchor-launcher.md.

🤖 Generated with Claude Code

Робот and others added 14 commits November 25, 2026 01:06
passioncode anchor install checks a service package as the person and hands it to macOS Installer, which alone
asks for the administrator password: Gatekeeper on, SHA-256 against SHA256SUMS and a deployment manifest's pin,
the GitHub build attestation, pkgutil's notarised Developer ID Installer signature of team KJ35UYYL22 to the Apple
Root CA, spctl as a further check (it accepted a package with a flipped byte that pkgutil refused), and the
package's embedded pin. Never sudo, never a password. Not in the help yet; not released.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…est carries the roster row (W7 T28a, T28b review round 1)

gh attestation verify ran without a ref check, so before brain-deploy-1 a package built by a modified workflow on a
branch passed as attested; the launcher now reads the verified attestations as JSON and refuses any whose source ref
is not refs/tags/brain-anchor-vX.Y.Z (the workflow signs only on such a tag). The pin's commit is shown. --row puts
the roster row into the request so the package's install step enrols its keys (fabric-workspace a24fae8e).
SECURITY.md names the same-user window between the checks and Installer's read, filed as PC-248.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…TY.md states the package's own check exactly (W7 T28a review round 2)

A manifest with a tool tree hash and no package sha256 let a package with the same tool and another anchor runtime
pass; such a manifest is now refused. SECURITY.md said an unsigned anchor package aborts before any change; the
package's first step only compares its payload with the pin inside the same package, so the same-user window
(PC-248) covers a self-built package too, now stated. The handoff takes the workflow's artifact with --pkg and --sums
(nothing is published as a release).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…handoff credits the VM with the Python twin only (W7 T28a review round 3)

A pin that says fixture is a test vector the workflow never signs; the launcher now refuses it like any other failed
check. 'anchor' joins the analytics command words (docs/analytics-events.md in the same change) instead of being sent
as 'other'. The VM ran fabric-workspace's assert_identity.py, never lib/anchor.js; the handoff says so.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…heck, dry run included (W7 T28a review round 5)

A dry run with --role org-space and no --org printed 'every check passed', and the real run then failed with exit 1
after the gh and pkgutil calls. The request is now checked first and a bad one is a usage error (exit 2) with no
check run and nothing written.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…d says where Gatekeeper's notarisation check applies (W7 T28a review round 6)

The deployment manifest pins the tool tree hash, so the launcher shows it beside the payload tree hash it compares at
install. SECURITY.md claimed Installer refuses a package that is not notarised; Gatekeeper's check applies to a
quarantined download, and a package taken with gh run download carries none.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…olute path (W7 T28a review round 8)

- anchor() no longer defaults the role to person: without --role it is a usage error before any check or write
  (an organisation space run without --role would have installed a person account).
- The system checking tools run as /usr/sbin/spctl, /usr/sbin/pkgutil and /usr/bin/open, never through the person's
  PATH; gh stays on the PATH and SECURITY.md and PC-248 say what a shimmed gh can fake. Red first.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…amed as its own (W7 T28a review round 9)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…eview round 10)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…r rows renumbered PC-249 and PC-250 (main took PC-247, PC-248)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… the one failure the known PC-246)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant