mirror of
https://github.com/bitbaum/fleet.git
synced 2026-12-04 05:47:47 +01:00
* docs(agents): Loki is the execution plane, not engineering The plane was renamed 2026-09-20 (orangecat src/config/ecosystem.ts ECOSYSTEM_PILLARS); this sentence still carried the old label. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PJkbo18cRNXtgPWZN2S9cD * feat(audits): hold every doc and every live page to what is true Agents read README / CLAUDE.md / AGENTS.md / .claude/ before code and act on them; visitors read pages rendered from components nobody greps. Both drifted silently: one pass over nine repos on 2026-10-19 found a merge policy said to live in a repo that no longer holds it, dozens of paths to deleted files, scripts not in package.json, "Next 15 / TS 5.8 / Tailwind 3.3" in a repo on 16 / 6 / 4, and a retired host presented as production in forty files. - docs-truth-audit.mjs: holds each repo's docs to its OWN tree — backticked paths, relative links, `pnpm run X`, stack majors vs package.json, retired names. Never judges prose; a line saying the thing is gone is history. Modes: --dir (working tree), --repo, --repo --pr (only what a PR adds), --sweep --check (every repo, ratcheted by docs-truth.baseline). - auto-merge sweep: the docs gate. A PR that ADDS docs drift — including by deleting a file a doc still names — is held with one comment per head commit naming each line and the fix. Exit 2 (could not look) never holds a merge. The sweep is the one workflow every repo calls, so this needs no per-repo copy. DOCS_TRUTH=0 opts a repo out. - live-claims-audit.mjs: fetches every live site in Loki's map (home + the pages it links first) and flags retired names/hosts, forbidden claims, a past copyright year and dead same-site links. Daily, ratcheted. - repo-metadata-audit: a GitHub description may not carry a retired name or a forbidden claim. - registers/org.json gains forbiddenClaims; org-drift-audit.sh reads it, so the document and served-page gates share one list. - Workflows docs-truth.yml and live-claims.yml (daily); both test suites run per-PR in ci.yml. AGENTS.md states the four gates once; README lists them. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PJkbo18cRNXtgPWZN2S9cD * feat(audits): fewer false positives, and homepages follow the register docs-truth: a removal stated across a line break is history; `cd sub && pnpm run x` reads the sub-package; an example path (e.g. …) is not a claim; a file that describes other repos by design (dotfiles' global CLAUDE.md) opts its paths out with <!-- docs-truth: paths-elsewhere -->. All four came from the first cleanup pass over the fleet. repo-metadata: --fix writes a homepage the register already holds, and repo-metadata.yml runs it daily with FLEET_PAT before the report — five homepages were missing or wrong on 2026-10-19 and every fleet PR inherited the red. Descriptions are prose and stay reported, never written. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PJkbo18cRNXtgPWZN2S9cD * feat(docs-truth): a name kept on purpose is marked on its line <!-- docs-truth: keep — why --> records a deliberate exception (a JWT issuer that still carries a retired name because changing it signs everyone out) instead of leaving it as drift the gate cannot tell apart from a mistake. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PJkbo18cRNXtgPWZN2S9cD * fix(docs-truth): links in code spans are markup; /file links resolve under public/ Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PJkbo18cRNXtgPWZN2S9cD * docs(templates): AGENTS.md pointer names the local docs check Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PJkbo18cRNXtgPWZN2S9cD * ci: judge live repo metadata on its own schedule, not per PR The per-PR --check reads live GitHub state no PR can change; on 2026-10-19 it was red on every fleet PR over five untouched repos, including the PR adding the reconciler that repairs them. repo-metadata.yml (daily) fixes homepages from the register, then reports; the unit test stays per-PR. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PJkbo18cRNXtgPWZN2S9cD --------- Co-authored-by: Claude <noreply@anthropic.com>
42 lines
1.4 KiB
YAML
42 lines
1.4 KiB
YAML
# Docs-truth sweep: does every repo's documentation describe its own code?
|
|
#
|
|
# The per-PR half lives in the auto-merge sweep (scripts/ci/auto-merge-sweep.sh,
|
|
# "the docs gate"): a PR may not ADD a finding, so new drift cannot merge in
|
|
# any repo that calls the sweep. This is the other half — it watches every
|
|
# default branch, including repos with no sweep and drift that arrived some
|
|
# other way, and holds the count per repo as a ratchet.
|
|
#
|
|
# Daily, because docs drift on the scale of merges, and the fleet merges many
|
|
# times a day; a weekly sweep would let a week of agent sessions read the same
|
|
# wrong sentence.
|
|
name: Docs truth
|
|
|
|
on:
|
|
schedule:
|
|
- cron: '17 4 * * *'
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
concurrency:
|
|
group: docs-truth
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
audit:
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 20
|
|
steps:
|
|
- uses: actions/checkout@v7
|
|
|
|
# A detector that silently stopped detecting reports a clean fleet.
|
|
- name: The audit still detects, and still stays quiet
|
|
run: node scripts/ci/test-docs-truth-audit.mjs
|
|
|
|
# FLEET_PAT sees the private repos too; the default token sees this one.
|
|
- name: Every repo's docs agree with its tree
|
|
env:
|
|
GH_TOKEN: ${{ secrets.FLEET_PAT || secrets.GITHUB_TOKEN }}
|
|
run: node scripts/ci/docs-truth-audit.mjs --sweep --check --list 2>&1 | tee -a "$GITHUB_STEP_SUMMARY"; exit "${PIPESTATUS[0]}"
|