Repository navigation
The catalog entry and Compose round trip: Substrate's parts in the kernel, a fit check (S-176, S-177) - #21
Merged
Conversation
…nel, and a fit check (S-176) - catalog/: 47 entity files (components, APIs, the database, system, owner) in Backstage's format; interfaces as API entities typed by protocol, blocks' as WoT Thing Description actions; licence, image, compose service, decision as annotations - scripts/catalog.py: check (every consumed API provided, references resolve, compose matched both ways), apis, check --kernel (fit from the kernel's claims, and drift) - compose job kernel-catalog and scripts/kernel.sh catalog: encoder-backstage reads the files into the kernel; volume kernel-artifacts as the artifact store - check.sh runs the catalog check; scripts/tests/test_catalog.py (9 checks) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KhsqyxWVMWLqMPSE1jwJFu
…b, as compose names it - catalog: resource:db (was postgres), so the catalog's and compose's nodes meet - kernel-catalog job: --root / pins the recorded paths - DECISIONS S-177; plan step 2 status Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KhsqyxWVMWLqMPSE1jwJFu
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.
Stacked on #20. Plan step 1 of S-174, recorded as S-176.
What
catalog/: Substrate's own parts, one file per entity, in Backstage's entity format. That's a format the Kernel already reads withencoder-backstage(Kernel D-100); none was invented.APIentities.spec.typenames the protocol (openapi,asyncapifor pgmq queues,mcp,websocket,wot-td), andspec.definitionholds the contract. A block's contract is a WoT Thing Description action, read from itsblock.yaml.substrate.dev/*annotations.scripts/catalog.py:check: every consumed API has a provider, every reference resolves, and compose matches the catalog both ways.apis: each API with its providers and consumers.check --kernel: the same fit, read from the Kernel's claims, plus any drift between the files and the Kernel.kernel-catalogandscripts/kernel.sh catalog, with the volumekernel-artifactsas the artifact store.scripts/check.shruns the check, so a compose service added without an entry fails it.Seen
scripts/test.sh: 10/10 suites pass, including the newtest_catalog(9 checks).scripts/check.shpasses.Also: Compose into the Kernel and back (S-177)
encoder-composeanddecoder-composeare built as Kernel modules in encoder-compose and decoder-compose: compose files into the kernel and back (D-125) kernel#134 (Kernel D-125).deploy/compose.yaml(17 services) became 242 claims in the live Kernel.resource:db, as compose names it. Before, the catalog's node and compose's node didn't meet.kernel-catalogjob passes--root /, so the recorded paths no longer depend on the working directory.Kernel follow-ups (not here)
encoder-backstagereports every cross-file reference asdangling-ref. The claims still point at the right IRIs; the encoder just resolves references within one file.kkt:hasArtifact).🤖 Generated with Claude Code
https://claude.ai/code/session_01KhsqyxWVMWLqMPSE1jwJFu