Repository navigation
spec 017: the canary migrates the catalog; the heartbeat says what each node is - #18
Merged
Merged
Conversation
…t each node is hugr-platform spec 008's node side. - The bootstrap document's catalog.migrate (version 2, optional, a boolean): a node told so runs acl_migrate_catalog at step 5, after attaching the catalog and before opening it, when the catalog has its schema. Without the flag a node never migrates, and a new build on an older catalog stops at step 5 with acl's "migrate it first". - The heartbeat adds duckdb_version (the release that names the repository's channel), platform, and catalog: the state as this build judges it (acl_catalog_schema(), by field name), its type, and the extension installed from the repository for it. - The schema check at step 5 is read only when it decides something (the first policy or the flag): the listing walks every attached catalog. Tests: the plan with and without the flag and a non-boolean refused (sqllogictest); the bootstrap e2e stamps the catalog one schema version back and starts a node without the flag (stops at step 5, nothing changed) and with it (migrates, serves, its heartbeat carries the release, the platform and the catalog's state). Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LdLs2iBQygBKtsApdH9Sxi
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The node's side of hugr-platform spec 008 (upgrades, accepted 2026-10-21).
catalog.migratein the bootstrap document (version 2, optional, a boolean). A node told so runsacl_migrate_catalogat step 5, after attaching the catalog and beforeacl_use_db, when the catalog has its schema.duckdb_version: the release, which names the repository's channel;platform;catalog: the state as this build judges it (acl_catalog_schema(), read by field name), plus its type and the extension installed from the repository for it.An operator of an older pin ignores them.
Tests
test/e2e/bootstrap/run.sh, green locally twice: the catalog is stamped one schema version back.Spec:
specs/017-catalog-migrate/spec.md.🤖 Generated with Claude Code
https://claude.ai/code/session_01LdLs2iBQygBKtsApdH9Sxi