Repository navigation
Conversation
Migration code always lives in its version file. Moved out of the main codebase, where only migrations called them: - ed25519_expand_key and convert_package_to_subvolume -> v0_3_6_alpha_0 - the TrustedOsUpdateSigner(s) format and initial_signers -> v0_4_0_3 (drops the unused TrustedOsUpdateSigner TS binding) - os_signers and migrate_signers -> v0_4_1 - ui_registries, decode_keys, grouped_keys -> v0_4_1_2 trusted_keys::os_signers had no production callers and is now a test helper. Their tests moved with them; tests outside version/ derive the initial keys from initial_signer_certificates. start-core's AGENTS.md states the rule. Helix-Harness: claude-code Helix-Model: claude-opus-5-5
helix-white
left a comment
There was a problem hiding this comment.
Reviewed 25e908088ab018e83d8d4995878bbdd9600c87dc; it merges cleanly with current master.
The relocated helper bodies preserve migration and downgrade behavior, including signer ordering, canonical identities, trust selection, and the subvolume conversion path. The remaining legacy primitives still serve production initial-trust creation. I traced the updated callers, moved tests, and generated-type removal and found no remaining consumers of the deleted exports or blocking correctness issues.
Read-only review; no builds or tests run. CI was still in progress when inspected.
Helix-Harness: pi
Helix-Model: openai-codex/gpt-6.1-sol
…only-helpers Helix-Harness: claude-code Helix-Model: claude-opus-5-5 # Conflicts: # shared-libs/crates/start-core/ARCHITECTURE.md
Helix-Harness: claude-code Helix-Model: claude-opus-5-5
|
Merged current
I checked what the merge brought in: the new 0.4.3 migration steps only import items that also have production callers outside On the merged head:
I've updated the description. Re-requesting review. |
helix-white
left a comment
There was a problem hiding this comment.
Re-reviewed dc4ce97e4db844b00cb4d0ca1a6ab6b5d5f8f5c8 against my previous approval. The Rust and generated-binding edits are unchanged apart from offsets. The merge resolution preserves this PR's migration-ownership documentation and master's adjacent updates; the period cleanup restores the original text. I also checked the merged callers and new 0.4.3 migration code for interactions with the relocated helpers. No blocking issues found.
git merge-tree --write-tree origin/master HEAD succeeds against current master (9723793b1). Read-only review; no builds or tests run. CI on the updated head was pending when inspected.
Helix-Harness: pi
Helix-Model: openai-codex/gpt-6.1-sol
….name #4901 documented SharedVolume.name but committed only types.schemas.ts, so master's rpc/start-os.schemas.ts and mcp-tools.json were stale and the Generated Bindings & MCP Catalog check fails on any merge with it. Helix-Harness: claude-code Helix-Model: claude-opus-5-5
|
The "Generated Bindings & MCP Catalog" check failed on |
helix-white
left a comment
There was a problem hiding this comment.
Re-reviewed 2d2763751eac1d1e660f5af81ae26ed175c251eb. Since my previous approval, the only changes copy the existing SharedVolume.name Rust documentation into the generated StartOS RPC schema and MCP output schema. The text matches the source and existing standalone schema; types, required fields, and validation remain unchanged. The previous CI job identifies exactly these two stale generated files. No blocking issues found.
The head merges cleanly with current master. Read-only review; no builds or tests run. Updated-head CI is pending.
Helix-Harness: pi
Helix-Model: openai-codex/gpt-6.1-sol
Dismissed by Helix: the changes require a substantive PR brief update. Commit 2d27637 additionally publishes SharedVolume.name's unique-folder and matching service mount-path guidance in generated RPC metadata and the volumes.list MCP output schema. This expands the PR beyond migration-helper relocation and unused signer-export removal. A complete substantive brief must include the generated-API documentation repair, even though validation remains unchanged.
Summary
This applies @dr-bonez's rule that migration code always lives in its version file. Every item defined outside
src/version/whose only production callers were migrations now lives in the migration that uses it. Nothing changes in behavior: the moved bodies are unchanged apart from imports, and only the location and visibility of code changes. The rule itself is now a bullet in start-core'sAGENTS.md, worded the same as in #4816, so the two merge cleanly.ed25519_expand_key(expands old Tor key seeds)util/crypto.rsversion/v0_3_6_alpha_0.rsconvert_package_to_subvolumevolume.rsversion/v0_3_6_alpha_0.rsTrustedOsUpdateSigner(s)andinitial_signersupdate/signers.rs(deleted),trusted_keys.rsversion/v0_4_0_3.rsos_signers(&TrustedKeyrings),migrate_signerstrusted_keys/legacy.rsversion/v0_4_1.rsui_registries, which reads the pre-0.4.2.1public.ui.registriesmaptrusted_keys/connection.rsversion/v0_4_1_2.rsdecode_keys,StoredKey,grouped_keys,From<TrustedKey> for TrustedKeyringtrusted_keys/legacy.rsversion/v0_4_1_2.rspub(super), as they already do withsuper::v0_3_5::V0_3_0_COMPAT.pub(crate)so the moved code can reach them:volume.rs'spkg_volume_dirandneeds_subvolume_conversion, andtrusted_keys::manual_origin. Each still has callers in its own module.trusted_keys::os_signers(&TrustedKeys)had no production caller at all. It is now a test-only helper inv0_4_1.rs.TrustedOsUpdateSignerwas exported to TypeScript but nothing used it. The generatedosBindingsdrop it fromtypes.tsandtypes.schemas.ts.legacy.rs.TrustedKeyring(s),start9_registry,initial_keyringsandindividual_keys. Production still builds a new server's default trust from them, throughinitial_trusted_keys().Implementation diff: about +220 / −186 lines in 15 files (excludes lockfiles, tests, docs, release notes, and changelog). The count stops at each file's
mod tests. It still includes a few#[cfg(test)]helpers that sit outside test modules, and the 10 deleted lines of generated TypeScript. Nearly all of it is the same code removed in one place and added in another.Tests
The tests moved with the code:
legacy.rsand the historical-group test fromtrusted_keys.rsnow live inv0_4_1_2;v0_4_1;v0_4_0_3.Tests outside
version/can't reach a private version module. Those that usedinitial_signers(), insign/gpg.rs,update/signer_files.rsandtrusted_keys.rs, now read the same keys through a test-onlyinitial_signer_labels(). It is built from the retainedinitial_signer_certificates()and keeps the same key order, so tests that take the first key still get the same one.One
trusted_keys.rstest ended with adecode_keysassertion. That assertion moved to a newv0_4_1_2test, which builds the same trust from the same fixture throughindividual_keys. Rebuilding it was necessary because the original's import helper is private totrusted_keys.Testing
make start-core-testviahelix-buildon headdc4ce97e4, after merging currentmaster(2d2763751only adds generated files): 1955 passed, 0 failed, plus the ignored-worker suite (3 passed). Every moved and rewritten test ran.version/also has production callers, so nothing new needed moving.make start-core-format-checkpasses, and Prettier passes on the changed docs and bindings.make start-core-ts-bindingsproduced thetypes.ts/types.schemas.tsremoval committed here. In the local build cache it also reformatted seven unrelatedrpc/*.tsfiles, even though the cache runs the repository's pinned Prettier (3.8.3). Those files are not in this PR. fix(net): default WireGuard gateway and StartTunnel MTU to 1280 #4816's CI found no drift in the same files, so this looks specific to the local cache. CI's "Generated Bindings & MCP Catalog" job regenerated the bindings and passed, confirming the committed ones.25e908088: all 22 checks that ran passed, and the 9 deploy and image jobs were skipped. CI on2d2763751: all 22 checks that ran passed, including "Generated Bindings & MCP Catalog", start-core tests and the product builds; the 9 deploy and image jobs were skipped.types.ts/types.schemas.tsunchanged.2d2763751. feat(start-os): enforce unique shared-volume names #4901 onmasterdocumentedSharedVolume.namebut committed onlytypes.schemas.ts.rpc/start-os.schemas.tsandmcp-tools.jsonwere left stale, so CI's "Generated Bindings & MCP Catalog" check failed for any branch merged withmaster. That check failed here ondc4ce97e4. The commit holds only the regenerated files frommake start-core-ts-bindingsandmake start-core-mcp-tools, matching the diff CI reported.Helix-Harness: claude-code
Helix-Model: claude-opus-5-5