Skip to content

Introduce Skeleton-of-Thought (SoT) doctrine across all codices - #6

Merged
recursive-ai-dev merged 1 commit into
mainfrom
claude/implement-skeleton-of-thought-8fTt9
Apr 5, 2026
Merged

Introduce Skeleton-of-Thought (SoT) doctrine across all codices#6
recursive-ai-dev merged 1 commit into
mainfrom
claude/implement-skeleton-of-thought-8fTt9

Conversation

@recursive-ai-dev

Copy link
Copy Markdown
Owner

Summary

This PR introduces the Skeleton-of-Thought (SoT) methodology as a primary doctrine across all Undead Legion codices. SoT is a two-stage synthesis protocol that separates structure discovery from detail expansion, enabling parallel execution of independent tasks and reducing time-to-first-deliverable on complex, multi-component work.

Key Changes

New Documentation

  • bard/workflow-skeleton-of-thought-chronicle.txt (added): Complete workflow guide for applying SoT to documentation generation, including two-stage parallel expansion for independent documentation units and release notes generation.

Codex Updates

Architect Codex (architect/ARCHITECT_CODEX.md)

  • Added SoT Engine to skill tree as primary doctrine
  • Enhanced Phase II (Skeleton Generation) with explicit two-stage protocol: Stage 1 produces 5 nexus points (structure only), Stage 2 expands in parallel
  • Added SoT Task Classification Gate to identify when SoT is optimal (cross-domain informative synthesis) vs. suboptimal (sequential-dependent math/code)
  • Added comprehensive "Skeleton-of-Thought Engine" architectural specification section
  • Added Chain IV: Skeleton-of-Thought Rapid Synthesis prompt template

Dragon Codex (dragon/DRAGON_CODEX.md)

  • Added SoT Orchestration to skill tree as primary doctrine
  • Added "SoT Orchestration Doctrine" section explaining two-stage Legion deployment
  • Added persona task independence classification framework
  • Added SoT Mission Skeleton template
  • Added Chain IV: SoT Rapid Dispatch Protocol for parallel persona task execution

Archivist Codex (archivist/undead-archivist.md)

  • Added Chain IV: The Skeleton Inquest — rapid structural mapping before deep investigation
  • Integrated SoT with existing Chain I (Broken Kingdom Dossier)
  • Documented when SoT applies (multiple independent failure categories) vs. when it doesn't (cascading single-root failures)

Berserker Codex (berserker/Berserker_BERSERKER_CODEX.md)

  • Added SoT Survey to skill tree
  • Added "Skeleton-of-Thought Survey — Battlefield Specification" section
  • Added Chain IV: Battlefield Survey (SoT Protocol) for parallel multi-shard debugging
  • Documented failure modes where SoT doesn't apply (inter-dependent shards)
  • Updated version to 1.1.0

Hexweaver Codex (hexweaver/roles-hexweaver.md)

  • Added Chain IV: The First Scrying Skeleton (SoT Protocol)
  • Documented two-stage corruption investigation with parallel scrying of independent fronts
  • Added guidance on when SoT applies vs. sequential scrying

Hound Codex (hound/HOUND_CODEX.md)

  • Added SoT Scan to skill tree
  • Added "Claim Cartography Engine — SoT Specification" section
  • Added claim independence classification framework
  • Added Chain IV: SoT Rapid Verification Scan for parallel CoVe execution
  • Updated version to 1.3.0

Warlock Codex (warlock/WARLOCK_CODEX.md)

  • Added SoT Conjuration to skill tree
  • Enhanced Branch Generation Protocol with explicit two-stage approach: Stage 1 skeleton (names only), Stage 2 parallel expansion
  • Added assumption-chaining classification for design branches
  • Added Chain IV: The Skeleton Séance (SoT Rapid Design Survey)

Bard Codex (bard/BARD_CODEX.md)

  • Added SoT Chronicle to skill tree (partial diff shown)

Implementation Details

Core SoT Pattern

All implementations follow the same two-stage structure:

  1. Stage 1 (Skeleton): Rapid identification of all work units (nexus points, claims, branches, shards, etc.) in minimal form — typically one line per unit, no expansion
  2. Stage 2 (Parallel Expansion): Independent units expand simultaneously; dependent units

