file-ownership-boundaries
Know which files are yours to modify vs Hermes defaults. Covers the two-domain split (Hermes Agent vs steadfaste-fleet repo), what each domain owns, and how to check before editing.
- License 许可
- MIT
- 最近更新
- 2026-11-14
- Stars
- ★ 4
- Forks
- 1
01 前言 Front Matter
- name
- file-ownership-boundaries
- author
- Steadfaste Fleet
- version
- 1.0.0
- category
- devops
- metadata
- { "hermes": { "tags": [ "ownership", "boundaries", "repo", "hermes", "architecture", "domain" ], "related_skills": [ "survey-before-action", "agent-fundamentals", "repo-organization", "fleet-preflight" ] } }
- platforms
- [ "linux", "macos" ]
- description
- Know which files are yours to modify vs Hermes defaults. Covers the two-domain split (Hermes Agent vs steadfaste-fleet repo), what each domain owns, and how to check before editing.
02 资源文件 4
- 参考文档references/ownership-map.md1.4 KB
- 参考文档references/sharing-filter.md1.6 KB
- 参考文档references/supporting-skill-pattern.md3.1 KB
- 参考文档references/update-existing-first.md1.6 KB
03 SKILL.md 正文
File Ownership Boundaries
Why This Exists
This system has two domains with different ownership:
| Domain | Location | Who owns it | Can we modify? |
|---|---|---|---|
| Hermes Agent | ~/.hermes/ (core files) |
Hermes Agent / Nous Research | No — gets overwritten on updates |
| Our repo | ~/steadfaste-fleet/ |
Us | Yes — this is our codebase |
| Deployed runtime | ~/.steadfaste-fleet/ |
Us (deployed from repo) | Edit repo source, then deploy |
| State/config | ~/.steadfaste-fleet/state/*, ~/.hermes/config.yaml |
Per-machine | Yes — direct modification OK |
| Hermes runtime env | ~/.hermes/.env |
Hermes Agent runtime | No — do not move, merge, or relocate |
The Core Rule
Only create and modify files that have a source in our repo (~/steadfaste-fleet/).
If a file only exists in ~/.hermes/ and not in the repo: do not touch it.
~/.hermes/.env (and .op.env) — never move into the repo
~/.hermes/.env is the Hermes runtime env (provider API keys, Telegram token, terminal/browser settings). It is load-bearing and path-anchored, so a request to "consolidate / move .env into steadfaste-fleet" is a boundary violation, not a refactor. Refuse it by surveying, not by complying:
- Hermes hardcodes the path. The upstream loader resolves the env file as
HERMES_HOME/.env(hermes_cli/env_loader.py,cli.py). Relocating it breaks every gateway/cron startup. There is no config to repoint it. - steadfaste-fleet is a public MIT repo. The file holds real keys; moving or committing secrets there is a PII/secret leak. A gitignored
~/steadfaste-fleet/.envexists only for fleet vars, and the secret-leak/pre-commit detectors enforce the separation. - The split is already canonical. Fleet vars live in
~/steadfaste-fleet/.env(gitignored, mode 600, symlinked from the legacy~/.steadfaste-fleet/fleet-bus.conf); the runtime env stays where Hermes reads it.~/.steadfaste-fleet/.envas a deploy-dir file must NOT exist.
Before concluding "move", run the survey: find ~/.hermes -maxdepth 3 -name '.env*' (excluding hermes-agent/ and venv environments/) will show only .env, .env.lock (0-byte lock), and .env.bak-* backups — none is a second config to consolidate. Offer the safe equivalent instead: versioning the key schema as a .env.example, never the secret values.
Companion: pii-scrubbing (.env handling, .env.example templates, gitignore negation) and survey-before-action (phase-0a .env → credential-handling skills).
Hard boundary: upstream Hermes files are NEVER modified
This includes local-only patches applied directly to deployed files. A temporary fix that works locally and never leaves the machine is still a fix to upstream code — and is not permitted. Reasons, in order:
- The user forbids it — "Do not try to fix hermes ever!" (Luke, 2026-09-06)
- The fix is lost on the next update — wasted effort
- The fix creates drift between this host and the fleet — harder to diagnose later
If an upstream bug blocks your workflow, the options are:
- Pause affected crons (
hermes cron pause <id>) to stop error noise - Set up an upstream-fix-watchdog cron to alert when the fix lands upstream
- Report the bug — but do not patch the file
Before Every File Edit
Ask yourself these three questions IN ORDER:
-
Is this file in
~/steadfaste-fleet/? → Yes: ✅ Edit freely. It's ours. -
Is it ONLY in
~/.hermes/and NOT in the repo? → Yes: ❌ STOP. It's a Hermes default. Do not touch it. -
Is it somewhere else (deployed runtime, state file)? → Deployed runtime (
~/.steadfaste-fleet/scripts/): find the repo source, edit there, then deploy → State/config: modify directly
Identifying Our Skills vs Hermes Defaults
Skills in ~/.hermes/skills/ come from two places. Know which is which:
| Origin | Path check | Action |
|---|---|---|
| Steadfaste Fleet (ours) | In ~/steadfaste-fleet/skills/ |
✅ Edit the repo source, deploy via fleet-update.sh |
| Hermes Agent (upstream) | In ~/.hermes/hermes-agent/skills/ but NOT in repo |
❌ Do not edit — create a supplement instead |
Hermes Agent upstream skills (do NOT edit): Any skill at ~/.hermes/hermes-agent/skills/ that does NOT have a matching source in ~/steadfaste-fleet/skills/. This includes all skills in apple/, creative/, email/, github/, media/, note-taking/, productivity/, research/, smart-home/, social-media/, software-development/spike, and others shipped by upstream.
Our skills (edit freely): All skills under ~/steadfaste-fleet/skills/<category>/<name>/, including those that share names with Hermes defaults (we customized them — root-cause-debugging, survey-before-action). Skills with author: Steadfaste Fleet in frontmatter are ours.
Name collisions: The only Hermes upstream skill that shares a name with ours is root-cause-debugging — our v2.0.0 is customized (6-phase vs upstream's 4-phase), being renamed to root-cause-debugging.
Our skills (edit freely):
- Anything in
~/steadfaste-fleet/skills/<category>/<name>/ - Anything in
~/steadfaste-fleet/ops/scripts/ - Any skill WHERE
skill_manage(action='create')was called (agent-created) - Skills with `author: Steadfaste Fleet in frontmatter
The Deployed Copy Trap
Files at ~/.steadfaste-fleet/scripts/ and ~/.steadfaste-fleet/skills/ are deployed copies from the repo. If you edit them directly:
- Your changes will be lost on the next
fleet-update.sh - Other agents won't get your improvements
Always edit the repo source first, then run fleet-update.sh to sync.
Exception: ~/.steadfaste-fleet/state/* files are per-machine state, not deployed from repo.
What To Do Instead of Editing a Hermes Default
If you need a capability that a Hermes default skill provides but it's missing something:
- Don't edit the Hermes default — it will be overwritten
- Create a complement in our repo — a new skill at
~/steadfaste-fleet/skills/<category>/<name>/ - Reference the Hermes default in your new skill's
related_skillsfield - Deploy via fleet-update.sh so the fleet gets it
Protected agent-instruction files: ownership is not write-consent
AGENTS.md, USER.md, AGENTS.seed, USER.seed, and SOUL.md are protected
instruction files. Even when they live in our repo (so you own the content),
writing to them fires a SECOND, independent UI approval prompt — a governance
lock (begin_change) does NOT cover the write, and a chat message like
"continue"/"go ahead" does NOT satisfy it (silence is not consent; the prompt
must be answered in the operator's UI). A timed-out write returns
BLOCKED: approval prompt timed out ... silence is not consent and the gate
forbids retrying via another path (terminal, execute_code, a different file).
- Spend the governed cycle drafting + pro-reviewing the instruction text, then do the protected write LAST and tell the operator to watch for the prompt — a chat go-ahead alone will still time it out.
- Do NOT route around a timed-out protected write (sed, terminal, alternate path): the gate treats that as a bypass. Close the cycle honestly (score it, note the write is operator-gated), and re-attempt only when the operator is present to click the prompt.
- Contrast: editing the DEPLOYED copy of a script (
~/.steadfaste-fleet/...) uses the patch tool under the skill-gate only — the UI-approval gate is specific to protected AGENTS/USER/SOUL-style instruction-file paths, not ordinary repo/deployed files.
Pitfalls
- ❌ Editing a skill that's only at
~/.hermes/hermes-agent/skills/(e.g.software-development/spike) — we don't own it, upstream overwrites - ❌ Patching
~/.steadfaste-fleet/scripts/files — next deploy overwrites your edits - ❌ Creating a new file in
~/.hermes/skills/— fleet can't get it; put it in the repo - ✅ Creating
task-persistenceskill in our repo — correct: all agents get it, Hermes doesn't overwrite - ❌ Creating a new file when an existing one can be extended. Search 3+ different terms before concluding nothing exists. The most expensive mistake is building a parallel system because a single search missed the existing one.
- ❌ Moving
~/.hermes/.envinto steadfaste-fleet because the user asked to "consolidate .env". The runtime env is hardcoded-loaded from HERMES_HOME, holds real secrets the public repo must not see, and its schema is already mirrored by the gitignored~/steadfaste-fleet/.env. Survey first, then refuse the physical move and offer a.env.exampleschema instead.
The Sharing Filter
When the skill lifecycle or learnings pipeline evaluates something for upstreaming, apply this filter in order:
-
Is it a Hermes Agent upstream skill? (at
~/.hermes/hermes-agent/skills/but NOT in~/steadfaste-fleet/skills/) → ❌ Skip. The framework owns these — not ours to share. -
Is it already in
steadfaste-fleetrepo with no substantive change? → ❌ Skip. Already shared with the fleet. -
Is it a genuinely new or substantively improved steadfaste-fleet skill? → ✅ Share.
The test: "Would someone running Steadfaste Fleet benefit from this? Or is it already available through either the Hermes or steadfaste-fleet repos?"
Examples of what NOT to share:
- ❌ A patch to a Hermes default skill (already in Hermes repo)
- ❌ A one-line doc fix in an existing steadfaste-fleet skill (already shared)
- ❌ A session-specific workaround or one-off fix (ephemeral)
- ✅ A new steadfaste-fleet skill with reusable steps + pitfalls
- ✅ A substantive new phase in an existing our-skill (e.g. a new Phase in
change-checklist) - ✅ A reference document under an existing our-skill umbrella
Quick Reference Card
| You want to... | Right action |
|---|---|
| Change a skill behavior | Check if it's ours → if Hermes default, create a new skill in repo |
| Add a workflow step | Create or update an agent-created skill |
| Fix a deployed script | Find the repo source at ~/steadfaste-fleet/ops/scripts/, edit there, deploy |
| Update a config file | Direct edit OK if it's state/config |
| Share with other agents | Put it in the repo under skills/ or ops/scripts/ |
| Extend a Hermes default | Create a supporting skill — see references/supporting-skill-pattern.md |
Related
- AGENTS.md item 23: Only modify files in our repo — never touch Hermes defaults
- AGENTS.md item 24: Sharing filter — only share new/substantive steadfaste-fleet changes
survey-before-actionskill: Pre-flight checklist before file edits (Steadfaste Fleet, read-only)repo-organizationskill: Repo structure and naming conventionspublic-contributionskill: Decision tree for sharing improvements (ours)change-checklist(devops): Pre-ship validation that includes file-ownership checks in Phase 0
04 同仓库更多 Skills
macbook-linux-maintenance
Legacy MacBook Linux fixes: GPU wedge, reboot hang, thermal.
governance-regression-triage
Triage a host's governance issues: what changed.
enforcement-immutability
Use when enforcement files lose their immutable flag.
steadfaste-fleet-repo-deploy
Use when committing to the steadfaste-fleet repo.
steadfaste-fleet-maintenance
Maintain an installed Steadfaste Fleet instance — update both the upstream Hermes Agent and the fleet repo layer, merge diverged histories, sync skills safely, and troubleshoot common issues. Covers the dual-update workflow (hermes update + fleet-update.sh), encrypted brain data backup, mycortex import, and recovery techniques.
fleet-preflight
DEPRECATED alias — merged into survey-before-action (2026-08-20). Load survey-before-action instead; its "Repo-Specific Pre-Flight" section covers git search, Hermes boundary, and deployment verification.