This is the Lentago Labs organization's special .github repository. It serves
two roles: GitHub reads org-level defaults from here, and it houses the
settings-as-code tooling that governs the rest of the fleet. It is also the
control plane worth copying: one JSON edit here, applied, moves branch
protection, required checks, and labels across every repo — governance as change
management, where the merged PR is the change record. The voice every
reader-facing page in the fleet is written in lives here too, in
docs/voice.md.
The patterns you can lift wholesale into your own org — each row links to where it actually runs.
| Pattern | How it shows up here |
|---|---|
| Fleet settings-as-code — one edit, every repo | fleet-ops/required-checks.json + the terraform/ module that reads it: edit one JSON map, apply, and every repo's branch rules move — no per-repo clicking |
| Declarative IaC, migrated incrementally | terraform/ reads the same JSON and owns repo existence/identity/rulesets; PR #82 moved settings onto the GitHub provider with no big-bang cutover |
| The always-on required-check gate | .github/workflows/ci.yml has no on:-level path filter — a path-filtered required check never triggers on non-matching PRs and deadlocks the merge forever |
| DRY CI via shared workflows | docs-check.yml and claude.yml uses: reusables from shared-workflows instead of copy-pasted YAML |
| Drift detection for config | ci/validate.py asserts the JSON manifests, generated brand assets, and generated reports all stay reproducible from source — hand-edits fail the PR |
| Agent-authored, human-merged PRs | PR #80 was opened by the lentago-claude-runner bot against required checks and merged by a human — the worker never merges itself |
| Automated periodic reporting | fleet-reports.yml runs metrics/generate-fleet-reports.py on a schedule to refresh fleet-report.md, epics.md and incidents.md |
| Config-driven identity | brand/generate.py emits every repo's banner and card from brand/fleet.json — IaC applied to branding, CI-enforced against hand-edits |
profile/README.md renders as the organization profile page
at github.com/lentago.
profile/assets/banner.svg is its header.
CONTRIBUTING.md, SECURITY.md, CODE_OF_CONDUCT.md, and LICENSE live at the
repo root and apply org-wide to any Lentago Labs repo that doesn't define its own.
Issue and PR templates are not yet set.
The fleet's GitHub settings as Terraform, via the integrations/github provider.
Owns repository existence and identity, merge-button options, the topic
spine, the per-repo main branch ruleset, required status checks, and the
Tidewater label palette — across every repo in the org.
Adding a repo to fleet-ops/repos.json and applying
creates it, scaffolded from repo-template and wired to fleet policy from its
first second. Removing one is refused by prevent_destroy rather than deleting
a live repository. A merge to main is an apply: plan posts to every
tf-touching PR, the required gate check blocks a red plan, and apply runs on
merge (phase 2, live 2026-08-17).
See terraform/README.md.
The configuration Terraform reads, plus the imperative sweeps that have no declarative equivalent.
repos.json— per-repo identity: description, homepage, visibility, features, signature topics, model-routing labels. The source of truth for which repos the fleet contains.required-checks.json— per-repo map of the status checks that must pass before merge.labels.json— the Tidewater issue-label palette. Colors and descriptions for the labels it names; per-repo labels it doesn't name are left alone.fleet-apply.sh— the pre-Terraform drift checker, still the tool for the two jobs Terraform can't express:--prune-branches(merged-branch residue) and the preflight that a required check-run context actually reports before anything requires it. Its settings-applying flags were removed in #298;terraform/is the only writer of repo settings.org-ruleset.json— org-level ruleset definition, parked (needs a paid plan).
Periodically regenerated reports published in this repo.
fleet-report.md— the weekly fleet report: open issues by repo with the type of each (Bug, Feature, Risk or Debt) and the date it was opened, the sub-issues of every open epic that has them in a collapsible list, a 30-day merge/close activity snapshot, and an instruction-as-code language census. Auto- refreshed every Monday by a GitHub Actions workflow.epics.md— the weekly epics report: every tracking issue (labelledepic, or an open parent of sub-issues) with the date it was opened, its work items (dated sub-issues and checklist items, in collapsible lists), the month's merged PRs attributed to each, and the open issues no epic covers, sorted by type with the untyped ones first. Same Monday refresh.incidents.md— the public incident register, linking to post-mortems underfleet-reports/incidents/. New reports are harvested from session transcripts via the local/incident-digestplaybook.
generate-fleet-reports.py— generatesfleet-report.md,epics.mdandincidents.md.language-census.md— a periodiccloc-based language breakdown across all in-scope org repos.
validate.py— the check that gates PRs here. Asserts thatfleet-ops/*.jsonmatch the shapefleet-apply.shand the Terraform module consume, that those manifests andbrand/fleet.jsonagree on which repos exist, thatbrand/generated/is reproducible frombrand/fleet.jsonrather than hand-edited, that the report generator's classifiers route known paths correctly, and thatfleet-reports/incidents.mdis reproducible from its sources rather than hand-edited. Run it the way CI does:python3 ci/validate.py.
Brand assets, and the generator that turns them into per-repo identity.
avatars/— the Lentago Labs mark in SVG and PNG variants (square and circular, teal and limestone colourways).marks/— the 64-grid genus marks, one per fleet system, plus the lentago blossom that every other repo falls back to.fleet.json+generate.py— per-repo identity as config: emits each repo's README banner, badge row, and 1280×640 social-preview card intobrand/generated/.render.shrasterizes the cards with the real brand typefaces. Generated output is CI-enforced against hand-editing.
Social previews are the one surface with no API — they're uploaded per repo under Settings → General → Social preview.
docs/adr/ records the architectural decisions behind this repo and
its fleet governance — the merge gate, the Terraform migration, per-repo rulesets,
the client-owned delivery rule, and the 2026-09-30 repositioning as a pro-bono
practice (ADR-0008). Records
0001–0006 were reconstructed from repo history; later ones are written at
decision time.
These systems are real, and nothing critical rides on them. That makes this a safe place to try a change before you make the same kind of change in your own shop. Pick one:
Add a fleet-wide required status check. Edit
fleet-ops/required-checks.json to add a check
context for one repo or all of them, and open a PR — ci/validate.py
validates the JSON shape before it can merge. Once merged, CI applies the
change with the terraform/ module, which reads that same JSON and owns
rulesets, required checks, and labels (apply-on-merge is live — phase 2, see
terraform/README.md; fleet-apply.sh still
contributes the required-context preflight, proving a check context actually reports
before anything requires it). This is the same JSON-then-apply flow used repeatedly to
roll checks across the fleet.
Proof this works: PR #68 — fleet-ops: require docs-check on every active repo,
PR #29 — fleet-ops: manage per-repo required status checks,
PR #73 — fleet-ops: require claytonia's terraform gate.
Migrate a settings surface to Terraform. Extend the terraform/*.tf modules,
which read the same fleet-ops/*.json, and open a PR —
.github/workflows/terraform.yml runs fmt +
validate and posts a plan to the PR, with the required gate check blocking a red
plan. Merging is the apply (phase 2, live 2026-08-17 — see
terraform/README.md): whatever is on main is the live fleet
settings, so a merge here really does mutate GitHub settings across the org.
Proof this works: PR #82 — Manage the fleet's GitHub settings with the Terraform GitHub provider,
PR #83 — terraform: rename the validate job to tf-validate.
Let the agent fleet fix a broken workflow. Dispatch a job to the
claytonia agent fleet (or trigger it from a
monitoring signal); a worker opens a PR against this repo, the required checks run, and
a human reviews and merges. The worker never merges itself — that gate is the whole point.
Proof this works: PR #80 — fix: pin cloc to v2.06 in fleet-reports workflow,
authored by the lentago-claude-runner bot and merged by a human.
Fleet CI conventions and the reusable workflows other repos call live in shared-workflows, not here. The workflows under
.github/workflows/are this repo's own — they gate its PRs and refresh the fleet reports.
🌱 Lentago Labs is a pro-bono operations practice for organizations that run on volunteers, donations, and one overworked tech person. Everything here is free to take, and we practice what we publish: our own estate runs this way, in the open. Start at the org profile.
Built in collaboration with Claude (Anthropic) — directed and reviewed by an infrastructure operator, not a software engineer.