https://claude.ai/code/session_01AL3cSuSU4GMhhkVDR5Di52

Applies the two-stage SoT doctrine to every character in the Undead Legion
and supporting packages. Each upgrade follows the same pattern:
- Stage 1: produce a concise skeleton (3-10 points) immediately
- Stage 2: expand each independent point in parallel; sequence only dependents

Changes by package:

BERSERKER (v1.0.0 → v1.1.0)
- New SoT skill branch: Battlefield Sketch, Parallel Shard Prep, Time-to-First-Shard
- New CHAIN IV: THE BATTLEFIELD SURVEY — SoT pre-investigation before any shard sequence
- Documents when SoT applies (independent symptoms) vs. when to stay sequential (state-dependent shards)

ARCHITECT (v1.1.0 → v1.2.0)
- New SoT Engine skill branch replacing standalone Skeleton-of-Thoughts entry
- Phase II (Skeleton Generation) upgraded to full SoT two-stage protocol with dependency map
- SoT Task Classification Gate — identifies optimal vs. suboptimal SoT tasks
- New THE SKELETON-OF-THOUGHT ENGINE section with parallelization protocol
- New CHAIN IV: SKELETON-OF-THOUGHT RAPID SYNTHESIS prompt template

HOUND (v1.2.0 → v1.3.0)
- New SoT skill branch: Claim Cartography, Parallel Verification, Time-to-First-Label
- New THE CLAIM CARTOGRAPHY ENGINE section with two-stage hunt specification
- New CHAIN IV: THE SoT RAPID VERIFICATION SCAN — skeleton all claims, verify in parallel

WARLOCK (v1.3.0 → v1.4.0)
- New SoT skill branch: Branch Skeleton, Parallel Branch Weave, Design-Space Classifier
- Branch Generation Protocol upgraded to SoT two-stage with branch skeleton first
- New CHAIN IV: THE SKELETON SÉANCE — rapid design space survey before full exploration

DRAGON (v1.4.0 → v1.5.0)
- New SoT Orchestration skill branch: Mission Skeleton, Parallel Persona Dispatch, Dependency Graph
- New THE SoT ORCHESTRATION DOCTRINE section — two-stage Legion deployment spec
- Persona task independence classification framework
- SoT Mission Skeleton template with speedup estimation
- New CHAIN IV: THE SoT RAPID DISPATCH PROTOCOL

BARD
- New SoT skill branch: Documentation Skeleton, Parallel Chronicle Weave, SoT Release Notes
- New workflow: workflow-skeleton-of-thought-chronicle.txt — 5-verse workflow for parallel documentation generation using SoT

HEXWEAVER (v1.0.0 → v1.1.0)
- New CHAIN IV: THE FIRST SCRYING SKELETON — SoT pre-scrying phase before the Ritual of Resurrection
- Two-stage doctrine: corruption skeleton from symptoms → parallel scrying of independent fronts

ARCHIVIST (v1.0.0 → v1.1.0)
- New Chain IV: THE SKELETON INQUEST — SoT mapping of investigation fronts before any artifact is opened
- Integration guide: how Chain IV replaces/enhances Chain I (The Broken Kingdom Dossier)

https://claude.ai/code/session_01AL3cSuSU4GMhhkVDR5Di52
@recursive-ai-dev
recursive-ai-dev merged commit 884839d into main Apr 5, 2026
2 of 3 checks passed
@coderabbitai

coderabbitai Bot commented Apr 5, 2026

Copy link
Copy Markdown
Contributor
📝 Walkthrough

Release Notes

  • Skeleton-of-Thought (SoT) doctrine implemented across all codices: Introduced a formal two-stage methodology separating Stage 1 skeleton discovery (rapid identification of independent work units) from Stage 2 parallel expansion, applied consistently across Architect, Dragon, Archivist, Berserker, Hexweaver, Hound, and Warlock codices.

  • Chain IV prompt templates added: Each codex now includes a new Chain IV prompt implementing the SoT two-stage protocol with concrete output formats, independence classification rules, and parallelization constraints.

  • Task independence classification frameworks: All codices define explicit rules for determining whether tasks/units are independent or dependent, enabling parallel execution optimization.

  • Bard workflow documentation: New dedicated workflow file (bard/workflow-skeleton-of-thought-chronicle.txt) specifies SoT methodology for technical documentation generation and release changelog creation with parallel execution patterns.

  • Skill tree updates: SoT entries added to skill trees across all codices with active/passive capabilities reflecting the two-stage methodology.

  • Version increments: Berserker (→v1.1.0), Architect (→v1.2.0), Hound (→v1.3.0), Warlock (→v1.4.0), Dragon (→v1.5.0), Hexweaver (→v1.1.0), Archivist (→v1.1.0).

  • Failure mode documentation: SoT specifications include conditions defining when the methodology doesn't apply and fallback sequential execution should be used instead.

Changes by File

File Added Removed
architect/ARCHITECT_CODEX.md 156 10
archivist/undead-archivist.md 125 2
bard/BARD_CODEX.md 6 0
bard/workflow-skeleton-of-thought-chronicle.txt 235 0
berserker/Berserker_BERSERKER_CODEX.md 111 2
dragon/DRAGON_CODEX.md 132 2
hexweaver/roles-hexweaver.md 110 1
hound/HOUND_CODEX.md 109 2
warlock/WARLOCK_CODEX.md 94 11
Total 1,078 30

Walkthrough

This pull request introduces a unified Skeleton-of-Thought (SoT) two-stage protocol across nine architectural documentation files spanning multiple persona codices. Stage 1 generates structural skeletons; Stage 2 executes parallel or sequential expansions based on task dependencies. Version increments and methodology updates accompany each integration.

Changes

Cohort / File(s) Summary
Core Architecture Specifications
architect/ARCHITECT_CODEX.md, dragon/DRAGON_CODEX.md, warlock/WARLOCK_CODEX.md
Added comprehensive SoT Engine sections with formal two-stage protocols: Stage 1 skeleton generation (5–6 structural units with dependency mapping), Stage 2 parallelizable/ordered expansion. Introduced classification gates, execution models, and new Prompt Chain IV templates. Version increments from v1.1.0→v1.2.0 (Architect), v1.4.0→v1.5.0 (Dragon), v1.3.0→v1.4.0 (Warlock).
Supporting Role Codices
bard/BARD_CODEX.md, berserker/Berserker_BERSERKER_CODEX.md, hound/HOUND_CODEX.md, hexweaver/roles-hexweaver.md
Added SoT skill-tree entries with two-stage control flows tailored to each persona: Bard (documentation scaffolding), Berserker (battlefield sketch), Hound (claim cartography), Hexweaver (corruption front scrying). All include Stage 1 skeleton enumeration, Stage 2 parallel/sequential execution rules. Version updates: Berserker v1.0.0→v1.1.0, Hound v1.2.0→v1.3.0, Hexweaver initial v1.1.0, unchanged for Bard.
Process Workflows & Chains
archivist/undead-archivist.md, bard/workflow-skeleton-of-thought-chronicle.txt
Added Chain IV documentation for Skeleton Inquest (Archivist) replacing Chain I Prompt 1 and enhancing Prompt 2. Introduced comprehensive workflow file specifying two-stage SoT documentation generation with parallel/sequential expansion, cross-reference handling, and integration/merge procedures including lore retrieval and issue tracking for regression gaps.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~25 minutes

The changes span nine files with substantial additions (~981 lines), yet constitute homogeneous, consistently-patterned documentation updates introducing the same SoT methodology across multiple persona contexts. The repetitive nature of the Stage 1/Stage 2 framework reduces per-file cognitive load, though the breadth of integration points and version consistency verification warrant moderate review attention.

Possibly related PRs

Poem

🦴 A skeleton first, before flesh takes its place,
Nine voices unified, each finding their grace—
Stage One sketches swift, Stage Two flowers in bloom,
Parallel pathways replace crowded rooms.
From Architect's draft to the Warlock's design,
Two stages of thought—now the cadence aligns. ✨

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title directly and clearly summarizes the primary change: introducing the Skeleton-of-Thought doctrine as a unifying pattern across all codices.
Description check ✅ Passed The description is comprehensive and well-related to the changeset, detailing the SoT methodology, listing updates across each codex, and explaining the core implementation pattern.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch claude/implement-skeleton-of-thought-8fTt9
  • 🛠️ logic-chains: Commit on current branch
  • 🛠️ logic-chains: Create PR

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 4

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@archivist/undead-archivist.md`:
- Around line 737-738: Remove the dangling “, or” at the end of the first bullet
in the two-item list that starts with "Tailor one of the chains specifically to
code review, product design, or TTRPG campaigns," and the following bullet "Turn
the MCP concept into a concrete JSON/OpenAPI-ish tool schema."; specifically
edit the first bullet to drop the trailing ", or" (leaving the list to imply the
alternative) so the list reads cleanly.
- Around line 622-716: The fenced code blocks in the Chain IV section (e.g., the
blocks starting with "Stage 1 — THE INQUEST SKELETON", the "When SoT Applies to
the Inquest" block, "Prompt Template: The Skeleton Inquest", and the "STAGE 2 —
PARALLEL INVESTIGATION" / "Integration with Chain I" examples) lack language
identifiers and surrounding blank lines; update each opening fence to include a
language (use ```text) and ensure there is exactly one blank line immediately
before and after each fenced block, and normalize closing fences to ``` so the
MD031/MD040 lint rules are satisfied.

In `@berserker/Berserker_BERSERKER_CODEX.md`:
- Around line 322-323: Remove the duplicated horizontal rule in the Markdown by
deleting one of the consecutive '---' lines so only a single separator remains;
locate the duplicate in the Berserker_BERSERKER_CODEX.md section where two
consecutive '---' separators appear and remove the extra line to keep a single
horizontal rule for cleaner structure.
- Around line 355-412: The doc describes automatic front labeling/dependency
orchestration that the current MCP tool interfaces (see
Berserker_mcp-server_src_tools_scan.ts and
Berserker_mcp-server_src_tools_analyze.ts around the tool handler functions) do
not support; either implement explicit session/schema fields (e.g., add a
Front[] type with id, description, dependencies, parallelEligible to the tool
contract and wire it through the scan/analyze handlers and their
payload/response types) or revise this CHAIN IV section to state it is an
operator-guided methodology (remove wording implying MCP-native orchestration
and add a short note that tools currently return only raw findings and require
an external orchestrator to label fronts/dependencies).
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: dc0b5eb2-33e0-4a75-be02-e4451d2d7073

📥 Commits

Reviewing files that changed from the base of the PR and between 2aa8380 and 82371a4.

📒 Files selected for processing (9)
  • architect/ARCHITECT_CODEX.md
  • archivist/undead-archivist.md
  • bard/BARD_CODEX.md
  • bard/workflow-skeleton-of-thought-chronicle.txt
  • berserker/Berserker_BERSERKER_CODEX.md
  • dragon/DRAGON_CODEX.md
  • hexweaver/roles-hexweaver.md
  • hound/HOUND_CODEX.md
  • warlock/WARLOCK_CODEX.md
📜 Review details
🧰 Additional context used
🪛 LanguageTool
hound/HOUND_CODEX.md

[style] ~284-~284: To make your writing clearer, consider a shorter, more direct phrase.
Context: ... VERIFIED first) - Claim B is presented as a consequence of Claim A Two claims are INDEPENDENT...

(AS_A_CONSEQUENCE_OF)

archivist/undead-archivist.md

[style] ~626-~626: Consider a different adjective to strengthen your wording.
Context: ... fronts, one sentence each Rule: No deep analysis. Structure only. Naming only. ...

(DEEP_PROFOUND)

🪛 markdownlint-cli2 (0.22.0)
archivist/undead-archivist.md

[warning] 622-622: Fenced code blocks should be surrounded by blank lines

(MD031, blanks-around-fences)


[warning] 634-634: Fenced code blocks should be surrounded by blank lines

(MD031, blanks-around-fences)


[warning] 634-634: Fenced code blocks should have a language specified

(MD040, fenced-code-language)


[warning] 638-638: Fenced code blocks should be surrounded by blank lines

(MD031, blanks-around-fences)


[warning] 648-648: Fenced code blocks should be surrounded by blank lines

(MD031, blanks-around-fences)


[warning] 648-648: Fenced code blocks should have a language specified

(MD040, fenced-code-language)


[warning] 652-652: Fenced code blocks should be surrounded by blank lines

(MD031, blanks-around-fences)


[warning] 677-677: Fenced code blocks should be surrounded by blank lines

(MD031, blanks-around-fences)


[warning] 677-677: Fenced code blocks should have a language specified

(MD040, fenced-code-language)


[warning] 679-679: Fenced code blocks should be surrounded by blank lines

(MD031, blanks-around-fences)


[warning] 703-703: Fenced code blocks should be surrounded by blank lines

(MD031, blanks-around-fences)


[warning] 703-703: Fenced code blocks should have a language specified

(MD040, fenced-code-language)


[warning] 709-709: Fenced code blocks should be surrounded by blank lines

(MD031, blanks-around-fences)


[warning] 716-716: Fenced code blocks should be surrounded by blank lines

(MD031, blanks-around-fences)


[warning] 716-716: Fenced code blocks should have a language specified

(MD040, fenced-code-language)

🔍 Remote MCP

Based on the search results, the second search returned results about Warhammer 40k game content rather than the LLMRP project. Let me search more specifically for the LLMRP project and the Skeleton-of-Thought methodology application.## Summary of Relevant Context Found

Based on my research, I've identified important context about the Skeleton-of-Thought (SoT) methodology that this PR is implementing across the LLMRP codices:

SoT Methodology Foundation

Skeleton-of-Thought (SoT) is a technique where instead of producing answers sequentially, SoT produces different parts of answers in parallel. Given a question, SoT first prompts the LLM to generate the skeleton, then conducts batched decoding or parallel API calls to expand multiple points in parallel, and finally aggregates the outputs to get the final answer. This methodology was published as a peer-reviewed paper at ICLR 2024.

Key Design Principles for PR Review

The PR's implementation across multiple codices appears to follow the established SoT pattern with important variations:

  1. Two-Stage Protocol Structure: SoT currently ignores dependencies between points, but a conceptually better approach is to organize points as Graph-of-Thoughts where edges represent dependencies, and dynamic Graph-of-Thoughts allows the high-level structure to be adjusted dynamically by LLMs themselves, potentially combining the efficiency and global thinking advantages of SoT with the logical reasoning of methods like Chain-of-Thought (CoT).

  2. Parallelization with Dependency Management: The PR's emphasis on "independent vs dependent" classification across all codices (Architect's "nexus points," Dragon's "persona tasks," Berserker's "investigation fronts," etc.) aligns with this theoretical evolution toward dependency-aware parallelization rather than naive parallel generation.

  3. Applicable Context for Implementation: The ICLR 2024 paper demonstrates that SoT gains strongest benefits for problems with naturally independent decomposable components, while pure sequential approaches may be superior for tightly-coupled reasoning chains.

Key Observations for PR Review Criteria

  • Version consistency: The PR implements versioning updates across 7 codices (v1.1.0 through v1.5.0), suggesting incremental, coordinated adoption
  • Unified templating: All packages include explicit "Chain IV" workflows with Stage 1 skeleton generation and Stage 2 expansion protocols
  • Task classification emphasis: All codices introduce explicit gates/classification rules for determining when SoT is appropriate vs. when sequential/dependent execution should be used instead

[::web_search::]

🔇 Additional comments (9)
hound/HOUND_CODEX.md (1)

258-356: Excellent SoT execution spec: staged, dependency-aware, and operator-friendly.

The split between Stage 1 cartography and Stage 2 CoVe expansion is clear, actionable, and well constrained for real verification workflows.

hexweaver/roles-hexweaver.md (1)

975-1079: Strong Chain IV addition with the right sequential fallback semantics.

The “independent vs related” handling and explicit “SoT does not apply” gate make this robust instead of blindly parallel.

dragon/DRAGON_CODEX.md (1)

434-496: Well-architected dispatch protocol with crisp Stage 1/Stage 2 boundaries.

The sequencing gates and ledger feedback loop are particularly strong additions for repeatable orchestration quality.

warlock/WARLOCK_CODEX.md (1)

244-280: Excellent upgrade to a true two-stage branch protocol.

The Stage 1 skeleton contract and Stage 2 dependency-aware expansion are precise and immediately usable for architectural exploration sessions.

architect/ARCHITECT_CODEX.md (1)

411-465: Superb SoT engine formalization with practical applicability boundaries.

The “optimal vs suboptimal” task table plus dependency-graph execution protocol turns doctrine into an implementable operating model.

bard/workflow-skeleton-of-thought-chronicle.txt (1)

16-224: Outstanding workflow artifact: concrete, executable, and team-ready.

The staged templates, dependency handling, and integration/time-report closure make this immediately operable rather than purely conceptual.

bard/BARD_CODEX.md (1)

170-175: Elegant and precise SoT skill-tree integration for the Bard.

The new branch captures the full skeleton-first documentation doctrine in compact, actionable form.

berserker/Berserker_BERSERKER_CODEX.md (2)

102-106: Excellent SoT skill-tree integration.

This addition is crisp, internally consistent, and communicates the Stage 1/Stage 2 doctrine clearly in the Berserker voice.


618-619: Version/tagline update is well aligned with the SoT doctrine rollout.

v1.1.0 and the new closing line are coherent with the introduced “survey-before-charge” behavior.

Comment on lines +622 to +716
```
Stage 1 — THE INQUEST SKELETON (Archivist delivers immediately):
Input: Case description only — the observable symptoms of the failing system
Output: 3–7 investigation fronts, one sentence each
Rule: No deep analysis. Structure only. Naming only.
Delivery: The skeleton IS the first output. Delivered before any artifact is opened.

Stage 2 — PARALLEL INVESTIGATION:
INDEPENDENT fronts: investigated simultaneously
DEPENDENT fronts: investigated in declared order only
Effect: A broken kingdom with 5 independent failure modes is investigated ~2x faster
than sequential autopsy
```

### When SoT Applies to the Inquest

```
SoT OPTIMAL:
→ A kingdom with multiple distinct failure categories (political, architectural, operational, human)
→ A system with independent subsystems that can fail separately
→ Post-mortems with multiple unrelated contributing factors

SoT SUBOPTIMAL:
→ A single cascading failure where cause A must be confirmed before cause B can be named
→ A corruption that flows through the system linearly (Stage 2 depends on Stage 1 output)
→ Any investigation where the first finding determines the shape of all subsequent findings
```

### Prompt Template: The Skeleton Inquest

```
Seeker, you have described a broken realm.
Before the Archivist opens a single scroll, she applies the Skeleton Inquest.

The case: [DESCRIBE THE FAILING SYSTEM OR PROJECT]
Observable symptoms: [LIST ALL KNOWN FAILURE SIGNALS]

STAGE 1 — THE INQUEST SKELETON:

From the symptoms alone, the Archivist names the investigation fronts:

FRONT 1: [failure category] — [one-sentence description of likely wound]
→ INDEPENDENT / DEPENDS ON: [Front N]

FRONT 2: [failure category] — [one-sentence description]
→ INDEPENDENT / DEPENDS ON: [Front N]

...

PARALLEL ELIGIBLE: [list of independent fronts]
SEQUENTIAL REQUIRED: [ordered pairs where one front depends on another]

The skeleton is delivered now. The first scroll has not yet been opened.
Confirm the fronts. Add missing wounds. Remove fronts that do not apply.
When the map is confirmed, Stage 2 begins.
```

```
STAGE 2 — PARALLEL INVESTIGATION:

Skeleton confirmed. Artifacts brought forward.

For each PARALLEL ELIGIBLE front:
[PASTE RELEVANT ARTIFACT]
Apply the standard Archivist autopsy to this front:
- Structural wounds
- Operational wounds
- Human wounds
- Hidden risks not yet triggered

These autopsies run in parallel — the Archivist does not wait for
Front 1’s wounds to be catalogued before beginning Front 2’s dissection,
when those fronts are independent.

For SEQUENTIAL pairs: complete front N before beginning front N+1.
Pass front N’s findings explicitly into front N+1’s context.

When all fronts are complete:
→ Produce the Rot Map: root causes and all symptoms they spawn
→ Rank root causes by: speed of destruction / total cost / difficulty of reversal
→ Produce 2–3 Restoration Playbooks
```

### Integration with Chain I (The Broken Kingdom Dossier)

The Skeleton Inquest replaces Prompt 1 of Chain I and enhances Prompt 2.

```
Standard Chain I: Skeleton Inquest Enhancement:
Prompt 1 — The Summons → ENHANCED: Produce SoT skeleton before any artifact is opened
Prompt 2 — First Autopsy → ENHANCED: All independent fronts autopsied in parallel
Prompt 3 — Cross-Contagion → Preserved: Cross-reference across completed autopsies
Prompt 4 — Ledger of Blame → Preserved: Ranking and cost analysis
Prompt 5 — Edicts → Preserved: Restoration playbooks
```

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

Resolve markdown fence lint issues in Chain IV blocks.

From Line 622 through Line 716, fenced blocks are missing language identifiers and required blank-line spacing (MD031/MD040). Please normalize these fences to keep docs lint clean.

Proposed pattern to apply across the affected fenced blocks
-```
+```text
 Stage 1 — THE INQUEST SKELETON (Archivist delivers immediately):
   Input:  Case description only — the observable symptoms of the failing system
   ...
-```
+```

Also ensure one blank line before and after each fenced block.

🧰 Tools
🪛 LanguageTool

[style] ~626-~626: Consider a different adjective to strengthen your wording.
Context: ... fronts, one sentence each Rule: No deep analysis. Structure only. Naming only. ...

(DEEP_PROFOUND)

🪛 markdownlint-cli2 (0.22.0)

[warning] 622-622: Fenced code blocks should be surrounded by blank lines

(MD031, blanks-around-fences)


[warning] 634-634: Fenced code blocks should be surrounded by blank lines

(MD031, blanks-around-fences)


[warning] 634-634: Fenced code blocks should have a language specified

(MD040, fenced-code-language)


[warning] 638-638: Fenced code blocks should be surrounded by blank lines

(MD031, blanks-around-fences)


[warning] 648-648: Fenced code blocks should be surrounded by blank lines

(MD031, blanks-around-fences)


[warning] 648-648: Fenced code blocks should have a language specified

(MD040, fenced-code-language)


[warning] 652-652: Fenced code blocks should be surrounded by blank lines

(MD031, blanks-around-fences)


[warning] 677-677: Fenced code blocks should be surrounded by blank lines

(MD031, blanks-around-fences)


[warning] 677-677: Fenced code blocks should have a language specified

(MD040, fenced-code-language)


[warning] 679-679: Fenced code blocks should be surrounded by blank lines

(MD031, blanks-around-fences)


[warning] 703-703: Fenced code blocks should be surrounded by blank lines

(MD031, blanks-around-fences)


[warning] 703-703: Fenced code blocks should have a language specified

(MD040, fenced-code-language)


[warning] 709-709: Fenced code blocks should be surrounded by blank lines

(MD031, blanks-around-fences)


[warning] 716-716: Fenced code blocks should be surrounded by blank lines

(MD031, blanks-around-fences)


[warning] 716-716: Fenced code blocks should have a language specified

(MD040, fenced-code-language)

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@archivist/undead-archivist.md` around lines 622 - 716, The fenced code blocks
in the Chain IV section (e.g., the blocks starting with "Stage 1 — THE INQUEST
SKELETON", the "When SoT Applies to the Inquest" block, "Prompt Template: The
Skeleton Inquest", and the "STAGE 2 — PARALLEL INVESTIGATION" / "Integration
with Chain I" examples) lack language identifiers and surrounding blank lines;
update each opening fence to include a language (use ```text) and ensure there
is exactly one blank line immediately before and after each fenced block, and
normalize closing fences to ``` so the MD031/MD040 lint rules are satisfied.

Comment on lines +737 to 738
- Tailor one of the chains specifically to code review, product design, or TTRPG campaigns, or
- Turn the MCP concept into a concrete JSON/OpenAPI-ish tool schema.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

Remove the dangling “or” in the closing options list.

Line 737 ends with “, or” before the next bullet, which reads as an incomplete construction in the rendered doc.

Suggested wording fix
-- Tailor one of the chains specifically to code review, product design, or TTRPG campaigns, or
+- Tailor one of the chains specifically to code review, product design, or TTRPG campaigns, or

If you prefer cleaner style, remove “or” from the first bullet and keep it implied by list structure.

📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
- Tailor one of the chains specifically to code review, product design, or TTRPG campaigns, or
- Turn the MCP concept into a concrete JSON/OpenAPI-ish tool schema.
- Tailor one of the chains specifically to code review, product design, or TTRPG campaigns
- Turn the MCP concept into a concrete JSON/OpenAPI-ish tool schema.
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@archivist/undead-archivist.md` around lines 737 - 738, Remove the dangling “,
or” at the end of the first bullet in the two-item list that starts with "Tailor
one of the chains specifically to code review, product design, or TTRPG
campaigns," and the following bullet "Turn the MCP concept into a concrete
JSON/OpenAPI-ish tool schema."; specifically edit the first bullet to drop the
trailing ", or" (leaving the list to imply the alternative) so the list reads
cleanly.

Comment on lines +322 to +323
---

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧹 Nitpick | 🔵 Trivial

Remove duplicate horizontal separator for cleaner Markdown structure.

Two consecutive --- separators add noise without semantic value. Keep one.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@berserker/Berserker_BERSERKER_CODEX.md` around lines 322 - 323, Remove the
duplicated horizontal rule in the Markdown by deleting one of the consecutive
'---' lines so only a single separator remains; locate the duplicate in the
Berserker_BERSERKER_CODEX.md section where two consecutive '---' separators
appear and remove the extra line to keep a single horizontal rule for cleaner
structure.

Comment on lines +355 to +412
### ⚔ CHAIN IV: THE BATTLEFIELD SURVEY (SoT Protocol)

**Activate when:** A bug report involves multiple symptoms, multiple suspected components,
or multiple developers reporting different manifestations of what may be the same root cause.

**Full SoT Protocol:**

```
# STAGE 1 — BATTLEFIELD SKETCH

You are the Undead Berserker.

The report before you involves multiple symptoms across multiple components.
Before you execute a single shard, produce the Battlefield Sketch:

Given the following symptoms:
[PASTE: error messages, stack traces, affected components, observed behaviors]

Generate the skeleton — 4 to 8 independent investigation fronts:

FRONT 1: [domain / component] — [one-line description of the suspected fault]
FRONT 2: [domain / component] — [one-line description]
FRONT 3: [domain / component] — [one-line description]
...
FRONT N: [domain / component] — [one-line description]

For each front, declare:
→ INDEPENDENT: can be investigated without results from other fronts
→ DEPENDENT ON [N]: cannot begin until front N produces its finding

Then: identify which fronts can be expanded in parallel (no inter-dependency).
Mark these: [PARALLEL ELIGIBLE]

Total elapsed time for the sketch: under 90 seconds.
The Berserker does not linger in the sketch. Structure is not analysis.
```

```
# STAGE 2 — PARALLEL EXPANSION

For each PARALLEL ELIGIBLE front, apply the standard shard sequence independently:

FRONT [N] EXPANSION:
SHARD 1: Identify exact error location
SHARD 2: Dissect the stack / execution path
SHARD 3: Form the hypothesis
SHARD 4: Identify the negative exemplar (what NOT to do)
SHARD 5: Produce the patch
SHARD 6: Verify the fix

[FRONTS with DEPENDENT relationships are expanded in sequence
only after their dependencies have returned findings.]

When all fronts complete:
→ Cross-reference findings: do any fronts share a common root?
→ If yes: one patch may close multiple fronts
→ If no: each front produces an independent ritual law
```

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟠 Major

SoT protocol promises runtime capabilities not reflected in current MCP tool interfaces.

The specification describes front labeling, dependency declarations, and parallel-eligible orchestration as protocol outputs, but current tool contracts do not expose fields for that workflow (berserker/Berserker_mcp-server_src_tools_scan.ts:52-85, berserker/Berserker_mcp-server_src_tools_analyze.ts:42-76). This creates a doc/runtime mismatch and can mislead users about what is automated versus manual.

Please either:

  1. add explicit schema/session support for fronts + dependency metadata in tools, or
  2. narrow this section’s wording to clearly state this is operator-guided methodology, not MCP-native orchestration yet.
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@berserker/Berserker_BERSERKER_CODEX.md` around lines 355 - 412, The doc
describes automatic front labeling/dependency orchestration that the current MCP
tool interfaces (see Berserker_mcp-server_src_tools_scan.ts and
Berserker_mcp-server_src_tools_analyze.ts around the tool handler functions) do
not support; either implement explicit session/schema fields (e.g., add a
Front[] type with id, description, dependencies, parallelEligible to the tool
contract and wire it through the scan/analyze handlers and their
payload/response types) or revise this CHAIN IV section to state it is an
operator-guided methodology (remove wording implying MCP-native orchestration
and add a short note that tools currently return only raw findings and require
an external orchestrator to label fronts/dependencies).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants