agent-architecture-audit — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited agent-architecture-audit (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
A full-stack diagnostic for MindForge's own multi-layer agent stack. Audits the 12-layer stack for wrapper regression, memory contamination, tool-discipline failures, hidden repair loops, and rendering/transport corruption. Produces severity-ranked findings with code-first fixes — for agent systems that hide failures behind wrapper layers, stale memory, retry loops, or transport mutations.
This skill composes with `agent-introspection-debugging` (already in .mindforge/skills/): introspection debugs a single runtime failure (loop, timeout, hallucination); this skill audits the whole stack for the systemic wrapper-layer causes behind those failures. Invoke via /mindforge:introspect when a single-failure debug keeps recurring or points at a structural cause.
MANDATORY for:
multi-step swarm workflows
patch, new prompt-assembly stage, new WaveExecutor step)
Especially critical when:
Do not use for:
agent-introspection-debugging/mindforge:security-scan / security-reviewer/mindforge:agent-evalEvery MindForge agent run passes through these layers. Any one can corrupt the answer. The concrete MindForge component owning each layer is named so the audit has a real target, not an abstraction.
| # | Layer | MindForge Component | What Goes Wrong |
|---|---|---|---|
| 1 | System prompt | SOUL.md + MINDFORGE.md + .agent/CLAUDE.md assembly | Conflicting directives, instruction bloat across the source-of-truth hierarchy |
| 2 | Session history | NexusTracer turn log | Stale context injected from previous turns |
| 3 | Long-term memory | shard-controller (Cold tier) | Pollution across sessions, old topics in new conversations |
| 4 | Distillation | shard-controller compaction (Hot/Warm rotation) | Compressed shards re-entering as pseudo-facts |
| 5 | Active recall | continuous-learning instinct recall | Redundant re-summary / instinct replay wasting context |
| 6 | Tool selection | PersonaFactory + hooks_route routing | Wrong tool routing, model skips a required tool |
| 7 | Tool execution | swarm WaveExecutor dispatch | Hallucinated execution — claims to call but doesn't |
| 8 | Tool interpretation | WaveExecutor result consolidation | Misread or ignored tool output |
| 9 | Answer shaping | SWARM-SUMMARY consolidation | Format corruption in the final response |
| 10 | Platform rendering | Dashboard (localhost:7339) / CLI / API transport | Transport-layer mutation of a valid answer |
| 11 | Hidden repair loops | soul-engine ADS rewrite + Temporal hindsight regeneration | Silent fallback/retry running a second LLM pass |
| 12 | Persistence | auto-state.json + Merkle audit log | Expired state or cached artifacts reused as live evidence |
#### 1. Wrapper Regression The base model produces correct answers, but MindForge's wrapper layers make it worse.
Symptoms:
#### 2. Memory Contamination Old topics leak into new conversations through NexusTracer history, shard recall, or distillation.
Symptoms:
#### 3. Tool Discipline Failure Tools are declared in the prompt but not enforced in code. The model skips them or hallucinates execution.
Symptoms:
#### 4. Rendering/Transport Corruption The agent's internal answer is correct, but the platform layer mutates it during delivery.
Symptoms:
#### 5. Hidden Agent Layers Silent repair, retry, summarization, or recall layers run without explicit contracts.
Symptoms:
#### Phase 1: Scope Define what you're auditing:
#### Phase 2: Evidence Collection Gather evidence from the codebase:
assembly across the source-of-truth hierarchy
records
provider settings
auto-state.jsonUse rg to search for anti-patterns:
# Tool requirements expressed only in prompt text (not code)
rg "must.*tool|required.*call" --type md
# Tool execution without validation
rg "tool_call|toolCall|tool_use"
# Hidden LLM calls outside the main swarm loop
rg "completion|chat\.create|messages\.create|llm\.invoke"
# Shard/instinct admission without user-correction priority
rg "memory.*admit|shard.*admit|instinct.*capture|persist.*memory"
# Fallback / repair loops that run additional LLM calls (soul-engine, hindsight)
rg "fallback|retry.*llm|repair.*prompt|re-?prompt|soul-engine|regenerat"
# Silent output mutation
rg "mutate|rewrite.*response|transform.*output|shap"#### Phase 3: Failure Mapping For each finding, document:
#### Phase 4: Fix Strategy Default fix order (code-first, not prompt-first):
regeneration explicit with contracts
history + shard memory + distillation
instinct admission)
compacted
as schema), not freeform prose
| Level | Meaning | Action |
|---|---|---|
critical | Agent can confidently produce wrong operational behavior | Fix before next release |
high | Agent frequently degrades correctness or stability | Fix this sprint |
medium | Correctness usually survives but output is fragile or wasteful | Plan for next cycle |
low | Mostly cosmetic or maintainability issues | Backlog |
Present findings to the user in this order:
Do not lead with compliments or summaries. If the system is broken, say so directly.
When auditing a MindForge agent system, answer these:
| # | Question | If Yes → |
|---|---|---|
| 1 | Can the model skip a required tool and still answer? | Tool not code-gated in WaveExecutor |
| 2 | Does old conversation content appear in new turns? | Memory contamination (NexusTracer/shard) |
| 3 | Is the same info in system prompt AND shard memory AND history? | Context duplication |
| 4 | Does soul-engine or hindsight run a second LLM pass before delivery? | Hidden repair loop |
| 5 | Does output differ between internal generation and user delivery? | Rendering corruption (dashboard/CLI) |
| 6 | Are "must use tool X" rules only in prompt text? | Tool discipline failure |
| 7 | Can the agent's own monologue become a persistent instinct/shard? | Memory poisoning |
instinct / NexusTracer turn).
auto-state.json erase a dirty historical incident.Audits MUST produce a structured report following this shape:
{
"schema_version": "mindforge.agent-architecture-audit.report.v1",
"executive_verdict": {
"overall_health": "high_risk",
"primary_failure_mode": "string",
"most_urgent_fix": "string"
},
"scope": {
"target_name": "string",
"model_stack": ["string"],
"layers_to_audit": ["string"]
},
"findings": [
{
"severity": "critical|high|medium|low",
"title": "string",
"mechanism": "string",
"source_layer": "string",
"root_cause": "string",
"evidence_refs": ["file:line"],
"confidence": 0.0,
"recommended_fix": "string"
}
],
"ordered_fix_plan": [
{ "order": 1, "goal": "string", "why_now": "string", "expected_effect": "string" }
]
}mindforge.agent-architecture-audit.report.v1 JSON report (severity-ranked findings + ordered, code-first fix plan)?agent-introspection-debugging for any single runtime failure that still needs contained recovery?~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.