@sireai/optimus 0.1.44 → 0.1.46

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 (92) hide show
  1. package/dist/cli/feedback-delivery.js +13 -8
  2. package/dist/cli/feedback-delivery.js.map +1 -1
  3. package/dist/cli/optimus.js +370 -63
  4. package/dist/cli/optimus.js.map +1 -1
  5. package/dist/integrations/feishu/feishu-client.d.ts +13 -0
  6. package/dist/integrations/feishu/feishu-client.js +111 -6
  7. package/dist/integrations/feishu/feishu-client.js.map +1 -1
  8. package/dist/integrations/feishu/feishu-reference-material-downloader.d.ts +34 -0
  9. package/dist/integrations/feishu/feishu-reference-material-downloader.js +572 -0
  10. package/dist/integrations/feishu/feishu-reference-material-downloader.js.map +1 -0
  11. package/dist/integrations/feishu/feishu-token-store.d.ts +25 -1
  12. package/dist/integrations/feishu/feishu-token-store.js +148 -4
  13. package/dist/integrations/feishu/feishu-token-store.js.map +1 -1
  14. package/dist/integrations/feishu/feishu-user-auth-service.d.ts +39 -0
  15. package/dist/integrations/feishu/feishu-user-auth-service.js +228 -0
  16. package/dist/integrations/feishu/feishu-user-auth-service.js.map +1 -0
  17. package/dist/integrations/jira/jira-cli.js +127 -19
  18. package/dist/integrations/jira/jira-cli.js.map +1 -1
  19. package/dist/task-environment/delivery/commit-message/coder-commit-message-template.d.ts +12 -0
  20. package/dist/task-environment/delivery/commit-message/coder-commit-message-template.js +105 -0
  21. package/dist/task-environment/delivery/commit-message/coder-commit-message-template.js.map +1 -0
  22. package/dist/task-environment/delivery/commit-message/commit-message-builder.js +2 -1
  23. package/dist/task-environment/delivery/commit-message/commit-message-builder.js.map +1 -1
  24. package/dist/task-environment/delivery/feishu-analysis-doc-service.d.ts +6 -0
  25. package/dist/task-environment/delivery/feishu-analysis-doc-service.js +106 -34
  26. package/dist/task-environment/delivery/feishu-analysis-doc-service.js.map +1 -1
  27. package/dist/task-environment/delivery/feishu-content/feishu-content-renderer.js +16 -1
  28. package/dist/task-environment/delivery/feishu-content/feishu-content-renderer.js.map +1 -1
  29. package/dist/task-environment/delivery/feishu-content/feishu-copy-config.d.ts +6 -0
  30. package/dist/task-environment/delivery/feishu-content/feishu-copy-config.js +19 -0
  31. package/dist/task-environment/delivery/feishu-content/feishu-copy-config.js.map +1 -1
  32. package/dist/task-environment/delivery/feishu-notifier.js +13 -11
  33. package/dist/task-environment/delivery/feishu-notifier.js.map +1 -1
  34. package/dist/task-environment/delivery/feishu-templates/coder-message-template.d.ts +6 -0
  35. package/dist/task-environment/delivery/feishu-templates/coder-message-template.js +58 -0
  36. package/dist/task-environment/delivery/feishu-templates/coder-message-template.js.map +1 -0
  37. package/dist/task-environment/delivery/feishu-templates/template-registry.js +2 -0
  38. package/dist/task-environment/delivery/feishu-templates/template-registry.js.map +1 -1
  39. package/dist/task-environment/delivery/task-delivery-dispatcher.js +6 -0
  40. package/dist/task-environment/delivery/task-delivery-dispatcher.js.map +1 -1
  41. package/dist/task-environment/delivery/task-delivery-service.d.ts +1 -0
  42. package/dist/task-environment/delivery/task-delivery-service.js +124 -8
  43. package/dist/task-environment/delivery/task-delivery-service.js.map +1 -1
  44. package/dist/task-environment/delivery/task-publication-service.js +9 -6
  45. package/dist/task-environment/delivery/task-publication-service.js.map +1 -1
  46. package/dist/task-environment/document-input/document-structure.d.ts +13 -0
  47. package/dist/task-environment/document-input/document-structure.js +438 -0
  48. package/dist/task-environment/document-input/document-structure.js.map +1 -0
  49. package/dist/task-environment/intake/manual-problem-intake.js +36 -0
  50. package/dist/task-environment/intake/manual-problem-intake.js.map +1 -1
  51. package/dist/task-environment/observability/logger.d.ts +1 -0
  52. package/dist/task-environment/observability/logger.js +26 -0
  53. package/dist/task-environment/observability/logger.js.map +1 -1
  54. package/dist/task-environment/observability/runtime-panel.js +10 -1
  55. package/dist/task-environment/observability/runtime-panel.js.map +1 -1
  56. package/dist/task-environment/orchestration/reference-material-relocator.d.ts +2 -0
  57. package/dist/task-environment/orchestration/reference-material-relocator.js +69 -0
  58. package/dist/task-environment/orchestration/reference-material-relocator.js.map +1 -0
  59. package/dist/task-environment/orchestration/task-orchestrator.d.ts +3 -0
  60. package/dist/task-environment/orchestration/task-orchestrator.js +182 -8
  61. package/dist/task-environment/orchestration/task-orchestrator.js.map +1 -1
  62. package/dist/task-environment/orchestration/task-package-inputs.js +7 -1
  63. package/dist/task-environment/orchestration/task-package-inputs.js.map +1 -1
  64. package/dist/task-environment/orchestration/task-runtime-policy.js +11 -0
  65. package/dist/task-environment/orchestration/task-runtime-policy.js.map +1 -1
  66. package/dist/task-environment/orchestration/triage-runner.js +3 -0
  67. package/dist/task-environment/orchestration/triage-runner.js.map +1 -1
  68. package/dist/task-environment/runtime/optimus-runtime.js +3 -0
  69. package/dist/task-environment/runtime/optimus-runtime.js.map +1 -1
  70. package/dist/task-environment/storage/sqlite-task-store.d.ts +4 -0
  71. package/dist/task-environment/storage/sqlite-task-store.js +70 -1
  72. package/dist/task-environment/storage/sqlite-task-store.js.map +1 -1
  73. package/dist/task-environment/task-handler-descriptor.d.ts +5 -0
  74. package/dist/task-environment/task-handler-descriptor.js +15 -0
  75. package/dist/task-environment/task-handler-descriptor.js.map +1 -0
  76. package/dist/types.d.ts +47 -1
  77. package/embedded-skills/shared/feishu-task-inputs/SKILL.md +56 -0
  78. package/embedded-skills/shared/feishu-task-inputs/scripts/fetch-feishu-doc.mjs +756 -0
  79. package/embedded-skills/shared/feishu-task-inputs/skill.json +5 -0
  80. package/package.json +4 -1
  81. package/task-harnesses/coder/ACCEPT.md +73 -0
  82. package/task-harnesses/coder/CONSTRAINTS.md +72 -0
  83. package/task-harnesses/coder/CONTEXT.md +36 -0
  84. package/task-harnesses/coder/EVOLUTION.md +83 -0
  85. package/task-harnesses/coder/ROLE.md +39 -0
  86. package/task-harnesses/coder/STANDARD.md +258 -0
  87. package/task-harnesses/coder/manifest.json +13 -0
  88. package/task-harnesses/pm/ACCEPT.md +7 -0
  89. package/task-harnesses/pm/CONSTRAINTS.md +5 -0
  90. package/task-harnesses/pm/ROLE.md +5 -8
  91. package/task-harnesses/pm/STANDARD.md +83 -124
  92. package/task-harnesses/registry.json +4 -0
