Skill Drift — Detection, Binding & Federated Architecture
DITEMPA BUKAN DIBERI — Drift is invisible until it causes a bug.
What This Skill Is
A unified skill covering three concerns:
- Drift Detection — compares live state against saved baselines and reports mismatches across tool manifests, agent cards, skill registries, and runtime-injected files
- Skill Binding — discover, bind, and compose skills across all federation organs using AAA_SKILL.md orthogonal axes (Trinitarian Δ/Ω/ΦΙ + Functional)
- Federated Architecture — design, validate, and manage skills with 3-layer architecture, 3-axis manifests, veto-generator separation, bootstrap signing, and CI validation gates
When to Use
- "Check drift", "verify registry", "detect manifest drift", "tool surface audit", "runtime injection detection"
- Cross-organ synthesis tasks requiring skill composition
- Subagent orchestration requiring isolation, evidence, and floor gates
- Skill surface audits, drift detection, recursive self-forge
- Designing or validating skill architecture across a multi-agent federation
- "Skill architecture", "skill registry", "skill naming", "federated registry drift"
When NOT to Use
- Single-organ direct MCP call (use the organ's MCP directly)
- Irreversible actions without explicit 888_HOLD + F13 (T3)
- Bypassing organ lanes (GEOX is EVIDENCE_ONLY, WELL is REFLECT_ONLY, WEALTH is advisory)
- Creating a single new skill from scratch (use
skill-creator)
§1. DRIFT DETECTION
Drift Dimensions
- Build vs Runtime Manifest Drift — Canonical drift check via
arifOS/runtime/manifest.py (build_manifest vs runtime_manifest)
- Tool Manifest Drift — Live MCP tools vs registered tools vs agent card references
- Skill Registry Drift — SKILL_ALIAS_TABLE vs actual directories vs agent card skill IDs
- Agent Card Drift — Card skill IDs vs existing skill directories
- Schema Drift — Tool input schemas vs documented schemas
- Floor Drift — Declared floor_scope vs actual floor enforcement
- Verdict Taxonomy Drift — Verdict emissions vs closed 6-value set (OBSERVE_ONLY|SEAL|SABAR|VOID|HOLD|888_HOLD)
Detection Pipeline
- Snapshot — Capture current state of all registries
- Compare — Diff against saved baseline (or last-known-good)
- Classify — Each mismatch: CRITICAL (breaks routing), WARNING (orphan), INFO (cosmetic)
- Report — Structured drift report with fix recommendations
- Escalate — CRITICAL drift → 888_HOLD before any SEAL operation
Runtime-Injected Files
Some organ services modify files at runtime. Known patterns:
- WELL
index.html: WebMCP adapter injected on service start → dirty after commit
- arifOS session-state: Runtime state files that change during operation
When dirty after clean commit: check if injected content was already committed → if yes, re-commit; if no, actual drift.
Baselines
- Canonical drift check:
arifOS/runtime/manifest.py
- Tool registry:
/root/arifOS/tool_registry.json
- Agent cards:
/root/AAA/a2a-server/agent-cards/
- Skill alias:
/root/AAA/skills/SKILL_ALIAS_TABLE.json
- MCP surface: Live
tools/list from each organ
- Verdict taxonomy:
arifOS/runtime/verdict.py
§2. SKILL BINDING
Overview
This meta-skill provides the single entry point for any agent to interact with the federation's skill surface in a constitutionally governed way. It implements the unified contract in /root/AAA/contracts/AAA_SKILL.md.
Inputs
- intent: string (natural language task)
- organs: list (optional filter: ["GEOX", "WEALTH", "WELL", "arifOS", "A-FORGE", "Hermes-Ω"])
- autonomy_tier: "T1" | "T2" | "T3"
- max_parallel: int (default 3)
- required_evidence: bool
Procedure
- Probe capability surfaces via arifos-mcp-federation + organ MCPs
- Map intent to orthogonal axes (Trinitarian + Functional)
- Retrieve candidate skills with full contracts (subagent spawn schema, evidence_required, risk_band, floor_scope)
- Compose DAG or subagent swarm with isolation (worktree for code, container for compute)
- Verify floors (F1 reversible-first, F7 humility, F11 audit receipt)
- Return bound plan + evidence bundle
Output Format
{
"orthogonal_map": {"trinitarian": "Δ|Ω|ΦΙ", "functional": ["Governance", "Evidence", ...]},
"skills_bound": [{"id": "...", "organ": "...", "floor_scope": [...], "subagent_contract": {...}}],
"composed_plan": "DAG or subagent list",
"evidence_bundle": {"provenance": "...", "uncertainty": "P50: ..."},
"floor_receipt": "F1 pass, F7 humility applied, F11 auditable",
"escalation": "none | 888_HOLD | F13"
}
Forbidden Actions
- Direct organ execution without binding + lease
- Omitting orthogonal tags or subagent contract in output
- T3 actions without 888_HOLD + F13
- Fabricating epistemic labels
§3. FEDERATED ARCHITECTURE
The 3-Layer Architecture
Layer 1: SUBSTRATE (how agents think) — always loaded, agent-agnostic
Layer 2: KNOWLEDGE (what agents know) — always loaded, veto layer
Layer 3: DOMAIN (where agents operate) — load on demand, per-agent
The 3-Axis Manifest
Every skill must declare three axes:
| Axis |
Question |
Test |
| Invariant |
What's timeless? |
Survives tool/org changes? |
| Bridge |
What connects? |
Linked to kernel verbs + other skills? |
| Contrast |
What is this NOT? |
Clear boundaries with neighbors? |
Anti-drift rule: If a skill has no invariant → kill. No bridge → isolate. No contrast → merge.
Veto-Generator Separation
- Domain skills = GENERATOR — produce hypotheses. Authority: ADVISORY.
- Universal skills = VETO — enforce boundary conditions. Authority: BINDING.
- Sovereign = TRUTH — ratifies axioms the framework cannot verify.
Rule: Domain generates, universal vetoes. Never invert.
Naming Convention: {domain}-{verb}
All lowercase kebab-case. Max 3 words. Domain prefix mandatory.
Domains: kernel, geo, wealth, well, forge, a2a, meta, mem, sec, ops, dev, research
CI Validation Gates
- manifest_schema — validate against schema
- skill_hash_integrity — recompute hashes, compare to manifest
- three_axis_completeness — invariant/bridge/contrast all present
- dependency_acyclicity — no circular dependencies
- veto_generator_separation — substrates don't generate, domains don't veto
- adversarial_contradiction — inject contradictions, verify veto catches
- bootstrap_self_host — deterministic self-host test
- signature_present — at least 1 valid signature
- skill_count_bounds — flag if growing beyond threshold
- entropy_budget — verify entropy non-increasing across boot phases
EUREKA-ZEN Workflow: Federation-Wide Skill Lifecycle
Phase 1 — Deep Scan & Chaos Purge: Map ALL surfaces, identify duplicates, archive by renaming, update alias table.
Phase 2 — Architectural Alignment: Refactor skills to the cognitive engine that will execute them (Claude Code / Codex / Hermes).
Phase 3 — Forge Gaps: Cross-reference agent-card skill IDs against skills on disk. Missing = architectural gaps.
Phase 4 — KERNEL Substrate Injection: Every agent card must inherit arifOS baseline physics.
Phase 5 — Seal: Verify alias table synced, federation health green, write seal payload to VAULT999.
Agent Loading Matrix
| Agent |
Substrates |
Knowledge |
Domains |
| Full (Hermes) |
6 |
3 |
research, meta, geo, wealth, well |
| Coder (Claude) |
6 |
3 |
dev, forge, ops, meta |
| Metabolizer (OpenClaw) |
4 |
3 |
mem, ops, a2a |
| Executor (Codex) |
6 |
3 |
dev, forge, ops |
| Minimal (Kimi) |
6 |
3 |
dev, forge, ops, meta, a2a |
Three Gödelian Paradoxes
| Paradox |
Mitigation |
| Bootstrapping — loader needs skills, skills need loader |
Firmware primitive + signed manifest |
| Compression — universal ≠ derivable from domain |
Veto pattern: universal constrains, domain generates |
| Authority — framework validates structure, not truth |
External ratification: sovereign signs the truth |
Pitfalls
- Same-content skills with different names — choose FORGE-* as canonical
- Agent cards rot silently — audit cards against live config monthly
- SKILL_ALIAS_TABLE has 3 copies — always verify hash match
- Granularity gap — registry says 64 skills but manifest has 209. Use registry for layer classification, manifest for per-agent counts
- Sibling-agent file conflicts — use
skill_manage(action='patch') for targeted edits
- Behavioral vs Enforcement confusion — behavioral governance alone is "vibe-based"; enforcement layer must survive a system prompt rewrite
Floors
- F2 TRUTH: Report only what is actually observed
- F3 PEACE: No unnecessary disruption during drift correction
- F4 CLARITY: Drift report must be actionable, not noise
- F8 GENIUS: Skill binding must optimize for capability, not convenience
- F11 AUDITABILITY: Every drift check logged with timestamp and findings
1---2name: skill-drift3id: skill-drift4version: 2.0.05description: >6 Drift detection, skill binding, and federated architecture management.7 Real-time drift detection across tool manifests, agent cards, skill registries, and runtime-injected files.8 Discover, bind, and compose skills across all federation organs using orthogonal axes.9 Design, validate, and manage skills across a multi-agent federation with 3-layer architecture.10owner: AAA11risk_tier: medium12autonomy_tier: T113floor_scope: [F2, F3, F4, F8, F11]14tags: [drift, audit, registry, manifest, binding, architecture, federation, skill-binding, federated, F2, F11]15capability_tier: fed-long-context16ecology_state: WARM17---1819# Skill Drift — Detection, Binding & Federated Architecture2021> **DITEMPA BUKAN DIBERI** — Drift is invisible until it causes a bug.2223## What This Skill Is2425A unified skill covering three concerns:26271. **Drift Detection** — compares live state against saved baselines and reports mismatches across tool manifests, agent cards, skill registries, and runtime-injected files282. **Skill Binding** — discover, bind, and compose skills across all federation organs using AAA_SKILL.md orthogonal axes (Trinitarian Δ/Ω/ΦΙ + Functional)293. **Federated Architecture** — design, validate, and manage skills with 3-layer architecture, 3-axis manifests, veto-generator separation, bootstrap signing, and CI validation gates3031## When to Use3233- "Check drift", "verify registry", "detect manifest drift", "tool surface audit", "runtime injection detection"34- Cross-organ synthesis tasks requiring skill composition35- Subagent orchestration requiring isolation, evidence, and floor gates36- Skill surface audits, drift detection, recursive self-forge37- Designing or validating skill architecture across a multi-agent federation38- "Skill architecture", "skill registry", "skill naming", "federated registry drift"3940## When NOT to Use4142- Single-organ direct MCP call (use the organ's MCP directly)43- Irreversible actions without explicit 888_HOLD + F13 (T3)44- Bypassing organ lanes (GEOX is EVIDENCE_ONLY, WELL is REFLECT_ONLY, WEALTH is advisory)45- Creating a single new skill from scratch (use `skill-creator`)4647## §1. DRIFT DETECTION4849### Drift Dimensions50511. **Build vs Runtime Manifest Drift** — Canonical drift check via `arifOS/runtime/manifest.py` (`build_manifest` vs `runtime_manifest`)522. **Tool Manifest Drift** — Live MCP tools vs registered tools vs agent card references533. **Skill Registry Drift** — SKILL_ALIAS_TABLE vs actual directories vs agent card skill IDs544. **Agent Card Drift** — Card skill IDs vs existing skill directories555. **Schema Drift** — Tool input schemas vs documented schemas566. **Floor Drift** — Declared floor_scope vs actual floor enforcement577. **Verdict Taxonomy Drift** — Verdict emissions vs closed 6-value set (OBSERVE_ONLY|SEAL|SABAR|VOID|HOLD|888_HOLD)5859### Detection Pipeline60611. **Snapshot** — Capture current state of all registries622. **Compare** — Diff against saved baseline (or last-known-good)633. **Classify** — Each mismatch: CRITICAL (breaks routing), WARNING (orphan), INFO (cosmetic)644. **Report** — Structured drift report with fix recommendations655. **Escalate** — CRITICAL drift → 888_HOLD before any SEAL operation6667### Runtime-Injected Files6869Some organ services modify files at runtime. Known patterns:70- **WELL `index.html`**: WebMCP adapter injected on service start → dirty after commit71- **arifOS session-state**: Runtime state files that change during operation7273When dirty after clean commit: check if injected content was already committed → if yes, re-commit; if no, actual drift.7475### Baselines7677- **Canonical drift check**: `arifOS/runtime/manifest.py`78- Tool registry: `/root/arifOS/tool_registry.json`79- Agent cards: `/root/AAA/a2a-server/agent-cards/`80- Skill alias: `/root/AAA/skills/SKILL_ALIAS_TABLE.json`81- MCP surface: Live `tools/list` from each organ82- Verdict taxonomy: `arifOS/runtime/verdict.py`8384## §2. SKILL BINDING8586### Overview8788This meta-skill provides the single entry point for any agent to interact with the federation's skill surface in a constitutionally governed way. It implements the unified contract in `/root/AAA/contracts/AAA_SKILL.md`.8990### Inputs9192- intent: string (natural language task)93- organs: list (optional filter: ["GEOX", "WEALTH", "WELL", "arifOS", "A-FORGE", "Hermes-Ω"])94- autonomy_tier: "T1" | "T2" | "T3"95- max_parallel: int (default 3)96- required_evidence: bool9798### Procedure991001. Probe capability surfaces via arifos-mcp-federation + organ MCPs1012. Map intent to orthogonal axes (Trinitarian + Functional)1023. Retrieve candidate skills with full contracts (subagent spawn schema, evidence_required, risk_band, floor_scope)1034. Compose DAG or subagent swarm with isolation (worktree for code, container for compute)1045. Verify floors (F1 reversible-first, F7 humility, F11 audit receipt)1056. Return bound plan + evidence bundle106107### Output Format108109```json110{111 "orthogonal_map": {"trinitarian": "Δ|Ω|ΦΙ", "functional": ["Governance", "Evidence", ...]},112 "skills_bound": [{"id": "...", "organ": "...", "floor_scope": [...], "subagent_contract": {...}}],113 "composed_plan": "DAG or subagent list",114 "evidence_bundle": {"provenance": "...", "uncertainty": "P50: ..."},115 "floor_receipt": "F1 pass, F7 humility applied, F11 auditable",116 "escalation": "none | 888_HOLD | F13"117}118```119120### Forbidden Actions121122- Direct organ execution without binding + lease123- Omitting orthogonal tags or subagent contract in output124- T3 actions without 888_HOLD + F13125- Fabricating epistemic labels126127## §3. FEDERATED ARCHITECTURE128129### The 3-Layer Architecture130131```132Layer 1: SUBSTRATE (how agents think) — always loaded, agent-agnostic133Layer 2: KNOWLEDGE (what agents know) — always loaded, veto layer134Layer 3: DOMAIN (where agents operate) — load on demand, per-agent135```136137### The 3-Axis Manifest138139Every skill must declare three axes:140141| Axis | Question | Test |142|---|---|---|143| **Invariant** | What's timeless? | Survives tool/org changes? |144| **Bridge** | What connects? | Linked to kernel verbs + other skills? |145| **Contrast** | What is this NOT? | Clear boundaries with neighbors? |146147**Anti-drift rule:** If a skill has no invariant → kill. No bridge → isolate. No contrast → merge.148149### Veto-Generator Separation150151- **Domain skills = GENERATOR** — produce hypotheses. Authority: ADVISORY.152- **Universal skills = VETO** — enforce boundary conditions. Authority: BINDING.153- **Sovereign = TRUTH** — ratifies axioms the framework cannot verify.154155Rule: Domain generates, universal vetoes. Never invert.156157### Naming Convention: `{domain}-{verb}`158159All lowercase kebab-case. Max 3 words. Domain prefix mandatory.160161Domains: `kernel`, `geo`, `wealth`, `well`, `forge`, `a2a`, `meta`, `mem`, `sec`, `ops`, `dev`, `research`162163### CI Validation Gates1641651. **manifest_schema** — validate against schema1662. **skill_hash_integrity** — recompute hashes, compare to manifest1673. **three_axis_completeness** — invariant/bridge/contrast all present1684. **dependency_acyclicity** — no circular dependencies1695. **veto_generator_separation** — substrates don't generate, domains don't veto1706. **adversarial_contradiction** — inject contradictions, verify veto catches1717. **bootstrap_self_host** — deterministic self-host test1728. **signature_present** — at least 1 valid signature1739. **skill_count_bounds** — flag if growing beyond threshold17410. **entropy_budget** — verify entropy non-increasing across boot phases175176### EUREKA-ZEN Workflow: Federation-Wide Skill Lifecycle177178**Phase 1 — Deep Scan & Chaos Purge:** Map ALL surfaces, identify duplicates, archive by renaming, update alias table.179180**Phase 2 — Architectural Alignment:** Refactor skills to the cognitive engine that will execute them (Claude Code / Codex / Hermes).181182**Phase 3 — Forge Gaps:** Cross-reference agent-card skill IDs against skills on disk. Missing = architectural gaps.183184**Phase 4 — KERNEL Substrate Injection:** Every agent card must inherit arifOS baseline physics.185186**Phase 5 — Seal:** Verify alias table synced, federation health green, write seal payload to VAULT999.187188### Agent Loading Matrix189190| Agent | Substrates | Knowledge | Domains |191|---|---|---|---|192| Full (Hermes) | 6 | 3 | research, meta, geo, wealth, well |193| Coder (Claude) | 6 | 3 | dev, forge, ops, meta |194| Metabolizer (OpenClaw) | 4 | 3 | mem, ops, a2a |195| Executor (Codex) | 6 | 3 | dev, forge, ops |196| Minimal (Kimi) | 6 | 3 | dev, forge, ops, meta, a2a |197198### Three Gödelian Paradoxes199200| Paradox | Mitigation |201|---|---|202| **Bootstrapping** — loader needs skills, skills need loader | Firmware primitive + signed manifest |203| **Compression** — universal ≠ derivable from domain | Veto pattern: universal constrains, domain generates |204| **Authority** — framework validates structure, not truth | External ratification: sovereign signs the truth |205206### Pitfalls2072081. **Same-content skills with different names** — choose FORGE-* as canonical2092. **Agent cards rot silently** — audit cards against live config monthly2103. **SKILL_ALIAS_TABLE has 3 copies** — always verify hash match2114. **Granularity gap** — registry says 64 skills but manifest has 209. Use registry for layer classification, manifest for per-agent counts2125. **Sibling-agent file conflicts** — use `skill_manage(action='patch')` for targeted edits2136. **Behavioral vs Enforcement confusion** — behavioral governance alone is "vibe-based"; enforcement layer must survive a system prompt rewrite214215## Floors216217- F2 TRUTH: Report only what is actually observed218- F3 PEACE: No unnecessary disruption during drift correction219- F4 CLARITY: Drift report must be actionable, not noise220- F8 GENIUS: Skill binding must optimize for capability, not convenience221- F11 AUDITABILITY: Every drift check logged with timestamp and findings