Skip to content

feat(ship): executable pull-request rail, and canary 5 with it - #86

Merged
AetherAI3 merged 1 commit into
mainfrom
feat/ship-rail
Aug 19, 2026
Merged

AetherAI3 merged 1 commit into
mainfrom
feat/ship-rail

Conversation

@AetherAI3

Copy link
Copy Markdown
Owner

Why this exists

Canary 5 could not be written, because there was nothing to attack.

repo.ts's prCreateHint returns a string for the user to type. No code in this repo has ever invoked gh pr create. A fake-gh harness would have asserted against code that did not exist — which is exactly why that canary sat unrun through the whole A0–A5 wave.

This lands the path, so the canary becomes real.

Contract

src/core/ship.ts keeps three rules:

  1. argv arrays, never a shell string. A title, branch or body is attacker-influenced the moment a model writes it. A command-substitution payload is only dangerous if a shell ever sees it — nothing here builds a command line.
  2. The user's own gh session. No env is set, so the child inherits their configuration exactly as ghAuthStatus already does. No Aether credential is reachable from this module.
  3. Nothing merges, nothing pushes to a base. It opens a pull request and returns its URL. Landing it stays a human action.

Refusals happen before gh runs at all

About intent, not just syntax:

input why refused
--repo=evil/repo as head gh would swallow it as a flag
base == head a pull request onto itself is never what was meant
main / master as head the work was committed somewhere it should not have been
empty title a pull request needs one

A refused ship invokes gh zero times — asserted, not assumed.

Environment failures are reported as themselves

  • missing gh → says so, and prints the manual command
  • signed out → says signed out, and never attempts creation
  • exit 0 with no URL printed → a failure, not a silent pass

That last one matters: gh returning success while printing nothing usable is the shape that would otherwise produce a confident "shipped!" with no pull request.

Canary 5 — 15 tests

The load-bearing ones assert the exact vector handed to gh:

  • a hostile title stays exactly one argv element, immediately after --title, and appears exactly once
  • a hostile body and branch likewise
  • no element anywhere can be merge, push, --force, --admin, --auto
  • no credential shape (aek_, Authorization, GH_TOKEN, GITHUB_TOKEN, x-access-token, --with-token) reaches the argv

Mutation-checked. Collapsing the argv into a single shell-style string — precisely the naive implementation this module exists to avoid:

result
mutated 12 pass / 3 fail, including the hostile-title canary
restored 15 / 15
command result
npm run typecheck exit 0
npm test 1109 pass / 0 fail

Scope — deliberately not wired yet

This changes no user-visible behaviour. The module and its canary land first; nothing calls openPullRequest from a command.

That is intentional. Opening a pull request publishes work under the user's name, so the CLI surface needs an explicit confirmation showing repository, head, base and title before anything is created — renderShipPlan exists for that and is tested, but the command that uses it is the next slice.

Landing the rail inert mirrors how the skills runtime landed in #72: the primitive and its proof first, the surface after.

Release clearance

canary
1 denied mutation ✅
2 live-child cancel ✅
3 reconnect replay ✅
4 remote freshness ✅
5 fake-gh ship ✅ this PR
6 cap across reconnect ✅
7 brain parity ❌ still blocked — LocalBrain has no injectable transport

Six of seven now run on every build. Canary 7 needs a seam on the Python path before it can be written; it is not stubbed green.

Canary 5 could not be written because there was nothing to attack. repo.ts's
prCreateHint returns a STRING for the user to type; no code in this repo has
ever invoked `gh pr create`. A fake-gh harness would have asserted against code
that did not exist, which is why that canary sat unrun.

This lands the path, so the canary becomes real.

src/core/ship.ts keeps three rules:

  1. argv arrays, never a shell string. A title, branch or body is
     attacker-influenced the moment a model writes it, and a command-substitution
     payload is only dangerous if a shell ever sees it. Nothing here builds a
     command line.
  2. the user's own gh session. No env is set, so the child inherits their
     configuration exactly as ghAuthStatus already does. No Aether credential
     is reachable from this module.
  3. nothing merges, nothing pushes to a base. It opens a pull request and
     returns its URL. Landing it stays a human action.

