broomva.tech

Reliability engineering for complex systems.

  • Pages
  • Home
  • Projects
  • Writing
  • Notes
  • Tools
  • Chat
  • Prompts
  • Link Hub
  • Social
  • GitHub
  • LinkedIn
  • X

Compact: Metalayer Bootstrap with Kernel

Compact command to bootstrap and self-update CLAUDE.md, AGENTS.md, and .control/ wired to the agentic control kernel.

agent-instructionsv1.0March 18, 2026
compactmetalayercontrol-kernelself-update

Variables


Pull prompt `metalayer-bootstrap-with-kernel` from the prompt library at https://broomva.tech/api/prompts for the full reference.

Execute in {'.'} with profile={'governed'}, update_mode={'moderate'}.

**Steps**:

1. **Inspect**: Read CLAUDE.md, AGENTS.md, METALAYER.md, .control/*. Scan package.json/Cargo.toml/Makefile for real commands. Detect drift between docs and codebase.

2. **Bootstrap**: Create/update CLAUDE.md (overview, verified commands, conventions, architecture, dependencies, control kernel section). Create/update AGENTS.md (tools, boundaries, commit conventions, PR requirements, escalation rules, self-update protocol). Install .control/ per profile.

3. **Wire kernel**: Use `/agentic-control-kernel` to set up plant interface (.control/plant.yaml), safety shields in policy.yaml, EGRI evaluator link if applicable, consciousness stack (docs/conversations/ for knowledge-graph-memory bridge).

4. **Self-update**: Detect 5 drift types (command, structure, convention, dependency, control). Apply per update_mode. Self-updatable: commands, architecture, topology, metrics. Requires escalation: conventions, escalation rules, safety thresholds, action space, schemas.

5. **Verify**: All commands exit 0. topology matches reality. smoke/check/control-audit pass. No governance file exceeds 200 lines.

**Core rules**: Never fabricate commands. Never loosen safety without approval. Document what IS, not what SHOULD BE. The metalayer serves the agent.