--- name: epistemic-deconstructor description: "Systematic reverse engineering of unknown systems using scientific methodology. Use when: (1) Black-box analysis, (2) Competitive intelligence, (3) Security analysis, (4) Forensics, (5) Building predictive models. Features 6-phase protocol with a mandatory abductive expansion sub-phase, Bayesian inference, compositional synthesis, and psychological profiling (PSYCH tier)." --- # Epistemic Deconstruction Protocol v7.16.7 ## Core Objective Transform epistemic uncertainty into predictive control through principled experimentation, compositional modeling, and Bayesian inference. --- ## Orchestrator Role Assumption (FIRST ACTION — before Session Bootstrap) This skill's runtime is the **orchestrator role**, defined by `agents/ed-orchestrator.md`. The 6-phase FSM, per-phase dispatch, intake, tier selection, and gate enforcement are executed by whichever conversation holds that role. **Two valid entry paths, both supported**: 1. **Skill invocation (`/epistemic-deconstructor` or skill auto-load)** — the conversation that loaded this SKILL.md (typically main Claude) IS the orchestrator role-holder. FIRST tool call: `Read /agents/ed-orchestrator.md`. Adopt that file's responsibilities, constraints, and procedure as your own. Then run `$SM resume` as your SECOND tool call (the orchestrator's FIRST internal action). Dispatch the 14 phase specialists (ed-session-clerk, ed-hypothesis-engine, ed-cognitive-auditor, ed-domain-orienter, ed-scope-auditor, ed-abductive-engine, ed-rapid-screener, ed-boundary-mapper, ed-causal-analyst, ed-parametric-id, ed-model-synthesizer, ed-validator, ed-psych-profiler, ed-research-scout) via your own `Agent` tool as the procedure requires. 2. **Main-thread agent (`claude --agent ed-orchestrator`)** — the agent IS the main thread. Its `tools: Agent(...)` whitelist (declared in its frontmatter) is honored by Claude Code, and the procedure runs as-written inside the agent's context. This path does NOT load SKILL.md into a separate conversation first. **Do NOT call `Agent(ed-orchestrator)` from within a sub-agent.** Claude Code prohibits nested sub-agent dispatch (`docs/subagents.md:292`: *"Subagents cannot spawn other subagents."*). When `Agent(ed-orchestrator)` is dispatched from a sub-agent context, the orchestrator's `Agent(...)` whitelist is dropped at load time and the 14 specialists become unreachable — this was the v7.15.9 regression that v7.15.11 corrects. **Fallback (path 2 only)**: if `claude --agent ed-orchestrator` reports "agent not found", the install is incomplete. Run `make sync-skill` (Unix) or `.\build.ps1 sync-skill` (Windows) from the `epistemic-deconstructor` repo — it installs agents to `~/.claude/agents/` (the only Claude Code agent-discovery path besides plugin dirs; the skill's own `agents/` directory is NOT scanned). Restart the Claude Code session to load the new agents. Path 1 (skill invocation) reads orchestrator.md directly from the skill bundle and does not require agent install. This directive composes BEFORE Protocol Inviolability, Intake & Reframe, and the Refusal Protocol. Those three layers live INSIDE the orchestrator's procedure and defend behavior only AFTER the role is assumed. --- ## Session Bootstrap (orchestrator role: FIRST internal action) `$SM resume` is the FIRST internal action once the orchestrator role has been assumed (per "Orchestrator Role Assumption" above). Run BEFORE any other Bash / file / web tool calls. Do NOT batch with web fetches or file reads. **Script location**: All Python scripts are in the skill directory at `/scripts/`. Resolve `` to the absolute path of this skill's installation (the directory containing this SKILL.md file). **Session location**: The `--base-dir` flag controls where `analyses/` is created. It MUST point to the **user's project directory**, NOT the skill installation directory. ```bash # = absolute path to skill installation (directory containing SKILL.md) # = user's working directory (where analyses/ should live) # SM = shorthand used throughout this document # CRITICAL: Shell variables do NOT persist between Bash tool calls. # You MUST redefine SM at the start of EVERY Bash call, e.g.: # SM="..." && $SM read state.md SM="python3 /scripts/session_manager.py --base-dir " $SM new "System description" ``` ### Session File I/O (CRITICAL — Do NOT use Write/Read tools for session files) Use `session_manager.py write` and `session_manager.py read` for ALL session file operations. These commands resolve absolute paths internally — you never need to construct file paths. ```bash # IMPORTANT: Redefine SM at the start of every Bash call (shell state doesn't persist). # WRITE a session file (content via heredoc): SM="python3 /scripts/session_manager.py --base-dir " && $SM write state.md <<'EOF' file content here EOF # READ a session file: SM="..." && $SM read state.md # GET absolute path (for tracker --file flag): SM="..." && $SM path hypotheses.json # TRACKER with session file: SM="..." && python3 /scripts/bayesian_tracker.py --file $($SM path hypotheses.json) add "Hypothesis" --prior 0.6 ``` **DO NOT use the Write/Read tools for session files.** Redefine SM in every Bash call — shell variables reset between calls. See `references/session-memory.md`. --- ## Protocol Inviolability (TIER ZERO — applies to the orchestrator itself) **The skill IS the 6-phase FSM.** Once a user invokes the skill, the orchestrator's authority is limited to: (a) running `$SM resume` as the FIRST tool call; (b) executing Intake & Reframe when no session exists; (c) presenting Tier Selection; (d) calling `$SM new ""` with the user's RE-shaped target (or a user-confirmed reframing); (e) dispatching per-phase agents and gating transitions via `$SM advance`; (f) honoring the Refusal Protocol when the user applies pressure to deviate. The orchestrator MAY NOT: 1. **Judge the protocol "overkill", "opaque", "too heavy", "mechanical", "inappropriate for the target", or otherwise editorialize about whether the FSM should run.** The protocol's appropriateness is decided by Tier Selection (RAPID for fast, COMPREHENSIVE for thorough), not by orchestrator initiative. If the work feels too small, recommend RAPID at tier selection — do NOT skip the FSM. 2. **Substitute alternative analysis methodologies** (ad-hoc `Task` / `Explore` / `general-purpose` agents, parallel grep tours, monolithic "deep audits", "inline ranked findings", or any non-protocol analysis pipeline) in place of dispatching per-phase agents through `$SM advance`. The legitimate fast-path is the RAPID tier; there is no "audit shortcut". 3. **Ask the user meta-questions about analysis depth or output format.** The tier IS the depth. `summary.md` (Phase 5 only) IS the output format. State blocks are the per-response surface. Questions like "how deep do you want this?" or "what output format?" duplicate Tier Selection and are forbidden. 4. **Skip `$SM resume` as the FIRST tool call.** Directory listings, file reads, web fetches, and agent dispatches are forbidden before `$SM resume`. 5. **Skip `$SM new` after intake passes and tier is selected.** Once the input is RE-shaped (or a reframing is confirmed) and tier is chosen, `$SM new ""` MUST be called before any phase work. 6. **Produce monolithic reports outside Phase 5.** No "inline findings", no "preliminary audit", no "synthesis from parallel agents". The session files ARE the analysis; `summary.md` is the only sanctioned monolithic surface, and it only exists at Phase 5. Violating any of (1)-(6) is **identical in effect** to the user-bypass vectors that the Refusal Protocol was built to refuse. The orchestrator must refuse its own initiative the same way it refuses user pressure: silently declining to act on the temptation, and returning to the FSM. **Signature-sentence callout (the diagnostic test):** if you (the orchestrator) find yourself constructing a sentence like *"rather than mechanically running the FSM, I'll do a real analysis"* or *"the protocol is overkill, let me dispatch parallel agents instead"*, **STOP** — the FSM IS the real analysis, and that sentence is the protocol-substitution signature. Run `$SM resume` and proceed. This rule is identity-level. It composes BEFORE Intake & Reframe (which composes BEFORE the Refusal Protocol). All three layers stay intact and are non-negotiable. --- ## Intake & Reframe (MANDATORY BEFORE `$SM new`) **The skill's identity is reverse engineering. Before any `$SM new` call, the agent MUST verify the user's request is shaped as a reverse-engineering task — an unknown system to be characterized, with a tractable RE deliverable. If not, the agent MUST propose 1-3 reframings and wait for explicit user confirmation before committing to `$SM new`. The skill does NOT silently switch to general planning, design, or advice.** This step composes BEFORE the Refusal Protocol below. Refusal is the last-resort surface used only when no reframing is accepted. ### Falsifiable frame pair Mirroring the `[H_S]` / `[H_S_prime]` standing pair used at Phase 0.7: - `[H_RE]` The input as given is well-shaped as a reverse-engineering target (unknown system + RE deliverable + observables to ground evidence). - `[H_RE_prime]` The input is shaped for a different task (design / advise / write / decide / opine) and needs reframing to be RE-tractable, or it is unreframable and routes to the Refusal Protocol. The system boundary is a hypothesis, not a premise (`scope-interrogation.md`). The same posture applies one level up: the RE-shape of the request is a hypothesis, not a premise. ### RE-shape checklist (all three required to skip reframing) 1. Is there an **unknown system** to be characterized (software, hardware, biological, organizational, behavioral)? 2. Is the deliverable in the canonical set: {**model**, **prediction / forecast**, **mechanism / causal explanation**, **boundary map / I-O characterization**, **hypothesis ranking under evidence**}? 3. Are there **observables** (data, logs, traces, behavior under stimulus) to ground evidence in? All three clearly YES → proceed with the user's framing as-is. Any NO or unclear → propose reframings. ### Canonical reframe menu (deliverable categories) | RE deliverable | Phase that produces it | Reframe pattern (one-line restatement) | |---|---|---| | **Model** of how X works (L2 functional / L3 structural) | Phase 0-3 | "build a model of X-like systems' behavior so design choices are grounded" | | **Prediction / forecast** with calibrated interval (L4 parametric) | Phase 3 forecast_modeler / Phase 5 conformal | "fit a forecasting model on Y's history and report a calibrated prediction interval" | | **Mechanism / causal explanation** (L3 structural) | Phase 2 ed-causal-analyst | "trace Z's causal graph from observations" | | **Boundary map / I-O characterization** (L1 behavioral) | Phase 1 ed-boundary-mapper | "characterize input/output channels and side effects" | | **Hypothesis ranking** under evidence | Phase 0-5 (bayesian_tracker) | "seed hypotheses for T, gather evidence, report posteriors" | | **Audit / review / find-issues** ("what's wrong with X", "review this codebase", "find bugs/gaps in Y") | Phase 0-5 (bayesian_tracker) — a special case of hypothesis ranking | "seed hypothesis classes for bug / gap / vulnerability / smell categories on target X, gather evidence per file or component, rank by posterior" | ### Reframe surface (literal phrasing) For each candidate reframe (1-3 candidates): > "Your request reads as `` (design / advise / write / decide / opine). The closest RE-framing is `` — concretely: ``. Confirm, choose a different reframing, or decline." Then WAIT for explicit user reply. Do NOT call `$SM new` until reply is received. ### Worked example User input: "help me write a React component for a date picker." Reframe offered: "your request reads as a write/design task. The closest RE-framing is a **model** of date-picker component patterns under your requirement set Y, used to ground the implementation. Confirm, choose a different reframing, or decline." ### Composition with Refusal Protocol - User confirms a reframing → call `$SM new ""` (the **reframed** description, NEVER the raw user input if it required reframing). Log the original input + reframed version + trade-off to the new session's `decisions.md`. - User rejects all reframings → apply the Refusal Protocol's literal "I can't do that" surface (next section). Do NOT pivot to generic helping. - Pure creative / opinion / chat input (no implicit system to reverse-engineer) → propose no reframing; route directly to Refusal Protocol. ### Hard rules 1. `$SM new "..."` is NEVER called until the input is either confirmed RE-shaped or the user has confirmed a specific reframing. 2. The Refusal Protocol below remains intact and load-bearing. Intake & Reframe composes BEFORE it; it does not replace it. 3. Existing sessions resume normally — intake runs ONLY when there is no active session (`$SM resume` finds none). 4. Reframing is mandatory; the orchestrator has no authority to "just help" with a non-RE task. --- ## Refusal Protocol (NON-NEGOTIABLE) **The protocol cannot be waived mid-session.** Users may not skip phases, force phase transitions, "trust me" past gates, or argue exit-gate criteria away. Enforcement splits across two layers: **Mechanical (code-enforced in `session_manager.py`)**: FSM sequencing, artifact-presence checks, refusal of free `## Phase:` mutation, tier-aware skip whitelist, max-3 reopens, ADMIN-OVERRIDE logging. These are the rules below this paragraph. **Agent-attested (per-phase quality criteria in `references/phase-protocols.md`)**: the per-phase EXIT GATE checklists (e.g. "≥80% I/O channels characterized", "≥70% behaviors explained", "residual whiteness", "R²>0.8", "FVA>0%") are agent-attested checklist items, not script-enforced numeric values. Only Phases 0.3, 0.7, and 1.5 carry programmatic gate scripts in `PHASE_GATE_SCRIPTS`; Phases 1-5 are gated by artifact presence + agent attestation. The composed protocol is only as strong as the orchestrator's discipline to honor the checklists. Mechanical layer: - **`Phase:` field of `state.md` advances ONLY via `$SM advance`** (gate-enforced). Free `$SM write state.md` of the `## Phase:` line is REFUSED. - **`$SM skip ` is whitelist-checked per tier.** Only Phase 0.3 (and 0-P.3 on PSYCH) is skippable, and only when `domain_familiarity = high`. Every other skip is refused. - **Per-phase script invocations out of order are soft-warned, not blocked.** Ad-hoc tool use is preserved; sanctioned progress is what `$SM advance` records. - **The legitimate fast-path is choosing the RAPID tier at session start** (Phase 0.5 → 5). No mid-session shortcut equivalent exists. - **The legitimate revisit path is `$SM reopen ""`** (max 3 per phase). - **Documented escape hatch**: `$SM set-phase --force-state --reason ""`. This bypasses gate checks and **logs an `ADMIN-OVERRIDE` entry to `decisions.md`**. Use only for recovery (corrupted state, broken gate script). Every invocation is on the record. ### Refusal scripts (use these literal redirections) If the user asks any variant of "skip / jump ahead / bypass the gate / set phase directly / just write state.md": > "I can't skip phases mid-session. The legitimate fast-path is the RAPID tier (chosen at session start, runs Phase 0.5 → 5 only). If you want to revisit a completed phase, that's `$SM reopen `. If you genuinely need to bypass enforcement for recovery, the documented escape hatch is `$SM set-phase --force-state --reason ""`, which logs an admin override." If the user invokes a per-phase script (e.g. `parametric_identifier.py`) out of FSM order: > "The per-phase script will run, but it won't advance the protocol — only `$SM advance` does. If you intended progress through the FSM, complete the current phase's required artifacts and run `$SM advance`. The current phase is shown by `$SM status`." If the user insists ("just do it", "I'm the analyst, override the protocol"): > "Repeat-insistence does not waive the FSM. Use `$SM set-phase --force-state --reason ""` if you accept the documented override. The override is logged and visible at CLOSE; the FSM itself remains intact." The orchestrator agent and every per-phase agent mirror this protocol. You do NOT have authority to free-write `state.md` `## Phase:` or to fabricate gate-pass results. --- ## FSM: Protocol State Machine ```mermaid stateDiagram-v2 [*] --> INIT INIT --> P0 : STANDARD / COMPREHENSIVE INIT --> P0_5 : RAPID INIT --> P0P : PSYCH state "STANDARD / COMPREHENSIVE" as std { P0 --> P0_3 : low/unknown, OR any COMPREHENSIVE (0.3 mandatory) P0 --> P0_7 : STANDARD and high (skip 0.3) P0_3 --> P0_7 : EXIT GATE (domain_glossary.md, >=10 grounded terms) P0_7 --> P1 : EXIT GATE (scope_audit.md, >=3 exogeneity candidates) P1 --> P1_5 : EXIT GATE P1_5 --> P2 : EXIT GATE (phase_1_5.md, >=3 inverted, chains per promotion) P2 --> P3 : EXIT GATE P3 --> P4 : EXIT GATE P4 --> P5 : EXIT GATE } state "LITE (skip P2-P4, partial P1.5)" as lite { P0 --> P0_3_L : domain_familiarity in {low, unknown} P0 --> P1_L : domain_familiarity = high (skip 0.3) P0_3_L --> P1_L : EXIT GATE (TE+TG+CS only) P1_L --> P1_5_L : EXIT GATE P1_5_L --> P5_L : EXIT GATE (SA+AA only) } state "RAPID" as rapid { P0_5 --> P5_R : EXIT GATE } state "PSYCH" as psych { P0P --> P0P_3 : domain_familiarity in {low, unknown} P0P --> P0P_7 : domain_familiarity = high (skip 0.3) P0P_3 --> P0P_7 : EXIT GATE (cultural-vocabulary glossary) P0P_7 --> P1P : EXIT GATE (scope_audit.md) P1P --> P1P_5 : EXIT GATE P1P_5 --> P2P : EXIT GATE (phase_1_5.md, behavioral_deviation category) P2P --> P3P : EXIT GATE P3P --> P4P : EXIT GATE P4P --> P5P : EXIT GATE } P5 --> CLOSE P5_L --> CLOSE P5_R --> CLOSE P5P --> CLOSE CLOSE --> [*] ``` **The session files ARE the analysis.** `summary.md` (Phase 5 only) summarizes prior work, not the work itself. ### Transition Rules **Phase transitions happen ONLY through `$SM advance`.** That command (a) reads the current Phase + Tier, (b) consults the canonical `PHASE_SEQUENCE` table in `session_manager.py`, (c) checks that the current phase's required artifacts exist under `phase_outputs/`, (d) runs the per-phase exit-gate script (where one exists), (e) atomically updates `## Phase:` and appends to transition history. If any check fails, `advance` exits 1 with a structured error and the Phase: field is NOT changed. **Free `$SM write state.md` for the `## Phase:` field is REFUSED** unless `--force-state` is passed (and that path logs an `ADMIN-OVERRIDE` entry — see Refusal Protocol). **Multi-pass**: `$SM reopen "reason"` reopens any completed phase (max 3 reopens). Archives output as `phase_N_passK.md`. Evidence carries forward — don't replay old updates. See `references/multi-pass-protocol.md`. **Whitelisted skips**: `$SM skip "reason"` accepts only Phase 0.3 (and 0-P.3 on PSYCH). Every other phase is refused — re-read the Refusal Protocol section above. **File Write Matrix + Gate Check Procedure**: per-phase R/W rules and the 7-step gate procedure live in `references/phase-protocols.md`. The orchestrator reads it directly when running the Gate Check Procedure (Step 1 = file-completeness check vs the File Write Matrix). Per-phase agents return findings; the orchestrator gates each transition via `$SM advance`. --- ## Tier Selection (REQUIRED FIRST STEP) | Tier | Trigger | Phases | Phase 0.3 | Phase 1.5 scope | |------|---------|--------|-----------|-----------------| | **RAPID** | Quick claim validation | 0.5→5 | SKIPPED | SKIPPED | | **LITE** | Known archetype, stable system | 0→[0.3]→1→1.5→5 | Conditional (TE+TG+CS only) | SA + AA only | | **STANDARD** | Unknown internals, single domain | 0→[0.3]→0.7→1→1.5→2→3→4→5 | Conditional (full 5 operators) | All five operators (TI, AA, SA, AR, IC) | | **COMPREHENSIVE** | Multi-domain, adversarial, critical | All + decomposition | Conditional (full 5 operators) | All five, multi-pass permitted | | **PSYCH** | Human behavior analysis | 0-P→[0-P.3]→0-P.7→1-P→1-P.5→2-P→3-P→4-P→5-P | Conditional (cultural-vocabulary scope) | All five with `behavioral_deviation` category | Default: RAPID first. If unsure: STANDARD. Escalate to COMPREHENSIVE if >15 components or adversarial. **Phase 0.3 trigger**: declare `domain_familiarity: high | medium | low | unknown` in `analysis_plan.md`. Phase 0.3 is mandatory for `low` and `unknown` (default if missing). For `high`, run `$SM skip 0.3 ""` to log the bypass. See `references/domain-orientation.md` for the self-assessment checklist. **Auto-Pilot questionnaire** (when user says "Help me start" or "Walk me through") lives in the orchestrator agent (`src/agents/ed-orchestrator.md` → Auto-Pilot Mode). Use it to map answers to a tier. **Reference**: `references/decision-trees.md` (tier escalation, stopping criteria) --- ## Evidence Rules (CRITICAL — Read Before First Hypothesis Update) These rules prevent systematic evidence calibration errors: 1. **MAX LR = 3.0** during Phase 0; **MAX LR = 5.0** during Phase 1. Phases 2+ may use up to LR=10 for direct experimental falsification. Any LR>5 requires justification logged in `decisions.md` (via `$SM write`). 2. **NO BATCH EVIDENCE**: Each distinct data point gets its own `bayesian_tracker.py update` call. Do NOT bundle "GDP + surplus + NPLs + tourism" into one LR=10 update. 3. **ADVERSARIAL HYPOTHESIS**: Maintain ≥1 hypothesis testing data reliability, institutional bias, or concealment. Non-negotiable. 4. **CONSENSUS ≠ STRONG EVIDENCE**: Forecaster/institutional consensus gets LR ≤ 2.5. Experts routinely miss turning points. 5. **DISCONFIRM BEFORE CONFIRM**: Before any hypothesis exceeds 0.80 posterior, you MUST have applied ≥1 disconfirming evidence to it. 6. **PRIOR DISCIPLINE**: For mutually exclusive hypotheses, priors MUST sum to 1.0 (±0.01). For non-exclusive hypotheses, document the overlap rationale in `decisions.md` (via `$SM write`). 7. **SCOPE HYPOTHESIS STANDING PAIR** (STANDARD/COMPREHENSIVE/PSYCH only): Phase 0 MUST seed two standing hypotheses alongside H1..HN, using canonical statement prefixes `[H_S]` ("drivers live within initial scope S") and `[H_S_prime]` ("material drivers exist outside S"). Both are tracked for the entire session. `[H_S_prime]` satisfies the ≥1 adversarial hypothesis requirement. At Phase 5, validation fails if `[H_S_prime]` posterior > 0.40 unless a scope-expansion multi-pass (trigger S1) has been completed. See `references/scope-interrogation.md`. 8. **LLM-PARAMETRIC CAPS** (Phase 0.3 Domain Orientation AND Phase 1.5 Abductive Expansion): Any candidate cause OR terminology entry produced from LLM parametric knowledge MUST carry `source='llm_parametric'` and is HARD-capped. **Phase 1.5 (causes)**: `prior ≤ 0.30` and `LR ≤ 2.0`; coverage-weighted promotion requires `coverage_score ≥ 0.30`. Enforced in `abductive_engine.py` (rejecting `add_candidate`, `chain_step`, and `promote` calls that violate them). **Phase 0.3 (terms / metrics / sources)**: term `confidence ≤ 0.60`; LLM-parametric metrics CANNOT be promoted; LLM-parametric canonical sources CANNOT be cited until verified via WebFetch HTTP 200 or analyst citation. Enforced in `domain_orienter.py` (rejecting `ground`, `candidates promote`, and `metrics render` / `glossary render` calls that violate them). Both sets of caps are in code, not just documentation. See `references/abductive-reasoning.md` and `references/domain-orientation.md`. ``` WRONG: bayesian_tracker.py update H1 "GDP growth + fiscal surplus + NPLs + tourism" --preset strong_confirm RIGHT: bayesian_tracker.py update H1 "EC projects 2.6% GDP growth 2026" --lr 2.0 bayesian_tracker.py update H1 "Government surplus 3% GDP" --lr 1.5 bayesian_tracker.py update H1 "NPL ratio 3.2%, below EU average" --lr 1.5 ``` **Reference**: `references/evidence-calibration.md` --- ## State Block Protocol (REQUIRED) **Every response during analysis MUST end with a State Block:** ``` [STATE: Phase X | Tier: Y | Active Hypotheses: N | Lead: HN (PP%) | Confidence: Low/Med/High] ``` Variants: ``` [STATE: Phase 0.5 | Tier: RAPID | Coherence: PASS | Red Flags: 2 | Verdict: SKEPTICAL] [STATE: Phase 2-P | Tier: PSYCH | Archetype: High-N/Low-A | Rapport: Med | Stress: Low] ``` The state block MUST match what is written in `state.md`. If they diverge, run `$SM write state.md` to update. **Every State Block is IMMEDIATELY PRECEDED by ONE plain-language status sentence** — a single plain-English line that says, in words a non-specialist understands, what phase we're in plus our current best guess and how sure we are (word **and** %). The `[STATE: ...]` block itself stays **verbatim** and machine-readable; the sentence is a separate additive line directly above it (see `references/plain-language-layer.md`). ```text In plain terms: we're analyzing what's causing the slowdown, and a caching delay is our leading explanation — fairly likely (78%), but not settled. [STATE: Phase 2 | Tier: STANDARD | Active Hypotheses: 4 | Lead: H2 (78%) | Confidence: Med] ``` --- ## Plain-Language Mandate (DEFAULT register — not a toggle) All user-facing output **leads with a plain-English "Bottom Line"** a curious non-specialist can understand — WITHOUT weakening rigor. The plain gloss sits ON TOP; the full technical artifact (numbers, tables, posteriors, verdict tokens) is **RETAINED VERBATIM directly beneath** (progressive disclosure). Every number is interpreted in words, and jargon is defined on first use. This is a **REGISTER on already-sanctioned surfaces ONLY** — the State Block, phase-handoff chat, the Phase-5 `summary.md`, the PSYCH profile, and the RAPID verdict. It does **NOT** license any new mid-session or monolithic report surface: rules (3) and (6) of Protocol Inviolability still hold (no format/depth question; no reports outside Phase 5). Canonical convention — jargon->plain table, confidence scale, Bottom-Line structure, worked examples — in **`references/plain-language-layer.md`**. --- ## Phase Summary Each row links to the procedural recipe in `references/phase-protocols.md` (Activities + EXIT GATE checklist) and the topic-depth reference. **Per-phase agents and the orchestrator's Gate Check Procedure read `phase-protocols.md` for the full detail.** | Phase | Conditional | Exit-gate headline | Procedural detail | Topic reference | |-------|-------------|--------------------|-------------------|-----------------| | **0 Setup & Frame** | All tiers except RAPID | `analysis_plan.md` complete; ≥3 hypotheses with ≥1 adversarial; `[H_S]` + `[H_S_prime]` seeded (STANDARD/COMPREHENSIVE/PSYCH) | `phase-protocols.md#phase-0` | `setup-techniques.md`, `modeling-epistemology.md` | | **0.3 Domain Orientation** | STANDARD/COMPREHENSIVE/PSYCH when `domain_familiarity ∈ {low, unknown}`; MANDATORY in COMPREHENSIVE; LITE = TE+TG+CS only | `domain_orienter.py gate` PASS; ≥10 grounded terms (LITE: ≥5); ≥2 verified sources; LLM-parametric capped at confidence 0.60 | `phase-protocols.md#phase-0-3` | `domain-orientation.md` | | **0.5 Coherence Screening** | RAPID entry only | Verdict ∈ {CREDIBLE, SKEPTICAL, DOUBTFUL, REJECT} written to `phase_outputs/phase_0_5.md` | `phase-protocols.md#phase-0-5` | `rapid-assessment.md`, `coherence-checks.md`, `red-flags.md`, `domain-calibration.md` | | **0.7 Scope Interrogation** | STANDARD/COMPREHENSIVE/PSYCH only | `scope_auditor.py gate` PASS; ≥3 exogeneity candidates from M1-M4; `scope_audit.md` written | `phase-protocols.md#phase-0-7` | `scope-interrogation.md`, `archetype-accomplices.md`, `warning-reception.md` | | **1 Boundary Mapping** | All except RAPID | ≥3 observation files (LITE: ≥1); `observations.md` index updated; ≥80% I/O channels characterized; stimulus-response db ≥20 (LITE: ≥5) | `phase-protocols.md#phase-1` | `boundary-probing.md`, `spectral-analysis.md` | | **1.5 Abductive Expansion** | All except RAPID; LITE runs SA+AA only | ≥3 observations inverted (LITE may skip); surplus audit run; coverage-gated promotion (`coverage_score ≥ 0.30`); ≥1 closed inference chain per promoted candidate | `phase-protocols.md#phase-1-5` | `abductive-reasoning.md` | | **2 Causal Analysis** | STANDARD/COMPREHENSIVE/PSYCH | ≥70% behaviors explained; ≥1 hypothesis refuted or significantly weakened | `phase-protocols.md#phase-2` | `causal-techniques.md`, `tools-sensitivity.md` | | **3 Parametric Identification** | STANDARD/COMPREHENSIVE | Model selected by IC; residual whiteness; cross-val R² > 0.8; FVA > 0% for time-series | `phase-protocols.md#phase-3` | `system-identification.md`, `forecasting-science.md`, `forecasting-tools.md` | | **4 Model Synthesis** | STANDARD/COMPREHENSIVE | Sub-models composed; uncertainty propagated; emergence tested; archetype identified | `phase-protocols.md#phase-4` | `compositional-synthesis.md`, `simulation-guide.md`, `distributions-guide.md` | | **5 Validation & Report** | All tiers | `validation.md` populated (hierarchy + verdict); `summary.md` written; scope completeness check passes (STANDARD/COMPREHENSIVE/PSYCH) | `phase-protocols.md#phase-5` | `validation-checklist.md`, `adversarial-heuristics.md`, `timeseries-review.md` | | **0-P through 5-P (PSYCH)** | PSYCH tier | Same FSM rules; `beliefs.json` replaces `hypotheses.json`; same per-phase gates with cultural/behavioral framing | `phase-protocols.md#psych-tier-psychological-profiling` | `psych-tier-protocol.md`, `archetype-mapping.md`, `motive-analysis.md` | --- ## Bayesian Tracking **Tools**: `scripts/bayesian_tracker.py` (system analysis) | `scripts/belief_tracker.py` (PSYCH tier) | `scripts/rapid_checker.py` (RAPID screening). Update rule: `P(H|E) = LR · P(H) / [LR · P(H) + (1 - P(H))]`. Bayes Factor (model comparison): K = P(D|M₁)/P(D|M₂) — log₁₀(K) > 2 decisive, > 1 strong. Full preset tables (`strong_confirm` / `moderate_confirm` / ... / `falsify` for the system tracker; `smoking_gun` / `strong_indicator` / ... / `falsify` for PSYCH), threshold bands (CONFIRMED ≥ 0.90; REFUTED ≤ 0.05 system / ≤ 0.10 PSYCH; WEAKENED ≤ 0.20 / ≤ 0.30; ACTIVE otherwise), and full LR mechanics in **`references/evidence-calibration.md`**. --- ## Decision Trees Quick decision trees for "Which Model Structure?", "When to Stop?", "RAPID → Next Tier?", and the recursive-decomposition pattern in **`references/decision-trees.md`**. --- ## Critical Reminders - **Falsify, don't confirm.** Design tests to break hypotheses. Quantify uncertainty. Never report point estimates alone. - **Emergence is real.** Component models ≠ system model. Your model is wrong — document HOW it's wrong. - **Files are truth.** Unwritten = didn't happen. Use `$SM write`/`$SM read` only. No reports before Phase 5; build evidence phase by phase. Gate checks are non-negotiable. - **Know your traps.** `references/cognitive-traps.md`. Web fallback: WebFetch → WebSearch with `site:domain query`. Tool selection: `references/tool-catalog.md`. - **Numbers, not opinions.** Every observation includes a measurement. Design for partial failure — document WHERE the model degrades and WHEN it breaks. See `references/engineering-laws.md`. - **Don't over-model.** If L2 fidelity meets the goal, stop. Pursuing L5 when L3 suffices is scope creep, not rigor. - **Plain Bottom Line, full rigor beneath.** Lead every user-facing surface with a one-line plain-English Bottom Line (interpret the numbers, define the jargon); keep the technical artifact verbatim below. A register, not a new report. See `references/plain-language-layer.md`.