Refusals are about intent, not just syntax, and happen BEFORE gh is invoked at
all: a head branch parsing as an option (`--repo=evil/repo`) would be swallowed
by gh as a flag; a pull request from a branch onto itself is never what was
meant; and `main` as the head means the work was committed somewhere it should
not have been. An empty title is refused too.

Environment failures are reported as themselves rather than guessed past. A
missing gh CLI says so and prints the manual command; a signed-out gh says
signed out and never attempts creation; and a zero exit with no URL printed is
a failure, not a silent pass.

Canary 5, 15 tests. The load-bearing ones assert the exact vector handed to gh:
a hostile title stays exactly ONE argv element immediately after --title, and
appears exactly once; a hostile body and branch likewise; no element anywhere
can be merge, push, --force, --admin or --auto; and no credential shape (aek_,
Authorization, GH_TOKEN, GITHUB_TOKEN, x-access-token, --with-token) reaches
the argv.

Mutation-checked: collapsing the argv into a single shell-style string — the
naive implementation this module exists to avoid — fails 3 canaries including
the hostile-title one (12 pass / 3 fail). Restored, 15 / 15.

NOT wired to a command yet, so this changes no user-visible behaviour. The
module and its canary land first; the CLI surface, which must ask before
publishing anything under the user's name, is the next slice.

Gates at this commit:
  npm run typecheck   exit 0
  npm test            1109 pass / 0 fail
@AetherAI3
AetherAI3 merged commit 1aac348 into main Aug 19, 2026
5 checks passed
@AetherAI3
AetherAI3 deleted the feat/ship-rail branch August 19, 2026 15:07
AetherAI3 added a commit that referenced this pull request Aug 22, 2026
…notes claim

On 2026-08-20 this repository described five different releases at once.
package.json said 0.2.0. package-lock.json still said 0.1.0 — the #81 bump never
touched it. RELEASE_NOTES.md's top entry described a 0.2.0 whose feature list was
written at 477f0fc, before #72 added `aether skills`, `aether capabilities` and
`aether support-bundle`. The npm registry served 0.1.0 and nothing else. And a
packed aether-agents-0.2.0.tgz sat in the repo root from #83 until #90 deleted
it, containing a build with no skills runtime in it at all.

Nothing was lying on purpose. The four statements drifted apart because nothing
compared them.

0.2.0 -> 0.3.0, not 0.2.1
-------------------------
#72 is a backwards-compatible feature addition — a skills runtime, three new CLI
commands, six built-in skills shipped inside the package — that the v0.2.0 notes
never mentioned. Semver makes that a minor bump.

Reusing 0.2.0 was rejected on identity grounds. 0.2.0 already names a specific
dated artifact: the August 19 notes entry, the README availability paragraph,
install.sh's pin example, and that committed tarball. Publishing different
contents under the same version would make two materially different artifacts
answer to one name, which is the defect this release exists to close. 0.2.0 is
retired unused; it will never be published.

Reconciled
----------
- package.json, package-lock.json (both version fields) and src/version.ts all
  say 0.3.0.
- RELEASE_NOTES.md leads with v0.3.0 covering 477f0fc..ed094dc: one feature,
  nine user-visible fixes, three test-only commits, one unwired module (#86 ship
  rail, which no command invokes), one docs commit. The v0.2.0 entry is marked
  superseded rather than rewritten — it is the record of what was written that
  day, not an install instruction.
- README and the release log name 0.3.0, and both still say plainly that
  `npm i -g aether-agents` gives you 0.1.0, because it does.

New gate: test/release_coherence.test.ts
----------------------------------------
Gate A asserts every place that names the release names the same one — including
both package-lock version fields, which is the drift nothing was watching.

Gate B is the load-bearing one: for every feature the release notes claim, the
code behind it must be present in the file list `npm pack` would actually ship,
and the command exposing it must be in the CLI registry. The source checkout's
dist/ is NOT the package — the allowlist is dist/src plus four docs.

