No description
  • Python 86.4%
  • Nix 10.8%
  • HCL 2.4%
  • Shell 0.2%
  • Perl 0.1%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
adam 5d99fe6709
All checks were successful
Validate infrastructure / ARM infrastructure policy (push) Successful in 3m12s
Validate infrastructure / Infrastructure (forgejo-vm) (push) Successful in 11m45s
Validate infrastructure / Infrastructure (human-identity-vm) (push) Successful in 7m31s
Validate infrastructure / Infrastructure (portable-vm) (push) Successful in 3m16s
Validate infrastructure / Infrastructure (regression) (push) Successful in 3m20s
Validate infrastructure / Infrastructure (runner-progress-vm) (push) Successful in 1m53s
Validate infrastructure / Infrastructure (spire-vm) (push) Successful in 17s
Validate infrastructure / Infrastructure (update-vm) (push) Successful in 3m19s
Merge pull request 'Roll out bounded organization AWS runners and cache publication' (#49) from codex/aws-cache-multisize-closeout into main
2026-11-21 03:42:46 -05:00
.forgejo Generalize AWS organization admission and declared cache outputs 2026-11-20 04:16:19 -05:00
ci Bound long AWS suites by approved worker profile and cached prerequisites 2026-11-20 13:53:02 -05:00
client Harden identity startup and complete real passkey client flow 2026-09-28 22:44:52 -04:00
docs Record AWS rollout proofs and admit Large Network workers 2026-11-20 14:59:21 -05:00
examples Cache approved kernel outputs through a protected publisher 2026-10-04 18:28:09 -04:00
identity Package maintained CI runtime separately from source and migration tools 2026-11-07 14:06:59 -05:00
infra/aws/builders Record AWS rollout proofs and admit Large Network workers 2026-11-20 14:59:21 -05:00
modules Generalize AWS organization admission and declared cache outputs 2026-11-20 04:16:19 -05:00
operations Accept closed masked fences during attended capture preflight 2026-11-08 11:49:45 -05:00
packages Bound long AWS suites by approved worker profile and cached prerequisites 2026-11-20 13:53:02 -05:00
patches Report Hydra jobs to GitHub and publish successful closures to Cachix (#3) 2026-09-27 14:46:36 -04:00
recovery Read fresh local member authority after slow recovery checks 2026-11-06 02:59:39 -05:00
tests Bound long AWS suites by approved worker profile and cached prerequisites 2026-11-20 13:53:02 -05:00
tools Add durable CRL administration with verified AWS readback 2026-11-19 18:37:18 -05:00
updates Add portable fleet approval and signing services 2026-10-22 17:11:58 -04:00
.gitattributes Add passkey human identity and short-lived SSH access 2026-09-28 22:25:43 -04:00
.gitignore Establish Kaiba CI infrastructure boundary and ARM64 selector 2026-09-26 17:56:26 -04:00
AGENTS.md Require production NixOS composition and hardware security acceptance 2026-11-06 12:15:33 -05:00
CONTRIBUTING.md Keep Forgejo workflow changes in the full CI selection boundary 2026-10-04 02:22:33 -04:00
flake.lock Pin portable approval to the merged Fleet signing support 2026-10-22 22:09:26 -04:00
flake.nix Generalize AWS organization admission and declared cache outputs 2026-11-20 04:16:19 -05:00
README.md Add bounded AWS ARM builders with selectable profiles and spending controls 2026-11-14 15:43:31 -05:00

Kaiba infrastructure

This repository owns the development infrastructure for Kaiba: build scheduling, builders, caches, and eventually the Git forge. Application repositories expose Nix checks and packages; this repository decides which revisions and jobs to build and where to run them. Device protocol and state contracts remain in kaiba-contracts.

The disposable AWS builder runbook describes the Small-first ARM runner backend, selectable resource profiles, the $50 monthly budget and independent spending/termination controls. Live AWS canaries remain a deployment gate; these workers do not replace hardware lifecycle qualification.

Fleet lifecycle stabilization

The deliverable is a production, hardware-secured NixOS system. Ordinary boot, renewal and recovery use maintained packages, declared host configuration and documented durable state; test-only tooling stays outside production runtime. See ADR 0001 and the stabilization acceptance ledger for the implementation sequence and evidence still required. Passing CI alone does not qualify the installed lifecycle or enable fleet activation.

Hydra on Ace

The flake exports Nix-packaged Python tests, an ARM64 hydraJobs output, NixOS modules for Hydra, Mako's HTTPS proxy and backup receiver, and native qualification/integration tests. See the deployment runbook for deployment, staged jobset setup, backups and recovery.

The separate approved kernel cache lane retains and publishes kernel outputs for reuse by fresh CI VMs without giving those VMs publishing credentials.

nix build --no-link .#checks.x86_64-linux.selector
python3 ci/setup_hydra.py  # preview; provisioning starts disabled

kaiba-provisioning imports the locked inventory policy to expose the ten ARM64 derivations to Hydra. Hydra evaluates each repository's main directly; GitHub Actions remains the PR gate during rollout.

Human passkey access

The flake also exports Keycloak, SSH certificate issuer, host trust, and encrypted backup modules, plus the Linux kaiba-login package. See the human access runbook for deployment, initial owner enrollment, workstation login, revocation, and recovery. Human credentials remain separate from pilot device identities and automation credentials.

Selector prototype

ci/select_jobs.py compares evaluated derivation paths for a fixed job inventory at the base and proposed revisions. It emits JSON listing jobs to build and why. It does not schedule Hydra builds. Provisioning's GitHub Actions workflow now uses derivation-based selection independently of this Hydra rollout.

python3 -m unittest discover -s tests
python3 ci/select_jobs.py \
  --inventory ci/provisioning-arm64.json \
  --base examples/base.json --head examples/head.json

The example selects the single check whose derivation differs. Add --changed-path .github/workflows/ci.yml to demonstrate a conservative full selection after a workflow change. The manifests contain synthetic derivation paths for demonstration; they are not evaluated repository revisions.

See the CI design for the evaluation boundary, rollout order, and prerequisites before using selection in a required check.

Ownership

Repository Owns
Kaiba project repos Flake outputs, tests, application packages and modules
kaiba-infra CI policy, job inventory, builders, caches, and human access infrastructure
nix-pseudo-design Existing personal host configurations until deliberately migrated
kaiba-contracts Product and device state contracts

Host-specific addresses and module composition live in nix-pseudo-design. Private keys and administrator credentials remain outside Git and the Nix store.