Skip to content

Commit 581b802

Browse files
Jonathan D.A. Jewellclaude
andcommitted
docs: enhance AI.a2ml with critical invariants and canonical locations
- Add CRITICAL INVARIANTS section for anti-amnesia protocol - Specify .machine_readable/ as ONLY valid location for 6 SCM files - Document .bot_directives/ location - Add core constraints that prevent duplication errors - Include session startup checklist - Emphasize no root directory SCM files allowed This ensures interoperability across bot sessions and prevents context loss from duplicate or misplaced metadata files. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent 1529852 commit 581b802

1 file changed

Lines changed: 32 additions & 2 deletions

File tree

AI.a2ml

Lines changed: 32 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
# AI Assistant Instructions
22

3-
# Machine-Readable Metadata
3+
## CRITICAL INVARIANTS (Anti-Amnesia Protocol)
44

5-
Project metadata and AI agent configuration files are located in `.machine_readable/`:
5+
**READ THIS FIRST - EVERY SESSION - NO EXCEPTIONS**
66

7+
### Canonical File Locations (ONLY THESE - NO DUPLICATES)
8+
9+
**Machine-Readable Metadata:** `.machine_readable/` directory ONLY
710
- **STATE.scm** - Current project state, progress, blockers, next actions
811
- **ECOSYSTEM.scm** - Position in ecosystem, relationships to other projects
912
- **META.scm** - Architecture decisions, governance, development practices
@@ -12,6 +15,33 @@ Project metadata and AI agent configuration files are located in `.machine_reada
1215
- **NEUROSYM.scm** - Neurosymbolic integration configuration
1316
- **LANGUAGES.scm** - Language portfolio status and metadata
1417

18+
**CRITICAL:** If ANY of these 6 SCM files exist in the root directory, this is an ERROR state.
19+
The ONLY valid location is `.machine_readable/`. Do NOT create duplicates.
20+
21+
**Bot Directives:** `.bot_directives/` directory
22+
- Bot-specific instructions and automation rules
23+
- Gitbot-fleet configuration (rhodibot, echidnabot, sustainabot, glambot, seambot, finishbot)
24+
25+
**Agent-Specific Instructions:**
26+
- `.claude/CLAUDE.md` - Claude-specific patterns and rules (if exists)
27+
- `AI.a2ml` - THIS FILE - Universal bot entry point
28+
29+
### Core Constraints That Prevent Errors
30+
31+
1. **No SCM file duplication** - Root directory must NOT contain STATE.scm, META.scm, ECOSYSTEM.scm, AGENTIC.scm, NEUROSYM.scm, PLAYBOOK.scm, or LANGUAGES.scm
32+
2. **Single source of truth** - `.machine_readable/` is authoritative
33+
3. **No stale metadata** - If root SCMs exist, they are OUT OF DATE and must be removed
34+
4. **Submodule integrity** - All 10 core languages + 7-tentacles must be checked out (not empty directories)
35+
5. **License consistency** - All code PMPL-1.0-or-later unless platform requires MPL-2.0 fallback
36+
37+
### Session Startup Checklist
38+
39+
✅ Read THIS file (AI.a2ml) first
40+
✅ Read `.machine_readable/STATE.scm` for current status
41+
✅ Check `.machine_readable/AGENTIC.scm` for interaction constraints
42+
✅ Verify no duplicate SCM files exist in root
43+
✅ Check git submodule status (must not be empty)
44+
1545
**These files are the canonical source of truth for project metadata.**
1646

1747
## Repository Structure

0 commit comments

Comments
 (0)