Mutation-checked. Adding "!dist/src/commands/skills.js" to the files allowlist
silently drops `aether skills` from the tarball:

  verify:production  ->  {"ok":true, ... "packedFiles":523}   MISSED IT
  release_coherence  ->  FAIL: dist/src/commands/skills.js
                              (agent skills runtime — `aether skills`)

Restored: 7/7 pass, 524 packed files.

New: npm run release:candidate
------------------------------
release.yml only runs after a founder has already tagged and published, so
everything it checks is checked too late to change the decision. This runs the
same sequence, in the same order, before the tag exists — against a detached
git worktree of a specific commit, never the dirty checkout. A dirty tree is
refused unless --allow-dirty, which marks the report commitBound:false rather
than pretending.

Every CLI proof runs the binary npm installed from the packed tarball into a
clean prefix: --version, --help, `skills list`, `capabilities`, and the handoff
demo (the demo harness is not shipped, so it is placed beside the installed
package and resolves the CLI and its imports from the tarball's own dist/src).

Skipped steps are recorded as "not-run" with a reason and can never read as a
green tick — the full npm test suite is release.yml's gate and says so in the
report. No string is handed to a shell: npm is reached through its own JS
entrypoint under node, so every argument stays an argument.

Also
----
- scripts/verify-production.ts exports createPackReport, so a gate reasoning
  about what a user receives asks npm instead of reading the build directory.
- test/release_canaries.test.ts's coverage map said canaries 5 and 7 were
  unwritable. #86 and #87 wrote them two commits later; the excuse outlived the
  condition. The map is now enforced by a test that reads the delegated files.
- docs/releases/OPERATOR-PACKET-v0.3.0.md: the founder-owned publish sequence,
  with what is proven and what is explicitly not.

Gates at this commit:
  npm run typecheck                      exit 0
  release + production test files        21 pass / 0 fail
  npm run verify:production --tag v0.3.0 ok

Full npm test NOT run locally (a tool_executor test does not return on this
Windows box); CI is the authority.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
AetherAI3 added a commit that referenced this pull request Aug 23, 2026
… a command (#102)

* feat(review): structured repository state, and a verification that knows what it verified

The review/ship rail needs one honest answer to "what is the state of this
repository right now?" before it can offer to stage, commit or publish
anything. This is that answer, plus the piece that keeps "verified" from
becoming a label with no tree behind it.

review_state.ts reads the whole state in one pass through an injected Runner:
repository root, remote identity, head branch and revision, base branch and the
revision it resolved to, commits ahead of and behind that base, and every
changed path with both halves of its status code. Three things it refuses to
round off:

- The push URL is read with `git remote get-url --push`, separately from the
  fetch URL. A configured `remote.<name>.pushurl` makes them differ, and a rail
  that confirmed the fetch URL would then publish somewhere the user was never
  shown. The pull-request target follows the push URL for the same reason.
- Unknown stays unknown. An unresolvable base leaves ahead/behind null rather
  than zero; a base read from a local tracking ref is never reported as
  fetched; a failed fetch carries git's own reason.
- A rename entry in porcelain v2 spans two NUL fields. Reading each field as an
  entry turns the origin path of every rename into a phantom changed file, so
  the parser consumes it deliberately.

verification_record.ts stores a verify-gate result together with the identity
of what it verified: the head commit and a digest of the working tree, where
untracked content is hashed rather than listed (a green run that depended on an
untracked fixture must not survive an edit to that fixture). classify()
compares identity BEFORE it consults the exit code, so neither a stale green
record nor a stale red one can be rendered as current. There is no path that
upgrades unknown or stale to verified.

Tests cover the parser vectors, the pushurl-divergence case, unknown-not-zero,
disk round-trip, corruption and a future schema version, plus two real-git
canaries. Mutation check: disabling the head-identity comparison fails three
tests, including the stale-red one.

* feat(review): select, stage, unstage, revert and commit exactly what was chosen

The second layer of the review/ship rail: the mutating half. It turns a
selection over the repository state from the previous commit into index and
worktree changes, and it is written so that four properties are structural
rather than remembered.

You may only act on a path the state reported. Every entry point takes the
state and a selection of names, resolves the names against the paths git
listed, and refuses the ones that do not match — so a crafted name never
reaches git at all rather than being escaped on the way. Combined with `--`
and core.literalPathspecs, there is no route from a name to a git option.

Nothing is destroyed that a preview did not name. planRevert returns the exact
patch text it would discard; applyRevert re-reads the diff and refuses if it no
longer matches, so an edit landing between the preview and the confirmation
cancels the revert instead of discarding whatever is there now. A file with
staged content is described as restoring to "its staged state", because that is
what `git restore` actually does.

A commit contains the selection and nothing else. planCommit refuses an index
that already holds paths the user did not select (selecting them is how you
include them); commitSelected stages, verifies the index equals the selection,
verifies the worktree still matches the index, and resets rather than
committing if either check fails.

Hunk selection is real: a patch is rebuilt from the selected hunks with git's
own preamble and applied with `git apply --cached`, so half a file can be
staged and the rest left in the worktree. Binary files are refused rather than
half-handled.

Evidence: 16/16 in test/review_actions.test.ts, eleven of them driving a real
repository. Mutation checks — disabling the unrelated-staged refusal fails the
"someone else's staged file" test; disabling the preview comparison fails the
revert-race test.

* feat(ship): publish HEAD and only HEAD, and bind the work to what carries it

The third layer of the review/ship rail, and the one where work leaves the
machine. Everything before it is local and undoable; a push is neither, so
publish.ts is written as a list of refusals.

Only HEAD is pushed, to a branch of the same name, through a refspec that is
fully qualified on both sides — the short form resolves the source through
git's ref lookup, where a tag or a remote ref sharing the name is what actually
travels. A head named main, master, HEAD, trunk or develop is refused outright,
and so is a head that is also the resolved base: work committed to the base was
committed in the wrong place, and publishing it is not the fix. There is no
--force, --force-with-lease, --delete, --tags or --mirror anywhere in the file,
and a test asserts the argv never grows one. A rejected non-fast-forward push
returns git's own message plus a hint that says, in as many words, that this
rail does not force.

The destination is re-read immediately before the push and compared to what the
plan rendered. A remote that changed between the confirmation and the push is a
different destination, and the consent was for the old one.

planShip derives the pull request from the same state, using the remote's PUSH
url — so the pull request opens against the repository the commits actually went
to, which is the one thing a fetch-url slug cannot guarantee. It refuses a
non-GitHub remote plainly instead of inventing a slug.

ship_record.ts joins the five identities that were each recorded separately and
never together: session, worktree, branch, commit, pull request. Two rules carry
it. A record whose commit no longer matches is rebound rather than updated, so an
old pull request never describes newer work. And a worktree may only be cleaned
up when everything in it exists somewhere else — clean tree, published commit,
pull request that carries it. Branch names are hashed into the record path, never
used as one.

Evidence: 29/29 across test/publish.test.ts and test/ship_record.test.ts,
including a real-git canary that pushes into a real bare repository and then
asserts the base ref on the server did not move and no tags were pushed.
Mutation checks: dropping the protected-head list fails three tests; dropping
the destination re-read fails the changed-remote test; carrying a stale record
forward fails the new-commit test.

* feat(review): the one writer for a verification record, and the one condition it writes under

verification_record.ts could only be read. A field with no writer is the defect
class this repository keeps finding, and a read-only verification store is that
defect with a safety label on it: the rail would have shown "unknown" forever
and nobody would have noticed it could never show anything else.

verifyAndRecord is the only writer. It identifies the working tree, runs the
command through the caller's VerifyRunner — the same interface and the same
ToolExecutor the host verify gate uses, so no command string is assembled or
interpreted here — and identifies the tree again afterwards.

If the tree moved while the command ran, nothing is written. A suite takes time,
and an agent write or an editor save during it leaves a result that is true of
no tree that exists; recording it would mint exactly the misleading claim that
classifyVerification exists to catch on read. The reading returned in that case
is "unknown" with a reason that says the run cannot be attributed, and the raw
output and exit code are still handed back for the caller to display.

Otherwise the record is written and classified through classifyVerification —
the same function a later read uses, so the status shown now and the status
shown in ten minutes come from one implementation.

Evidence: 6/6 in test/verify_run.test.ts, five driving a real repository (green,
red with a parsed failing count, a tracked file changing mid-run, an untracked
file appearing mid-run, and replace-then-go-stale). Mutation check: removing the
before/after comparison fails both attribution tests.

* feat(review): the review → commit → pull request rail, reachable as a command

Commit #86 landed a secure PR-creation core in src/core/ship.ts and
deliberately did not wire it to anything. Its own message said the CLI
surface was the next slice. This is that slice: the command and UX layer
over the review core, so a finished piece of work can be looked at,
selected, committed, published and turned into a pull request without
leaving the terminal.

    aether review / /review     what changed, pick files or hunks,
                                stage, unstage, revert, commit, verify
    aether ship   / /ship       publish the head branch, open the PR

What was a printed string before and is an action now:

  * src/commands/code.ts ended a --repo run with prCreateHint() — a gh
    incantation the user retyped. It offers the rail instead, and the
    command it names in a pipe/CI run exists.
  * /stage-diff ended with "copy the commit message above". It ends with
    /review and /ship.

Three properties the shape of this layer comes from:

  1. Unknown is never rendered as zero or as verified. Line counts come
     from `git diff --numstat -z`; a binary file's "-" stays null and
     renders "+? -?", and the totals NAME the files they exclude. The
     verification line is classifyVerification's own reason, verbatim,
     in both the review screen and the ship confirmation — there is no
     branch in this layer that can turn stale or unknown into green.
  2. A command is fully viewable before approval. The ship confirmation
     renders each command as its argv VECTOR, one element per line, with
     nothing truncated — a 5000-character title and a 40-line body are
     shown whole. A one-line `$ gh pr create --title "…"` preview is
     wrong twice: it implies a shell parses it, and it has to elide.
  3. `--yes` is not authority. It approves reading, staging and
     committing. Discarding work needs `--approve destructive`;
     publishing needs `--approve publish`. Both boundaries are proven by
     the ABSENCE of the mutation and of the spawn, not by a warning.

Everything about what may be pushed, where, and whether it fast-forwards
stays in core/publish.ts; every mutation is a call into
core/review_actions.ts. This layer re-derives none of it.

`/review` was already taken by an Agent-Modes prompt macro. It is
renamed `/project-review`, here and in COMMANDS.md — stated rather than
silently replaced. It could not coexist: applyPromptMode runs before
handleSlash and matches no-arg modes by prefix, so every `/review …`
line was rewritten into a prompt and the dispatcher never saw it.

Every flag the layer reads is declared in main.ts's parseArgs options.
parseArgs runs with strict:false, which swallows an undeclared flag into
values and strips it from the positionals — so an undeclared --files
reaches the command as neither, and the command reports success having
done nothing. test/review_flags.test.ts asserts the parsed argv for each
one, and proves the trap is real by removing a declaration.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>

* test(review): pin the /review rename by ROUTING, not by table membership

test/prompt_modes.test.ts still looked `/review` up in the modes table and
called .startsWith on undefined, so the rename to `/project-review` left the
suite red. Stopping the throw was not enough: the property that broke is which
handler a typed token reaches, and "`/review` is absent from MODES" can stay
true while the bug returns — re-add a mode named `/rev`, or loosen the prefix
rule, and `/review` is a paid prompt rewrite again.

So the guard drives the real composition (applyPromptMode, then handleSlash,
in chat.ts's order) against a real temp repository and identifies the handler
that answered by output only it can produce: `/review help` must print the
rail's "usage: aether review", `/code-review` must reach the code-review macro,
`/project-review` must reach the prose macro. The two membership assertions are
kept as cheap failure localisers, not as the guard. Verified by mutation: with
the prose macro renamed back onto the `/review` prefix, the routing test fails.

COMMANDS.md carried the rename too — the Agent-modes row still described
`/review` as the prose macro — and the rail's `/review` and `/ship` had no
human row at all, only the markered index the parity test reads.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>

* test(ship): assert the pull-request URL by substring, not a regex built from it

CodeQL flagged `js/incomplete-sanitization` (high) here: the assertion built a
RegExp out of PR_URL with `.replace(/[/.]/g, "\$&")`, which escapes slashes and
dots and leaves backslashes alone. It was the only new alert on this branch and
it turned the advanced-security check red on everything carrying this stack.

Escaping a URL into a pattern is the wrong tool for "this exact text was
printed". The failure mode is the dangerous direction: a metacharacter the
escape set misses silently WIDENS what the assertion accepts, so the test keeps
passing while checking less than it claims to. PR_URL is a constant and the test
wants it back verbatim, so there is no pattern to match — `includes()` says
exactly that, and cannot be widened by a character nobody remembered.

Mutation-checked rather than assumed: dropping `${opened.url}` from ship.ts's
"PR opened:" line fails this assertion with "the pull request URL was never
reported". Restored byte-identical afterwards.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>

* test(ship): assert the pull-request URL as an exact token, not a substring

CodeQL flagged includes(PR_URL) as js/incomplete-url-substring-sanitization.
It is a test assertion rather than sanitization, but the substring form is
also the weaker check: any host wrapping the URL would satisfy it. Split the
output on whitespace and require the URL verbatim as its own token.

---------

Co-authored-by: DBarr3 <[email protected]>
Co-authored-by: DBarr3 <[email protected]>
Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
AetherAI3 added a commit that referenced this pull request Aug 23, 2026
…notes claim (#96)

* release: cut v0.3.0, and make the package prove it contains what the notes claim

On 2026-08-20 this repository described five different releases at once.
package.json said 0.2.0. package-lock.json still said 0.1.0 — the #81 bump never
touched it. RELEASE_NOTES.md's top entry described a 0.2.0 whose feature list was
written at 477f0fc, before #72 added `aether skills`, `aether capabilities` and
`aether support-bundle`. The npm registry served 0.1.0 and nothing else. And a
packed aether-agents-0.2.0.tgz sat in the repo root from #83 until #90 deleted
it, containing a build with no skills runtime in it at all.

Nothing was lying on purpose. The four statements drifted apart because nothing
compared them.

0.2.0 -> 0.3.0, not 0.2.1
-------------------------
#72 is a backwards-compatible feature addition — a skills runtime, three new CLI
commands, six built-in skills shipped inside the package — that the v0.2.0 notes
never mentioned. Semver makes that a minor bump.

Reusing 0.2.0 was rejected on identity grounds. 0.2.0 already names a specific
dated artifact: the August 19 notes entry, the README availability paragraph,
install.sh's pin example, and that committed tarball. Publishing different
contents under the same version would make two materially different artifacts
answer to one name, which is the defect this release exists to close. 0.2.0 is
retired unused; it will never be published.

Reconciled
----------
- package.json, package-lock.json (both version fields) and src/version.ts all
  say 0.3.0.
- RELEASE_NOTES.md leads with v0.3.0 covering 477f0fc..ed094dc: one feature,
  nine user-visible fixes, three test-only commits, one unwired module (#86 ship
  rail, which no command invokes), one docs commit. The v0.2.0 entry is marked
  superseded rather than rewritten — it is the record of what was written that
  day, not an install instruction.
- README and the release log name 0.3.0, and both still say plainly that
  `npm i -g aether-agents` gives you 0.1.0, because it does.

New gate: test/release_coherence.test.ts
----------------------------------------
Gate A asserts every place that names the release names the same one — including
both package-lock version fields, which is the drift nothing was watching.

Gate B is the load-bearing one: for every feature the release notes claim, the
code behind it must be present in the file list `npm pack` would actually ship,
and the command exposing it must be in the CLI registry. The source checkout's
dist/ is NOT the package — the allowlist is dist/src plus four docs.

Mutation-checked. Adding "!dist/src/commands/skills.js" to the files allowlist
silently drops `aether skills` from the tarball:

  verify:production  ->  {"ok":true, ... "packedFiles":523}   MISSED IT
  release_coherence  ->  FAIL: dist/src/commands/skills.js
                              (agent skills runtime — `aether skills`)

Restored: 7/7 pass, 524 packed files.

New: npm run release:candidate
------------------------------
release.yml only runs after a founder has already tagged and published, so
everything it checks is checked too late to change the decision. This runs the
same sequence, in the same order, before the tag exists — against a detached
git worktree of a specific commit, never the dirty checkout. A dirty tree is
refused unless --allow-dirty, which marks the report commitBound:false rather
than pretending.

Every CLI proof runs the binary npm installed from the packed tarball into a
clean prefix: --version, --help, `skills list`, `capabilities`, and the handoff
demo (the demo harness is not shipped, so it is placed beside the installed
package and resolves the CLI and its imports from the tarball's own dist/src).

Skipped steps are recorded as "not-run" with a reason and can never read as a
green tick — the full npm test suite is release.yml's gate and says so in the
report. No string is handed to a shell: npm is reached through its own JS
entrypoint under node, so every argument stays an argument.

Also
----
- scripts/verify-production.ts exports createPackReport, so a gate reasoning
  about what a user receives asks npm instead of reading the build directory.
- test/release_canaries.test.ts's coverage map said canaries 5 and 7 were
  unwritable. #86 and #87 wrote them two commits later; the excuse outlived the
  condition. The map is now enforced by a test that reads the delegated files.
- docs/releases/OPERATOR-PACKET-v0.3.0.md: the founder-owned publish sequence,
  with what is proven and what is explicitly not.

Gates at this commit:
  npm run typecheck                      exit 0
  release + production test files        21 pass / 0 fail
  npm run verify:production --tag v0.3.0 ok

Full npm test NOT run locally (a tool_executor test does not return on this
Windows box); CI is the authority.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>

* docs(release): fill the operator packet with the commit-bound candidate evidence

Run against a63e1c6 in a detached worktree: commitBound true, ok true, exit 0.
Tarball aether-agents-0.3.0.tgz, 524 entries, 589,829 bytes packed / 2,435,029
unpacked, sha256 25f33524bd866275674eccbf8cfe5706f14e925cb0ba35861dc6bc21a9245a2d.

The digest came out identical from an uncommitted tree and from the detached
worktree, which is recorded as content stability across a docs-only commit and
explicitly NOT as a cross-machine reproducibility claim.

Also records the mutation check: dropping dist/src/commands/skills.js from the
files allowlist leaves verify:production reporting ok:true at 523 files, and
fails release_coherence by name.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>

* release: cover #98 in the notes, and make the coherence gate bidirectional

The ground moved while PR #96 was open. #98 squash-merged to main, main became
426b124, and the v0.3.0 notes said nothing about it — which is this lane's own
defect arriving from the direction the lane did not gate.

WORK A: the notes now cover #98
-------------------------------
Its user-visible half is three fixes, and the first is the exact failure class
this codebase forbids:

- `aether doctor --live` never received --live. main.ts parses non-strictly, so
  a flag the command had not declared was captured globally and stripped from
  what the command was handed. --live ran the fast configured-only report and
  EXITED 0, presenting a live end-to-end verification that was never performed.
  Unknown rendered as verified. --deep, --dry-run, --no-ui and --only were lost
  the same way, and the whole --fix repair path was unreachable.
- `aether doctor --fix --yes` answered "re-run with --yes" to someone who had
  just passed it, because the global --yes never arrived either.
- Command lookup lowercased the token while dispatch was case-sensitive, so
  `aether Vault` fell past the typo guard into a chat turn and billed a paid
  model call.

The seam itself is announced too: a command now carries its own help metadata,
flag table and loader in one entry, flag collisions are load-time errors, and
reachability is structural rather than a regex over main.ts's source.

Range moves 477f0fc..ed094dc -> 477f0fc..426b124, 16 commits -> 17, across
RELEASE_NOTES.md, docs/releases/2026-08-22.md and the operator packet. Fixed a
miscount while re-deriving: the packet said "9 user-visible fixes" over a list of
ten.

WORK B: the gate now runs both directions
-----------------------------------------
Gate B ran notes -> package: a claim with no code behind it fails. It could not
see the inverse — a user-visible command that ships with NO claim anywhere — and
the inverse is what actually keeps happening, once per lane that lands between
the note being written and the tag being cut.

Gate C: every non-hidden command in the CLI registry must be announced by some
release note, or named in SHIPPED_WITHOUT_A_NOTE with a reason. An explicit list
is fine; silence is not. It is enforced in both directions — a stale entry fails,
and an entry that IS announced fails — so it cannot rot into a permanent bypass
that quietly absorbs the next unannounced command. Every entry must also appear
in the operator packet, because the founder cutting the tag is the person who
needs to know what goes out unannounced. 15 commands are on it today; all predate
the release log or were announced by capability in the June 2026 entry, and none
is new in this release.

Mutation-checked, per the controller's instruction. Added to the registry:

  { name: "teleport", args: "<dest>",
    summary: "beam the working tree somewhere", section: "System" }

  verify:production  -> {"ok":true, ... "packedFiles":527}        MISSED IT
  release_coherence  -> FAIL: no user-visible command ships without either a
                        release note or a named exemption
                        + [ 'teleport — beam the working tree somewhere' ]
                        - []

Registry restored byte-identical (md5 37b3f944…, `git status src/` empty),
10/10 pass. cli_registry.ts is read-only for this lane: it was mutated only in
the working tree, never committed, and the restore is verified by digest.

Also: Gate B now reads the registry by IMPORTING it instead of by regex over its
source. #98 replaced "reachability asserted by a regex over main.ts" for exactly
this reason, and it immediately split the commands across CLI_COMMANDS and
DISPATCH_COMMANDS — a source regex keyed on one array would have silently
stopped covering the other. doctor is in the second one.

Gates at this commit:
  npm run typecheck            exit 0
  release_coherence            10 pass / 0 fail

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>

* docs(release): re-cut the candidate on the new base, and record the digest change

The base moved to 426b124 (#98), so every number in the packet was taken against
a tree that no longer exists. Re-run, commit-bound, at 22aa021:

  commitBound true, ok true, exit 0
  aether-agents-0.3.0.tgz
  sha256 8c5c119d93cabf49af0c49c97addb055308d508af93f8675a26b6f5c8ecba307
  527 entries, 597,400 packed / 2,459,474 unpacked

The digest CHANGED from the a63e1c6 run (25f33524…, 524 entries), and the packet
now says why that is the correct outcome rather than a discrepancy: #98 added
dist/src/core/command_dispatch.* and rewrote main.js, so the packed content is
genuinely different. A digest that had survived that change would have meant the
pack was not reading the tree.

Both mutation checks were re-measured against this base rather than carried
forward:

  skills drop   verify:production {"ok":true, ... "packedFiles":526}  MISSED IT
                release_coherence FAIL: dist/src/commands/skills.js
                restored -> 527 files, 10/10 pass

  teleport      verify:production {"ok":true, ... "packedFiles":527}  MISSED IT
                release_coherence FAIL: 'teleport — beam the working tree
                somewhere'
                restored -> registry byte-identical, 10/10 pass

I had initially edited the skills figure from 523 to 526 by inference. That is a
number nobody measured, so it was re-run before being written down.

Release-owned suite at this commit: 24 pass / 0 fail.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>

* release: regenerate the v0.3.0 truth against the merged main

* release: cover #105 in the v0.3.0 notes

* release: bind the v0.3.0 operator packet to the head that carries #105

Regenerates the packet against a845479 (origin/main after #105): base SHA,
evidence commit, tarball digest, packed entry count, the recorded
release-candidate run, and the coverage breakdown.

Two corrections rather than refreshes:

- Section 5 no longer lists the full test suite as unproven. It was run at
  the evidence commit (1464 tests, 1460 pass, 0 fail, 4 skipped); what is
  genuinely unproven is the suite INSIDE the candidate run, which reports
  npm-test as not-run by design.
- Two new unproven entries name the deployed API. The notes' Authentication
  claims are about a server this repository cannot test, and #105 exists
  precisely because `aether agent` does not work end to end against
  production today. Both are marked rather than implied.

* release: record the measured tarball size, not a rounded one

The packed size in the packet header was written from npm's rounded
"740.0 kB" notice rather than measured. The tarball is 739,977 bytes.
A digest and a byte count that disagree are the same class of defect
this packet exists to close.

---------

Co-authored-by: DBarr3 <[email protected]>
Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
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