Skip to content

The catalog entry and Compose round trip: Substrate's parts in the kernel, a fit check (S-176, S-177) - #21

Merged
OpenReplicant merged 2 commits into
claude/runtime-planfrom
claude/catalog
Nov 23, 2026
Merged

OpenReplicant merged 2 commits into
claude/runtime-planfrom
claude/catalog

Conversation

@OpenReplicant

@OpenReplicant OpenReplicant commented Nov 22, 2026 •

Copy link
Copy Markdown
Owner

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 with encoder-backstage (Kernel D-100); none was invented.
    • 22 components (services, jobs, agents, blocks, a plan, external services) and 22 APIs, plus the database, the system and its owner.
    • Interfaces are API entities. spec.type names the protocol (openapi, asyncapi for pgmq queues, mcp, websocket, wot-td), and spec.definition holds the contract. A block's contract is a WoT Thing Description action, read from its block.yaml.
    • Licence, image, compose service and decision are 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.
  • Into the Kernel: compose job kernel-catalog and scripts/kernel.sh catalog, with the volume kernel-artifacts as the artifact store.
  • scripts/check.sh runs the check, so a compose service added without an entry fails it.

Seen

  • All 47 change sets were applied. Every claim cites its file and line, and each file is stored as an artifact.
  • The Kernel shows 45 provides/consumes links, with no gap and no drift.
  • A second run submitted only the one new file.
  • The check caught two errors in my first entries: a queue modelled backwards and two compose jobs left out. It also flagged my own new job until it had an entry.
  • scripts/test.sh: 10/10 suites pass, including the new test_catalog (9 checks). scripts/check.sh passes.

Also: Compose into the Kernel and back (S-177)

  • encoder-compose and decoder-compose are built as Kernel modules in encoder-compose and decoder-compose: compose files into the kernel and back (D-125) kernel#134 (Kernel D-125).
    • Substrate's deploy/compose.yaml (17 services) became 242 claims in the live Kernel.
    • Decoding from the Kernel gave back the same compose file, as compose reads it.
  • The catalog's database is now resource:db, as compose names it. Before, the catalog's node and compose's node didn't meet.
  • The kernel-catalog job passes --root /, so the recorded paths no longer depend on the working directory.

Kernel follow-ups (not here)

  • encoder-backstage reports every cross-file reference as dangling-ref. The claims still point at the right IRIs; the encoder just resolves references within one file.
  • It writes no current-version link from an item to its artifact (D-101's kkt:hasArtifact).
  • D-101's per-type items view isn't built yet.

🤖 Generated with Claude Code

https://claude.ai/code/session_01KhsqyxWVMWLqMPSE1jwJFu

…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
@OpenReplicant OpenReplicant changed the title The catalog entry: Substrate's parts as Backstage entities in the kernel, and a fit check (S-176) The catalog entry and Compose round trip: Substrate's parts in the kernel, a fit check (S-176, S-177) Nov 22, 2026
@OpenReplicant
OpenReplicant merged commit 54e5274 into claude/runtime-plan Nov 23, 2026
4 checks passed
@OpenReplicant
OpenReplicant deleted the claude/catalog branch November 23, 2026 01:16
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.

2 participants