Skip to content

Commit e671feb

Browse files
committed
docs: complete conditioning doc consolidation
The prior commit removed conditioning/ARCHITECTURE.md but, due to a staging error, did not include the artifacts the consolidation depends on: the rewritten docs/conditioning-layer.md (authored against the live generator) and the four code-comment citations re-pointed away from the deleted file. Without this commit the deletion stands alone and the surviving doc is stale. This lands them: docs/conditioning-layer.md now documents the three-segment law, the producer/reviewer/council modules, all 19 roles, the constitution render, and the real delivery surfaces; compose.ncl, core.ncl, craft-guide.md, and install.sh point at the surviving doc instead of ARCHITECTURE.md. Verified: all 19 roles export, doc-audit link gate passes, conditioning sweep 5/5.
1 parent 800d457 commit e671feb

5 files changed

Lines changed: 215 additions & 118 deletions

File tree

conditioning/compose.ncl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
# HasModule / HasLens are sibling verbatim-substring contracts for
77
# module and lens text. The nine reviewer fields below consume them:
88
# all nine carry HasModule reviewer_module; the eight lensed reviewers
9-
# also carry HasLens <their delta> (see ARCHITECTURE.md §1).
9+
# also carry HasLens <their delta> (see docs/conditioning-layer.md
10+
# §The injection-rule contracts).
1011
#
1112
# EXPORT INTERFACE
1213
# ----------------
@@ -116,7 +117,7 @@ Delegation:
116117
%{rules}
117118
"% in
118119

119-
# INJECTION-RULE CONTRACT (ARCHITECTURE.md §4)
120+
# INJECTION-RULE CONTRACT (docs/conditioning-layer.md §The injection-rule contracts)
120121
# Checks that core_text appears as a verbatim contiguous substring of the
121122
# generated prompt. Export fails (non-zero exit, error printed) when the
122123
# condition is false — no prompt is emitted.

conditioning/core.ncl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,15 @@
33
# THE BEHAVIORAL LAW — the always-on, full-replacement system prompt content.
44
#
55
# A single top-level Nickel String, self-contained (no contract imports), so it
6-
# is portable and injectable verbatim by `compose.ncl` (ARCHITECTURE.md §4). This
6+
# is portable and injectable verbatim by `compose.ncl` (docs/conditioning-layer.md
7+
# §The injection-rule contracts). This
78
# is the COMPLETE coherent law that REPLACES the harness default behavioral block
89
# (Claude Code output style, keep-coding-instructions:false). It is generated from
910
# rules.md / ambient.md / the promoted constitution + engineering skills, but is
1011
# the always-on surface itself — those sources demote to by-moment reference.
1112
#
12-
# Calibration (ARCHITECTURE.md): PRINCIPLES are always-on, PROCEDURES are
13+
# Calibration (docs/conditioning-layer.md §The invariant-core): PRINCIPLES are
14+
# always-on, PROCEDURES are
1315
# by-moment. Every promoted principle that binds EVERY walker regardless of role
1416
# or discipline earns a place here; role-specific deltas live in a persona overlay
1517
# and detailed procedures stay routed-by-moment as skills. Over-inclusion of

conditioning/craft-guide.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ Dispositions written per this guide are not wrapped around a harness at launch b
1111
process adapter — predicate is **instructions + generated prompts, not a process
1212
wrapper**. They are generated into each harness's **native system-prompt surface at
1313
install time** by `conditioning/install.sh` (composed as
14-
`core ++ join(modules) ++ role_delta`; see [ARCHITECTURE.md](ARCHITECTURE.md)):
14+
`core ++ join(modules) ++ role_delta`; see
15+
[docs/conditioning-layer.md](../docs/conditioning-layer.md)):
1516

1617
- **Claude Code** — the composer law ships as an **output style**
1718
(`~/.claude/output-styles/predicate-composer.md`) with frontmatter

conditioning/install.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
# committed copy). It NEVER composes prompts itself — `nickel export` is the sole
88
# combinator; this is the imperative shell at the effect boundary.
99
#
10-
# Per-harness native delivery (ARCHITECTURE.md §5 — adding a harness is one branch):
10+
# Per-harness native delivery (docs/conditioning-layer.md §Delivery — adding a
11+
# harness is one branch):
1112
#
1213
# claude-code:
1314
# - OUTPUT STYLE → <claude-dir>/output-styles/predicate-composer.md

0 commit comments

Comments
 (0)