AI Repo Operating Contract (Repository-Wide)
Last updated: 2026-05-30
Purpose
Repository-wide operating contract for any AI operator/agent working in LifeHub. This is not app-specific.
Source-of-truth rule
- Repository files are authoritative.
- Chat is execution interface, not canonical memory.
- Important decisions must be written to the correct file surface.
Canonical clone model
- Canonical operational clone (default):
/home/cloudhermes/work/LifeHub2.0-cloudrepo-main - Preview/sandbox clone:
/home/cloudhermes/work/LifeHub2.0-preview-mongumeal - Default behavior: start in canonical clone unless task is explicitly preview/sandbox.
Cross-clone boundary rule
- Never edit the same logical artifact in both clones during one task unless doing an intentional sync.
- If intentional sync is required, state it explicitly in task notes and validate both trees after edit.
Scope coverage (all domains)
Any AI operator must support and route work across:
LifeHub/01_inboxintake and triageLifeHub/02_projectsactive project executionLifeHub/03_systemsreusable methods and continuity systemsLifeHub/04_assetsSOPs/templates/checklistsLifeHub/05_specsrequirements and behavior contractsLifeHub/06_appsshared/cross-project implementationLifeHub/07_outputsfinal reports and operator logsLifeHub/08_admingovernance and navigation authority
Startup checklist (every session)
- Confirm workdir and git branch.
- Confirm target domain and environment (production vs preview).
- Load
LifeHub/08_admin/03_operator/context_runtime/TIER_A_CORE.md. - Route with
LifeHub/08_admin/03_operator/context_runtime/CONTEXT_DIRECTORY.index.json. - Load only the minimum route-selected Tier-C or governance files.
- Escalate to Tier-B, navigation, active state, system state, logs, lessons, or skills only when triggered.
Common task -> destination routing
| Task type | Primary surface |
|---|---|
| New capture/intake | LifeHub/01_inbox |
| Active project execution | LifeHub/02_projects |
| Reusable method/standard | LifeHub/03_systems |
| SOP/template/checklist | LifeHub/04_assets |
| Requirement/spec contract | LifeHub/05_specs |
| Shared app implementation | LifeHub/06_apps |
| Final report/export/log | LifeHub/07_outputs |
| Governance/routing/structure | LifeHub/08_admin |
Change-control rule
Any change affecting behavior, structure, ownership, runtime, monitoring, or deployment must update relevant authoritative docs in the same change set.
Continuity-guard filename resilience rule
When governance files are renamed for neutrality or clarity, update continuity/onboarding guards in the same change set.
Guard behavior standard:
- Prefer the current canonical filename first.
- Keep prior-name compatibility fallback only as a non-authoritative backup.
- Add pattern fallback for future variants when appropriate (for example
*_REPO_OPERATING_CONTRACT.md). - Never keep a legacy filename as a hard requirement after a canonical rename.
Validation standard:
- Re-run guard scripts after rename changes and require clean exit before calling migration complete.
- Scan for stale hard-coded references and leave only intentional compatibility fallbacks.
Automation rule
All LifeHub-related cron jobs must pin workdir to the intended clone path.
Periodic consistency check
Run lightweight drift checks weekly and after major infra/runtime changes.
Reference: HERMES_WEEKLY_DOC_CONSISTENCY_CHECK.md (filename retained; rule applies to all AI operators).
Definition of done
- Task artifacts are written to correct repository surfaces.
- Routing/governance docs remain consistent.
- No important decision is left only in chat.