prizmkit 1.1.196 → 1.1.197

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (106) hide show
  1. package/bin/create-prizmkit.js +0 -2
  2. package/bundled/VERSION.json +3 -3
  3. package/bundled/adapters/antigravity/assets/prizmkit-hook.cjs +1 -1
  4. package/bundled/adapters/antigravity/rules-adapter.js +1 -13
  5. package/bundled/adapters/claude/paths.js +0 -1
  6. package/bundled/adapters/codex/paths.js +0 -1
  7. package/bundled/adapters/codex/settings-adapter.js +1 -1
  8. package/bundled/adapters/cursor/assets/prizmkit-hook.cjs +1 -1
  9. package/bundled/adapters/cursor/rules-adapter.js +1 -13
  10. package/bundled/adapters/pi/paths.js +0 -1
  11. package/bundled/dev-pipeline/.env.example +2 -2
  12. package/bundled/dev-pipeline/README.md +6 -5
  13. package/bundled/dev-pipeline/assets/skill-subagent-integration.md +2 -2
  14. package/bundled/dev-pipeline/prizmkit_runtime/checkpoint_state.py +15 -25
  15. package/bundled/dev-pipeline/prizmkit_runtime/iterate.py +1 -69
  16. package/bundled/dev-pipeline/prizmkit_runtime/platform_detection.py +1 -114
  17. package/bundled/dev-pipeline/prizmkit_runtime/runner_models.py +2 -2
  18. package/bundled/dev-pipeline/prizmkit_runtime/runners.py +78 -0
  19. package/bundled/dev-pipeline/prizmkit_runtime/runtime_helper.py +4 -234
  20. package/bundled/dev-pipeline/prizmkit_runtime/status.py +0 -5
  21. package/bundled/dev-pipeline/prizmkit_runtime/stream_progress.py +9 -1
  22. package/bundled/dev-pipeline/scripts/feature_list_contract.py +0 -43
  23. package/bundled/dev-pipeline/scripts/generate-bootstrap-prompt.py +15 -76
  24. package/bundled/dev-pipeline/scripts/generate-bugfix-prompt.py +9 -112
  25. package/bundled/dev-pipeline/scripts/init-bugfix-pipeline.py +0 -13
  26. package/bundled/dev-pipeline/scripts/init-pipeline.py +0 -1
  27. package/bundled/dev-pipeline/scripts/prompt_framework.py +0 -79
  28. package/bundled/dev-pipeline/scripts/status_common.py +150 -4
  29. package/bundled/dev-pipeline/scripts/update-bug-status.py +20 -2
  30. package/bundled/dev-pipeline/scripts/update-feature-status.py +20 -2
  31. package/bundled/dev-pipeline/scripts/utils.py +6 -0
  32. package/bundled/dev-pipeline/templates/bootstrap-prompt.md +4 -5
  33. package/bundled/dev-pipeline/templates/bootstrap-tier3.md +5 -101
  34. package/bundled/dev-pipeline/templates/bug-fix-list-schema.json +0 -35
  35. package/bundled/dev-pipeline/templates/bugfix-bootstrap-prompt.md +4 -52
  36. package/bundled/dev-pipeline/templates/feature-list-schema.json +0 -25
  37. package/bundled/dev-pipeline/templates/iterate/evaluate-prompt.md +5 -16
  38. package/bundled/dev-pipeline/templates/iterate/evaluation-schema.json +1 -58
  39. package/bundled/dev-pipeline/templates/iterate/headless-plan-prompt.md +1 -12
  40. package/bundled/dev-pipeline/templates/sections/artifact-manifest.md +0 -1
  41. package/bundled/dev-pipeline/templates/sections/bugfix-phase-commit-report.md +0 -1
  42. package/bundled/dev-pipeline/templates/sections/bugfix-phase-diagnose-plan.md +2 -2
  43. package/bundled/dev-pipeline/templates/sections/bugfix-phase-review.md +1 -1
  44. package/bundled/dev-pipeline/templates/sections/bugfix-phase-test.md +1 -1
  45. package/bundled/dev-pipeline/templates/sections/bugfix-reminders.md +0 -2
  46. package/bundled/dev-pipeline/templates/sections/bugfix-session-context.md +0 -1
  47. package/bundled/dev-pipeline/templates/sections/bugfix-task-contract.md +0 -5
  48. package/bundled/dev-pipeline/templates/sections/checkpoint-system.md +1 -2
  49. package/bundled/dev-pipeline/templates/sections/feature-completion-summary.md +1 -1
  50. package/bundled/dev-pipeline/templates/sections/phase-commit-full.md +3 -3
  51. package/bundled/dev-pipeline/templates/sections/phase-prizmkit-test.md +3 -3
  52. package/bundled/dev-pipeline/templates/sections/phase-review-full.md +3 -3
  53. package/bundled/dev-pipeline/templates/sections/phase-specify-plan-full.md +1 -1
  54. package/bundled/dev-pipeline/templates/sections/retrospective.md +3 -3
  55. package/bundled/dev-pipeline/templates/sections/runtime-commit-handoff.md +1 -1
  56. package/bundled/rules/USAGE.md +5 -19
  57. package/bundled/rules/general/coding-baseline.md +2 -2
  58. package/bundled/rules/prizm/prizm-progressive-loading.md +2 -1
  59. package/bundled/skills/_metadata.json +4 -4
  60. package/bundled/skills/app-planner/SKILL.md +1 -1
  61. package/bundled/skills/app-planner/references/generated-plan-review.md +1 -1
  62. package/bundled/skills/app-planner/references/rules-configuration.md +6 -7
  63. package/bundled/skills/app-planner/scripts/validate-rules-configuration.py +2 -20
  64. package/bundled/skills/bug-planner/SKILL.md +5 -6
  65. package/bundled/skills/bug-planner/assets/bug-confirmation-template.md +1 -1
  66. package/bundled/skills/bug-planner/references/input-formats.md +2 -2
  67. package/bundled/skills/bug-planner/references/schema-validation.md +0 -1
  68. package/bundled/skills/bug-planner/scripts/validate-bug-list.py +2 -9
  69. package/bundled/skills/bugfix-pipeline-launcher/SKILL.md +36 -25
  70. package/bundled/skills/bugfix-pipeline-launcher/references/configuration.md +32 -26
  71. package/bundled/skills/feature-pipeline-launcher/SKILL.md +33 -25
  72. package/bundled/skills/feature-pipeline-launcher/references/configuration.md +32 -26
  73. package/bundled/skills/feature-planner/SKILL.md +4 -10
  74. package/bundled/skills/feature-planner/references/completeness-review.md +2 -2
  75. package/bundled/skills/feature-planner/references/new-project-planning.md +0 -1
  76. package/bundled/skills/feature-planner/scripts/validate-and-generate.py +1 -25
  77. package/bundled/skills/iterate-pipeline-launcher/SKILL.md +53 -42
  78. package/bundled/skills/iterate-pipeline-launcher/references/configuration.md +47 -43
  79. package/bundled/skills/prizmkit-code-review/SKILL.md +1 -1
  80. package/bundled/skills/prizmkit-code-review/references/independent-code-review.md +2 -2
  81. package/bundled/skills/prizmkit-implement/SKILL.md +1 -1
  82. package/bundled/skills/prizmkit-init/SKILL.md +6 -7
  83. package/bundled/skills/prizmkit-init/references/config-schema.md +5 -9
  84. package/bundled/skills/prizmkit-init/references/rules/layer-detection.md +1 -1
  85. package/bundled/skills/prizmkit-plan/SKILL.md +1 -1
  86. package/bundled/skills/prizmkit-retrospective/SKILL.md +3 -3
  87. package/bundled/skills/prizmkit-retrospective/references/rule-evolution-steps.md +11 -17
  88. package/bundled/skills/prizmkit-workflow/SKILL.md +6 -3
  89. package/bundled/skills/prizmkit-workflow/references/cold-start-rules.md +8 -7
  90. package/bundled/templates/project-memory-template.md +2 -1
  91. package/package.json +1 -1
  92. package/src/clean.js +29 -7
  93. package/src/config.js +13 -15
  94. package/src/index.js +1 -5
  95. package/src/manifest.js +3 -6
  96. package/src/platforms.js +0 -14
  97. package/src/scaffold.js +93 -313
  98. package/src/upgrade.js +32 -31
  99. package/bundled/adapters/claude/rules-adapter.js +0 -25
  100. package/bundled/adapters/codebuddy/rules-adapter.js +0 -30
  101. package/bundled/adapters/codex/rules-adapter.js +0 -30
  102. package/bundled/adapters/pi/rules-adapter.js +0 -13
  103. package/bundled/dev-pipeline/templates/sections/bugfix-phase-manual-verification.md +0 -10
  104. package/bundled/dev-pipeline/templates/sections/phase-browser-verification.md +0 -111
  105. package/bundled/skills/bug-planner/references/verification.md +0 -26
  106. package/bundled/skills/feature-planner/references/browser-interaction.md +0 -39
@@ -53,8 +53,6 @@ program
53
53
  .option('--skills <suite>', '[deprecated] Ignored; PrizmKit now always installs the full core skill suite')
54
54
  .option('--pipeline', 'Install dev-pipeline (default: true)')
55
55
  .option('--no-pipeline', 'Disable dev-pipeline')
56
- .option('--playwright-cli', 'Install playwright-cli browser tool (default: true)')
57
- .option('--no-playwright-cli', 'Disable playwright-cli installation')
58
56
  .option('--ai-cli <command>', 'AI CLI executable command (e.g. cbc, claude, codex, pi, agent, agy)')
59
57
  .option('--headless-prompt-arg <arg>', 'Prompt injection argv token for a custom AI CLI (e.g. -p or -i)')
60
58
  .option('--headless-extra-args <args>', 'Additional headless argv tokens for a custom AI CLI')
@@ -1,5 +1,5 @@
1
1
  {
2
- "frameworkVersion": "1.1.196",
3
- "bundledAt": "2026-11-21T15:21:55.168Z",
4
- "bundledFrom": "f0c45c2"
2
+ "frameworkVersion": "1.1.197",
3
+ "bundledAt": "2026-11-21T18:42:24.720Z",
4
+ "bundledFrom": "bfdaef1"
5
5
  }
@@ -65,7 +65,7 @@ function sessionStart(input) {
65
65
  const projectRoot = resolveProjectRoot(input);
66
66
  if (fs.existsSync(path.join(projectRoot, '.prizmkit', 'prizm-docs', 'root.prizm'))) {
67
67
  return systemMessageResponse(
68
- 'PrizmKit: read exact .prizmkit/prizm-docs/root.prizm first, then load only relevant pointed module documents. Use the project Skills in .agents/plugins/prizmkit/skills and Rules in .agents/plugins/prizmkit/rules.',
68
+ 'PrizmKit: read exact .prizmkit/prizm-docs/root.prizm first, then load only relevant pointed module documents. Use the project Skills in .agents/plugins/prizmkit/skills and Rules in .prizmkit/rules/builtin and .prizmkit/rules.',
69
69
  );
70
70
  }
71
71
  return systemMessageResponse(
@@ -22,18 +22,6 @@ export function convertToAntigravityRule(markdown, fallbackDescription) {
22
22
  return buildMarkdown(ruleFrontmatter, body);
23
23
  }
24
24
 
25
- export async function installRules(targetRoot, ruleFiles) {
26
- const rulesDir = path.join(targetRoot, RULES_DIR);
27
- mkdirSync(rulesDir, { recursive: true });
28
- for (const rule of ruleFiles) {
29
- const baseName = path.basename(rule.name);
30
- await writeFile(
31
- path.join(rulesDir, `${baseName}.md`),
32
- convertToAntigravityRule(rule.content, rule.name),
33
- );
34
- }
35
- }
36
-
37
25
  export async function installFrameworkGuidance(targetRoot, templateContent) {
38
26
  const rulesDir = path.join(targetRoot, RULES_DIR);
39
27
  mkdirSync(rulesDir, { recursive: true });
@@ -44,7 +32,7 @@ Antigravity discovers project Skills from \`${SKILLS_DIR}/\`. Invoke them with \
44
32
 
45
33
  - Start with \`/prizmkit\` to see all available PrizmKit skills.
46
34
  - Skill assets and references live inside each \`${SKILLS_DIR}/<skill>/\` directory.
47
- - PrizmKit behavioral rules live in \`${RULES_DIR}/\`; read the relevant Rule before commit, documentation, or context-loading work.
35
+ - PrizmKit built-in rules live in \`.prizmkit/rules/builtin/\` (\`coding-baseline.md\`, \`cohesive-modeling.md\`, and \`prizm-*.md\`); read the relevant rules before planning, implementation, code review, commit, documentation, or context-loading work.
48
36
  `,
49
37
  );
50
38
  await writeFile(
@@ -9,7 +9,6 @@ export const CLI_COMMAND = 'claude';
9
9
  export const COMMANDS_DIR = '.claude/commands';
10
10
  export const AGENTS_DIR = '.claude/agents';
11
11
  export const SETTINGS_FILE = '.claude/settings.json';
12
- export const RULES_DIR = '.claude/rules';
13
12
  export const MCP_CONFIG_FILE = '.mcp.json';
14
13
 
15
14
  // Global paths (relative to home directory)
@@ -8,7 +8,6 @@ export const CLI_COMMAND = 'codex';
8
8
  // Project-level paths (relative to project root)
9
9
  export const SKILLS_DIR = '.agents/skills';
10
10
  export const AGENTS_DIR = '.codex/agents';
11
- export const RULES_DIR = '.agents/rules';
12
11
  export const SETTINGS_FILE = '.codex/config.toml';
13
12
  export const PROJECT_MEMORY_FILE = 'AGENTS.md';
14
13
 
@@ -14,7 +14,7 @@ export async function generateSettings(targetRoot) {
14
14
 
15
15
  const configToml = `# Generated by PrizmKit for Codex CLI project configuration.
16
16
  # Keep project guidance in AGENTS.md; repository skills in .agents/skills/;
17
- # PrizmKit behavioral rules live in .agents/rules/; native Codex subagents live in .codex/agents/.
17
+ # PrizmKit built-in rules live in .prizmkit/rules/builtin/; native Codex subagents live in .codex/agents/.
18
18
 
19
19
  project_doc_fallback_filenames = ["CLAUDE.md", "CODEBUDDY.md"]
20
20
 
@@ -23,7 +23,7 @@ function writeOutput(value) {
23
23
  function sessionStart() {
24
24
  if (fs.existsSync('.prizmkit/prizm-docs/root.prizm')) {
25
25
  return {
26
- additional_context: 'PrizmKit: read exact .prizmkit/prizm-docs/root.prizm first, then load only relevant pointed module documents. Use the project Skills in .cursor/skills and Rules in .cursor/rules.',
26
+ additional_context: 'PrizmKit: read exact .prizmkit/prizm-docs/root.prizm first, then load only relevant pointed module documents. Use the project Skills in .cursor/skills and Rules in .prizmkit/rules/builtin and .prizmkit/rules.',
27
27
  };
28
28
  }
29
29
  return {
@@ -17,18 +17,6 @@ export function convertToMdc(markdown, fallbackDescription) {
17
17
  );
18
18
  }
19
19
 
20
- export async function installRules(targetRoot, ruleFiles) {
21
- const rulesDir = path.join(targetRoot, '.cursor', 'rules');
22
- mkdirSync(rulesDir, { recursive: true });
23
- for (const rule of ruleFiles) {
24
- const baseName = path.basename(rule.name);
25
- await writeFile(
26
- path.join(rulesDir, `${baseName}.mdc`),
27
- convertToMdc(rule.content, rule.name),
28
- );
29
- }
30
- }
31
-
32
20
  export async function installFrameworkGuidance(targetRoot, templateContent) {
33
21
  const rulesDir = path.join(targetRoot, '.cursor', 'rules');
34
22
  mkdirSync(rulesDir, { recursive: true });
@@ -39,7 +27,7 @@ Cursor discovers project Agent Skills from \`.cursor/skills/\`. Invoke them with
39
27
 
40
28
  - Start with \`/prizmkit\` to see all available PrizmKit skills.
41
29
  - Skill assets and references live inside each \`.cursor/skills/<skill>/\` directory.
42
- - PrizmKit behavioral rules live in \`.cursor/rules/\`; read the relevant Rule before commit, documentation, or context-loading work.
30
+ - PrizmKit built-in rules live in \`.prizmkit/rules/builtin/\` (\`coding-baseline.md\`, \`cohesive-modeling.md\`, and \`prizm-*.md\`); read the relevant rules before planning, implementation, code review, commit, documentation, or context-loading work.
43
31
  `,
44
32
  );
45
33
  await writeFile(
@@ -2,7 +2,6 @@
2
2
  export const PLATFORM_ID = 'pi';
3
3
  export const CLI_COMMAND = 'pi';
4
4
  export const SKILLS_DIR = '.pi/skills';
5
- export const RULES_DIR = '.pi/rules';
6
5
  export const SETTINGS_FILE = '.pi/settings.json';
7
6
  export const PROJECT_MEMORY_FILE = '.pi/APPEND_SYSTEM.md';
8
7
  export const SKILL_DEFINITION_FILE = 'SKILL.md';
@@ -20,8 +20,8 @@
20
20
 
21
21
  # ─── Pipeline Execution ──────────────────────────────────────────────
22
22
  # MAX_RETRIES=3 # Max retry attempts per task before marking failed
23
- # STOP_ON_FAILURE=0 # Stop pipeline immediately on first failed task (1=on, 0=continue)
24
- # VERBOSE=1 # Verbose logging (1=on, 0=off)
23
+ # STOP_ON_FAILURE=1 # Stop pipeline immediately on first failed task (1=on (default), 0=continue)
24
+ # VERBOSE=0 # Verbose logging (0=off (default), 1=on)
25
25
 
26
26
  # ─── Branch Management ────────────────────────────────────────────────
27
27
  # AUTO_PUSH=0 # Auto-push to remote after successful task (0=off, 1=on)
@@ -263,7 +263,7 @@ python3 scripts/init-bugfix-pipeline.py \
263
263
  --state-dir <path>
264
264
  ```
265
265
 
266
- **Validation:** Schema `dev-pipeline-bug-fix-list-v1`, required fields per bug: `id` (B-NNN), `title`, `description`, `severity` (critical|high|medium|low), `error_source`, `verification_type`, `acceptance_criteria`, `status`.
266
+ **Validation:** Schema `dev-pipeline-bug-fix-list-v1`, required fields per bug: `id` (B-NNN), `title`, `description`, `severity` (critical|high|medium|low), `error_source`, `acceptance_criteria`, `status`.
267
267
 
268
268
  ---
269
269
 
@@ -338,7 +338,7 @@ python3 scripts/generate-bugfix-prompt.py \
338
338
  [--template <path>]
339
339
  ```
340
340
 
341
- Resolves `{{BUG_ID}}`, `{{BUG_TITLE}}`, `{{SEVERITY}}`, `{{VERIFICATION_TYPE}}`, `{{ERROR_SOURCE}}`, etc.
341
+ Resolves `{{BUG_ID}}`, `{{BUG_TITLE}}`, `{{SEVERITY}}`, `{{ERROR_SOURCE}}`, etc.
342
342
 
343
343
  ---
344
344
 
@@ -468,7 +468,7 @@ python3 scripts/parse-stream-progress.py \
468
468
 
469
469
  **Runs as a background process** (spawned by `prizmkit_runtime/heartbeat.py`). Reads JSONL from session log, writes progress to `progress.json` (atomic writes).
470
470
 
471
- **Phase detection (monotonic):** specify → plan → analyze → implement → code-review → retrospective → commit
471
+ **Phase detection (monotonic):** plan → implement → code-review → test → summary → retrospective → commit
472
472
 
473
473
  **Output (progress.json):**
474
474
 
@@ -528,7 +528,8 @@ Provides `load_runtime_config()`, `load_env_file()`, and `resolve_ai_client()`.
528
528
 
529
529
  | Variable | Default | Used By | Description |
530
530
  |----------|---------|---------|-------------|
531
- | `MAX_RETRIES` | `3` | cli.py run feature | Max retry attempts per feature before marking as failed |
531
+ | `MAX_RETRIES` | `3` | cli.py run feature, cli.py run bugfix | Max retry attempts per task before marking as failed |
532
+ | `STOP_ON_FAILURE` | `1` | cli.py run feature, cli.py run bugfix | Stop pipeline immediately on first failed task (`1`=on default; set `0` to continue to other eligible tasks) |
532
533
  | `DEV_BRANCH` | auto-generated | cli.py run feature | Custom git branch name (default: `dev/{feature-id}-{timestamp}`) |
533
534
  | `AUTO_PUSH` | `0` | cli.py run feature | Set to `1` to auto-push branch to remote after successful session |
534
535
 
@@ -718,7 +719,7 @@ Feature bootstrap prompts use one canonical modular section composition for ever
718
719
 
719
720
  | Feature metadata | Normal prompt source | Execution guidance |
720
721
  |------------------|----------------------|--------------------|
721
- | `estimated_complexity: low` | `templates/sections/` canonical composition | Plan → implement → review → configured verification → test → report → retrospective → Runtime commit handoff |
722
+ | `estimated_complexity: low` | `templates/sections/` canonical composition | Plan → implement → review → test → report → retrospective → Runtime commit handoff |
722
723
  | `estimated_complexity: medium` | `templates/sections/` canonical composition | Same complete guidance |
723
724
  | `estimated_complexity: high` / `critical` | `templates/sections/` canonical composition | Same complete guidance |
724
725
 
@@ -25,7 +25,7 @@ dev-pipeline (outer loop)
25
25
  +-- Mandatory local plan/spec review, then optional strict-gated independent Plan review
26
26
  +-- Implement through /prizmkit-implement
27
27
  +-- Mandatory Main-Agent code review, then optional strict-gated independent Code review
28
- +-- Scoped test gate and browser attempt
28
+ +-- Scoped test gate (/prizmkit-test)
29
29
  +-- Retrospective & commit (orchestrator)
30
30
  ```
31
31
 
@@ -68,7 +68,7 @@ Located at `.prizmkit/dev-pipeline/scripts/`:
68
68
  | `parse-stream-progress.py` | Parse AI CLI output stream for progress tracking |
69
69
  | `update-checkpoint.py` | Validate and atomically update `workflow-checkpoint.json` steps and semantic state |
70
70
  | `patch-completion-notes.py` | Patch completion notes onto plan items |
71
- | `prizmkit-runtime-helper.py` | Helper CLI for platform/port/process/checkpoint text checks |
71
+ | `prizmkit-runtime-helper.py` | Helper CLI for artifact, source-file, text, and review-verdict checks |
72
72
  | `utils.py` | Shared utility functions for pipeline scripts |
73
73
 
74
74
  ## Session Lifecycle
@@ -135,6 +135,14 @@ class CheckpointStep:
135
135
  """Return a compact human label for cursor summaries."""
136
136
  return f"{self.id} ({self.skill})"
137
137
 
138
+ @property
139
+ def display_status(self) -> str:
140
+ """Return a human-readable step status with step name and optional stage_result."""
141
+ title = self.name or self.skill
142
+ if self.stage_result:
143
+ return f"{self.id} [{title}]: {self.status} ({self.stage_result})"
144
+ return f"{self.id} [{title}]: {self.status}"
145
+
138
146
 
139
147
  @dataclass(frozen=True)
140
148
  class SemanticCheckpoint:
@@ -416,6 +424,12 @@ def read_checkpoint_cursor(path: str | Path | None) -> int | None:
416
424
  return load_checkpoint_state(path).cursor
417
425
 
418
426
 
427
+ def read_checkpoint_step_display(path: str | Path | None) -> tuple[int | None, str]:
428
+ """Read both the numeric cursor and user-facing step name from a valid checkpoint."""
429
+ state = load_checkpoint_state(path)
430
+ return state.cursor, state.current_step_name
431
+
432
+
419
433
  def checkpoint_cursor(checkpoint: Mapping[str, Any] | None) -> dict[str, object]:
420
434
  """Summarize checkpoint step groups and the first active cursor."""
421
435
  state = validate_checkpoint_data(checkpoint or {}, exists=checkpoint is not None)
@@ -628,8 +642,6 @@ def _derive_semantic_state(
628
642
  _required_sequence_error(steps, required)
629
643
  if required else "unsupported workflow family"
630
644
  )
631
- if not canonical_sequence_error:
632
- canonical_sequence_error = _configured_verification_sequence_error(steps)
633
645
  legacy_required = LEGACY_FAMILY_REQUIRED_STAGES.get(workflow_type)
634
646
  legacy_sequence_valid = bool(
635
647
  canonical_sequence_error
@@ -727,11 +739,6 @@ def _derive_semantic_state(
727
739
  and plan_step.status == "completed"
728
740
  and plan_step.stage_result == "PLAN_READY"
729
741
  )
730
- configured_manual_valid = all(
731
- step.status == "completed"
732
- for step in steps
733
- if step.skill == "manual-verification"
734
- )
735
742
  implementation_valid = bool(
736
743
  implement_step
737
744
  and implement_step.status == "completed"
@@ -784,7 +791,7 @@ def _derive_semantic_state(
784
791
  and _required_step_artifacts_valid(committer_step, checkpoint_path, project_root)
785
792
  )
786
793
  commit_ready = (
787
- canonical_sequence_valid and plan_valid and configured_manual_valid
794
+ canonical_sequence_valid and plan_valid
788
795
  and all_precommit_completed and implementation_valid and review_valid
789
796
  and test_result_valid and retrospective_valid and artifacts_valid
790
797
  and commit_request_valid and terminal_status is None
@@ -871,23 +878,6 @@ def _required_sequence_error(
871
878
  return ""
872
879
 
873
880
 
874
- def _configured_verification_sequence_error(
875
- steps: tuple[CheckpointStep, ...],
876
- ) -> str:
877
- """Require configured Browser/Manual checks between Review and Test."""
878
- review = _single_step(steps, "prizmkit-code-review")
879
- test = _single_step(steps, "prizmkit-test")
880
- if review is None or test is None:
881
- return ""
882
- for skill in ("browser-verification", "manual-verification"):
883
- matches = [step for step in steps if step.skill == skill]
884
- if len(matches) > 1:
885
- return f"Expected at most one configured stage {skill}"
886
- if matches and not (review.index < matches[0].index < test.index):
887
- return f"Configured stage {skill} must run after review and before test"
888
- return ""
889
-
890
-
891
881
  def _single_step(steps: tuple[CheckpointStep, ...], skill: str) -> CheckpointStep | None:
892
882
  matches = [step for step in steps if step.skill == skill]
893
883
  return matches[0] if len(matches) == 1 else None
@@ -35,7 +35,6 @@ MAX_CONSECUTIVE_FAILURES = 2
35
35
  MAX_CONSECUTIVE_NO_PROGRESS = 2
36
36
 
37
37
  PRODUCT_SHAPES = frozenset({"web_saas", "cli_devtool", "mobile", "api_sdk", "internal_ops"})
38
- EVIDENCE_MODES = frozenset({"live_walkthrough", "source_only"})
39
38
  EVIDENCE_TIERS = frozenset({"fact", "inference", "taste"})
40
39
  PAIN_LENSES = frozenset(
41
40
  {
@@ -80,8 +79,6 @@ _EVAL_ROOT_KEYS = frozenset(
80
79
  {
81
80
  "schema_version",
82
81
  "product_shapes",
83
- "evidence_mode",
84
- "walkthrough_notes",
85
82
  "candidates_discovered",
86
83
  "approved_candidates",
87
84
  "requires_user_confirm",
@@ -90,7 +87,6 @@ _EVAL_ROOT_KEYS = frozenset(
90
87
  "summary",
91
88
  }
92
89
  )
93
- _WALKTHROUGH_KEYS = frozenset({"target_attempted", "server_cleanup_confirmed", "reason"})
94
90
  _DISCOVERED_KEYS = frozenset(
95
91
  {
96
92
  "id",
@@ -127,7 +123,6 @@ _APPROVED_KEYS = frozenset(
127
123
  "blast_radius_flags",
128
124
  "target_paths",
129
125
  "acceptance_hints",
130
- "ui_affected",
131
126
  }
132
127
  )
133
128
  _CONFIRM_KEYS = frozenset(
@@ -612,33 +607,6 @@ def validate_evaluation_payload(data: Any) -> tuple[bool, tuple[str, ...]]:
612
607
  f"{sorted(PRODUCT_SHAPES)}, got {product_shapes!r}"
613
608
  )
614
609
 
615
- evidence_mode = data.get("evidence_mode")
616
- if evidence_mode not in EVIDENCE_MODES:
617
- errors.append(
618
- f"evidence_mode must be one of {sorted(EVIDENCE_MODES)}, got {evidence_mode!r}"
619
- )
620
-
621
- walkthrough = data.get("walkthrough_notes")
622
- if not isinstance(walkthrough, dict):
623
- errors.append("walkthrough_notes must be an object")
624
- else:
625
- _check_exact_keys(walkthrough, _WALKTHROUGH_KEYS, "walkthrough_notes", errors)
626
- if not isinstance(walkthrough.get("target_attempted"), bool):
627
- errors.append("walkthrough_notes.target_attempted must be a boolean")
628
- if not isinstance(walkthrough.get("server_cleanup_confirmed"), bool):
629
- errors.append("walkthrough_notes.server_cleanup_confirmed must be a boolean")
630
- if not _is_non_empty_str(walkthrough.get("reason")):
631
- errors.append("walkthrough_notes.reason must be a non-empty string")
632
- if evidence_mode == "live_walkthrough":
633
- if walkthrough.get("target_attempted") is not True:
634
- errors.append(
635
- "evidence_mode='live_walkthrough' requires walkthrough_notes.target_attempted=true"
636
- )
637
- if walkthrough.get("server_cleanup_confirmed") is not True:
638
- errors.append(
639
- "evidence_mode='live_walkthrough' requires walkthrough_notes.server_cleanup_confirmed=true"
640
- )
641
-
642
610
  discovered = data.get("candidates_discovered")
643
611
  if not isinstance(discovered, list):
644
612
  errors.append("candidates_discovered must be an array")
@@ -719,8 +687,6 @@ def validate_evaluation_payload(data: Any) -> tuple[bool, tuple[str, ...]]:
719
687
  errors.append(f"{label}.target_paths must be an array of non-empty strings")
720
688
  if not _is_str_list(item.get("acceptance_hints"), min_items=1):
721
689
  errors.append(f"{label}.acceptance_hints must be a non-empty array of strings")
722
- if not isinstance(item.get("ui_affected"), bool):
723
- errors.append(f"{label}.ui_affected must be a boolean")
724
690
 
725
691
  confirm = data.get("requires_user_confirm")
726
692
  if not isinstance(confirm, list):
@@ -865,7 +831,6 @@ def _write_state(
865
831
  consecutive_no_progress: int,
866
832
  started_at: str,
867
833
  last_verdict: str | None,
868
- last_evidence_mode: str | None,
869
834
  summary: str,
870
835
  ) -> None:
871
836
  payload = {
@@ -884,7 +849,6 @@ def _write_state(
884
849
  "started_at": started_at,
885
850
  "updated_at": _utc_iso(),
886
851
  "last_verdict": last_verdict,
887
- "last_evidence_mode": last_evidence_mode,
888
852
  "summary": summary,
889
853
  }
890
854
  write_json_atomic(iterate_paths.state_file, payload)
@@ -953,11 +917,10 @@ def _write_final_summary(
953
917
  continue
954
918
  rnum = entry.get("round")
955
919
  verdict = entry.get("verdict")
956
- mode = entry.get("evidence_mode")
957
920
  appended = ", ".join(entry.get("appended_ids") or []) or "none"
958
921
  completed = ", ".join(entry.get("completed_ids") or []) or "none"
959
922
  lines.append(
960
- f"- Round {rnum}: verdict=`{verdict}` evidence_mode=`{mode}` "
923
+ f"- Round {rnum}: verdict=`{verdict}` "
961
924
  f"appended=[{appended}] completed=[{completed}]"
962
925
  )
963
926
  lines.append("")
@@ -1022,7 +985,6 @@ def render_evaluate_prompt(
1022
985
  """Render Phase A evaluate-prompt.md without disclosing any round quota or cap."""
1023
986
  template_path = paths.pipeline_root / "templates" / "iterate" / "evaluate-prompt.md"
1024
987
  schema_path = paths.pipeline_root / "templates" / "iterate" / "evaluation-schema.json"
1025
- helper_script = paths.pipeline_root / "scripts" / "prizmkit-runtime-helper.py"
1026
988
  template = template_path.read_text(encoding="utf-8")
1027
989
 
1028
990
  focus_section = (
@@ -1034,7 +996,6 @@ def render_evaluate_prompt(
1034
996
  "{{PROJECT_ROOT}}": str(paths.project_root),
1035
997
  "{{OUTPUT_PATH}}": str(output_path),
1036
998
  "{{SCHEMA_PATH}}": str(schema_path),
1037
- "{{RUNTIME_HELPER_CMD}}": f"{sys.executable} {helper_script}",
1038
999
  "{{ROUND_DIR}}": str(round_dir),
1039
1000
  "{{FOCUS_SECTION}}": focus_section,
1040
1001
  "{{LEDGER_SUMMARY}}": _format_ledger_summary(ledger),
@@ -1391,7 +1352,6 @@ def run_iterate_loop(paths: RuntimePaths, options: IterateOptions) -> CommandRes
1391
1352
  consecutive_no_progress = 0
1392
1353
  current_round = 0
1393
1354
  last_verdict: str | None = None
1394
- last_evidence_mode: str | None = None
1395
1355
 
1396
1356
  _write_state(
1397
1357
  iterate_paths,
@@ -1407,7 +1367,6 @@ def run_iterate_loop(paths: RuntimePaths, options: IterateOptions) -> CommandRes
1407
1367
  consecutive_no_progress=0,
1408
1368
  started_at=started_at,
1409
1369
  last_verdict=None,
1410
- last_evidence_mode=None,
1411
1370
  summary="Iterate session started.",
1412
1371
  )
1413
1372
  _append_event(
@@ -1441,7 +1400,6 @@ def run_iterate_loop(paths: RuntimePaths, options: IterateOptions) -> CommandRes
1441
1400
  consecutive_no_progress=0,
1442
1401
  started_at=started_at,
1443
1402
  last_verdict=None,
1444
- last_evidence_mode=None,
1445
1403
  summary=f"Draining existing backlog ({len(backlog_ids)} incomplete features).",
1446
1404
  )
1447
1405
  _append_event(
@@ -1509,7 +1467,6 @@ def run_iterate_loop(paths: RuntimePaths, options: IterateOptions) -> CommandRes
1509
1467
  consecutive_no_progress=0,
1510
1468
  started_at=started_at,
1511
1469
  last_verdict=None,
1512
- last_evidence_mode=None,
1513
1470
  summary=summary,
1514
1471
  )
1515
1472
  _write_final_summary(
@@ -1553,7 +1510,6 @@ def run_iterate_loop(paths: RuntimePaths, options: IterateOptions) -> CommandRes
1553
1510
  consecutive_no_progress=consecutive_no_progress,
1554
1511
  started_at=started_at,
1555
1512
  last_verdict=last_verdict,
1556
- last_evidence_mode=last_evidence_mode,
1557
1513
  summary=f"Round {round_num}: running Phase A read-only evaluation.",
1558
1514
  )
1559
1515
  _append_event(iterate_paths, "round_started", round_num=round_num, phase="evaluating")
@@ -1594,7 +1550,6 @@ def run_iterate_loop(paths: RuntimePaths, options: IterateOptions) -> CommandRes
1594
1550
  "started_at": round_started_at,
1595
1551
  "ended_at": _utc_iso(),
1596
1552
  "verdict": reason,
1597
- "evidence_mode": None,
1598
1553
  "product_shapes": [],
1599
1554
  "appended_ids": [],
1600
1555
  "completed_ids": [],
@@ -1624,7 +1579,6 @@ def run_iterate_loop(paths: RuntimePaths, options: IterateOptions) -> CommandRes
1624
1579
  consecutive_no_progress=consecutive_no_progress,
1625
1580
  started_at=started_at,
1626
1581
  last_verdict=reason,
1627
- last_evidence_mode=last_evidence_mode,
1628
1582
  summary=summary,
1629
1583
  )
1630
1584
  _write_final_summary(
@@ -1669,7 +1623,6 @@ def run_iterate_loop(paths: RuntimePaths, options: IterateOptions) -> CommandRes
1669
1623
  "started_at": round_started_at,
1670
1624
  "ended_at": _utc_iso(),
1671
1625
  "verdict": reason,
1672
- "evidence_mode": None,
1673
1626
  "product_shapes": [],
1674
1627
  "appended_ids": [],
1675
1628
  "completed_ids": [],
@@ -1699,7 +1652,6 @@ def run_iterate_loop(paths: RuntimePaths, options: IterateOptions) -> CommandRes
1699
1652
  consecutive_no_progress=consecutive_no_progress,
1700
1653
  started_at=started_at,
1701
1654
  last_verdict=reason,
1702
- last_evidence_mode=last_evidence_mode,
1703
1655
  summary=summary,
1704
1656
  )
1705
1657
  _write_final_summary(
@@ -1719,14 +1671,12 @@ def run_iterate_loop(paths: RuntimePaths, options: IterateOptions) -> CommandRes
1719
1671
  return CommandResult(1, "Python iterate runner", f"{reason}: {summary}")
1720
1672
 
1721
1673
  verdict = str(eval_data["verdict"])
1722
- evidence_mode = str(eval_data["evidence_mode"])
1723
1674
  product_shapes = list(eval_data["product_shapes"])
1724
1675
  approved_candidates = list(eval_data["approved_candidates"])
1725
1676
  requires_user_confirm = list(eval_data["requires_user_confirm"])
1726
1677
  rejected_candidates = list(eval_data["rejected_candidates"])
1727
1678
  eval_summary = str(eval_data["summary"])
1728
1679
  last_verdict = verdict
1729
- last_evidence_mode = evidence_mode
1730
1680
 
1731
1681
  _append_event(
1732
1682
  iterate_paths,
@@ -1735,7 +1685,6 @@ def run_iterate_loop(paths: RuntimePaths, options: IterateOptions) -> CommandRes
1735
1685
  phase="evaluating",
1736
1686
  details={
1737
1687
  "verdict": verdict,
1738
- "evidence_mode": evidence_mode,
1739
1688
  "approved_count": len(approved_candidates),
1740
1689
  "confirm_count": len(requires_user_confirm),
1741
1690
  "rejected_count": len(rejected_candidates),
@@ -1750,7 +1699,6 @@ def run_iterate_loop(paths: RuntimePaths, options: IterateOptions) -> CommandRes
1750
1699
  "started_at": round_started_at,
1751
1700
  "ended_at": _utc_iso(),
1752
1701
  "verdict": verdict,
1753
- "evidence_mode": evidence_mode,
1754
1702
  "product_shapes": product_shapes,
1755
1703
  "appended_ids": [],
1756
1704
  "completed_ids": [],
@@ -1779,7 +1727,6 @@ def run_iterate_loop(paths: RuntimePaths, options: IterateOptions) -> CommandRes
1779
1727
  consecutive_no_progress=consecutive_no_progress,
1780
1728
  started_at=started_at,
1781
1729
  last_verdict=verdict,
1782
- last_evidence_mode=evidence_mode,
1783
1730
  summary=eval_summary,
1784
1731
  )
1785
1732
  _write_final_summary(
@@ -1809,7 +1756,6 @@ def run_iterate_loop(paths: RuntimePaths, options: IterateOptions) -> CommandRes
1809
1756
  f"{verdict}: {eval_summary}",
1810
1757
  details=(
1811
1758
  f"round: {round_num}",
1812
- f"evidence_mode: {evidence_mode}",
1813
1759
  f"summary_file: {iterate_paths.summary_file}",
1814
1760
  ),
1815
1761
  )
@@ -1828,7 +1774,6 @@ def run_iterate_loop(paths: RuntimePaths, options: IterateOptions) -> CommandRes
1828
1774
  "started_at": round_started_at,
1829
1775
  "ended_at": _utc_iso(),
1830
1776
  "verdict": verdict,
1831
- "evidence_mode": evidence_mode,
1832
1777
  "product_shapes": product_shapes,
1833
1778
  "appended_ids": [],
1834
1779
  "completed_ids": [],
@@ -1857,7 +1802,6 @@ def run_iterate_loop(paths: RuntimePaths, options: IterateOptions) -> CommandRes
1857
1802
  consecutive_no_progress=consecutive_no_progress,
1858
1803
  started_at=started_at,
1859
1804
  last_verdict=verdict,
1860
- last_evidence_mode=evidence_mode,
1861
1805
  summary=eval_summary,
1862
1806
  )
1863
1807
  _write_final_summary(
@@ -1923,7 +1867,6 @@ def run_iterate_loop(paths: RuntimePaths, options: IterateOptions) -> CommandRes
1923
1867
  consecutive_no_progress=consecutive_no_progress,
1924
1868
  started_at=started_at,
1925
1869
  last_verdict=verdict,
1926
- last_evidence_mode=evidence_mode,
1927
1870
  summary=f"Round {round_num}: running Phase B headless feature planning.",
1928
1871
  )
1929
1872
  _append_event(
@@ -1955,7 +1898,6 @@ def run_iterate_loop(paths: RuntimePaths, options: IterateOptions) -> CommandRes
1955
1898
  consecutive_failures=consecutive_failures,
1956
1899
  consecutive_no_progress=consecutive_no_progress,
1957
1900
  verdict=verdict,
1958
- evidence_mode=evidence_mode,
1959
1901
  product_shapes=product_shapes,
1960
1902
  requires_user_confirm=requires_user_confirm,
1961
1903
  rejected_candidates=rejected_candidates,
@@ -2072,7 +2014,6 @@ def run_iterate_loop(paths: RuntimePaths, options: IterateOptions) -> CommandRes
2072
2014
  consecutive_failures=consecutive_failures,
2073
2015
  consecutive_no_progress=consecutive_no_progress,
2074
2016
  verdict=verdict,
2075
- evidence_mode=evidence_mode,
2076
2017
  product_shapes=product_shapes,
2077
2018
  requires_user_confirm=requires_user_confirm,
2078
2019
  rejected_candidates=rejected_candidates,
@@ -2112,7 +2053,6 @@ def run_iterate_loop(paths: RuntimePaths, options: IterateOptions) -> CommandRes
2112
2053
  consecutive_failures=consecutive_failures,
2113
2054
  consecutive_no_progress=consecutive_no_progress,
2114
2055
  verdict=verdict,
2115
- evidence_mode=evidence_mode,
2116
2056
  product_shapes=product_shapes,
2117
2057
  requires_user_confirm=requires_user_confirm,
2118
2058
  rejected_candidates=rejected_candidates,
@@ -2150,7 +2090,6 @@ def run_iterate_loop(paths: RuntimePaths, options: IterateOptions) -> CommandRes
2150
2090
  consecutive_no_progress=consecutive_no_progress,
2151
2091
  started_at=started_at,
2152
2092
  last_verdict=verdict,
2153
- last_evidence_mode=evidence_mode,
2154
2093
  summary=f"Round {round_num}: delivering features {feature_range}.",
2155
2094
  )
2156
2095
  _append_event(
@@ -2224,7 +2163,6 @@ def run_iterate_loop(paths: RuntimePaths, options: IterateOptions) -> CommandRes
2224
2163
  "started_at": round_started_at,
2225
2164
  "ended_at": _utc_iso(),
2226
2165
  "verdict": verdict,
2227
- "evidence_mode": evidence_mode,
2228
2166
  "product_shapes": product_shapes,
2229
2167
  "appended_ids": appended_ids,
2230
2168
  "completed_ids": completed_ids,
@@ -2275,7 +2213,6 @@ def run_iterate_loop(paths: RuntimePaths, options: IterateOptions) -> CommandRes
2275
2213
  consecutive_no_progress=consecutive_no_progress,
2276
2214
  started_at=started_at,
2277
2215
  last_verdict=verdict,
2278
- last_evidence_mode=evidence_mode,
2279
2216
  summary=final_summary,
2280
2217
  )
2281
2218
  _write_final_summary(
@@ -2325,7 +2262,6 @@ def run_iterate_loop(paths: RuntimePaths, options: IterateOptions) -> CommandRes
2325
2262
  consecutive_no_progress=consecutive_no_progress,
2326
2263
  started_at=started_at,
2327
2264
  last_verdict=last_verdict,
2328
- last_evidence_mode=last_evidence_mode,
2329
2265
  summary=summary,
2330
2266
  )
2331
2267
  _append_event(
@@ -2355,7 +2291,6 @@ def run_iterate_loop(paths: RuntimePaths, options: IterateOptions) -> CommandRes
2355
2291
  consecutive_no_progress=consecutive_no_progress,
2356
2292
  started_at=started_at,
2357
2293
  last_verdict=last_verdict,
2358
- last_evidence_mode=last_evidence_mode,
2359
2294
  summary=summary,
2360
2295
  )
2361
2296
  _write_final_summary(
@@ -2418,7 +2353,6 @@ def _record_plan_failure(
2418
2353
  consecutive_failures: int,
2419
2354
  consecutive_no_progress: int,
2420
2355
  verdict: str,
2421
- evidence_mode: str,
2422
2356
  product_shapes: list[str],
2423
2357
  requires_user_confirm: list[dict[str, Any]],
2424
2358
  rejected_candidates: list[dict[str, Any]],
@@ -2432,7 +2366,6 @@ def _record_plan_failure(
2432
2366
  "started_at": round_started_at,
2433
2367
  "ended_at": _utc_iso(),
2434
2368
  "verdict": verdict,
2435
- "evidence_mode": evidence_mode,
2436
2369
  "product_shapes": product_shapes,
2437
2370
  "appended_ids": [],
2438
2371
  "completed_ids": [],
@@ -2461,7 +2394,6 @@ def _record_plan_failure(
2461
2394
  consecutive_no_progress=consecutive_no_progress,
2462
2395
  started_at=started_at,
2463
2396
  last_verdict=verdict,
2464
- last_evidence_mode=evidence_mode,
2465
2397
  summary=summary,
2466
2398
  )
2467
2399
  _write_final_summary(