canned-prompts/workplans
tegwick f41d1b705f CANP-WP-0006 T06: container image and smoke checks
Two-stage python:3.12-slim build with no toolchain in the runtime layer,
running non-root (uid 10001) and writing nothing to disk — its state is the
database. reference/ is a real build input, because the service delegates
validation to it so the two cannot disagree about what a valid package is.

Migrations deliberately do not run at start-up. A schema change is a deployment
step with its own rollback, not something that races between replicas.

tools/smoke.py asserts what can be known about a running service: liveness,
readiness, fleet health shape, migration revision, and that the index and
registry are queryable. stdlib only, so it runs inside the runtime image;
non-zero exit, so a deployment gate can call it directly.

Verified by running it, not by inspection: the container starts, all six checks
pass against it, the reference CLI installs a package from it over HTTP, and
the checks fail correctly against a wrong --expect-migration — so
migration-at-head is a real check rather than a decorative one. Without
--expect-migration the check can only confirm the schema is stamped at all, and
says so rather than implying it verified the head.

Cluster-level checks a rapp contract also names — NetworkPolicies present,
external secrets ready, private-Service-only, live image digest match — are
properties of the deployment and belong to rapp-canned-prompts.

The digest rapp.yaml would pin does not exist yet. The image was built locally
and verified, but never pushed; that digest exists only once the image is
published to the fleet registry, which needs credentials and is outward-facing
enough not to do unasked. The follow-on sequence for rapp-canned-prompts is
recorded in the workplan.

CANP-WP-0006 is finished. Service tests 33, reference 105.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Bjefh8NUiEiahN4JLwoSKM

Assistant: claude-code
Assistant-Model: opus
Assistant-Process: 388925@bnt-lap001
Assistant-Session: 3507023f-e0fd-4a1e-9d90-a0d4217d1502
2026-09-06 21:25:48 +02:00
..
ADHOC-2026-09-06.md chore(consistency): regenerate WORK-RECORDS.md 2026-09-06 14:48:27 +02:00
CANP-WP-0001-statehub-bootstrap.md Add repo classification and record workplan review context 2026-09-06 00:47:23 +02:00
CANP-WP-0002-format-open-questions.md CANP-WP-0002 T06: revision v0.2, and section 23 rewritten 2026-09-06 14:22:45 +02:00
CANP-WP-0003-registry-naming-residual.md CANP-WP-0003: name the default registry default 2026-09-06 19:32:30 +02:00
CANP-WP-0004-prompt-index.md chore(consistency): regenerate WORK-RECORDS.md 2026-09-06 17:14:49 +02:00
CANP-WP-0005-inclusion-diamond.md CANP-WP-0005: document and detect inclusion diamonds 2026-09-06 19:23:16 +02:00
CANP-WP-0006-hosted-registry-service.md CANP-WP-0006 T06: container image and smoke checks 2026-09-06 21:25:48 +02:00