Reverse-Engineering Texts
Goal
Turn a finished text into a TeardownBlueprint (a “drawing”) that is reusable: structure, argument moves, and rhetorical patterning.
Core disciplines (FPF-aligned)
- Strict distinction: TextArtifact (the text) ≠ Blueprint (your description) ≠ Output (new draft/prompt).
- Evidence first: Every non-trivial claim in the blueprint must include a short quote from the text (an “evidence anchor”).
- Parsimony: Prefer the simplest structure/framework that explains the whole text.
- Uncertainty: Mark low-confidence inferences explicitly.
What “SOTA” means here
This skill is not just “label AIDA and call it done”. State-of-the-art reverse-engineering requires:
- Paradigm transparency: explicitly declare the interpretive lens used (and what would count as an “error” vs a paradigm clash).
- Meaning-in-interaction: meaning is extracted in a dynamic local context, not “derived from rules given from above”.
- Ambiguity handling: do not force-collapse; maintain multiple plausible interpretations when needed.
- Order effects awareness: sometimes A→B ≠ B→A; record when the analysis is non-commutative.
Method layering
- Core (default): fast, evidence-anchored teardown usable for most texts.
- Advanced (SOTA extensions): modes, context-first grounding, ambiguity protocol, validation, non-commutativity, conflict taxonomy.
Quick workflow (text → blueprint)
0) Context-first (always)
- ContextCapture: Record what you know (or must assume):
audience, intent, setting, speaker_role, genre, stakes.
- TermGrounding: Pick 5–10 key terms/entities in the text and define their meaning-in-context with quotes.
- ParadigmDeclaration: Declare the lens you will use (at minimum:
descriptive_structural; optionally: pragmatic, hermeneutic, classical_epistemology, etc.). Also declare what counts as:
- intra-paradigm error (a contradiction/failure inside the chosen lens)
- inter-paradigm conflict (a clash between lenses; not automatically an “error”)
1) Core teardown (default)
- Ingest: Copy the raw text verbatim as
TextArtifact.
- Segment: Split into semantic blocks; name each block with a one-line intent.
- Spine: Infer the thesis and macro-structure (framework hypothesis).
- Also mark
descriptive_vs_normative: is the thesis describing reality, prescribing norms, or mixed?
- Hook: Classify the hook type + target emotion.
- Argument map: For each block, extract Claim + Support/Evidence type + relation to previous block.
- Also mark
descriptive_vs_normative per segment when relevant.
- Rhetoric: Map Ethos/Pathos/Logos and where each is used.
- Pattern extraction: Capture reusable micro-patterns (openings, transitions, proof moves).
- Reconstruct forward outline: Produce a forward scaffold (thesis → hook → outline → arguments).
- Audit: Ensure coverage + evidence anchors + note alternatives when ambiguous.
2) Advanced (SOTA extensions)
Use these when the situation calls for it. “Optional” here does NOT mean “skip”: each has triggers.
Modes (pick one; record in output)
- ModeA_Immanent: analyze internal logic/structure only (no outside sources).
- ModeB_Transcendent: validate/criticize using external sources (when available).
- ModeC_Hybrid: run A then B (or B then A) and integrate.
Ambiguity protocol (conditional-mandatory)
- AmbiguityCheck (always): is there >=2 plausible interpretations of key elements (thesis/intent/referents/causality/value-laden terms)?
- If yes → ModeD_AmbiguityModel (mandatory):
- produce an
interpretation_set (>=2 interpretations)
- each interpretation must have evidence anchors (quotes)
- provide “collapse conditions”: which context/goal/paradigm would prefer which interpretation
- if you choose a single “best” interpretation, record why and what you lose
External validation (ModeB/ModeC)
- Use >=3 independent sources when feasible; if not feasible, state constraints explicitly.
- Output: agreements, disagreements, and how they affect the blueprint confidence.
Non-commutativity (when order might matter)
- Run a lightweight A→B and B→A comparison on 1–2 key segments.
- If results differ, record
non_commutativity.detected: true and summarize the divergence (contextual priming / lens effects).
Conflict taxonomy (always when conflicts appear)
- intra_paradigm: critical | significant | minor
- inter_paradigm: paradigm conflict (not an error; requires boundary clarification)
Output contract
You MUST produce outputs in two phases:
Mandatory execution order (hard requirement)
- Read
references/index.md (agent entrypoint)
- Select mode →
references/mode-selection.md
- Read the matching template file (choose exactly one):
references/teardownblueprint-v2-modeA-immanent.md
references/teardownblueprint-v2-modeB-transcendent.md
references/teardownblueprint-v2-modeC-hybrid.md
- Fill the template completely (do not invent new fields; keep schema)
- Check gates →
references/quality-gates.md
- Only then (optionally) label frameworks →
references/framework-markers.md
- Only if you need a pattern, read one concrete example file:
references/modeA-mini.md
references/modeA-scientific-mini.md
references/modeC-philosophical-ambiguity.md
Template availability check (hard requirement)
Do NOT claim “templates are unavailable” unless you attempted to locate and read:
references/index.md
- at least one concrete template file (the mode-matching one if possible):
references/teardownblueprint-v2-modeA-immanent.md
references/teardownblueprint-v2-modeB-transcendent.md
references/teardownblueprint-v2-modeC-hybrid.md
Deliverables
Deliverable A (mandatory, always): TeardownBlueprint
Produce a TeardownBlueprint in the exact YAML shape of the matching template in references/ (one of the teardownblueprint-v2-*.md files).
Deliverable B (mandatory when user asks for a human-readable report/summary): HumanReadableReport
If the user asks for a “human-readable report/summary”, you MUST still output Deliverable A first,
then derive Deliverable B strictly from the completed blueprint.
HumanReadableReport rules:
- It is a reformulation of the blueprint, not a replacement for it.
- Every major claim must be traceable to either:
- a quote inside
TeardownBlueprint (thesis.evidence, segments[*].evidence, rhetoric_summary.*, etc.), OR
- an explicit “new inference” line marked
confidence: low (and you must explain what is missing).
- Do not add new requirements/claims that are absent from the blueprint unless explicitly marked as above.
Minimum QA checklist
SOTA QA checklist (recommended)
Acceptance criteria (definition of done)
Core acceptance (must pass)
- Coverage: every semantic block in the text has a corresponding
segments[*] entry.
- Traceability: thesis/framework/each segment claim has >=1 quote.
- Parsimony: framework label is the simplest that fits; otherwise
other.
- Uncertainty hygiene: any inferred-but-not-anchored statement is marked
confidence: low and paired with an alternative hypothesis.
Dual-output compliance (must pass when user asks for report/summary)
- Two-phase output: Deliverable A (TeardownBlueprint) is present and completed, and Deliverable B is derived from it.
- Report mapping: each major section of the HumanReadableReport maps to one or more
segments[*].id (explicitly or implicitly),
and no segment-level claim appears in the report without a corresponding segments[*] entry.
- No-new-claims: the report introduces no new claims beyond the blueprint unless marked as
confidence: low + missing evidence explained.
Advanced acceptance (when the feature is triggered/used)
- Context-first:
context is explicit; if not provided, assumptions are explicit and confidence is lowered.
- Meaning grounding:
term_grounding exists for key/value terms; no “dictionary-from-above” substitutions without quotes.
- Ambiguity:
ambiguity.check.detected=false OR
ambiguity.check.detected=true AND ambiguity.interpretation_set has >=2 interpretations, each quote-backed, each with applies_when.
- Validation (ModeB/ModeC): include sources, and record how disagreements change confidence.
- Non-commutativity (if tested): record both orders and a concrete delta summary.
- Conflicts: classify as intra vs inter paradigm; do not “resolve” an inter-paradigm conflict as if it were an error.
Next actions (optional)
- Generate a new draft from the blueprint (structure-first).
- Build a personal
PatternLibrary (swipe/teardown file) from repeated blueprints.
Additional resources
- Agent entrypoint: references/index.md
- Mode selection: references/mode-selection.md
- Quality gates: references/quality-gates.md
- Templates:
references/teardownblueprint-v2-modeA-immanent.md
references/teardownblueprint-v2-modeB-transcendent.md
references/teardownblueprint-v2-modeC-hybrid.md
- Examples:
references/modeA-mini.md
references/modeA-scientific-mini.md
references/modeC-philosophical-ambiguity.md
- Framework markers: references/framework-markers.md
1---2name: reverse-engineering-texts3description: Reverse-engineer texts into a reusable structural blueprint (reverse outlining, argument mining, copy teardown). Use when the user asks to analyze a text’s thesis, hook, framework (AIDA/PAS/PASTOR/BAB), argument map, rhetoric (Ethos/Pathos/Logos), or when they want to convert “text → structure/blueprint” to reuse patterns in writing, specs, prompts, or marketing.4---5
6# Reverse-Engineering Texts
7
8## Goal
9Turn a finished text into a **TeardownBlueprint** (a “drawing”) that is reusable: structure, argument moves, and rhetorical patterning.
10
11## Core disciplines (FPF-aligned)
12- **Strict distinction**: TextArtifact (the text) ≠ Blueprint (your description) ≠ Output (new draft/prompt).
13- **Evidence first**: Every non-trivial claim in the blueprint must include a short **quote** from the text (an “evidence anchor”).
14- **Parsimony**: Prefer the simplest structure/framework that explains the whole text.
15- **Uncertainty**: Mark low-confidence inferences explicitly.
16
17## What “SOTA” means here
18This skill is not just “label AIDA and call it done”. State-of-the-art reverse-engineering requires:
19- **Paradigm transparency**: explicitly declare the interpretive lens used (and what would count as an “error” vs a paradigm clash).
20- **Meaning-in-interaction**: meaning is extracted in a dynamic local context, not “derived from rules given from above”.
21- **Ambiguity handling**: do not force-collapse; maintain multiple plausible interpretations when needed.
22- **Order effects awareness**: sometimes A→B ≠ B→A; record when the analysis is non-commutative.
23
24## Method layering
25- **Core (default)**: fast, evidence-anchored teardown usable for most texts.
26- **Advanced (SOTA extensions)**: modes, context-first grounding, ambiguity protocol, validation, non-commutativity, conflict taxonomy.
27
28## Quick workflow (text → blueprint)
29
30### 0) Context-first (always)
311. **ContextCapture**: Record what you know (or must assume): `audience`, `intent`, `setting`, `speaker_role`, `genre`, `stakes`.
322. **TermGrounding**: Pick 5–10 key terms/entities in the text and define their **meaning-in-context** with quotes.
333. **ParadigmDeclaration**: Declare the lens you will use (at minimum: `descriptive_structural`; optionally: `pragmatic`, `hermeneutic`, `classical_epistemology`, etc.). Also declare what counts as:
34 - **intra-paradigm error** (a contradiction/failure inside the chosen lens)
35 - **inter-paradigm conflict** (a clash between lenses; not automatically an “error”)
36
37### 1) Core teardown (default)
384. **Ingest**: Copy the raw text verbatim as `TextArtifact`.
395. **Segment**: Split into semantic blocks; name each block with a one-line intent.
406. **Spine**: Infer the thesis and macro-structure (framework hypothesis).
41 - Also mark `descriptive_vs_normative`: is the thesis describing reality, prescribing norms, or mixed?
427. **Hook**: Classify the hook type + target emotion.
438. **Argument map**: For each block, extract Claim + Support/Evidence type + relation to previous block.
44 - Also mark `descriptive_vs_normative` per segment when relevant.
459. **Rhetoric**: Map Ethos/Pathos/Logos and where each is used.
4610. **Pattern extraction**: Capture reusable micro-patterns (openings, transitions, proof moves).
4711. **Reconstruct forward outline**: Produce a forward scaffold (thesis → hook → outline → arguments).
4812. **Audit**: Ensure coverage + evidence anchors + note alternatives when ambiguous.
49
50### 2) Advanced (SOTA extensions)
51Use these when the situation calls for it. “Optional” here does NOT mean “skip”: each has triggers.
52
53#### Modes (pick one; record in output)
54- **ModeA_Immanent**: analyze internal logic/structure only (no outside sources).
55- **ModeB_Transcendent**: validate/criticize using external sources (when available).
56- **ModeC_Hybrid**: run A then B (or B then A) and integrate.
57
58#### Ambiguity protocol (conditional-mandatory)
591. **AmbiguityCheck (always)**: is there >=2 plausible interpretations of key elements (thesis/intent/referents/causality/value-laden terms)?
602. If yes → **ModeD_AmbiguityModel (mandatory)**:
61 - produce an `interpretation_set` (>=2 interpretations)
62 - each interpretation must have evidence anchors (quotes)
63 - provide “collapse conditions”: which context/goal/paradigm would prefer which interpretation
64 - if you choose a single “best” interpretation, record why and what you lose
65
66#### External validation (ModeB/ModeC)
67- Use >=3 independent sources when feasible; if not feasible, state constraints explicitly.
68- Output: agreements, disagreements, and how they affect the blueprint confidence.
69
70#### Non-commutativity (when order might matter)
71- Run a lightweight A→B and B→A comparison on 1–2 key segments.
72- If results differ, record `non_commutativity.detected: true` and summarize the divergence (contextual priming / lens effects).
73
74#### Conflict taxonomy (always when conflicts appear)
75- **intra_paradigm**: critical | significant | minor
76- **inter_paradigm**: paradigm conflict (not an error; requires boundary clarification)
77
78## Output contract
79You MUST produce outputs in **two phases**:
80
81### Mandatory execution order (hard requirement)
821. Read `references/index.md` (agent entrypoint)
832. Select mode → `references/mode-selection.md`
843. Read the matching template file (choose exactly one):
85 - `references/teardownblueprint-v2-modeA-immanent.md`
86 - `references/teardownblueprint-v2-modeB-transcendent.md`
87 - `references/teardownblueprint-v2-modeC-hybrid.md`
884. Fill the template completely (do not invent new fields; keep schema)
895. Check gates → `references/quality-gates.md`
906. Only then (optionally) label frameworks → `references/framework-markers.md`
917. Only if you need a pattern, read one concrete example file:
92 - `references/modeA-mini.md`
93 - `references/modeA-scientific-mini.md`
94 - `references/modeC-philosophical-ambiguity.md`
95
96### Template availability check (hard requirement)
97Do NOT claim “templates are unavailable” unless you attempted to locate and read:
98- `references/index.md`
99- at least one concrete template file (the mode-matching one if possible):
100 - `references/teardownblueprint-v2-modeA-immanent.md`
101 - `references/teardownblueprint-v2-modeB-transcendent.md`
102 - `references/teardownblueprint-v2-modeC-hybrid.md`
103
104### Deliverables
105#### Deliverable A (mandatory, always): TeardownBlueprint
106Produce a `TeardownBlueprint` **in the exact YAML shape** of the matching template in `references/` (one of the `teardownblueprint-v2-*.md` files).
107
108#### Deliverable B (mandatory when user asks for a human-readable report/summary): HumanReadableReport
109If the user asks for a “human-readable report/summary”, you MUST still output Deliverable A first,
110then derive Deliverable B strictly from the completed blueprint.
111
112**HumanReadableReport rules:**
113- It is a reformulation of the blueprint, not a replacement for it.
114- Every major claim must be traceable to either:
115 - a quote inside `TeardownBlueprint` (`thesis.evidence`, `segments[*].evidence`, `rhetoric_summary.*`, etc.), OR
116 - an explicit “new inference” line marked `confidence: low` (and you must explain what is missing).
117- Do not add new requirements/claims that are absent from the blueprint unless explicitly marked as above.
118
119### Minimum QA checklist
120- [ ] Every major block is represented in `segments`.
121- [ ] Thesis and framework claims include quotes.
122- [ ] Each argument block has (claim, evidence_type, relation) + quote(s).
123- [ ] At least one reusable pattern is extracted.
124- [ ] Any guesswork is labeled with `confidence: low` and an alternative hypothesis is listed.
125
126### SOTA QA checklist (recommended)
127- [ ] `context` is captured (or assumptions are explicit).
128- [ ] `term_grounding` exists for key terms and is quote-backed.
129- [ ] `paradigm` and `mode` are explicit.
130- [ ] `descriptive_vs_normative` is labeled for thesis (and segments when relevant).
131- [ ] `AmbiguityCheck` is present; if triggered, `interpretation_set` is present and quote-backed.
132- [ ] If external validation is claimed (ModeB/ModeC), sources and disagreement handling are documented.
133- [ ] If non-commutativity is claimed, the A→B vs B→A delta is recorded.
134
135## Acceptance criteria (definition of done)
136
137### Core acceptance (must pass)
138- **Coverage**: every semantic block in the text has a corresponding `segments[*]` entry.
139- **Traceability**: thesis/framework/each segment claim has >=1 quote.
140- **Parsimony**: framework label is the simplest that fits; otherwise `other`.
141- **Uncertainty hygiene**: any inferred-but-not-anchored statement is marked `confidence: low` and paired with an alternative hypothesis.
142
143### Dual-output compliance (must pass when user asks for report/summary)
144- **Two-phase output**: Deliverable A (TeardownBlueprint) is present and completed, and Deliverable B is derived from it.
145- **Report mapping**: each major section of the HumanReadableReport maps to one or more `segments[*].id` (explicitly or implicitly),
146 and no segment-level claim appears in the report without a corresponding `segments[*]` entry.
147- **No-new-claims**: the report introduces no new claims beyond the blueprint unless marked as `confidence: low` + missing evidence explained.
148
149### Advanced acceptance (when the feature is triggered/used)
150- **Context-first**: `context` is explicit; if not provided, assumptions are explicit and confidence is lowered.
151- **Meaning grounding**: `term_grounding` exists for key/value terms; no “dictionary-from-above” substitutions without quotes.
152- **Ambiguity**:
153 - `ambiguity.check.detected=false` OR
154 - `ambiguity.check.detected=true` AND `ambiguity.interpretation_set` has >=2 interpretations, each quote-backed, each with `applies_when`.
155- **Validation** (ModeB/ModeC): include sources, and record how disagreements change confidence.
156- **Non-commutativity** (if tested): record both orders and a concrete delta summary.
157- **Conflicts**: classify as intra vs inter paradigm; do not “resolve” an inter-paradigm conflict as if it were an error.
158
159## Next actions (optional)
160- Generate a new draft *from the blueprint* (structure-first).
161- Build a personal `PatternLibrary` (swipe/teardown file) from repeated blueprints.
162
163## Additional resources
164- Agent entrypoint: [references/index.md](references/index.md)
165- Mode selection: [references/mode-selection.md](references/mode-selection.md)
166- Quality gates: [references/quality-gates.md](references/quality-gates.md)
167- Templates:
168 - `references/teardownblueprint-v2-modeA-immanent.md`
169 - `references/teardownblueprint-v2-modeB-transcendent.md`
170 - `references/teardownblueprint-v2-modeC-hybrid.md`
171- Examples:
172 - `references/modeA-mini.md`
173 - `references/modeA-scientific-mini.md`
174 - `references/modeC-philosophical-ambiguity.md`
175- Framework markers: [references/framework-markers.md](references/framework-markers.md)