Skip to content

About

Reusable GitHub Actions workflows shared across the Lentago Labs fleet: an interactive @claude responder (routes to opus/sonnet/haiku by label), automated PR review, CI patterns, and fleet-wide policy enforcement. The canonical source for cross-repo CI conventions.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

81 Commits

Folders and files

Repository files navigation

shared-workflows — Reusable CI · the fleet's canonical workflows

main License OpenSSF Scorecard

GitHub Actions Claude YAML

shared-workflows

This is the Lentago Labs fleet's reusable-CI hub: one repository of workflow_call definitions — an agentic @claude responder and reviewer, a docs-link checker, ShellCheck, and a Terraform lint suite — that every Lentago Labs repo calls by reference rather than copying into its own .github/. Callers pin to an immutable semver tag (@v1.0.0); upgrading means a Dependabot-opened bump PR in the caller repo, not silent propagation. If you manage CI for more than a couple of repos, this is the "define the pipeline once, everyone inherits it" pattern working end to end — the enterprise rhyme is a central pipeline library.

Authorship: The workflows and documentation in this repo are co-written with Claude (Anthropic). I direct the work and review the output; Claude writes the YAML. I'm an infrastructure operator, not a software engineer — please don't read this repo as a portfolio of coding ability.

Architecture decisions: docs/adr/ records the reasoning behind this repo's structural choices — canonical policy placement, the @main→semver-tag migration, the advisory review gate, backwards-compatible contracts.

🧭 What this repo demonstrates

Every row is a pattern you can lift into your own CI, with a link to where it actually runs here.

Pattern How it shows up here
Reusable workflows, called by reference not copy-paste — fix or extend the pipeline in one place, consumers upgrade via a Dependabot-opened bump PR Each definition is on: workflow_call; callers write uses: lentago/shared-workflows/.github/workflows/<name>.yml@v1.0.0 (claude-responder.yml)
Agentic PR responder with label-gated model routing — let an LLM act inside CI with human-controlled cost/capability tiers set by a label, not a per-repo hardcode claude-responder.yml reads model:opus / model:sonnet / model:haiku off the issue or PR to pick --model, falling back to default_model
Advisory (non-blocking) automated review — decouple "useful signal" automation from "merge gate" automation so a flaky AI call never stalls delivery claude-review.yml runs the review step continue-on-error, always exits 0, and posts a soft-fail comment instead of reddening the check
A required check must be unconditional — a required status check whose workflow never triggers is held "Expected" forever and deadlocks every non-matching PR docs-check.yml documents "no paths: filter"; docs-check / docs-check is the one required check on this repo's main today
Dogfood a reusable workflow on its own source — catch a broken reusable in its own PR, not only in a downstream caller docs-check-self.yml calls uses: ./.github/workflows/docs-check.yml (local path, not @main) so a PR is checked by the version inside that PR
Ref-resolution correctness for cross-repo checkouts — a reusable that checks out its own repo must use the commit the caller pinned, not the caller's ref and not a default branch docs-check.yml checks itself out at job.workflow_sha and verifies the commit on every run. A self-referential test masked two earlier bugs: workflow_ref failed every external caller until #30, and #30's github.job_workflow_ref evaluated empty, so callers silently ran main's resolver until #95
A merge gate the gated actor can't impersonate — an Actions job can't be a boundary against an App that holds workflows: write, because every Actions check reports from the same source; the check must come from a source the actor can't drive agent-pr-verdict.yml posts the verdict as a check run through a second GitHub App whose key lives only in a main-only environment, so the ruleset can require it by that App's integration ID (#97); agent-pr-gate.yml stays as the accident layer
One canonical policy source with declared, manually-audited mirrors — govern org-wide conventions from one file while being explicit about where the text is duplicated and why CLAUDE.md's "Fleet PR-workflow (canonical source)" section names its two mirrors and states the keep-in-sync obligation (manual discipline, not automation)
Backwards-compatible workflow_call contracts — interface discipline for shared automation: a new required input breaks every caller silently CLAUDE.md conventions: add inputs as optional with sensible defaults, never required

Workflows

These definitions are the fleet's CI-as-code surface. Each block below is the exact caller YAML an operator copies into a consuming repo's .github/workflows/ — the caller passes a thin with: block and the reusable workflow handles auth, context, output format, and the heavy lifting.

claude-responder.yml

Interactive @claude responder — the team-facing on-ramp to the agent fleet. It fires when the literal string @claude appears in a comment, review, or issue/PR body or title, and routes to opus/sonnet/haiku based on model:opus / model:sonnet / model:haiku labels on the issue or PR (re-apply the label to re-trigger with the new model). With no model:* label it uses the caller's default_model (default sonnet). For ops readers: this is a cost/capability dial an issue-triager controls with a label, so the expensive model is opt-in per thread rather than baked into every repo.

name: Claude Code

on:
  issue_comment:
    types: [created]
  pull_request:
    types: [opened, synchronize, labeled]
  pull_request_review_comment:
    types: [created]
  pull_request_review:
    types: [submitted]
  issues:
    types: [opened, edited, labeled, assigned]

jobs:
  claude:
    uses: lentago/shared-workflows/.github/workflows/claude-responder.yml@v1.0.0
    secrets: inherit
    with:
      allowed_tools: '"Bash(git add:*)" "Bash(git commit:*)" "Read" "Edit" "Write"'
      # default_model: opus      # optional, default "sonnet"
      # max_turns: 25             # optional
      # extra_args: |             # optional, e.g. --verbose
      #   --verbose
      #   --output-format stream-json

claude-review.yml

Automated PR review pinned to Haiku. Caller passes a focus block describing the repo and what to look for; the reusable workflow wraps it with the common PR-context header, rules, and output-format scaffolding.

The review is advisory and non-blocking: the review step runs continue-on-error and the job always exits 0, so a transient API failure or turn-budget exhaustion never reds the check or blocks a merge — if the review can't complete, a neutral soft-fail comment is posted instead. This is the deliberate "useful signal, not a gate" split: it is not a required check, and you should not treat it as one. Optional inputs: model (default haiku), max_turns (default 40, set high enough that a normal review finishes before the cap), allowed_bots (default "*", so the fleet's own agent-opened PRs get reviewed too).

name: Claude Code Review

on:
  pull_request:
    types: [opened, synchronize, ready_for_review, reopened]
    paths-ignore:
      - "*.md"
      - "docs/**"
      - "LICENSE"
      - ".gitignore"

jobs:
  claude-review:
    uses: lentago/shared-workflows/.github/workflows/claude-review.yml@v1.0.0
    secrets: inherit
    with:
      review_prompt: |
        This repository is X. Focus your review on:

        1. **Foo** — ...
        2. **Bar** — ...

agent-pr-gate.yml

A required check that holds the bullpen's pull requests until a human approves them (lentago/claytonia#117, lentago/.github ADR-0014). The bullpen's runner App can push branches, and anything that can push can merge once the checks are green. This check is red on the App's PRs until a person says yes.

  • A PR the runner App did not author passes at once, without an API call. A human-authored PR armed with --auto --squash merges on green as before.

  • A runner-App PR passes when a non-bot user with write access has approved the head commit being checked. Each user's latest review that decided something counts: an approval, a change request or a dismissal. A push re-runs the gate on the new head, where the old approval no longer counts. Approving re-runs it too, so an armed PR merges right after the approval.

  • Routine exception (ADR-0014 point 4). A runner-App PR that cr-automerge armed under a rule passes when two things hold:

    • The latest record of the arming names the head commit being checked. The record is a comment authored by lentago-claude-runner[bot] whose first line is <!-- cr-automerge armed rule=<rule> head=<sha> -->. The same text from any other author is ignored.
    • The PR still meets that rule as the default branch's .claytonia/automerge.json defines it: title, paths, file count, open, not a draft, same-repository branch to the default branch.

    A push after arming moves the head away from the record, and the gate fails. The rule is checked again because the App can post that comment itself, so a forged record passes only a PR the rule allows anyway. cr-automerge posts the record just after it arms, so any run on an armed PR waits up to two minutes for it. Runs for the same head queue rather than cancel each other, so a review or edit in that window can't cut the wait short.

  • Anything else fails, with one line naming what is missing. A failed API call fails too.

