@sireai/optimus 0.1.1 → 0.1.3

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 (30) hide show
  1. package/dist/cli/optimus.js +511 -72
  2. package/dist/cli/optimus.js.map +1 -1
  3. package/dist/cli/self-update.d.ts +8 -1
  4. package/dist/cli/self-update.js +34 -3
  5. package/dist/cli/self-update.js.map +1 -1
  6. package/dist/config/load-config.js +8 -5
  7. package/dist/config/load-config.js.map +1 -1
  8. package/dist/integrations/jira/jira-cli-config.d.ts +15 -0
  9. package/dist/integrations/jira/jira-cli-config.js +100 -0
  10. package/dist/integrations/jira/jira-cli-config.js.map +1 -0
  11. package/dist/integrations/jira/jira-cli.js +193 -0
  12. package/dist/integrations/jira/jira-cli.js.map +1 -1
  13. package/dist/integrations/jira/jira-client.d.ts +16 -3
  14. package/dist/integrations/jira/jira-client.js +71 -14
  15. package/dist/integrations/jira/jira-client.js.map +1 -1
  16. package/dist/integrations/jira/jira-submit.js +2 -0
  17. package/dist/integrations/jira/jira-submit.js.map +1 -1
  18. package/dist/task-environment/intake/manual-problem-intake.js +3 -0
  19. package/dist/task-environment/intake/manual-problem-intake.js.map +1 -1
  20. package/dist/task-environment/intake/triage-rejection-feedback-service.d.ts +21 -0
  21. package/dist/task-environment/intake/triage-rejection-feedback-service.js +150 -0
  22. package/dist/task-environment/intake/triage-rejection-feedback-service.js.map +1 -0
  23. package/dist/task-environment/orchestration/triage-runner.js +4 -2
  24. package/dist/task-environment/orchestration/triage-runner.js.map +1 -1
  25. package/dist/task-environment/runtime/optimus-runtime.d.ts +3 -0
  26. package/dist/task-environment/runtime/optimus-runtime.js +5 -0
  27. package/dist/task-environment/runtime/optimus-runtime.js.map +1 -1
  28. package/dist/types.d.ts +1 -1
  29. package/package.json +5 -3
  30. package/task-harnesses/bugfix/ACCEPT.md +57 -21
@@ -1,30 +1,54 @@
1
1
  # ACCEPT
2
2
 
3
3
  ## Decision target
4
- Route real software defect tasks into the `bugfix` harness. The runner, not triage, decides whether final closure is fix or analysis.
4
+ Route real software defect tasks into the `bugfix` harness.
5
+ Triage must decide:
6
+ 1. task type fit
7
+ 2. execution admission
8
+ The runner, not triage, decides whether final closure is fix or analysis.
5
9
 
6
- ## Accept when
7
- Accept when all are true:
8
- - the input describes a real issue to handle, not open-ended discussion
9
- - the issue relates to code, configuration, build logic, runtime behavior, testing flow, or system behavior
10
- - the input contains at least an identifiable symptom, failure result, or abnormal behavior
11
- - the target repository can be identified; if `repo` is missing, default selection is allowed only when exactly one repository is registered
10
+ ## Task type fit
11
+ Classify as `bugfix` only when all are true:
12
+ - real issue to handle, not open-ended discussion
13
+ - tied to code, configuration, build logic, runtime behavior, test flow, or system behavior
14
+ - concrete defect object exists: crash, error, regression, broken flow, wrong result, or abnormal behavior
12
15
 
13
- ## Still acceptable with incomplete information
14
- The task may still be accepted when:
16
+ Do not classify as `bugfix` when any are true:
17
+ - product advice, design discussion, architecture debate, or technology comparison
18
+ - pure consultation, Q&A, or open-ended brainstorming
19
+ - no concrete defect object
20
+ - no engineering repository or system-behavior relation
21
+
22
+ ## Execution admission
23
+ Accept into execution only when all are true:
24
+ - target repository is resolvable; if `repo` is missing, default selection is allowed only when exactly one repository is registered
25
+ - at least one concrete defect anchor is present
26
+ - the anchor is specific enough to locate one of:
27
+ - failing scenario or trigger path
28
+ - observable evidence text
29
+ - named page, feature, module, or flow
30
+
31
+ ## Still acceptable with partial information
32
+ Still acceptable when:
15
33
  - root cause is unknown
16
- - full reproduction steps are missing
17
- - logs, stack traces, screenshots, or ready-made tests are missing
18
- - but the problem is still clear enough to judge that it is a real software defect rather than generic consultation
19
-
20
- ## Reject when
21
- Reject when any are true:
22
- - the request is product advice, design discussion, or technology comparison
23
- - the request is pure consultation, Q&A, or open-ended brainstorming
24
- - there is no concrete defect object to handle
25
- - no relation to code, system behavior, or an engineering repository can be established
26
- - the target repository cannot be determined and multiple candidate repositories exist
27
- - the content is so vague that even the basic symptom cannot be identified
34
+ - reproduction is incomplete
35
+ - logs, stack traces, screenshots, or tests are missing
36
+ - but the affected flow is still concrete enough to investigate safely
37
+ - and at least one anchor exists, such as:
38
+ - named page or feature plus failing action
39
+ - visible symptom tied to a specific flow
40
+ - error message, exception text, or crash evidence
41
+
42
+ ## Reject for insufficient execution context
43
+ Reject even if the task fits `bugfix` when any are true:
44
+ - target repository cannot be determined and multiple candidates exist
45
+ - content is so vague that even the basic symptom cannot be identified
46
+ - input only says wrong / abnormal / failed / not working, with no concrete symptom, actual behavior, failure output, or affected flow
47
+ - crash / error / failure is claimed, but there is neither:
48
+ - a concrete scenario or trigger path
49
+ - nor observable evidence text such as logs, stack trace, error text, or crash record
50
+ - only a generic action is named, such as click / enter / open / use, but no page, feature, control, or path is identified
51
+ - only a broad result is given, such as "app crashes" or "application is abnormal", without enough context to locate the failing flow
28
52
 
29
53
  ## Missing information to mention first when rejecting
30
54
  - `repo`
@@ -36,6 +60,16 @@ Reject when any are true:
36
60
  - `expected_behavior`
37
61
  - `actual_behavior`
38
62
 
63
+ ## Missing information mapping guidance
64
+ - use `repo` when the target repository is required but cannot be resolved safely
65
+ - use `description_or_content` when the request does not describe a concrete bug object or affected flow
66
+ - use `actual_behavior` when the observed failure, symptom, or abnormal behavior is not stated clearly
67
+ - use `expected_behavior` when the expected result is needed to understand the defect gap
68
+ - use `reproduction_steps` when no concrete trigger path, scenario, page, feature, or action chain is described
69
+ - use `logs` when the task explicitly depends on error output but no error text is provided
70
+ - use `stack_trace` when the task claims a crash or exception and stack evidence is the missing blocker
71
+ - prefer the smallest set of fields that explains exactly why triage cannot safely accept the task
72
+
39
73
  ## Event scope
40
74
  - `bug.discovered`
41
75
  - `problem.discovered`
@@ -44,4 +78,6 @@ Reject when any are true:
44
78
  ## Triage guidance
45
79
  - Supporting words such as crash, error, fail, exception, regression, not working, frozen, or abnormal are hints only; they must not replace semantic judgment.
46
80
  - Judge the whole task meaning, not keywords.
81
+ - Separate `task type fit` from `execution admission`.
82
+ - A task may clearly be a `bugfix` in type but still be rejected because execution context is insufficient.
47
83
  - Triage only decides whether the task enters the `bugfix` pipeline.