@@ -1,15 +1,9 @@
1
1
  # ROLE
2
2
 
3
- Defines PM harness identity, scope, and closure bar.
4
-
5
3
  ## Identity
6
4
  You are a `PM Prototype Builder` for accepted `pm` tasks.
7
5
 
8
- Turn one source requirement document into a reviewable interactive HTML prototype. Preserve requirement meaning before polish.
9
-
10
- ## Required outputs
11
- - `prototype.html`: the main review artifact
12
- - `result.md`: dense rule supplement for downstream implementation
6
+ Turn one source requirement document into a reviewable interactive HTML product demo. Preserve requirement meaning before polish.
13
7
 
14
8
  ## Core responsibility
15
9
  - read the source directly and keep it as primary truth
@@ -17,11 +11,12 @@ Turn one source requirement document into a reviewable interactive HTML prototyp
17
11
  - separate `confirmed`, `simulated`, `assumption`, and `open_question`
18
12
  - expose implementation-relevant meaning through `result.md`
19
13
  - keep explanatory meta content out of the default product UI
14
+ - keep the default prototype view demo-pure: no reviewer tooling, no source reference wall, no explanation-heavy side panels unless they are part of the product itself
20
15
  - close through reviewer-informed judgment, not builder self-certification
21
16
 
22
17
  ## In scope
23
18
  - requirement document to interactive HTML prototype
24
- - structure, navigation, flow, states, and critical rules
19
+ - structure, navigation, flow, states, critical rules, and product-facing demo presentation
25
20
  - structured handoff for downstream implementation
26
21
 
27
22
  ## Out of scope
@@ -31,12 +26,14 @@ Turn one source requirement document into a reviewable interactive HTML prototyp
31
26
  - visual polish that weakens product meaning
32
27
  - text-only PRD rewriting without interactive output
33
28
  - persistent scope / exclusion / truth-status panels inside the default prototype view
29
+ - reviewer-oriented consoles, debug utilities, citation strips, or requirement explanation blocks inside the default prototype view
34
30
 
35
31
  ## Quality bar
36
32
  - source-faithful
37
33
  - fast to review on the core path
38
34
  - honest about simulation, assumption, and omissions
39
35
  - strong enough to guide downstream implementation without forcing major guesswork
36
+ - visually grounded in source screenshots / embedded UI images when they exist
40
37
 
41
38
  ## Closure intent
42
39
  - `Prototype Complete`: accepted scope, core path, major states, and key rules are reviewable
@@ -2,6 +2,10 @@
2
2
 
3
3
  Defines the mandatory PM execution flow, artifact contract, and delivery standard.
4
4
 
5
+ ### Required outputs
6
+ - `prototype.html`: the main review artifact
7
+ - `result.md`: dense rule supplement for downstream implementation
8
+
5
9
  ## Execution sequence
6
10
  Complete work in this order:
7
11
 
@@ -9,19 +13,33 @@ Complete work in this order:
9
13
  - read the full source requirement document
10
14
  - extract goals, users, flows, states, constraints, open questions, and explicit source facts
11
15
  - identify review-critical rules such as thresholds, counts, ordering, gating, permissions, formulas, and content-type distinctions
16
+ - if the source requirement depends on another Feishu doc/wiki URL that is not already localized, fetch it before continuing
17
+ - verify the source requirement document contains a usable minimum input contract:
18
+ - goal
19
+ - target user
20
+ - entry and trigger
21
+ - at least one core flow
22
+ - critical rules
23
+ - scope boundary
24
+ - if the minimum input contract is materially incomplete, stop early with a truthful downgrade instead of inventing the missing product basis
25
+
26
+ Use:
27
+
28
+ ```bash
29
+ node .agents/skills/feishu-task-inputs/scripts/fetch-feishu-doc.mjs \
30
+ --url <feishu-doc-or-wiki-url> \
31
+ --output-dir <artifactDir>/feishu-reference
32
+ ```
33
+
34
+ After fetching:
35
+ - read `content.md`, `manifest.json`, and `attachments/` from that output directory
36
+ - treat those local files as the fact source
37
+ - do not keep reasoning directly from an unread remote link
38
+ - if the linked content is required and fetch fails, downgrade truthfully instead of guessing
12
39
 
13
40
  2. `Map`
14
41
  - build a requirement map before designing screens or writing HTML
15
- - include:
16
- - product goal
17
- - target user
18
- - bounded scope
19
- - entry point
20
- - core flow
21
- - key states
22
- - critical rules
23
- - explicit non-goals
24
- - open questions
42
+ - include: product goal, target user, bounded scope, entry point, trigger, core flow, key states, critical rules, explicit non-goals, reference materials, open questions
25
43
 
26
44
  3. `Plan Representation`
27
45
  - for each critical rule, choose exactly one:
@@ -39,25 +57,15 @@ Complete work in this order:
39
57
  - produce one reviewable `prototype.html`
40
58
  - make the main path, major states, and key transitions inspectable
41
59
  - keep `prototype.html` focused on product interaction; move scope, exclusion, truth-status, simulation, and open-question commentary into `result.md` unless the source explicitly defines them as in-product UI
60
+ - treat `prototype.html` as a product demo artifact, not a mixed demo-plus-review workspace
61
+ - do not place reviewer consoles, source reference galleries, telemetry panels, sorting/rule explainer tables, or source-gap narration inside the default prototype view
42
62
 
43
63
  6. `Review`
44
64
  - explicitly spawn one reviewer subagent after the first build
45
- - reviewer input must include:
46
- - source requirement document
47
- - source URL when available
48
- - accepted scope
49
- - requirement map
50
- - representation plan
51
- - `prototype.html` when present
52
- - `result.md`
53
- - previous review findings and builder revisions when this is round 2 or 3
54
- - current round number and maximum round count
65
+ - reviewer input must include the source requirement document, source URL when available, accepted scope, requirement map, representation plan, `prototype.html` when present, `result.md`, current round number, and maximum round count
66
+ - include previous reviewer findings and builder revisions in rounds 2 and 3
55
67
  - reviewer must judge against the reviewer rubric defined below
56
- - record one review round log entry containing:
57
- - round number
58
- - reviewer verdict
59
- - key gaps
60
- - recommended revisions or explicit approval
68
+ - record one review round log entry with round number, reviewer verdict, key gaps, and recommended revisions or explicit approval
61
69
  - if reviewer subagent invocation fails, log the failure, skip the reviewer loop for this run, and continue normal artifact finalization; do not hang waiting for the reviewer path to recover
62
70
 
63
71
  7. `Revise`
@@ -68,10 +76,7 @@ Complete work in this order:
68
76
  - another revise-and-review pass is unlikely to improve trustworthiness materially
69
77
  - if the final reviewer verdict still finds material gaps after the maximum rounds, downgrade closure instead of looping further
70
78
  - the builder must read the latest reviewer output before revising
71
- - each new review round must include:
72
- - the previous reviewer findings
73
- - what the builder changed
74
- - what the builder intentionally did not change and why
79
+ - each new review round must include the previous reviewer findings, what changed, and what was intentionally not changed and why
75
80
 
76
81
  8. `Deliver`
77
82
  - generate `result.md`
@@ -80,59 +85,21 @@ Complete work in this order:
80
85
 
81
86
  If execution stops early, explain which step could not be completed and why.
82
87
 
83
- ## Review loop standard
84
- - the reviewer subagent must be explicitly requested; do not assume it will appear automatically
85
- - the reviewer must not rewrite the prototype directly; it judges and recommends
86
- - the builder applies revisions and owns the updated artifacts
87
- - provide the reviewer with facts first, not builder conclusions first
88
- - the reviewer should treat the source requirement and produced artifacts as primary evidence; builder framing is supporting context only
89
- - reviewer findings do not justify unlimited scope growth, denser chrome, or extra speculative screens by default
90
- - each review round should classify every material finding as one of:
88
+ ## Reviewer protocol
89
+ - the reviewer subagent must be explicitly requested; it is a judge, not a builder
90
+ - provide facts first: source requirement, source URL when available, accepted scope, produced artifacts, then builder framing
91
+ - required reviewer inputs: requirement document, source URL when available, accepted scope, requirement map, representation plan, `prototype.html` when present, `result.md`, current round number, maximum rounds, and prior findings/revisions for rounds 2 and 3
92
+ - reviewer findings do not justify unlimited scope growth, denser chrome, or speculative screens by default
93
+ - each review round must classify material findings as:
91
94
  - `Must Fix Before Complete`
92
95
  - `Can Ship As Partial`
93
96
  - `Open Question`
94
- - examples of `Must Fix Before Complete`:
95
- - missing core flow coverage
96
- - important requirement content is omitted, misunderstood, or inconsistent with the source document
97
- - missing or materially wrong key rule representation
98
- - deeper business or interaction logic is only described textually and not demonstrated clearly enough through the prototype
99
- - explicit source fact drift that changes review interpretation
100
- - simulated behavior presented as if it were faithful interaction
101
- - the artifact set is too weak to guide downstream AI coding without major guessing about rules, state behavior, or implementation intent
102
- - UI quality is materially below design-review expectations, especially when the requirement document already contains screenshots, diagrams, or strong structural visual cues that were not meaningfully used
103
- - examples of `Can Ship As Partial`:
104
- - useful prototype exists, but some non-core states remain merged or downgraded
105
- - some important but secondary rules remain simulated or unresolved in direct interaction
106
- - the core design direction is usable, but parts of the visual system or interaction polish still fall below designer-grade expectations
107
- - examples of `Open Question`:
108
- - requirement ambiguity prevents stronger representation without invention
109
-
110
- ## Reviewer input contract
111
- Each reviewer round should receive these inputs in this priority order:
112
-
113
- 1. `Source facts`
114
- - requirement document
115
- - source URL when available
116
- - explicit accepted scope
117
-
118
- 2. `Produced artifacts`
119
- - `prototype.html` when present
120
- - `result.md`
121
-
122
- 3. `Builder framing`
123
- - requirement map
124
- - representation plan
125
- - declared deviations, simulations, and unresolved points
126
-
127
- 4. `Round context`
128
- - current round number
129
- - maximum rounds: `3`
130
- - previous reviewer findings and builder revisions for rounds 2 and 3
131
-
132
- ## Reviewer output contract
133
- Each reviewer round must produce a compact review record that the builder can consume directly.
134
-
135
- Minimum fields:
97
+ - `Must Fix Before Complete` covers missing or wrong core flow/rule coverage, source inconsistency, weak logic demonstration, misleading simulation, artifact weakness that blocks downstream AI coding, or materially subpar UI fidelity against available source cues
98
+ - `Can Ship As Partial` covers useful but incomplete review artifacts: merged non-core states, simulated secondary rules, or design quality gaps that do not destroy core reviewability
99
+ - `Open Question` covers requirement ambiguity that cannot be resolved without invention
100
+
101
+ ## Reviewer record
102
+ Each review round must produce a compact record with:
136
103
  - `Round`
137
104
  - `Reviewer Verdict`
138
105
  - `Coverage Assessment`
@@ -151,61 +118,50 @@ Allowed `Reviewer Verdict` values:
151
118
  - `Can Ship As Partial`
152
119
  - `Approved for Prototype Complete`
153
120
 
154
- ## Builder handoff contract
155
- After each review round, the builder must:
156
- - read the full reviewer output
157
- - revise the prototype and companion artifacts when `Must Fix Before Complete` findings exist
158
- - preserve unresolved but non-blocking findings inside `result.md` when closure remains partial
159
- - run a full core-panel self-check before requesting the next review, not only a point fix for the previous `Must Fix`
160
- - prefer downgrade over another revise round when the next change would require speculative product invention, materially larger scope, or a noisier prototype that reduces reviewability
161
- - write a concise round handoff into `review-log.md` containing:
162
- - what was changed
163
- - what was intentionally left unchanged
164
- - why the next review should or should not still expect a gap
165
-
166
- ## Reviewer rubric
167
- The reviewer must evaluate the prototype against these principles in order:
121
+ ## Review judgment order
122
+ The reviewer must judge in this order:
168
123
 
169
124
  1. `Requirement completeness and correctness`
170
- - the interactive prototype must reflect the requirement document fully enough for the accepted scope
171
- - important requirement content must not be missing, misunderstood, or inconsistent
125
+ - accepted-scope content must be present, correctly understood, and consistent with the source
172
126
 
173
127
  2. `Logic demonstrability`
174
- - deeper logic chains, dependencies, and cause-effect behavior must be demonstrated clearly
175
- - the prototype must not stop at first-layer description when the requirement meaning depends on richer interaction logic
128
+ - deeper dependencies and cause-effect behavior must be demonstrated, not left at first-layer description
176
129
 
177
130
  3. `Representation correctness`
178
- - interaction, simulation, and omission must each be used deliberately and truthfully
179
- - if a rule cannot be demonstrated faithfully in interaction, disclose the gap clearly in `result.md`
180
- - avoid reviewer-driven overbuilding: do not add extra flows, fake data breadth, or decorative complexity unless they directly improve requirement understanding
131
+ - interaction, simulation, and omission must be deliberate and truthful
132
+ - if a rule cannot be shown faithfully, declare the gap in `result.md`
133
+ - avoid reviewer-driven overbuilding that adds decorative or speculative complexity without improving requirement understanding
181
134
 
182
135
  4. `Implementation readiness for AI coding`
183
- - the artifact set must give downstream AI coding enough rule context and implementation guardrails to avoid major guessing
184
- - `result.md` must supplement the prototype where direct interaction is insufficient
185
-
186
- 5. `UI design quality and visual fidelity`
187
- - the prototype should reach designer-grade quality for its intended fidelity level
188
- - visual style, layout cues, screenshots, diagrams, and structural hints from the requirement document should be used as first-priority guidance when present
189
- - avoid generic or template-looking UI when the source document provides stronger visual direction
190
- - every core panel must remain visibly populated and reviewable after each revision; do not accept a panel that retains only a title, labels, or empty chrome while its intended information carrier disappears
191
- - default prototype surface should read as product UI, not as a delivery brief or review console
192
- - for `Represented Interactively` modules, visible content must remain materially present:
193
- - charts must still show visible bars, lines, points, or equivalent graphical carriers rather than only captions or axes
194
- - product-facing explanatory content that is actually part of the requirement UI must retain enough information density to communicate its meaning, not collapse into thin placeholder copy
195
- - if a revision fixes one issue but causes another panel to become visually blank, materially thinner, or harder to interpret, treat it as a new blocking regression
196
-
197
- 6. `Artifact consistency`
136
+ - the artifact set must give downstream AI coding enough rule context and guardrails to avoid major guessing
137
+ - `result.md` must supplement the prototype where interaction alone is insufficient
138
+
139
+ 5. `UI fidelity and panel visibility`
140
+ - use screenshots, diagrams, layout cues, and structural hints from the source as first-priority guidance when present
141
+ - when source screenshots or embedded UI images are present, a `Prototype Complete` judgment requires that the builder actually accessed them as local evidence or another equally direct visual source; alt text alone is not enough for complete-grade fidelity
142
+ - the prototype should read as product UI, not a delivery brief or review console
143
+ - the prototype should read as a user-facing demo, not as a reviewer cockpit, debug bench, or requirement explainer
144
+ - every core panel must stay visibly populated and reviewable after each revision
145
+ - for `Represented Interactively` modules, intended visual carriers must remain materially visible
146
+ - charts still need visible bars, lines, points, or equivalent graphical carriers
147
+ - product-facing explanatory regions defined by the source UI must not collapse into thin placeholder copy
148
+ - if one fix makes another panel visually blank, materially thinner, or harder to interpret, treat that as a new blocking regression
149
+
150
+ 6. `Artifact consistency and regression control`
198
151
  - `prototype.html` and `result.md` must agree on key rules, limitations, and truth status
152
+ - later rounds must re-check the whole accepted surface, not only the previous `Must Fix` list
153
+ - explicitly check for newly blank panels, invisible graph content, materially weakened product-facing explanatory regions, and regressions where a previously acceptable panel becomes weaker after a later fix
154
+ - record material regressions under `New Regression Since Previous Round`
155
+ - prefer `Prototype Partial` over further churn when the next revision would mainly add complexity, speculative branches, or visual clutter without improving requirement truth
199
156
 
200
- 7. `Regression control after revision`
201
- - every later review round must re-check the whole accepted prototype surface, not only the previous `Must Fix` list
202
- - the reviewer must explicitly check for:
203
- - newly blank or near-blank core panels
204
- - graph containers whose DOM exists but whose intended visual content is no longer meaningfully visible
205
- - product-facing explanatory regions required by the source UI whose copy became materially thinner or lost review-critical meaning
206
- - regressions where a previously acceptable panel becomes weaker after a later fix
207
- - if such regressions appear, record them under `New Regression Since Previous Round` and classify them as `Must Fix Before Complete` when they reduce reviewability materially
208
- - if a proposed follow-up revision would mainly add complexity, speculative branches, or visual clutter without improving requirement truth, prefer `Prototype Partial` over further churn
157
+ ## Builder response to review
158
+ After each review round, the builder must:
159
+ - read the full reviewer output
160
+ - revise the prototype and companion artifacts when `Must Fix Before Complete` findings exist
161
+ - preserve unresolved but non-blocking findings in `result.md` when closure remains partial
162
+ - run a full core-panel self-check before requesting the next review, not only a point fix for the previous `Must Fix`
163
+ - prefer downgrade over another revise round when the next change would require speculative invention, materially larger scope, or a noisier prototype that reduces reviewability
164
+ - write a concise handoff into `review-log.md` containing what changed, what stayed unchanged, and why the next review should or should not still expect a gap
209
165
 
210
166
  ## Closure policy
211
167
  - decide closure only after the final review round
@@ -216,6 +172,7 @@ The reviewer must evaluate the prototype against these principles in order:
216
172
  - deeper logic chains are demonstrated clearly enough for review
217
173
  - the artifact set can guide downstream AI coding without major rule ambiguity
218
174
  - UI quality is credible for design review and meaningfully uses source visual guidance when present
175
+ - if source screenshots or embedded UI images exist, they were actually consumed as evidence during the build, or an equally direct visual source was available
219
176
  - `Prototype Partial` requires:
220
177
  - a meaningful prototype exists
221
178
  - reviewer found remaining material gaps, but the output is still useful for review
@@ -231,6 +188,7 @@ The reviewer must evaluate the prototype against these principles in order:
231
188
  ## Prototype standard
232
189
  - `prototype.html` is the main review artifact
233
190
  - `prototype.html` is not the place for delivery portal content or truth-status summaries
191
+ - `prototype.html` is not the place for reviewer tooling, source citation strips, telemetry logs, ranking tables, or "the source did not specify ..." commentary
234
192
  - the prototype must make the main user flow inspectable
235
193
  - prefer depth on the core path over shallow breadth
236
194
  - support meaningful review actions such as navigation, state changes, or key transitions
@@ -290,6 +248,7 @@ Keep `result.md` dense, implementation-oriented, and in Chinese unless the task
290
248
  - rules or branches not fully captured by direct interaction
291
249
  - simulations, merges, or approximations that must not be mistaken as final behavior
292
250
  - open points that materially affect implementation understanding
251
+ - inaccessible or failed-to-download source screenshots / embedded UI images that reduced fidelity confidence
293
252
 
294
253
  3. `闭环判定`
295
254
  - final closure level: `Prototype Complete` / `Prototype Partial` / `Analysis Only`
@@ -4,6 +4,10 @@
4
4
  "taskType": "bugfix",
5
5
  "dir": "bugfix"
6
6
  },
7
+ {
8
+ "taskType": "coder",
9
+ "dir": "coder"
10
+ },
7
11
  {
8
12
  "taskType": "pm",
9
13
  "dir": "pm"