Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
105 changes: 40 additions & 65 deletions host-setup/agent-safety/README.md

Large diffs are not rendered by default.

54 changes: 27 additions & 27 deletions host-setup/agent-safety/claude/README.md

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions host-setup/agent-safety/claude/claude-md-fleet.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<!-- fleet-bootstrap v1 start -->
## Fleet Governance Entry Point (Any Project, Every Session)

Repositories under the `ptr727` owner are governed by a shared template at `github.com/ptr727/ProjectTemplate`, the repository these rules call the hub, which holds the canonical rules, the machine-readable spec, the repository registry, and the procedures for standing a repository up and bringing one back to conformance. Fetch that repository before acting on anything about conformance, carried content, repository settings, or standing a repository up. This section is host-wide rather than per repository, deliberately, because the repositories that most need it are the ones carrying no instruction set to point the way, and a pointer that lives only inside a conformant repository is a pointer that is present exactly when it is not needed. A repository carrying its own `AGENTS.md` states the same routing in a byte-locked "Fleet Bootstrap" section, and the two are kept in sync on purpose.
Repositories under the `ptr727` owner are governed by a shared template at `github.com/ptr727/ProjectTemplate`, the repository these rules call the hub. The hub holds the canonical rules, the machine-readable spec, and the repository registry. It also holds the procedures for standing a repository up and bringing one back to conformance. Fetch that repository before acting on anything about conformance, carried content, repository settings, or standing a repository up. This section is host-wide rather than per repository, deliberately. That is because the repositories that most need it are the ones carrying no instruction set to point the way. It is also because a pointer that lives only inside a conformant repository is a pointer that is present exactly when it is not needed. A repository carrying its own `AGENTS.md` states the same routing in a byte-locked "Fleet Bootstrap" section, and the two are kept in sync on purpose.

This section enables rather than restricts, so it is bounded by everything above it. It is not an authorization to write anywhere, and the write-safety rules govern every action it leads to. Reading the hub, reading any repository, and running an audit are reads, and they need nothing. A change to a repository is a write and follows the ordinary rules, meaning a branch, a pull request, and a maintainer's merge.

- **Route by what the repository actually holds, not by what it should hold.** The two differ precisely when this matters. No repository yet means the hub's `STANDUP.md` from section 0, and note that nothing in that file creates the GitHub repository, which is an outward-facing write needing explicit permission. A missing or partial instruction set means carrying the baseline per that file's sections 1A and 2, since absent files are a baseline that never arrived rather than drift to re-vendor. An instruction set that is present, current or stale, means the hub's `RESYNC.md`, which runs `AUDIT.md` end to end for the findings and then applies each one in the order that file sets.
- **Route by what the repository actually holds, not by what it should hold.** The two differ precisely when this matters. No repository yet means the hub's `STANDUP.md` from section 0. Note that nothing in that file creates the GitHub repository, which is an outward-facing write needing explicit permission. A missing or partial instruction set means carrying the baseline per that file's sections 1A and 2. That is because absent files are a baseline that never arrived rather than drift to re-vendor. An instruction set that is present, current or stale, means the hub's `RESYNC.md`. That file runs `AUDIT.md` end to end for the findings and then applies each one in the order that file sets.
- **Read the hub's `main` branch as ground truth**, since that is the promoted and gated state, and read `develop` only to detect divergence. The same holds for a repository being audited, for both workflow models.
- **The audit is read-only and produces a report.** It never edits the repository it measures, so a fix is a separate and reviewable change. An audit that reports drift and stops is half the procedure, and a conformance claim carrying no committed report is a claim nobody can check. The hub commits that report under its own `reports/`.
- **Reach the hub as a checkout of your own, fetched immediately before it is read.** A clone is whatever it last fetched rather than the branch it names, so a stale one answers confidently instead of failing, and a single file lifted out of the tree runs against whatever the caller happens to have. Work only in that checkout rather than in one that another task is using, since a blanket add, a hard reset, or a branch switch in a tree someone else is editing destroys work while every command is individually correct.
- **Reach the hub as a checkout of your own, fetched immediately before it is read.** A clone is whatever it last fetched rather than the branch it names. So a stale one answers confidently instead of failing. And a single file lifted out of the tree runs against whatever the caller happens to have. Work only in that checkout rather than in one that another task is using. That is because a blanket add, a hard reset, or a branch switch destroys work in a tree someone else is editing. It does so while every command is individually correct.
<!-- fleet-bootstrap v1 end -->
Loading
Loading