Trigger it unconditionally, with no paths: filter, and keep the trigger list below. The job is named agent-pr-gate, so called from a job with the same id its context is agent-pr-gate / agent-pr-gate. Making that context required is lentago/.github#289.

name: agent-pr-gate

on:
  pull_request:
    types: [opened, synchronize, reopened, edited, ready_for_review, auto_merge_enabled]
  pull_request_review:
    types: [submitted, dismissed]

jobs:
  agent-pr-gate:
    permissions:
      contents: read
      pull-requests: read
    uses: lentago/shared-workflows/.github/workflows/agent-pr-gate.yml@v1.7.0

Identity is by ID, never by login. A login is not a stable identity across GitHub's APIs: REST reports the runner App as lentago-claude-runner[bot], GraphQL as lentago-claude-runner, and the GraphQL form is a valid login for a human account. So the gate matches a PR's author on the App's bot-account user ID (pull_request.user.id; PR objects carry no performed_via_github_app), and a cr-automerge record on the comment's performed_via_github_app.id, the App's integration ID. Optional inputs, with the runner App's values as defaults:

Input Default Decides
agent_user_id 293961292 A PR is gated when its author's user ID is this.
agent_app_id 4062202 A cr-automerge record counts only when posted through this App.
agent_author lentago-claude-runner[bot] Nothing since v1.7.0; it names the App in messages. Set to another agent while either ID above is still the default, it fails the job: set both IDs for that agent.

Limit: the App's workflows: write. The runner App's installation holds workflows: write, so a PR it opens can add or change a workflow. Such a workflow can run a job named like this one that simply passes. Required contexts are matched by name and source, and every Actions check has the same source (the Actions App, integration ID 15368), so that job's check can satisfy the requirement. That limit applies to any check built from Actions. This gate therefore stops a merge the App attempts by mistake, but not one it is trying to force. It is the accident layer. The boundary is agent-pr-verdict.yml below: the same decision, posted as a check run by a separate GitHub App and required by that App's ID.

The logic lives at ci/agent_pr_gate.py, checked out at the ref the caller pinned. Run its tests with python3 ci/test_agent_pr_gate.py; ci-tests.yml runs them on every PR here. This repo runs the gate on its own PRs through agent-pr-gate-self.yml. There, the script comes from the PR's base commit, not the PR, so a PR can't edit the script that checks it.

agent-pr-verdict.yml

