Repository navigation
Releases
v0.7.2
Selo v0.7.2
Patch release, same day as v0.7.1: one more installer failure path, found by
simulating the one v0.7.1 did not cover.
The defect
v0.7.1 moved release-metadata discovery to fetch-to-file-then-parse, which
fixed the SIGPIPE race. But the failure branch of the fetch was still wrong:
curl -fsSL -o "$RELEASE_JSON" ".../releases/latest" || RELEASE_JSON=""
VERSION="$(sed -n '...' "$RELEASE_JSON" 2>/dev/null | head -1)"When curl failed — offline, or the anonymous GitHub API rate limit (60
req/hour per IP; shared CI or office egress hits it) — RELEASE_JSON was set
to the empty string. sed then errored on the empty filename (exit 2 through
pipefail), set -e aborted the script with no message at all, and the
temp file leaked. A rate-limited install looked like a silent crash.
The fix
- curl failure is a hard, explained death:
could not fetch release metadata (offline, or GitHub API rate limit: anonymous limit is 60 req/hour per IP) - a malformed body falls through to the existing
could not determine latest versioncheck instead of dying sideways - the temp workspace is created up front and cleaned by the EXIT trap, so
every early die leaves nothing behind
Verified against a real 404 (SELO_REPO=C1-run/does-not-exist-xyz): clear
message, exit 1, temp-dir count unchanged across the run. Full happy path
re-verified: checksum, keyless cosign verification, selo version, LC_UUID.
Site: the hero card quotes the served receipt exactly
The selo.c1.run hero card still carried the previous receipt's id while the
download link served the regenerated one — selo verify passes either way
(it does not compare the card), but a human comparing them sees a mismatch on
the one page that claims "card matches artifact". The card now shows the
served receipt's id (c1f-1794618953640600000) and states plainly that the
runner is a scripted offender, not an LLM agent.
Full Changelog: v0.7.1...v0.7.2
v0.7.1
Selo v0.7.1
Patch release, one day after v0.7.0: a fix for the installer that the
clean-machine install test caught on the release day, plus the receipt
semantics labeling that v0.7.0's default flip called for.
The installer defect
install.sh could not determine the latest release on roughly every other
run, dying with:
Error: could not determine latest version
while the same command moments later worked. The root cause is a race between
set -o pipefail and an early-exiting consumer:
VERSION="$(curl -fsSL ".../releases/latest" \
| grep -m1 '"tag_name"' \
| sed -n 's/.*"tag_name": *"\([^"]*\)".*/\1/p')" || VERSION=""grep -m1 exits after its first match and closes the pipe. curl is still
writing the response body, receives SIGPIPE, and exits 141. Under pipefail
that nonzero status becomes the exit status of the assignment — so the
|| VERSION="" fallback ran even though the version had already been
extracted into the variable, and overwrote it with empty. The script's own
comment shows the SIGPIPE risk was known: grep -m1 was picked over head -1
to avoid exactly this — but -m1 has the same early-exit behavior.
Measured on the exact pipeline, same machine, same network: 5 of 8 runs
extracted nothing; 3 extracted v0.7.0.
The fix
The release JSON is now fetched to a file and parsed from the file — no
early-exiting consumer, nothing to race:
RELEASE_JSON="$(mktemp)"
curl -fsSL -o "$RELEASE_JSON" "https://api.github.com/repos/$REPO/releases/latest" || RELEASE_JSON=""
VERSION="$(sed -n 's/.*"tag_name": *"\([^"]*\)".*/\1/p' "$RELEASE_JSON" 2>/dev/null | head -1)"Verified stable 3/3 on the parse alone and through a full install (checksum +
keyless cosign verification + selo version v0.7.0 + LC_UUID present) in a
fresh-HOME sandbox.
Receipt semantics labeling
v0.7.0 flipped the required-commands gate default, which changes what
SUCCESS_WITH_RECEIPT means. A receipt signed before v0.7.0 carries no
checks_version — and without a marker, a reader would apply 0.7.0 semantics
to a 0.6.x receipt whose configured commands were recorded but never enforced.
selo verify and selo receipt show (text and markdown/github cards) now
state it explicitly:
- receipt with
checks_version→Checks: checks_version 1 — required-commands gate semantics (0.7.0+) - receipt without →
Checks: pre-0.7.0 — no checks_version; configured commands were recorded but NOT enforced (the gate default flipped in 0.7.0)
This is a label, not a validity change: old receipts verify exactly as before,
and selo verify --pubkey <fingerprint> pins work unchanged.
Verification
go build ./..., go vet ./..., full cmd/selo daemon E2E suite, and the
scripts tests green on the release commit. The installer was exercised on a
clean macOS sandbox end-to-end: anonymous download, checksum, keyless cosign
verification, selo version v0.7.0, and the Mach-O LC_UUID load-command
check that the v0.6.0 post-mortem added as a release gate.
Full Changelog: v0.7.0...v0.7.1
v0.7.0
Selo v0.7.0
Minor release with one deliberate behavior change: configured commands are
now enforced, not just recorded. Everything else in this release is
consolidation — one parser, one check-set definition, one shell extractor —
and a new way for receipts to reach the people who decide merges.
⚠️ The default flip
Since v0.6.5, a configured command that exited non-zero was recorded in
the receipt (tests_ok: false / test_exit_codes) but the verdict still
keyed off the agent's exit code: --commands "go test ./..." failing still
produced SUCCESS_WITH_RECEIPT unless you opted in with
--require-tests-pass. Teams had to know the gate existed to be protected by
it.
In v0.7.0 the gate is on by default:
$ selo run "Fix the bug" --commands "go build ./..." # go build fails
final_verdict : FAILED_REQUIRED_COMMANDS
commands_ok : false
selo run : exits 1
To keep the recording-only behavior:
selo run "<goal>" --commands "go test ./..." --no-require-commands-pass
# or: forge.require_commands_pass: false in config/selo.yamlWhy rename "tests" → "commands"
--commands accepts any command. With the gate defaulting on, a failing
go build or go vet would have been reported as FAILED_TESTS — labeled
wrong in a signed, verifiable receipt, which is precisely the failure mode
Selo exists to prevent. So the rename and the flip ship together:
| before (v0.6.x) | after (v0.7.0) |
|---|---|
--require-tests-pass (opt-in, default off) |
--require-commands-pass (default on) + --no-require-commands-pass |
forge.require_tests_pass |
forge.require_commands_pass |
FAILED_TESTS |
FAILED_REQUIRED_COMMANDS (same severity slot — selo run still exits 1) |
receipt tests_ok |
commands_ok |
receipt test_exit_codes |
command_exit_codes |
receipt tests_passed |
commands_passed |
Field renames are receipt-schema changes; per the versioning policy this is a
minor bump, not a patch. The signature covers field values, not names, so
existing receipts verify unchanged. The opt-in E2E proof from v0.6.5 now
doubles as the opt-out proof (TestReceiptRecordsCommandsOKFromExitCodes
asserts the verdict is not overridden when the gate is off), and new tests pin
the default-on path and the config loader (TestRequiredCommandsGateFailsRun,
TestLoadConfigRequireCommandsPassDefault).
Receipts now name their check set: checks_version
A receipt's scans_passed / safety_hits are products of a specific set of
checks with specific semantics. Until now that set was implicit — whoever
reads a receipt must guess which version of the checks produced it.
Receipts now carry checks_version ("1" in this release) in the signed
bytes: bump the version when check semantics change, and a receipt is never
judged by semantics it was not produced under.
Receipts now reach the merge decision: PR comments
A receipt nobody reads is a log, not evidence. Selo ships a reusable workflow
that closes the loop — verify, render the decision card, post it as a sticky
PR comment (updated in place on re-run, no comment pile-up), and append it
to the job summary:
jobs:
selo-receipt:
permissions: { contents: read, pull-requests: write }
uses: C1-run/Selo/.github/workflows/receipt-comment.yml@main
with:
receipt-path: runs/run-abc123/receipt.json
# pubkey: <fingerprint> # pin the signer in the card
# fail-on-invalid: true # fail the job when verify failsSelo's own pull requests run the same arc end-to-end with a mock-mode task
(.github/workflows/receipt-dogfood.yml): every PR carries its own receipt
card, signed with --dev (CI holds no long-lived key, and the card says so).
One parser, one check set
Three consolidations, each closing a drift class that already bit once
(BUG-2026-10-13: task-file sections leaked into each other because two
parsers disagreed):
- One Go parser.
internal/taskmetaowns task.md parsing (with fuzz
tests);receipt.ParseTaskMetaandgovernor.ParseTaskConfigdelegate to
it. The daemon also parses each task file once now, not twice. - One writer.
taskmeta.Writeis the canonical task.md writer; the old
hand-rolled writers could silently emit files that parse differently than
they were built (quoted values were never matchable).Writerefuses
values the format cannot represent instead of writing a lie. Round-trip
test: everythingWriteemits parses back to the same config. - One shell extractor.
fixture_agent.shandc1-loop.shextract task
fields through a sharedscripts/task-parse.sh, drift-tested against the
Go parser via subprocess on writer-generated files. Consolidating surfaced a
real bug: the shell pattern required column-0 list items while every writer
emits indented ones, so the shell runners' command-execution loops had never
actually run a command on canonical output.
Relatedly, the daemon's check block (forbidden files, forbidden claims,
secret scan, patch/round limits) now runs through internal/pipeline.RunAll.
That package had been dead scaffolding — documented, never called, with
whole-worktree scans that would have regressed the daemon if wired naively.
It is now the single definition of the post-diff check set (diff-scoped),
whose semantics checks_version names. The supply-chain BOM and
test-integrity gate run in the daemon flow because they need their full
result objects, but they are part of the same versioned set.
Docs reconciled with the code
internal/pipelinedocumented with its real API (the old docs described a
Pipeline/PipelineContextAPI that exists nowhere).- The containment section no longer lists
docker/localstrategies — they
are refused, and the docs now say so plainly. - README's "What works" table moved to v0.7 and the receipt docs show the
renamed fields. - README states the run-signed vs receiver-signed distinction explicitly,
citing arXiv 2606.04193: under the
default setup the honest ceiling is operator-signed, tamper-evident
evidence. The structural answer — an independent receiver (CI) co-signing
the receipt — is designed for, not built yet.
Upgrade notes
- If your config sets
require_tests_pass, rename it to
require_commands_pass. Selo warns on unknown config keys. - If any CI reads
tests_ok/test_exit_codes/tests_passedfrom
receipts, readcommands_ok/command_exit_codes/commands_passed. - If you relied on non-zero command exits NOT failing the run, pass
--no-require-commands-pass(CLI) orrequire_commands_pass: false
(config). Nothing else changes: the receipt records the same facts.
Verification
Full suite green on the release commit: go build ./..., go vet ./...,
gofmt gate, internal package tests, the cmd/selo daemon E2E suite (which
exercises the refactored shell runners end-to-end), and selo selftest
(all 5 controls fired on the wired pipeline).
Full Changelog: v0.6.6...v0.7.0
v0.6.6
Selo v0.6.6
Documentation-and-example release. No code behaviour changes — Selo's default
is unchanged.
What changed
v0.6.5 added --require-tests-pass but shipped it off by default and left the
guidance thin. This release makes the recommendation explicit where it matters:
-
README "Use in CI" now shows the flag in context:
./selo run "Add feature X" \ --commands "go test ./..." \ --require-tests-pass
with an explicit warning that it changes what
SUCCESS_WITH_RECEIPTmeans. -
config/selo.example.yamlsetsrequire_tests_pass: true, commented as the
CI-appropriate choice and marked as not Selo's default.
Why the default is still off
This is the part worth reading before you enable it.
| gate off (default) | gate on | |
|---|---|---|
SUCCESS_WITH_RECEIPT means |
the agent's run was not rejected | and every configured command exited 0 |
| red test suite | still SUCCESS, receipt records tests_ok: false |
verdict becomes FAILED_TESTS; selo run exits 1 |
scans_passed: true |
safety scans only — says nothing about tests | unchanged |
Both are honest; they answer different questions. The reason Selo does not flip
this by default is that flipping it would silently rewrite what every
already-issued SUCCESS_WITH_RECEIPT asserts — a receipt that meant "not
rejected" would retroactively read as "tests passed". That is the opposite of what
a signed record is for. Choosing it is a deliberate act, and it should be written
down in your runbook.
CI is the case where the stricter reading is almost always the one you want: a red
suite should block the merge. Hence the example config enables it, and the README
says so in the CI section specifically.
Compatibility
- No code changes.
require_tests_passremainsfalseunless you set it. config/selo.example.yamlis an example, not a shipped default — nothing reads
it implicitly. Copying it does enable the gate; the comment says so.
Upgrade
Same as v0.6.5: curl -fsSL https://selo.c1.run/install.sh | sh. The cosign
keyless identity is unchanged (C1-run/Selo, because this is < v0.7.0).
Full Changelog: v0.6.5...v0.6.6
v0.6.5
Selo v0.6.5
Patch release. The receipt now tells the truth about test results, and there is
an opt-in gate for teams that want failing tests to fail the run.
The defect
A receipt could say SUCCESS while every configured test command had failed,
and nothing on the receipt showed it. Measured against the shipped binary:
$ selo run "<goal>" --commands "false"
final_verdict : SUCCESS_WITH_RECEIPT
scans_passed : true
gatechain : pass / pass
test_output : "$ false\n\n[exit code: 1]\n"
The verdict keys off the agent's exit code, so this is by design — but the
receipt offered no field that said "the tests failed", and scans_passed: true
reads like "tests passed" to anyone skimming a compliance report.
It was worse than a missing field. tests_passed was computed by counting output
lines, in cmd/selo/main.go:
if strings.Contains(line, "PASS") || strings.HasPrefix(line, "ok ") {
testsPassed++
}That is a case-sensitive substring match on output text that never consults an
exit code, and it was wrong in both directions:
| scenario | old tests_passed |
truth |
|---|---|---|
command exits 1, output contains PASSWORD=secret |
3 | 0 — the command failed |
echo 1 passed (pytest style, exit 0) |
absent (0) | the command passed |
And because the field is omitempty, a genuine 0 was dropped from the JSON
entirely — leaving only scans_passed: true.
What changed
Test results are now derived from exit codes:
tests_ok(new) —trueonly when every configured command exited 0;
falsewhen at least one did not; absent when no test command was
configured. The absence is deliberate: with no commands there is nothing to
assert, and claiming "tests passed" would be a false assurance. It is a
*boolfor the same reason — a plainboolwithomitemptywould drop a
genuinefalsefrom the JSON, which is exactly the ambiguity being removed.test_exit_codes(new) — each configured command's exit code, in order.
-1(runner.ExitCodeNotRun) means the command never ran.tests_passedis now the number of configured commands that exited 0.runner.CaptureTestResultsreturns(output, exitCodes);
CaptureTestOutputis retained as an output-only wrapper.
Same three scenarios, after:
| scenario | verdict | tests_ok |
test_exit_codes |
tests_passed |
|---|---|---|---|---|
--commands "false" |
SUCCESS (default unchanged) | false |
[1] |
absent |
--commands "false" --require-tests-pass |
FAILED_TESTS |
false |
[1] |
absent |
echo 1 passed |
SUCCESS | true |
[0] |
1 |
The gate
selo run "<goal>" --commands "go test ./..." --require-tests-passOverrides the verdict to FAILED_TESTS when any configured command exits
non-zero. Also settable as forge.require_tests_pass in the config, so the
daemon honours it too.
It is off by default. The default verdict continues to key off the agent's
exit code, so no existing run changes meaning. Turning this on by default would
have silently rewritten what every already-issued SUCCESS_WITH_RECEIPT asserts,
which is the opposite of what a signed receipt is for. selo run already exits 1
on any FAILED* verdict, so CI needs no extra wiring.
FAILED_TESTS is inserted into the verdict severity order just above
NEEDS_HUMAN; every existing verdict keeps its relative order, so existing
override behaviour is unchanged.
Documentation
- README: new section "What the receipt says about tests" —
scans_passed
is the safety scans (forbidden files, forbidden claims, secret scan) and says
nothing about tests; readtests_ok/test_exit_codesfor that. docs/api/README.mdanddocs/architecture/README.md: the two struct
listings now carry the new fields and the same warning onscans_passed.
Compatibility
- Additive receipt fields only. Old receipts still verify unchanged; they simply
predate these fields. - New opt-in flag and config key. Default behaviour is unchanged.
FAILED_TESTSis a new verdict string — any tooling that enumerates verdicts
should be aware of it.
Upgrade
Same as v0.6.4: curl -fsSL https://selo.c1.run/install.sh | sh. The cosign
keyless identity is unchanged (C1-run/Selo, because this is < v0.7.0).
Full Changelog: v0.6.4...v0.6.5
v0.6.4
Selo v0.6.4
Patch release. One fix: the shipped example receipt now verifies.
What changed
selo verify on the project's own samples/receipt-example.json returned:
Hash: MISMATCH
Signature: INVALID
Result: INVALID
For a tool whose entire claim is that a third party can check a receipt with
selo verify --pubkey, shipping a sample that does not verify is the wrong example
to set.
Two things were wrong with it:
-
It was stale — generated on 2026-10-05 from an older build, so its recorded
hash and signature no longer match its own contents. -
It was generated before the v0.6.1 parser fix, so its signed
test_output
still contained the leaked forbidden file:$ README.md [error: exec: "README.md": executable file not found in $PATH]That is precisely the
ParseTaskConfigsection-leak bug v0.6.1 fixed — so the
shipped sample was advertising the defect in a signed field.
samples/receipt-example.json is now a freshly generated, real receipt produced by
the v0.6.3 binary against a small demo repo (a Go module with a passing test and a
README.md declared forbidden), with runner.mode: real:
Verdict: SUCCESS_WITH_RECEIPT
Hash: OK
Signature: OK
Anchor: OK
Key mode: persistent
Key source: file
Provenance: PINNED
Result: VALID
The agent made one in-contract change (billing.go), never touched the forbidden
README.md, and the configured test command passed — so scans_passed and
test_integrity_passed are both true.
What you get
- A sample receipt that actually verifies end-to-end with
selo verify --pubkey <inline-base64-from-receipt> samples/receipt-example.json. - No code, schema, config, or CLI changes. Receipts from v0.6.3 verify unchanged.
Notes and caveats
- Receipt hashes are canonical, not byte-exact. The sample is pretty-printed for
readability and still verifies — reformatting the JSON does not break the hash. Timestamp: ABSENTandTransparency: ABSENTon this sample because the build
environment has no RFC3161 TSA or Rekor reachability. Both are opt-in flags
(--tsa,--rekor) and are unaffected by this release.- The receipt records the absolute paths of the machine that produced it
(worktree_path,runner_command). That is true of any real receipt and is left
verbatim — editing it would invalidate the signature.
Upgrade
Same as v0.6.3: curl -fsSL https://selo.c1.run/install.sh | sh. The cosign keyless
identity is unchanged (C1-run/Selo, because this is < v0.7.0).
Full Changelog: v0.6.3...v0.6.4
v0.6.3
Selo v0.6.3
Patch release. One reliability fix; no shipped binary behavior changed.
What changed
v0.6.2 made every TestC1Loop* / TestDaemon* / TestRealRun* / P45 test use its
own isolated fixture repo, killing the shared-/tmp/selo-fixture worktree-contamination
flake. One test was missed: TestOpenCodeCannotPassByDeletingTest (the OpenCode
negative-control, gated behind SELO_RUN_OPENCODE_E2E=1) still pointed processOneTask
at the shared /tmp/selo-fixture-opencode with the fixed branch selo/opencode-neg-control.
That test is skipped in the default suite, so it could not flake normal CI — but
enabling E2E mode and running under load would have reintroduced the exact same
registered-worktree-metadata contamination (a later git worktree add failing with
no Preparing worktree log). This release closes that last shared-fixture path: the
test now builds its own isolated repo under t.TempDir() via a new parameterized
ensureOpenCodeFixtureRepoAt. The TestRealOpenCodeSoak* tests already used hermetic
fixtures and were unaffected.
Why this warranted a release
A latent flake is still a flake — the moment someone enables the E2E path (which is the
path that actually exercises the OpenCode adapter end-to-end), it would have gone red
intermittently and trained the same "skip the run" habit v0.6.2 set out to remove. The
fix is mechanically identical to the already-proven v0.6.2 change, so it inherits that
evidence rather than needing a separate stress run (which could not be executed in the
build sandbox anyway, as the test requires the opencode model API).
What you get
- All
cmd/selodaemon/anchor/c1loop/OpenCode E2E fixture repos are now hermetic. - Default suite unchanged: still 74/74, 0 failures (the OpenCode test remains
skipped unlessSELO_RUN_OPENCODE_E2E=1). - No receipt-schema, config, or CLI changes. Receipts from v0.6.2 verify unchanged.
Upgrade
Same as v0.6.2: curl -fsSL https://selo.c1.run/install.sh | sh, or grab the
binaries / checksums.txt / checksums.txt.sigstore.json from the release assets
and verify with install.sh. The cosign keyless identity is unchanged
(C1-run/Selo, because this is < v0.7.0).
Still true (no change in this release)
- Default backend: the signing key is on the same host/OS-user as the agent, so a
receipt proves what Selo observed, not that the agent couldn't forge it. Use the
commandbackend (ADR-008) for a key outside that domain. - RFC3161 timestamping and Rekor transparency-log entries are opt-in flags, not
defaults.
Full Changelog: v0.6.2...v0.6.3
v0.6.2
Selo v0.6.2
Patch release. One reliability fix; no shipped binary behavior changed.
What changed
The cmd/selo daemon / c1loop / anchor end-to-end tests were intermittently
failing under full-suite load. v0.6.1's notes flagged this as "tracked separately"
— it is now resolved.
Root cause: every TestC1Loop*, TestDaemon*, TestRealRun* and P45 test shared
one global fixture git repo at /tmp/selo-fixture and ran
git worktree add -b selo/<taskID> with fixed branch names
(selo/c1-noop, selo/real-noop, selo/c1-fail, …). cleanupStaleBranches only
removes worktree directories whose path contains worktrees/wt-, so
registered-worktree metadata left behind by a prior run on the shared repo made
the next test's git worktree add fail. The symptom was an intermittent
FAILED_INTERNAL_ERROR ~0.25s in, with no Preparing worktree log line. A second,
misleading anchor failed … not a git repository non-fatal error (from anchoring the
test's non-repo queue directory) obscured the real cause during diagnosis.
Fix:
- Each test now creates its own isolated fixture repo under
t.TempDir(), so
git state — branches, registered worktrees, the receipt-anchor branch — cannot
leak between tests. - The best-effort receipt anchor is disabled in the daemon E2E harness
(SELO_DISABLE_ANCHOR=1); it remains covered by
internal/receipt/anchor_test.goagainst a real repository.
Why this warranted a release
A CI signal that randomly goes red is worse than no signal: it trains reviewers to
skip the run, which is exactly when a real regression slips through. This patch
makes the daemon test path deterministic so the suite can be trusted again. The
change is confined to cmd/selo/main_test.go (test harness only) — the agent
binary, receipt schema, config, and CLI are unchanged.
What you get
- The full
cmd/selosuite passes 74/74 three consecutive times (verified with
go test ./cmd/selo/ -count=1 -timeout 0 -v, repeated 3×, zero failures). - No receipt-schema, config, or CLI changes. Receipts from v0.6.1 verify unchanged.
internal/receipt/anchor_test.gocontinues to cover the anchor against a real
repo, so disabling it in the E2E harness loses no coverage.
Upgrade
Same as v0.6.1: curl -fsSL https://selo.c1.run/install.sh | sh, or grab the
binaries / checksums.txt / checksums.txt.sigstore.json from the release assets
and verify with install.sh. The cosign keyless identity is unchanged
(C1-run/Selo, because this is < v0.7.0).
Still true (no change in this release)
- Default backend: the signing key is on the same host/OS-user as the agent, so a
receipt proves what Selo observed, not that the agent couldn't forge it. Use the
commandbackend (ADR-008) for a key outside that domain. - RFC3161 timestamping and Rekor transparency-log entries are opt-in flags, not
defaults. - The flaky
cmd/selodaemon/anchor tests described as "tracked separately" in the
v0.6.1 notes are resolved by this release.
Full Changelog: v0.6.1...v0.6.2
v0.6.1
Selo v0.6.1
Patch release. One bug fixed; nothing else changed.
What changed
ParseTaskConfig (the function that reads a task file) tracked its YAML-ish
sections with sticky flags. A forbidden_files: header closed allowed_files:
but not commands:, so every forbidden path was also appended to the list of
test commands and then executed.
The documented task layout puts commands: before forbidden_files: (see
docs/spec-v0.1.md), so the default configuration always hit this. The visible
symptom was a bogus line in the receipt's signed test_output field:
$ python3 -m pytest -q
1 passed in 0.30s
$ README.md
[error: exec: "README.md": executable file not found in $PATH]
README.md was only ever passed as a forbidden file.
Why this warranted a release
The safety scan itself was not weakened — the forbidden-file check still held
the right entries and FAILED_SAFETY fired correctly. What was wrong is that a
signed field recorded commands that were never configured. For a tool whose
whole claim is "the receipt is an honest record of what was observed," a
systematically wrong field is worse than a crash.
What you get
forbidden_files,allowed_files,forbidden_claims,commandsand
deliverablesare now fully disjoint; a header closes every other section.- Three regression tests in
internal/governor/governor_test.go, each proven to
fail against the old code with the exact leaked values and to pass after the fix. - No receipt-schema, config, or CLI changes. Receipts from v0.6.0 verify unchanged.
Upgrade
Same as v0.6.0: curl -fsSL https://selo.c1.run/install.sh | sh, or grab the
binaries / checksums.txt / checksums.txt.sigstore.json from the release
assets and verify with install.sh. The cosign keyless identity is unchanged
(C1-run/Selo, because this is < v0.7.0).
Still true (no change in this release)
- Default backend: the signing key is on the same host/OS-user as the agent, so a
receipt proves what Selo observed, not that the agent couldn't forge it. Use the
commandbackend (ADR-008) for a key outside that domain. - RFC3161 timestamping and Rekor transparency-log entries are opt-in flags, not
defaults. cmd/selohas three daemon/anchor tests that are flaky under full-suite load
(anchor failed: git add: fatal: not a git repository). Pre-existing and
unrelated to this fix; tracked separately.
Full Changelog: v0.6.0...v0.6.1
v0.6.0
v0.6.0 — the release where the macOS binaries actually start
If you downloaded selo-darwin-arm64 or selo-darwin-amd64 from v0.4.1,
v0.5.0 or v0.5.1, that binary cannot start on a current macOS. This release
fixes it. Everything else here is housekeeping; that is the one that mattered.
Nothing about the receipt format, the policy format or the CLI changed. If you
were on Linux, you were never affected, and this upgrade is a no-op for you.
What was broken
The darwin binaries in v0.4.1, v0.5.0 and v0.5.1 were all missing the Mach-O
LC_UUID load command:
$ otool -l selo-darwin-arm64 | grep -c LC_UUID
0
Newer macOS dyld refuses to load a Mach-O without it:
dyld: missing LC_UUID load command in ./selo
signal: abort trap
So the failure mode was this: read the README, run install.sh, watch it verify a
SHA-256 against checksums.txt, watch cosign verify-blob succeed against the
pinned workflow identity, watch slsa-verifier confirm the provenance — and then
get abort trap when you ran the binary. The installer worked perfectly. The tool
it installed could not run.
Post-mortem
Root cause. Go toolchains before 1.24 omit LC_UUID from darwin binaries.
Not "sometimes", not "under some flags": the toolchain decides it, and
CGO_ENABLED and -ldflags "-s -w" make no difference. Measured:
| toolchain | LC_UUID in a darwin binary |
|---|---|
| 1.21.13 | absent |
| 1.22.0 | absent |
| 1.23.0 | absent |
| 1.24.0 | present |
| 1.25.5 | present |
The release workflow pinned go-version-file: go.mod, and go.mod says
go 1.21. So the release job had been building with 1.21 the whole time, and
had been quietly shipping macOS binaries that the loader rejects. The CI leg that
would have caught it only ran on Linux, and Linux does not care about LC_UUID.
Why nothing noticed. install.sh verifies supply-chain integrity: the bytes
are ours, they are unmodified, and they were built by this workflow from this
commit. A binary that cannot be loaded satisfies every one of those properties
perfectly. Loadability is a property of the loader, not of the bytes, so no
amount of hashing or signing can see it. The trust chain was complete and
pointed at an unusable artifact.
How it surfaced. Only when CI was extended to run on macos-latest. The
macOS job went red, and — this is the tell — only the test binaries that import
net/net/http died. Those are the ones that take Go's external-linking path,
and it is that path where the missing load command bites. A partial failure set
like that is a toolchain signature, not a test bug. otool -l on the downloaded
v0.5.1 assets confirmed LC_UUID: 0 on both darwin binaries.
What changed
The toolchain is pinned to a floor, not to go.mod. Both workflows now set
go-version: '1.24.x' with a comment explaining why. go-version-file: go.mod
must not come back — it resolves to 1.21 and silently reintroduces this.
Loadability is now a fail-closed release gate. scripts/check-macho-uuid is
a small Go command that parses the Mach-O load commands and fails if LC_UUID is
absent. It runs in the release job before anything is signed or published, so a
non-loadable binary can no longer reach a release page:
ok selo-darwin-arm64 carries LC_UUID
ok selo-darwin-amd64 carries LC_UUID
It exits 0 only when every Mach-O input carries the load command, 1 if any
does not or any input cannot be read, and 2 if no Mach-O was checked at all —
so a glob that matches nothing fails rather than passing vacuously. Non-Mach-O
inputs (the Linux ELF binaries) are reported and skipped. CI runs the same check
on the macOS leg, so a toolchain regression fails on the commit that introduces
it rather than at tag time.
Receipt IDs no longer collide on a coarse clock. GenerateReceiptID returned
c1f-<UnixNano>, but macOS reports time.Now() at microsecond granularity —
measured 1000 ns on darwin/amd64. Calls landing in the same tick produced the same
id: 3217 duplicates out of 5000 back-to-back calls. That is not cosmetic, because
the id is the receipt's file name (receipts/c1f-<id>.json), so a duplicate
overwrote an earlier receipt instead of writing a new one. The old test compared
two ids, which usually straddled a tick and passed by luck. GenerateReceiptID
now holds a mutex and steps past the previous id; a new test asserts 5000
consecutive ids are distinct. This had been hidden behind the dyld abort too —
internal/receipt's test binary never ran on macOS at all.
Fixed
- A malformed glob in a scope contract silently disabled that boundary.
VerifyScopeContractevaluated eachallowed_paths/forbidden_pathsentry
withfilepath.Matchand dropped the error, so a pattern that does not compile
matched nothing and the run still reported clean. An operator who typed[a-z
instead of[a-z]*turned the control off with no signal. Patterns are now
validated at config load and at the top of the contract check; an invalid one
refuses the run and names the field and the pattern. (The validation probes each
pattern against its own bytes —filepath.MatchreturnsErrBadPatternonly
for the chunks it walks, so probing with a short string misses a malformed chunk
further along.) - The forbidden-claims scan failed open. It shelled out to
grepand
discarded the error, so on a host withoutgrep— or with agrepthat
rejected the arguments — every term was silently skipped and the control
reported no forbidden claims. It was also weaker than its own diff-scoped
sibling: plain substring matching (missingpr0duct1on_ready) over 7 file
extensions (missing.ymland.py). Both paths now share one in-process
matcher, so they cannot disagree. install.shno longer invokessudounnecessarily, and no longer fails
spuriously whengreploses a SIGPIPE race on the version lookup.
Security
SECURITY.mdnow draws the boundary explicitly. New section: What
install.shverifies — and what it does not.install.shproves supply-chain
integrity and provenance; loadability is enforced fail-closed at build time by
the release job. Together they are the delivery trust chain; neither alone is
sufficient.- The documented cosign identity used the wrong case. SECURITY.md told users
to pinC1-run/selo. cosign's identity regexp is case-sensitive, so anyone
following the docs would have rejected our own signature. NowC1-run/Selo,
matchinginstall.sh.
Upgrade notes
- Go 1.24 or newer is required to build a working darwin binary. Building with
1.21–1.23 still compiles; the resulting macOS binary just will not load. The
godirective ingo.modis unchanged, so nothing breaks for contributors on
older toolchains building for Linux. - If you are on macOS and on v0.5.1 or earlier, upgrade. Your current binary may
work on an older macOS and fail on a newer one, which is a confusing way to
discover this. - No config, receipt or policy changes. Receipts written by v0.5.x verify
unchanged.
Closing note
This shipped broken for three releases and nobody reported it. We found it by
extending CI to macos-latest and taking the red job seriously instead of
rerunning it. The unflattering version of this story is that a project whose
entire pitch is verifiable provenance spent three releases cryptographically
attesting to an artifact that could not start — and its own verifier could not
tell.
That is the argument for running your CI on the platform you ship to, and for
treating "the binary cannot load" as a first-class failure mode of a release
pipeline rather than something the installer is expected to notice.
Full Changelog: v0.5.1...v0.6.0