carlos / platform Public

Named-unit config delivery (#114) on current main, with the console config design's base layer (#453 §4.1). A route stamped with a systemd unit gets its config rendered to /etc/carlos/apps/<host>.env and a carlos drop-in that makes the box's /etc/carlos/units/<unit>.base.env and that file the unit's only EnvironmentFile sources; root reloads and restarts the unit on change. Authority is a root-owned declaration only (Paul, 2026-10-28): root writes, replaces or removes for a unit only when /etc/carlos/named-units.json names that unit, host, account and app exactly; the registry selects and never authorizes; drop-ins are reaped only when the declaration goes, and env files a surviving drop-in loads are kept. The declaration is read once per pass under the config-sync flock, and the new root verb carlos system named-units install validates and installs it under the same lock. Base files must be plain ASCII NAME=value lines; a unit loading any other environment file, or a name in both layers, is refused and reported. Every root read goes through rootstate's trusted descriptor walk. Astra: four branch rounds (round 4 with Paul's go; the last P1 closed by serialising declaration edits, Paul's ruling), census APPROVED at round 4 (#280), re-proposed unchanged on main's chain. Copy approved by Paul unedited. Each stamped unit needs a named-units.json line before delivery starts. Not released.

Prompts:

  go ahead (approving the #453 spec rev 2; next step is landing #114 on current main with the base-layer guard)

  <task-notification>
  <task-id>b8jjxczpo</task-id>
  <tool-use-id>toolu_01Wdi4DhNSoJYS3dKxsw1AVv</tool-use-id>
  <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/63b05f1b-b484-408d-8802-e9909f687e39/tasks/b8jjxczpo.output</output-file>
  <status>completed</status>
  <summary>Background command "Run Astra census round 3" completed (exit code 0)</summary>
  </task-notification>

Squashed from named-unit-delivery-114 into main.
claude agent, operated by paul@keymail.dev bf4df27de88df334d7505b7eb36210b85cceeea5 parent a8b5260
62 files changed, +10,302 −142
  • AGENTS.md +9 −0
  • apimode.go +11 −0
  • appconfig_cli.go +18 −6
  • appconfig_restart_test.go +35 −0
  • cli.go +78 −27
  • cli_test.go +181 −2
  • docs/site/cli.md +55 −2
  • docs/superpowers/notes/census-named-unit-delivery-114-claims.md +42 −0
  • docs/superpowers/notes/census-proposal-named-unit-delivery-114.md +72 −0
  • docs/superpowers/plans/2026-09-07-named-unit-config-delivery.md +3,017 −0
  • docs/superpowers/reviews/CODEX-FINDINGS-census-named-unit-delivery-114-R2.md +104 −0
  • docs/superpowers/reviews/CODEX-FINDINGS-census-named-unit-delivery-114-R3.md +94 −0
  • docs/superpowers/reviews/CODEX-FINDINGS-census-named-unit-delivery-114-R4.md +67 −0
  • docs/superpowers/reviews/CODEX-FINDINGS-census-named-unit-delivery-114.md +80 −0
  • docs/superpowers/reviews/CODEX-FINDINGS-named-unit-delivery-114-r1.md +65 −0
  • docs/superpowers/reviews/CODEX-FINDINGS-named-unit-delivery-114-r2.md +74 −0
  • docs/superpowers/reviews/CODEX-FINDINGS-named-unit-delivery-114-r3.md +80 −0
  • docs/superpowers/reviews/CODEX-FINDINGS-named-unit-delivery-114-r4.md +37 −0
  • docs/superpowers/reviews/CODEX-REVIEW-BRIEF-census-named-unit-delivery-114-R2.md +9 −0
  • docs/superpowers/reviews/CODEX-REVIEW-BRIEF-census-named-unit-delivery-114-R3.md +9 −0
  • docs/superpowers/reviews/CODEX-REVIEW-BRIEF-census-named-unit-delivery-114-R4.md +11 −0
  • docs/superpowers/reviews/CODEX-REVIEW-BRIEF-census-named-unit-delivery-114.md +11 −0
  • docs/superpowers/reviews/CODEX-REVIEW-BRIEF-named-unit-delivery-114-R2.md +40 −0
  • docs/superpowers/reviews/CODEX-REVIEW-BRIEF-named-unit-delivery-114-R3.md +47 −0
  • docs/superpowers/reviews/CODEX-REVIEW-BRIEF-named-unit-delivery-114-R4.md +23 −0
  • docs/superpowers/reviews/CODEX-REVIEW-BRIEF-named-unit-delivery-114.md +47 −0
  • docs/superpowers/specs/2026-09-07-named-unit-config-delivery-design.md +974 −0
  • docs/superpowers/specs/CODEX-FINDINGS-UNIT-CONFIG-R2.md +98 −0
  • docs/superpowers/specs/CODEX-FINDINGS-UNIT-CONFIG-R3.md +61 −0
  • docs/superpowers/specs/CODEX-FINDINGS-UNIT-CONFIG.md +75 −0
  • docs/superpowers/specs/CODEX-REVIEW-BRIEF-UNIT-CONFIG.md +88 −0
  • internal/appconfig/awaitingrestart_test.go +213 −11
  • internal/appconfig/baseenv.go +163 −0
  • internal/appconfig/baseenv_test.go +133 −0
  • internal/appconfig/claimsync.go +5 −1
  • internal/appconfig/declarations.go +196 −0
  • internal/appconfig/dropin.go +234 −0
  • internal/appconfig/dropin_test.go +163 −0
  • internal/appconfig/owned_test.go +5 −2
  • internal/appconfig/rootread.go +84 −0
  • internal/appconfig/routefingerprint.go +6 −2
  • internal/appconfig/routefingerprint_test.go +32 −0
  • internal/appconfig/stamped.go +137 −0
  • internal/appconfig/stamped_test.go +119 −0
  • internal/appconfig/sync.go +213 −29
  • internal/appconfig/sync_test.go +47 −6
  • internal/appconfig/syncexec.go +170 −38
  • internal/appconfig/syncexec_test.go +55 −0
  • internal/appconfig/unitsync.go +488 −0
  • internal/appconfig/unitsync_test.go +1,628 −0
  • internal/console/apiconfig.go +22 −2
  • internal/console/apiconfig_restart_test.go +37 −0
  • internal/host/agent.go +16 −12
  • internal/host/unitops.go +208 −0
  • internal/host/unitops_test.go +119 −0
  • internal/provision/named_unit_delivery_114_census_test.go +35 −0
  • internal/provision/plan9_b8_census_test.go +1 −1
  • internal/provision/testdata/plan14-root-reads-chain.tsv +1 −0
  • internal/provision/testdata/plan14-root-reads-named-unit-delivery-114.tsv +88 −0
  • internal/rootstate/file_linux.go +64 −0
  • internal/rootstate/file_other.go +4 −0
  • system.go +4 −1

CI passed — run details

landed from named-unit-delivery-114

AGENTS.md

Loading diff…

apimode.go

Loading diff…

appconfig_cli.go

Loading diff…

appconfig_restart_test.go

Loading diff…

cli.go

Loading diff…

cli_test.go

Loading diff…

docs/site/cli.md

Loading diff…

docs/superpowers/notes/census-named-unit-delivery-114-claims.md

Loading diff…

docs/superpowers/notes/census-proposal-named-unit-delivery-114.md

Loading diff…

docs/superpowers/plans/2026-09-07-named-unit-config-delivery.md

Loading diff…

docs/superpowers/reviews/CODEX-FINDINGS-census-named-unit-delivery-114-R2.md

Loading diff…

docs/superpowers/reviews/CODEX-FINDINGS-census-named-unit-delivery-114-R3.md

Loading diff…

docs/superpowers/reviews/CODEX-FINDINGS-census-named-unit-delivery-114-R4.md

Loading diff…

docs/superpowers/reviews/CODEX-FINDINGS-census-named-unit-delivery-114.md

Loading diff…

docs/superpowers/reviews/CODEX-FINDINGS-named-unit-delivery-114-r1.md

Loading diff…

docs/superpowers/reviews/CODEX-FINDINGS-named-unit-delivery-114-r2.md

Loading diff…

docs/superpowers/reviews/CODEX-FINDINGS-named-unit-delivery-114-r3.md

Loading diff…

docs/superpowers/reviews/CODEX-FINDINGS-named-unit-delivery-114-r4.md

Loading diff…

docs/superpowers/reviews/CODEX-REVIEW-BRIEF-census-named-unit-delivery-114-R2.md

Loading diff…

docs/superpowers/reviews/CODEX-REVIEW-BRIEF-census-named-unit-delivery-114-R3.md

Loading diff…

docs/superpowers/reviews/CODEX-REVIEW-BRIEF-census-named-unit-delivery-114-R4.md

Loading diff…

docs/superpowers/reviews/CODEX-REVIEW-BRIEF-census-named-unit-delivery-114.md

Loading diff…

docs/superpowers/reviews/CODEX-REVIEW-BRIEF-named-unit-delivery-114-R2.md

Loading diff…

docs/superpowers/reviews/CODEX-REVIEW-BRIEF-named-unit-delivery-114-R3.md

Loading diff…

docs/superpowers/reviews/CODEX-REVIEW-BRIEF-named-unit-delivery-114-R4.md

Loading diff…

docs/superpowers/reviews/CODEX-REVIEW-BRIEF-named-unit-delivery-114.md

Loading diff…

docs/superpowers/specs/2026-09-07-named-unit-config-delivery-design.md

Loading diff…

docs/superpowers/specs/CODEX-FINDINGS-UNIT-CONFIG-R2.md

Loading diff…

docs/superpowers/specs/CODEX-FINDINGS-UNIT-CONFIG-R3.md

Loading diff…

docs/superpowers/specs/CODEX-FINDINGS-UNIT-CONFIG.md

Loading diff…

docs/superpowers/specs/CODEX-REVIEW-BRIEF-UNIT-CONFIG.md

Loading diff…

internal/appconfig/awaitingrestart_test.go

Loading diff…

internal/appconfig/baseenv.go

Loading diff…

internal/appconfig/baseenv_test.go

Loading diff…

internal/appconfig/claimsync.go

Loading diff…

internal/appconfig/declarations.go

Loading diff…

internal/appconfig/dropin.go

Loading diff…

internal/appconfig/dropin_test.go

Loading diff…

internal/appconfig/owned_test.go

Loading diff…

internal/appconfig/rootread.go

Loading diff…

internal/appconfig/routefingerprint.go

Loading diff…

internal/appconfig/routefingerprint_test.go

Loading diff…

internal/appconfig/stamped.go

Loading diff…

internal/appconfig/stamped_test.go

Loading diff…

internal/appconfig/sync.go

Loading diff…

internal/appconfig/sync_test.go

Loading diff…

internal/appconfig/syncexec.go

Loading diff…

internal/appconfig/syncexec_test.go

Loading diff…

internal/appconfig/unitsync.go

Loading diff…

internal/appconfig/unitsync_test.go

Loading diff…

internal/console/apiconfig.go

Loading diff…

internal/console/apiconfig_restart_test.go

Loading diff…

internal/host/agent.go

Loading diff…

internal/host/unitops.go

Loading diff…

internal/host/unitops_test.go

Loading diff…

internal/provision/named_unit_delivery_114_census_test.go

Loading diff…

internal/provision/plan9_b8_census_test.go

Loading diff…

internal/provision/testdata/plan14-root-reads-chain.tsv

Loading diff…

internal/provision/testdata/plan14-root-reads-named-unit-delivery-114.tsv

Loading diff…

internal/rootstate/file_linux.go

Loading diff…

internal/rootstate/file_other.go

Loading diff…

system.go

Loading diff…