Skip to content

docs: record cloud-init Phase 0 findings and correct the provisioning contract - #101

Merged
bketelsen merged 3 commits into
mainfrom
duncan/cloud-init-phase0
Nov 10, 2026
Merged

bketelsen merged 3 commits into
mainfrom
duncan/cloud-init-phase0

Conversation

@frostyard-machines

@frostyard-machines frostyard-machines commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Records Phase 0 of the cloud-init provisioning plan: cloud-init re-validated inside Debian 13 and Fedora 44 machines, as ADR-0017 required before ADR-0013 can proceed. The decision stands. Phase 0 is marked complete, and the provisioning contract is corrected where the findings differ:

  • Off without a seed. ds-identify enables a single-entry datasource_list ([ NoCloud ]) without looking for the seed. A machine with no seed then ran every stage, reported error and started about 5 s later. Images now must ship /etc/cloud/cloud-init.disabled; the agent removes it when it writes a seed.
  • Image integration. The stock configuration created the distro's default account with passwordless sudo, wrote DHCP network configuration and generated SSH host keys. The contract now requires explicit module lists for the selectable keys (with a key → module table), network: {config: disabled}, users: [], preserve_hostname, manage_etc_hosts: false, and masked SSH and hotplug units (cloud-init-network.service wants sshd.service and sshd-keygen.service).
  • Readiness. start waits for the machine's manager, and cloud-init's units are in the boot transaction, so start and ordinary commands waited for provisioning (Fedora's run failed busy after the 30 s machine lock). The contract now requires readiness to leave provisioning out; the plan adds it to Phase 2 with an open question on the mechanism.
  • ADR-0013's status and the docs index follow. AGENTS.md gains the guard rule from the review below.

Evidence: local, discarded builds (VM r11 from e480414; Debian r6/r7, Fedora r5/r6), 2 runs in disposable state: 8 machines, then 6. The plan records check results and timings; probe logs, host paths and test state stay private, per image publication. No image recipe changes are in this PR: the recipe change was a local experiment, and Phase 1 implements the proven configuration.

Risk tier

Risk tier: 1 — documentation only; no code, image or workflow change.

Docs housekeeping

  • Cross-links added in both directions (ADR ↔ design ↔ spec ↔ plan)
  • New or edited ADRs are fact-only: context, decision and consequences

Verification

  • make verify green (make ci passed locally)
  • Revert test: exempt (docs-only, no new behavior).
  • Blocking review point fixed: guard added (an AGENTS.md rule: recorded findings state only what their evidence shows) and 1 .memory/corrections.jsonl line added. Cross-review (openai/gpt-6.1-sol) of c701d96 found 3 blocking accuracy points; all are fixed.

@github-actions github-actions Bot added the level:L3 Skim label Nov 10, 2026
@frostyard-machines frostyard-machines added the ready-for-human Reviewed, CI green: ready for Brian to review and merge label Nov 10, 2026
@bketelsen
bketelsen merged commit cabcd51 into main Nov 10, 2026
6 checks passed
@bketelsen
bketelsen deleted the duncan/cloud-init-phase0 branch November 10, 2026 02:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

level:L3 Skim ready-for-human Reviewed, CI green: ready for Brian to review and merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants