Commit 749cd76
Lands v1 scope of every methodology subissue revealed by the post-#218
paper-burst rerun (2026-05-27). Each subissue has a concrete fix that
materially improves the rehearsal/real iteration loop and prepares the
codebase for cross-run knowledge propagation.
Closes #221 — Render iteration_mode + execute_mode_guidance in
EXECUTE_ANALYZE prompt context. The DESIGN-phase agent (post-#212)
honors rehearsal scope-shrink for probes, but the bundle it authors
declares the full experimental design, and the EXECUTE_ANALYZE-phase
agent (which had no mode signal) dutifully fanned out the full
bundle anyway. New ``execute_mode_guidance_for(mode)`` returns
rehearsal/real text distinct from the design-phase helper. Plumbed
through ``_build_context`` for ``phase == "execute-analyze"``;
rendered into ``execute_analyze.md`` + ``execute_analyze_thin.md``
with ``{{iteration_mode}}`` + ``{{mode_guidance}}`` placeholders.
Test parametrized over ``with_claude_md`` (production thin path).
Closes #222 — bundle.experiment_spec gains a structured
``rehearsal_subset`` field (seeds, arms, extra_validation_only).
Schema-locked enum so a typo'd field name fails validation. The
DESIGN methodology instructs agents to populate it when iter is
rehearsal; EXECUTE_ANALYZE honors it (per #221's mode_guidance).
Composes with #221: prose-only scope-shrink was unreliable; a
structured field is enforceable.
Closes #223 v1 — structured ``brief_amendments.jsonl`` schema +
REPORT-context renderer. New ``brief_amendments.schema.json`` with
required fields (``id, brief_section, problem, fix, priority``)
and an enumerated priority. New
``_format_brief_amendments_summary(work_dir)`` helper renders
amendments grouped by priority into the REPORT prompt. CLI
``nous brief apply-amendments`` deferred to v2.
Closes #224 v1 — deterministic
``promote_gate.evaluate_promote_gate(work_dir, iteration) -> dict``
function. Pure Python; reads findings.json, brief_amendments.jsonl,
applied_amendments.jsonl. Decision rule: missing/invalid findings →
``abort``; unapplied BLOCKING amendment → ``revise``; else →
``promote``. Engine state-machine integration (the actual halting
behavior at iter boundaries) deferred to v2 — this PR lands the
decision logic so it's testable in isolation before any engine
state changes.
Closes #226 — bundle.experiment_spec gains a structured
``timing_observations`` block (per-policy expected wall-time +
recommended_turn_silence_threshold_seconds). ``SDKDispatcher.dispatch``
reads the prior iter's bundle for the recommended threshold and
applies it as a per-call override; restores the campaign default
after. Resolution chain: bundle override > campaign default >
factory default (600s). Methodology prescribes that rehearsal-mode
agents record per-policy timing observations during feasibility
probes — the recurring ``externality-credit`` slowness across
three reruns becomes structural data instead of folklore.
Refs #225 (tracker — five children covered).
Tests: +44 new (1133 passed, 1 skipped, 0 regressions). Behavioral
throughout: assertions on resolved ctx values, on-disk artifacts,
schema validation. Per CLAUDE.md "no live LLM calls" — all tests
use existing seam-injected fakes.
Compaction-safe plan at ``docs/plans/methodology-improvements-pr.md``
captures the full implementation map; memory entries at
``project_methodology_pr_in_flight.md`` and
``project_paper_burst_workload_divergence.md`` carry session
context across compactions.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent ef6403e commit 749cd76
14 files changed
Lines changed: 1459 additions & 1 deletion
File tree
- orchestrator
- schemas
- prompts/methodology
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
108 | | - | |
| 108 | + | |
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
| |||
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
136 | 221 | | |
137 | 222 | | |
138 | 223 | | |
| |||
594 | 679 | | |
595 | 680 | | |
596 | 681 | | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
597 | 695 | | |
598 | 696 | | |
599 | 697 | | |
| |||
656 | 754 | | |
657 | 755 | | |
658 | 756 | | |
| 757 | + | |
| 758 | + | |
| 759 | + | |
| 760 | + | |
| 761 | + | |
| 762 | + | |
| 763 | + | |
| 764 | + | |
659 | 765 | | |
660 | 766 | | |
661 | 767 | | |
| |||
0 commit comments