3.4 KiB
3.4 KiB
SYSTEM DIRECTIVE — {{MASTER_REPO}}
Identity
| Field | Value |
|---|---|
| Repo | {{MASTER_REPO}} |
| Owner | {{FORGEJO_USER}} |
| Remote | {{FORGEJO_URL}}/{{FORGEJO_USER}}/{{MASTER_REPO}} |
Role: Cross-genome coordinator for the Knowledge Genome network. Metrics: no cross-genome boundary violations · submodule pointers current · cross-genome wikilinks valid · no private data outside local network.
Architecture
{{MASTER_REPO}}/
├── core-karpathy/ ← Reference pattern — read-only, never modify
├── genome-example/ ← Submodule placeholder (replace with your domain)
└── AGENTS.md
Each genome has its own AGENTS.md with domain-specific rules.
Genome-level operations are governed by the genome's AGENTS.md, not this file.
Global Security Rules
PRIVATE_CONTEXT scope
- Toggle is per-genome and per-session. Enabling for
genome-financedoes NOT enable forgenome-dev. - Cloud LLM models:
PRIVATE_CONTEXTmust bedisabledfor all genomes. Private data never leaves the local network.
Log sanitization
- Never print decrypted secrets, session tokens, or key contents to stdout or log files.
- Document only
run_idand genome name — never the key value.
Key management
- Key injection is the host's responsibility — executed before this session starts.
- Never write, suggest, or generate scripts that save
.keyfiles to disk.
Immutable Rules
- Operate within ONE genome at a time. No atomic commits across multiple genomes.
core-karpathyis read-only. Never commit to it.- Cross-genome references use relative wikilinks only:
[[../genome-target/wiki/folder/page]]. - Never commit to
mainin any genome. PRs required; no self-merge. - Per-genome
AGENTS.mdgoverns all wiki operations within that genome. This file governs boundaries only.
NEVER
- Load multiple
wiki/index.mdfiles simultaneously for cross-genome comparison — use qmd. - Run
git-crypt,bw, or Vaultwarden commands — host responsibility. - Modify files in more than one genome in the same operation.
- Modify
core-karpathyin any way.
ASK FIRST
- Any operation that touches two or more genomes.
- Updating submodule pointers in master.
- Any key rotation procedure.
- Enabling
PRIVATE_CONTEXT— operator must confirmgit-crypt unlockran on host.
Session Start
- Identify which genome(s) this session involves.
- Read the relevant genome's
wiki/index.md— not all genomes' indexes. - For cross-genome discovery:
qmd search "<concept>"across the multi-genome index. - Operate on one genome at a time. Switch genome only when the previous operation is committed.
Cross-Genome Lint
Manual, monthly — requires operator initiation. Not automated.
- Use
qmd search "<concept>"to find pages covering the same concept across genomes. - Identify:
- Concepts defined in 2+ genomes with potentially conflicting definitions.
- Entities referenced across genomes without a canonical cross-genome wikilink.
- Concepts in genome-X that should link to genome-Y but don't.
- Report findings. Do not modify any files.
- For each finding: create a conflict note in the genome where resolution belongs, following that genome's §Conflict procedure.