The trusted path of the agent PR gate (#97). It makes the same decision as agent-pr-gate.yml, through the same script, and posts it as a check run named agent-pr-verdict through a second GitHub App, the gate App. The ruleset then requires that check by the gate App's integration ID. Every Actions job reports from the Actions App, so a workflow the runner App adds to its PR can post a check run of the same name and still not satisfy the requirement. agent-pr-gate.yml stays as the accident layer: it gives quick feedback on every event, and its run completing is what triggers this workflow's review path.

Where the verdict is computed. Only in runs whose workflow file and code the PR cannot change. The caller triggers it on three events:

PR activity Trigger Why this trigger
Opened, pushed, edited, reopened, marked ready, auto-merge armed pull_request_target It runs the base branch's workflow file.
Review submitted or dismissed workflow_run on completion of the repo's agent-pr-gate caller pull_request_review has no _target form and runs the PR's own workflow file; workflow_run runs the default branch's.
cr-automerge record posted issue_comment (created, on PRs only, by the agent's bot account) It runs the default branch's workflow file. It replaces the gate's 120-second poll on this path. Comments from anyone else start no job in the environment.

The job takes nothing from the triggering event beyond what names the PR: its number, or on workflow_run the completed run's head and repository, used only to look the number up. It then reads the PR's current state through the API with the read-only GITHUB_TOKEN, makes the decision, and posts the check run on the PR's current head. It never checks out or runs the PR's code; the script comes from this repository at the commit the caller pinned (job.workflow_sha), and the job verifies that commit. Fork PRs also trigger pull_request_target and are safe for the same reason. The job's own result is not the verdict: it succeeds once a verdict is posted, whichever way the verdict went, and fails only when none could be posted (a missing secret or variable, an unreadable PR, a refused check run). The verdict is the check run, and a PR with no verdict on its head stays blocked.

The review path runs the PR's own copy of the agent-pr-gate caller, since pull_request_review has no _target form. A PR that renames that caller or drops pull_request_review from its triggers keeps an approval from reaching the verdict: the check stays red, never wrongly green. Editing the PR's title or body re-evaluates it through pull_request_target, with the approval on the head counted.

Where the key lives. The gate App's private key is a secret of a GitHub environment named agent-pr-gate, one per gated repo, with deployment branches limited to main and no admin bypass (lentago/.github terraform/environments.tf creates it). The branch policy is matched against the run's GITHUB_REF: pull_request_target runs with the base branch's ref, workflow_run and issue_comment with the default branch's, so all three get the key. A pull_request or pull_request_review run (ref refs/pull/<n>/merge) is refused the environment, and so is a workflow the runner App pushes on its own branch. The job mints an installation token scoped to its one repository and to checks: write, which is revoked when the job ends.

Order matters. GitHub creates an environment with no protection rules the first time a job names one that does not exist. So the environment is created by lentago/.github's Terraform, with its branch policy, before any caller references it, and the key is never set into an environment without that policy. The job checks this itself: before minting a token it reads the environment and refuses one without custom branch policies or with an admin bypass, which is what an auto-created environment looks like.

Name Kind Holds
agent-pr-gate environment Deployment branches main only; can_admins_bypass = false.
AGENT_PR_GATE_APP_KEY environment secret The gate App's private key (PEM). Never in Terraform state, on the NAS, on a runner LXC, or in the claytonia queue.
AGENT_PR_GATE_APP_ID environment variable The gate App's App ID. Its Client ID works too; both are valid JWT issuers.
gh secret set AGENT_PR_GATE_APP_KEY --env agent-pr-gate --repo lentago/<repo> < key.pem
gh variable set AGENT_PR_GATE_APP_ID --env agent-pr-gate --repo lentago/<repo> --body <app id>

Caller. Trigger it unconditionally, with no paths: filter, and keep the trigger list below. workflow_run.workflows names the repo's own agent-pr-gate caller workflow (its name:). secrets: inherit passes the environment's secret through. The job is named post-verdict, so its Actions context is agent-pr-verdict / post-verdict; the check the ruleset requires is the gate App's agent-pr-verdict. Optional inputs: check_name (default agent-pr-verdict) and the same agent_user_id, agent_app_id and agent_author as agent-pr-gate.yml.

name: agent-pr-verdict

on:
  pull_request_target:
    types: [opened, synchronize, reopened, edited, ready_for_review, auto_merge_enabled]
  workflow_run:
    workflows: [agent-pr-gate]
    types: [completed]
  issue_comment:
    types: [created]

jobs:
  post-verdict:
    permissions:
      contents: read
      pull-requests: read
    uses: lentago/shared-workflows/.github/workflows/agent-pr-verdict.yml@v1.7.0
    secrets: inherit

What keeps it unfakeable. These conditions must stay true:

  • The runner App has none of the checks, statuses, administration, environments or secrets permissions. It holds write on contents, issues, pull_requests and workflows, and read on metadata (GET /apps/lentago-claude-runner). With administration or environments, it could widen the environment's branch policy or the ruleset.
  • The runner App is not a bypass actor on the main rulesets, and main accepts changes only through PRs.
  • The gate App's key exists only as an environment secret. It is never on the NAS, on a runner LXC, or in the claytonia queue.
  • The gate App holds Checks read and write only (Metadata read comes with it), has its webhook off, and is installable on the lentago account only.
  • This repository's v* tags are immutable, through the release-tags ruleset (ADR-0005, addendum 2026-11-01: update and delete forbidden, no bypass actors). The runner App holds contents: write here, and a caller's pin names the workflow file and script that run inside the environment job; the ruleset is what keeps a pinned tag from being re-pointed. The ruleset does not forbid creating a tag, so a tag exists before any caller pins it: never merge a caller pinned to a release that has not been cut.

This repo runs it on its own PRs through agent-pr-verdict-self.yml, the pilot. There, the local path ref resolves to the base or default branch, so both the workflow and the script come from main. The self-caller merges only once lentago/.github has created this repo's agent-pr-gate environment; requiring the check by the gate App's integration ID is that repo's follow-up to #97, after this caller is seen posting the verdict.

docs-check.yml

Resolves relative markdown links across a repo's git-tracked markdown and fails on genuinely broken ones — the fleet's most common change class ships documentation, and renames/removals silently break relative links. It is more than a generic link-checker: it understands the fleet's two known false-positive classes (below) and resolves them by rule instead of flagging them.

Trigger it unconditionally — no paths: filter. This workflow is built to serve as a required status check, and a required check whose workflow never triggers is held "Expected" forever and deadlocks every non-matching PR (the hard rule in fleet-ops/required-checks.json). Trigger on pull_request across the board; the checker is cheap and skips fast when no markdown changed.

The checker skips two link classes by rule — the two that accounted for 237 of 240 raw failures in the fleet-wide scan (lentago/.github#57):

  • Site-absolute router routes (/library/, /guides/stormwater/) — resolved by an Astro/Starlight site router at build time, not the filesystem.
  • Links that escape the repo root (../../issues/5) — GitHub's repo-relative navigation convention, which resolves on github.com and can never point at a tracked file anyway.

Anything left is handled by the ignore input (newline-separated globs matched against the source-file path or the link target) or a checked-in .docs-check-ignore file at the repo root (one glob per line, # comments).

name: docs-check

on:
  pull_request:
    types: [opened, synchronize, reopened, ready_for_review]
    # No paths: filter — this is a required check and must always report.

jobs:
  docs-check:
    uses: lentago/shared-workflows/.github/workflows/docs-check.yml@v1.0.0
    with:
      # ignore: |                 # optional, per-repo false positives
      #   */api-reference/*
      #   CHANGELOG.md
      # paths: "*.md *.markdown"   # optional, default shown

The link resolver lives at ci/check_docs_links.py — a single, testable source promoted from lentago/.github's ci/validate.py. Each run checks out the resolver at the commit of the docs-check.yml the caller pinned, and fails if that commit, or the pinned tag, doesn't match. Its log names the commit (Resolver: ci/check_docs_links.py at <sha>, the commit of …@refs/tags/<tag>). Run its test suite locally with python3 ci/test_check_docs_links.py. This repo also dogfoods the checker on its own markdown via docs-check-self.yml, which uses the local path ref so a PR is validated by the resolver inside that PR.

shellcheck.yml

ShellCheck for bash scripts. Pass an explicit scripts list, or leave it empty for repo-wide find -name '*.sh' discovery.

name: ShellCheck

on:
  pull_request:
    types: [opened, synchronize, ready_for_review, reopened]

jobs:
  shellcheck:
    uses: lentago/shared-workflows/.github/workflows/shellcheck.yml@v1.0.0
    with:
      scripts: |
        deploy.sh
        scripts/start.sh
      # severity: warning  # optional, default "warning"

tf-lint.yml

Terraform quality gate — runs four checks over a caller-specified directory: terraform fmt -check -recursive (formatting), terraform init -backend=false + terraform validate (config validity — no cloud credentials required, deliberately runnable on fork PRs), tflint (idiomatic Terraform and provider-specific rules), and trivy config (IaC misconfiguration scan; trivy is chosen for consistency with site-deploy.yml's container scan, one tool across two surfaces).

Each gate is individually toggleable via a boolean input. Trigger it unconditionally — no paths: filter if you intend to register it as a required status check. A required check whose workflow never triggers is held "Expected" forever and deadlocks every non-matching PR (the hard fleet rule).

name: Terraform Lint

on:
  pull_request:
    types: [opened, synchronize, ready_for_review, reopened]
    # No paths: filter if this is a required check — see tf-lint.yml header.

jobs:
  tf-lint:
    uses: lentago/shared-workflows/.github/workflows/tf-lint.yml@v1.2.0
    with:
      working_directory: terraform   # optional, default "terraform"
      # terraform_version: "1.9.8"  # optional, default "latest"
      # tflint_version: "v0.54.0"   # optional, default "latest"
      # enable_fmt: false            # optional — disable if fmt is enforced elsewhere
      # enable_validate: false       # optional
      # enable_tflint: false         # optional
      # enable_trivy: false          # optional

Full input reference:

Input Required Default Description
working_directory no terraform Directory containing Terraform configuration, relative to repo root
terraform_version no latest Terraform version to install (e.g. 1.9.8)
tflint_version no latest tflint version to install (e.g. v0.54.0)
enable_fmt no true Run terraform fmt -check -recursive
enable_validate no true Run terraform init -backend=false + terraform validate
enable_tflint no true Run tflint
enable_trivy no true Run trivy config (IaC misconfiguration scan)

site-deploy.yml

Reusable Astro-site deployment pipeline: builds the static site, packages it into a Docker image, pushes to ECR (:latest and :<sha> tags), scans for vulnerabilities with Trivy, attests the image with actions/attest-build-provenance, then rolls the ECS service and waits for stabilization. Authenticates via OIDC — no long-lived AWS credentials.

Rollout check (v1.5.1+): the job fails unless the deployment it started ends up as the service's PRIMARY deployment with rolloutState COMPLETED. With the ECS deployment circuit breaker's rollback on, a failed deployment is rolled back, the service stabilizes on the previous one, and aws ecs wait services-stable succeeds anyway. The check catches that case and prints the service's recent events. It needs only ecs:DescribeServices, which the wait already uses.

SLSA Build L3: building inside a reusable workflow (hosted in a separate repository that callers cannot modify) satisfies SLSA Build L3. Attestations are stored in GitHub's Sigstore-backed store and can be verified offline:

gh attestation verify oci://<registry>/<ecr_repo>@<digest> --owner lentago

Caller permissions required (on the calling workflow's job: block):

permissions:
  id-token: write      # OIDC for AWS auth and attestation signing
  contents: read
  attestations: write  # write to GitHub's attestation store
  packages: read       # required by actions/attest-build-provenance

The caller wires up secrets: inherit so the OIDC token and any other org/repo secrets are forwarded transparently.

Minimum caller example (pin to the release that introduced this workflow):

name: Build & Deploy

on:
  push:
    branches: [main]
  workflow_dispatch: {}

jobs:
  deploy:
    uses: lentago/shared-workflows/.github/workflows/site-deploy.yml@v1.1.0
    secrets: inherit
    permissions:
      id-token: write
      contents: read
      attestations: write
      packages: read
    with:
      ecr_repo: solidago-dev-mysite
      ecs_cluster: solidago-dev-cluster
      ecs_service: solidago-dev-mysite
      role_arn: arn:aws:iam::365184644049:role/solidago-dev-github-actions

Full input reference:

Input Required Default Description
ecr_repo yes — ECR repository name
ecs_cluster yes — ECS cluster name
ecs_service yes — ECS service name
role_arn yes — IAM role ARN to assume via OIDC
aws_region no us-east-1 AWS region
node_version no 20 Node.js version for the Astro build
fetch_depth no 1 Git fetch depth (0 = full history; required for Starlight lastUpdated)
pre_build_command no "" Shell command run after npm ci and before npm run build (e.g. a Python content-sync script)
build_env_vars no "" Newline-separated KEY=VALUE pairs exported as env vars for the build step (e.g. PUBLIC_ASK_ENDPOINT=${{ vars.PUBLIC_ASK_ENDPOINT }})
version_file no public/version.json Path of a JSON file (sha, repo, built_at, run_url) written after checkout and before the pre-build command and build, so the site serves the deployed commit at /version.json. Empty disables
attest no true Attest the pushed image with actions/attest-build-provenance

Site-specific examples:

# site-icecreamtofightwith-com: Python content sync before build
with:
  ecr_repo: solidago-dev-app
  ecs_cluster: solidago-dev-cluster
  ecs_service: solidago-dev-app
  role_arn: arn:aws:iam::365184644049:role/solidago-dev-github-actions
  pre_build_command: python3 sync_recipes.py

# site-pondviewlane-com: full git history for Starlight lastUpdated + build env var
with:
  ecr_repo: solidago-dev-pondview
  ecs_cluster: solidago-dev-cluster
  ecs_service: solidago-dev-pondview
  role_arn: arn:aws:iam::365184644049:role/solidago-dev-github-actions
  node_version: "24"
  fetch_depth: 0
  build_env_vars: "PUBLIC_ASK_ENDPOINT=${{ vars.PUBLIC_ASK_ENDPOINT }}"

Trivy scan runs informational-only (exit-code: 0) — it reports CRITICAL/HIGH unfixed findings in the job log but never blocks the deploy. This gives visibility without introducing a new breakage vector on an existing fleet of live sites.

Versioning

Callers pin to an immutable semver tag — @v1.0.0, @v1.1.0, etc. (ADR-0005). A full release process — what must be green before tagging, the semver policy for reusable workflows (what counts as a breaking change vs. minor vs. patch), and how callers upgrade — is in RELEASING.md.

@main is not a supported consumption path. It continues to work mechanically but carries no stability guarantee; a merge here may change caller CI instantly and silently.

🛠️ Make a change yourself

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:

Invoke the fleet agent from any issue or PR. This is the lowest-friction on-ramp — no code, just a comment. Write @claude in a comment, review, or the body/title of an issue or PR on any repo that wires up the responder, and the claude-responder.yml if: predicate fires the agent. Add a model:opus, model:sonnet, or model:haiku label to route which model answers (the label overrides the caller's default_model; re-apply it to re-trigger). Note on access: nothing in this workflow restricts invocation to org members — the literal-@claude predicate is all that gates it, so who can reach the agent is governed by the caller repo's own event and trigger permissions, not by a check here. Proof this works: the agentic layer is actively hardened — #15 fix(claude-review): make the reviewer advisory and non-blocking and #10 fix(claude-review): default allowed_bots to "*" so fleet bot PRs get reviewed.

Ship a new reusable CI check to the whole fleet. Add or edit a workflow_call definition under .github/workflows/, test it by pointing one caller repo's uses: at @<branch-name> for a single merge, then open a PR here. After it merges to main, cut a release tag — caller repos pick up the change when they bump their uses: ref to the new tag (Dependabot opens those bumps as reviewable PRs where it is enabled). See RELEASING.md. Proof this works (historical, pre-versioning): #28 Add reusable docs-check workflow (relative markdown links), #29 Dogfood docs-check on this repo's own markdown, and #30 docs-check: resolve the tooling ref from job_workflow_ref — the last fixed a cross-repo-caller bug (job_workflow_ref vs workflow_ref) that a self-referential test had masked for every external caller. That fix read a property the github context doesn't have. It evaluated empty, so external callers ran main's resolver instead of their tag's until #95 moved to job.workflow_sha and added a check of the commit on every run.

Amend the fleet's canonical PR-workflow policy. The CLAUDE.md "Fleet PR-workflow (canonical source)" section is the single source of truth for the fleet's PR conventions. Editing it means propagating the same change to its two documented mirrors — ~/repos/CLAUDE.md and the review_prompt block in claude-review.yml — in the same PR. That sync is a stated manual obligation, not automation, so the discipline is part of the change. Proof this works: #11 docs: neutralize PR voice — drop the ## Origin section and Prompt-Origin trailer and #6 Re-anchor fleet PR-workflow as canonical here + add CI review checks, which folded the rules into claude-review.yml's prompt as machine-checked review criteria.


🌱 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.

About

Reusable GitHub Actions workflows shared across the Lentago Labs fleet: an interactive @claude responder (routes to opus/sonnet/haiku by label), automated PR review, CI patterns, and fleet-wide policy enforcement. The canonical source for cross-repo CI conventions.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages