@sireai/optimus 0.1.40 → 0.1.42

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 (59) hide show
  1. package/dist/cli/optimus.js +405 -56
  2. package/dist/cli/optimus.js.map +1 -1
  3. package/dist/config/load-config.js +8 -1
  4. package/dist/config/load-config.js.map +1 -1
  5. package/dist/integrations/jira/jira-access-manager.d.ts +1 -0
  6. package/dist/integrations/jira/jira-access-manager.js +24 -0
  7. package/dist/integrations/jira/jira-access-manager.js.map +1 -1
  8. package/dist/integrations/jira/jira-cli.js +19 -3
  9. package/dist/integrations/jira/jira-cli.js.map +1 -1
  10. package/dist/integrations/jira/jira-submit.js +5 -18
  11. package/dist/integrations/jira/jira-submit.js.map +1 -1
  12. package/dist/integrations/sentry/sentry-cli.js +18 -2
  13. package/dist/integrations/sentry/sentry-cli.js.map +1 -1
  14. package/dist/problem-solving-core/codex/codex-runner.d.ts +2 -0
  15. package/dist/problem-solving-core/codex/codex-runner.js +46 -36
  16. package/dist/problem-solving-core/codex/codex-runner.js.map +1 -1
  17. package/dist/task-environment/delivery/feishu-analysis-doc-service.d.ts +2 -1
  18. package/dist/task-environment/delivery/feishu-analysis-doc-service.js +19 -1
  19. package/dist/task-environment/delivery/feishu-analysis-doc-service.js.map +1 -1
  20. package/dist/task-environment/delivery/feishu-card-renderer.js +4 -2
  21. package/dist/task-environment/delivery/feishu-card-renderer.js.map +1 -1
  22. package/dist/task-environment/delivery/feishu-notifier.d.ts +5 -0
  23. package/dist/task-environment/delivery/feishu-notifier.js +103 -38
  24. package/dist/task-environment/delivery/feishu-notifier.js.map +1 -1
  25. package/dist/task-environment/delivery/feishu-templates/analysis-message-template.js +3 -0
  26. package/dist/task-environment/delivery/feishu-templates/analysis-message-template.js.map +1 -1
  27. package/dist/task-environment/delivery/task-delivery-service.js +6 -2
  28. package/dist/task-environment/delivery/task-delivery-service.js.map +1 -1
  29. package/dist/task-environment/delivery/task-publication-service.d.ts +1 -0
  30. package/dist/task-environment/delivery/task-publication-service.js +22 -0
  31. package/dist/task-environment/delivery/task-publication-service.js.map +1 -1
  32. package/dist/task-environment/intake/manual-problem-intake.js +54 -0
  33. package/dist/task-environment/intake/manual-problem-intake.js.map +1 -1
  34. package/dist/task-environment/orchestration/execution-context-assembler.d.ts +1 -0
  35. package/dist/task-environment/orchestration/execution-context-assembler.js +58 -3
  36. package/dist/task-environment/orchestration/execution-context-assembler.js.map +1 -1
  37. package/dist/task-environment/orchestration/task-orchestrator.d.ts +1 -0
  38. package/dist/task-environment/orchestration/task-orchestrator.js +41 -5
  39. package/dist/task-environment/orchestration/task-orchestrator.js.map +1 -1
  40. package/dist/task-environment/orchestration/task-package-inputs.d.ts +2 -0
  41. package/dist/task-environment/orchestration/task-package-inputs.js +83 -0
  42. package/dist/task-environment/orchestration/task-package-inputs.js.map +1 -0
  43. package/dist/task-environment/orchestration/task-runtime-policy.d.ts +4 -0
  44. package/dist/task-environment/orchestration/task-runtime-policy.js +38 -0
  45. package/dist/task-environment/orchestration/task-runtime-policy.js.map +1 -0
  46. package/dist/task-environment/result-paths.d.ts +9 -0
  47. package/dist/task-environment/result-paths.js +36 -0
  48. package/dist/task-environment/result-paths.js.map +1 -0
  49. package/dist/types.d.ts +43 -1
  50. package/package.json +1 -1
  51. package/task-harnesses/pm/ACCEPT.md +96 -0
  52. package/task-harnesses/pm/ANNOTATION_PATTERN.md +58 -0
  53. package/task-harnesses/pm/CONSTRAINTS.md +56 -0
  54. package/task-harnesses/pm/CONTEXT.md +55 -0
  55. package/task-harnesses/pm/EVOLUTION.md +43 -0
  56. package/task-harnesses/pm/ROLE.md +46 -0
  57. package/task-harnesses/pm/STANDARD.md +186 -0
  58. package/task-harnesses/pm/manifest.json +13 -0
  59. package/task-harnesses/registry.json +4 -0
@@ -0,0 +1,186 @@
1
+ # STANDARD
2
+
3
+ Defines the mandatory execution sequence, result contract, and closure standard.
4
+
5
+ ## Execution sequence
6
+ Complete work in this order:
7
+
8
+ 1. `Read`
9
+ - read the full source requirement document
10
+ - extract explicit goals, users, flows, states, constraints, and missing information
11
+ - identify review-critical rules such as thresholds, counts, ordering, gating, frequency limits, role boundaries, and content-type distinctions
12
+
13
+ 2. `Map`
14
+ - build a requirement map before designing screens or writing HTML
15
+ - include at minimum:
16
+ - product goal
17
+ - target user
18
+ - entry point
19
+ - core flow
20
+ - key states
21
+ - requirement-critical rules
22
+ - explicit non-goals
23
+ - open questions
24
+
25
+ 3. `Plan Representation`
26
+ - for each requirement-critical rule, choose exactly one:
27
+ - `Represented Interactively`
28
+ - `Represented via Annotation`
29
+ - `Downgraded / Simulated`
30
+ - `Not Represented`
31
+ - prefer interaction for core user behavior and decision-critical meaning
32
+ - use annotation when meaning is review-critical but not faithfully expressible through lightweight interaction
33
+ - use downgrade/simulation only when it still supports useful review
34
+ - choose `Represented Interactively` only when the prototype will contain clear behavioral evidence of that rule
35
+ - if the rule is mainly conveyed by explanation, scenario toggles, or approximation rather than direct behavior, classify it as `Represented via Annotation` or `Downgraded / Simulated`
36
+
37
+ 4. `Frame`
38
+ - define the minimum prototype scope that makes the core flow reviewable
39
+ - decide covered screens, transitions, states, and review-mode needs
40
+ - reduce breadth before inventing detail
41
+ - record only the minimum assumptions needed for continuity
42
+
43
+ 5. `Build`
44
+ - produce one reviewable interactive HTML prototype package
45
+ - convert requirement meaning into UI structure, interaction, and visible states
46
+ - add review mode when rule meaning cannot be carried clearly by interaction alone
47
+ - use annotation content to mark `Confirmed`, `Simulated`, and `Open Question` where helpful
48
+
49
+ 6. `Deliver`
50
+ - generate `result.md`
51
+ - declare outputs precisely
52
+ - surface assumptions, open questions, uncovered areas, and representation choices explicitly
53
+
54
+ If execution stops early, explain which step could not be completed and why.
55
+
56
+ ## Prototype standard
57
+ - the primary artifact is an interactive `prototype.html`
58
+ - the prototype must make the main user flow inspectable
59
+ - the prototype should support meaningful review actions such as navigation, state changes, or key transitions
60
+ - prioritize depth on the core path over shallow breadth
61
+ - when major requirement meaning cannot be expressed clearly by interaction alone, include review annotations
62
+ - review annotations should be anchored to concrete UI targets, states, or transitions whenever possible
63
+ - the prototype must remain understandable when annotations are hidden or minimized
64
+
65
+ ## Result contract
66
+ - return exactly one runtime JSON object
67
+ - normal completion and analysis-only closure both return `completed`
68
+ - return `failed` only for true runtime exceptions
69
+ - `resultPath` must point to exactly one `result.md` under `artifactDir`
70
+ - do not output prose outside the runtime JSON object
71
+
72
+ ### Example
73
+ ```json
74
+ {
75
+ "status": "completed",
76
+ "resultPath": "<artifactDir>/result.md"
77
+ }
78
+ ```
79
+
80
+ ## Result artifacts
81
+ - always generate `result.md` on normal completion
82
+ - generate `prototype.html` for `Prototype Complete` and `Prototype Partial`
83
+ - use repository-independent artifact paths
84
+ - `result.md` is the only framework-required result artifact
85
+ - any task-private files must be declared inside `result.md`
86
+
87
+ ## Result content
88
+ At minimum, `result.md` must include:
89
+
90
+ ### Delivery Summary
91
+ - `Closure`
92
+ - `Document Basis`
93
+ - `Prototype Scope`
94
+ - `Core Flow`
95
+ - `Platform`
96
+ - `Coverage`
97
+ - `Uncovered Areas`
98
+ - `Assumptions`
99
+ - `Open Questions`
100
+ - `Next Action`
101
+
102
+ ### Outputs
103
+ - `Main Review Artifact`
104
+ - `Additional Files`
105
+ - `Output Notes`
106
+
107
+ ### Requirement Mapping
108
+ - `Requirement-Critical Rules`
109
+ - `Represented Interactively`
110
+ - `Represented via Annotation`
111
+ - `Downgraded / Simulated`
112
+ - `Not Represented`
113
+ - `Representation Notes`
114
+
115
+ ### Detail
116
+ - `Product Goal`
117
+ - `Target User`
118
+ - `Requirement Summary`
119
+ - `Covered Screens / Sections`
120
+ - `Key Interactions`
121
+ - `States Included`
122
+ - `Confirmed Requirements Used`
123
+ - `Inferred Structure`
124
+ - `Interaction Fidelity Notes`
125
+ - `Review Annotation Notes`
126
+ - `Assumptions`
127
+ - `Open Questions`
128
+ - `Recommended Next Step`
129
+
130
+ ## Result rules
131
+ - separate confirmed requirement content from inferred structure
132
+ - prefer explicit gaps over fake completeness
133
+ - if annotation-assisted explanation is used, state what was annotated and why interaction was insufficient
134
+ - do not claim a requirement was fully represented when it was only approximated or annotated
135
+ - ensure representation fields reflect the actual prototype, not the intended prototype
136
+ - if a key rule was merged or flattened for simplicity, record that downgrade explicitly
137
+ - `Represented Interactively` requires clear behavioral evidence in the prototype itself, not only surrounding explanation
138
+ - if a rule depends mainly on annotation, scenario controls, review notes, or narrative explanation, do not classify it as fully interactive
139
+
140
+ ## Closure standard
141
+ - `Prototype Complete`: accepted scope, core path, major states, and key rules are reviewable through faithful interaction or clear anchored annotation
142
+ - `Prototype Partial`: a meaningful prototype exists, but important parts remain uncovered, over-merged, or materially downgraded
143
+ - `Analysis Only`: no trustworthy interactive prototype was produced; explain blockers and minimum missing input
144
+
145
+ ## Result template
146
+ ```md
147
+ # Delivery Summary
148
+ - Closure: Prototype Complete
149
+ - Document Basis: source requirement document provided with the task
150
+ - Prototype Scope: First-run onboarding only
151
+ - Core Flow: Open invite -> fill profile -> complete setup
152
+ - Platform: responsive
153
+ - Coverage: invite landing, profile form, completion state
154
+ - Uncovered Areas: admin approval flow, edge-case recovery paths
155
+ - Assumptions: invite is valid for one user session
156
+ - Open Questions: SSO is optional or required?
157
+ - Next Action: review flow coverage and copy gaps
158
+
159
+ # Outputs
160
+ - Main Review Artifact: `prototype.html`
161
+ - Additional Files: none
162
+ - Output Notes: private outputs live under `artifactDir`
163
+
164
+ # Requirement Mapping
165
+ - Requirement-Critical Rules: invite entry, profile setup, completion confirmation
166
+ - Represented Interactively: invite landing, profile form, submit, validation, success transition
167
+ - Represented via Annotation: backend invite validation timing and account-provisioning dependency
168
+ - Downgraded / Simulated: loading and approval check are simulated only
169
+ - Not Represented: admin exception handling path
170
+ - Representation Notes: approval timing is review-critical but backend-owned, so it is explained through anchored annotation instead of fake workflow logic
171
+
172
+ # Detail
173
+ - Product Goal: Reduce first-day confusion
174
+ - Target User: New employee
175
+ - Requirement Summary: Requirement input asks for a reviewable onboarding prototype
176
+ - Covered Screens / Sections: invite landing, profile setup, confirmation
177
+ - Key Interactions: start onboarding, form validation, submit, success transition
178
+ - States Included: empty, validation error, loading, success
179
+ - Confirmed Requirements Used: invite entry, profile setup, completion confirmation
180
+ - Inferred Structure: lightweight validation and loading states to preserve flow continuity
181
+ - Interaction Fidelity Notes: validation and submit flow are interactive; backend approval timing is annotation-assisted
182
+ - Review Annotation Notes: approval dependency is attached to submit and success states in review mode
183
+ - Assumptions: backend behavior is simulated only
184
+ - Open Questions: whether manager approval is required before activation
185
+ - Recommended Next Step: confirm approval rule and add branch state if needed
186
+ ```
@@ -0,0 +1,13 @@
1
+ {
2
+ "id": "pm",
3
+ "triageRules": [
4
+ "ACCEPT.md"
5
+ ],
6
+ "executionRules": [
7
+ "ROLE.md",
8
+ "CONSTRAINTS.md",
9
+ "CONTEXT.md",
10
+ "STANDARD.md",
11
+ "EVOLUTION.md"
12
+ ]
13
+ }
@@ -3,6 +3,10 @@
3
3
  {
4
4
  "taskType": "bugfix",
5
5
  "dir": "bugfix"
6
+ },
7
+ {
8
+ "taskType": "pm",
9
+ "dir": "pm"
6
10
  }
7
11
  ]
8
12
  }