- Python 86.4%
- Nix 10.8%
- HCL 2.4%
- Shell 0.2%
- Perl 0.1%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
|
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
|
||
| .forgejo | ||
| ci | ||
| client | ||
| docs | ||
| examples | ||
| identity | ||
| infra/aws/builders | ||
| modules | ||
| operations | ||
| packages | ||
| patches | ||
| recovery | ||
| tests | ||
| tools | ||
| updates | ||
| .gitattributes | ||
| .gitignore | ||
| AGENTS.md | ||
| CONTRIBUTING.md | ||
| flake.lock | ||
| flake.nix | ||
| README.md | ||
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.