scrumrun 1.5.2 → 2.0.0

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/CHANGELOG.md +42 -0
  2. package/CORE.md +224 -311
  3. package/DECISIONS.md +95 -11
  4. package/LICENSE +21 -0
  5. package/MIGRATION-1-to-2.md +109 -0
  6. package/README.md +137 -78
  7. package/SPEC.md +248 -257
  8. package/bin/claude-install.js +18 -132
  9. package/bin/scrumrun.js +1259 -174
  10. package/docs/COMMANDS.md +69 -0
  11. package/docs/ENTITY-MODEL.md +38 -0
  12. package/docs/RELEASE.md +44 -0
  13. package/docs/SCHEMA.md +80 -0
  14. package/docs/SEMANTIC-MEMORY.md +68 -0
  15. package/docs/TROUBLESHOOTING.md +66 -0
  16. package/lib/code-intel/adapter.js +20 -0
  17. package/lib/code-intel/javascript.js +199 -0
  18. package/lib/code-intel/learning.js +66 -0
  19. package/lib/code-intel/scanner.js +126 -0
  20. package/lib/commands/manifest.js +109 -0
  21. package/lib/commands/render.js +75 -0
  22. package/lib/memory/index.js +600 -0
  23. package/lib/memory/markdown.js +51 -0
  24. package/lib/memory/service.js +300 -0
  25. package/lib/runtime/budgets.js +19 -0
  26. package/lib/runtime/context.js +141 -0
  27. package/lib/runtime/orchestrator.js +270 -0
  28. package/lib/runtime/request-engine.js +128 -0
  29. package/lib/security/secrets.js +23 -0
  30. package/lib/v2/artifacts.js +343 -0
  31. package/lib/v2/conformance.js +167 -0
  32. package/lib/v2/migration.js +1161 -0
  33. package/lib/v2/project-store.js +44 -0
  34. package/lib/v2/schema.js +128 -0
  35. package/package.json +16 -6
  36. package/scripts/generate-contract-docs.js +113 -0
  37. package/templates/project/.scrumrun/config.md +4 -7
  38. package/templates/project/.scrumrun/guardrails.md +23 -0
  39. package/templates/project/.scrumrun/map.md +4 -16
  40. package/templates/project/.scrumrun/memory/decisions/.gitkeep +1 -0
  41. package/templates/project/.scrumrun/memory/dossiers/.gitkeep +1 -0
  42. package/templates/project/.scrumrun/memory/insights/.gitkeep +1 -0
  43. package/templates/project/.scrumrun/memory/knowledge/.gitkeep +1 -0
  44. package/templates/project/.scrumrun/method.json +4 -0
  45. package/templates/project/.scrumrun/project.md +6 -12
  46. package/templates/project/.scrumrun/runs/.gitkeep +1 -0
  47. package/templates/project/.scrumrun/sprints/.gitkeep +1 -0
  48. package/templates/project/.scrumrun/state.md +21 -0
  49. package/templates/project/.scrumrun/tasks/.gitkeep +1 -0
  50. package/templates/project/AGENTS.md +16 -49
  51. package/templates/project-lean/AGENTS.md +18 -0
  52. package/templates/shared/skills/scrumrun/SKILL.md +201 -0
  53. package/templates/codex/prompts/sc-agent.md +0 -14
  54. package/templates/codex/prompts/sc-backlog.md +0 -13
  55. package/templates/codex/prompts/sc-challenge.md +0 -57
  56. package/templates/codex/prompts/sc-config.md +0 -18
  57. package/templates/codex/prompts/sc-context.md +0 -24
  58. package/templates/codex/prompts/sc-decisions.md +0 -8
  59. package/templates/codex/prompts/sc-feature.md +0 -16
  60. package/templates/codex/prompts/sc-fix.md +0 -21
  61. package/templates/codex/prompts/sc-goal.md +0 -14
  62. package/templates/codex/prompts/sc-golden.md +0 -14
  63. package/templates/codex/prompts/sc-help.md +0 -12
  64. package/templates/codex/prompts/sc-init.md +0 -14
  65. package/templates/codex/prompts/sc-intake.md +0 -22
  66. package/templates/codex/prompts/sc-know.md +0 -75
  67. package/templates/codex/prompts/sc-map.md +0 -13
  68. package/templates/codex/prompts/sc-review.md +0 -13
  69. package/templates/codex/prompts/sc-sprint.md +0 -28
  70. package/templates/codex/prompts/sc-study.md +0 -23
  71. package/templates/codex/prompts/sc-uninstall.md +0 -14
  72. package/templates/codex/prompts/sc-update.md +0 -8
  73. package/templates/codex/prompts/sc-vault.md +0 -27
  74. package/templates/codex/skills/scrumrun/SKILL.md +0 -412
  75. package/templates/opencode/commands/sc-agent.md +0 -14
  76. package/templates/opencode/commands/sc-backlog.md +0 -13
  77. package/templates/opencode/commands/sc-challenge.md +0 -57
  78. package/templates/opencode/commands/sc-config.md +0 -18
  79. package/templates/opencode/commands/sc-context.md +0 -24
  80. package/templates/opencode/commands/sc-decisions.md +0 -8
  81. package/templates/opencode/commands/sc-feature.md +0 -16
  82. package/templates/opencode/commands/sc-fix.md +0 -21
  83. package/templates/opencode/commands/sc-goal.md +0 -14
  84. package/templates/opencode/commands/sc-golden.md +0 -14
  85. package/templates/opencode/commands/sc-help.md +0 -12
  86. package/templates/opencode/commands/sc-init.md +0 -14
  87. package/templates/opencode/commands/sc-intake.md +0 -22
  88. package/templates/opencode/commands/sc-know.md +0 -75
  89. package/templates/opencode/commands/sc-map.md +0 -13
  90. package/templates/opencode/commands/sc-review.md +0 -13
  91. package/templates/opencode/commands/sc-sprint.md +0 -28
  92. package/templates/opencode/commands/sc-study.md +0 -23
  93. package/templates/opencode/commands/sc-uninstall.md +0 -14
  94. package/templates/opencode/commands/sc-update.md +0 -8
  95. package/templates/opencode/commands/sc-vault.md +0 -27
  96. package/templates/opencode/skills/scrumrun/SKILL.md +0 -412
  97. package/templates/project/.scrumrun/agents.md +0 -36
  98. package/templates/project/.scrumrun/backlog.md +0 -7
  99. package/templates/project/.scrumrun/context.md +0 -61
  100. package/templates/project/.scrumrun/goals/main/decisions.md +0 -9
  101. package/templates/project/.scrumrun/goals/main/history.md +0 -51
  102. package/templates/project/.scrumrun/goals/main/sprint.md +0 -54
  103. package/templates/project/.scrumrun/golden-rules.md +0 -9
  104. package/templates/project/.scrumrun/knowledge.md +0 -15
  105. package/templates/project/.scrumrun/runbook.md +0 -101
  106. package/templates/project/.scrumrun/token-policy.md +0 -43
@@ -1,101 +0,0 @@
1
- # ScrumRun Runbook
2
-
3
- ## Purpose
4
-
5
- This runbook lets an AI agent execute one sprint independently and safely.
6
-
7
- ## Natural-Language Intake
8
-
9
- When the owner describes work without a ScrumRun command and `Interaction Mode` is not `strict`:
10
-
11
- 1. Identify the intent, expected outcome, urgency, scope, risk, and relationship to the main goal.
12
- 2. Read only the canonical context and relevant history needed to verify the classification.
13
- 3. Route the request to one of: quick task, knowledge/discovery, main sprint, corrective fix, backlog, isolated feature lane, or reject/defer.
14
- 4. Present the recommendation, rationale, material unknowns, and at most two useful alternatives.
15
- 5. Ask for approval when required by `.scrumrun/config.md`; otherwise state which configured policy authorizes the transition.
16
- 6. Only after approval, invoke the matching workflow and preserve its normal safety rules.
17
-
18
- Intake may think and recommend autonomously. It must not interpret a vague acknowledgement as permission to execute application changes.
19
-
20
- ## Required Start Sequence
21
-
22
- 1. Read `AGENTS.md`.
23
- 2. Read `.scrumrun/golden-rules.md`.
24
- 3. Read `.scrumrun/config.md`.
25
- 4. Read `.scrumrun/token-policy.md`.
26
- 5. Read `.scrumrun/context.md` as a snapshot, not truth.
27
- 6. Read `.scrumrun/map.md`.
28
- 7. Read `.scrumrun/project.md` and `.scrumrun/knowledge.md`.
29
- 8. Read `.scrumrun/runbook.md`.
30
- 9. Read the relevant sprint plan:
31
- - main goal: `.scrumrun/goals/main/sprint.md`
32
- - feature lane: `.scrumrun/features/<feature>/sprint.md`
33
- 10. Read the relevant history file.
34
- 11. Check whether the requested sprint already has `Status: completed.`, `Status: partial.`, or `Status: blocked.`.
35
- 12. If it already ran, ask whether to audit, rerun/fix, resume, or continue to another sprint.
36
- 13. Identify dependencies, impacted files, env/config impact, database impact, and test plan.
37
- 14. Only then implement.
38
-
39
- ## Sprint Analysis Template
40
-
41
- ```text
42
- Sprint:
43
- Lane: main goal | feature <slug>
44
- History status:
45
- Goal:
46
- Relevant docs/specs:
47
- Source areas to audit:
48
- External docs needed:
49
- Expected files:
50
- Env/config impact:
51
- Database impact:
52
- Test plan:
53
- Open questions:
54
- ```
55
-
56
- ## Execution Protocol
57
-
58
- 1. Entenda
59
- 2. Avalie Impactos
60
- 3. Tire Duvidas
61
- 4. Execute
62
- 5. Teste
63
-
64
- ## Safety Rules
65
-
66
- - Never modify read-only source paths.
67
- - Never commit real secrets.
68
- - Use env/config for runtime values.
69
- - Ask before changing behavior that is ambiguous or production-sensitive.
70
- - Use mocks/fakes for external providers in automated tests.
71
- - Keep main goal and feature lane histories separate.
72
- - Update `.scrumrun/context.md` when sprint execution changes current focus, risks, decisions, or map pointers.
73
-
74
- ## History Update Template
75
-
76
- ```md
77
- ### YYYY-MM-DD - Sprint NN: Name
78
-
79
- Status: completed|partial|blocked
80
-
81
- Summary:
82
- - ...
83
-
84
- Files changed:
85
- - ...
86
-
87
- Commands run:
88
- - ...
89
-
90
- Tests/verification:
91
- - ...
92
-
93
- Env/config:
94
- - Added variable names only, no values: ...
95
-
96
- Decisions:
97
- - ...
98
-
99
- Risks/follow-ups:
100
- - ...
101
- ```
@@ -1,43 +0,0 @@
1
- # ScrumRun Token Policy - {{PROJECT_NAME}}
2
-
3
- This policy reduces token waste without weakening ScrumRun safety.
4
-
5
- ## Rules
6
-
7
- 1. Safety beats token economy. Never skip `core.md`, `golden-rules.md`, `config.md`, or relevant history to save tokens.
8
- 2. `context.md` is a snapshot, not truth. Use it to choose what to read, then verify against canonical files.
9
- 3. Prefer targeted reads over broad dumps. Read specific files, symbols, folders, and ranges when possible.
10
- 4. Prefer summaries for large logs, generated output, dependency folders, old reviews, and old history.
11
- 5. Do not read `.scrumrun/vault.local.md` unless the user explicitly asks for a local development credential workflow.
12
- 6. Do not print vault values in summaries, context, history, decisions, reviews, or commits.
13
- 7. Use `map.md` before repeated broad searches.
14
- 8. Use approved knowledge before planning. Pending knowledge is not planning truth.
15
- 9. When a source is skipped for token economy, say what was skipped and why.
16
- 10. If uncertainty affects correctness or safety, read the source even if it costs more tokens.
17
-
18
- ## Recommended Read Order
19
-
20
- ```text
21
- AGENTS.md
22
- -> core.md
23
- -> golden-rules.md
24
- -> config.md
25
- -> token-policy.md
26
- -> context.md
27
- -> map.md
28
- -> project.md
29
- -> knowledge.md
30
- -> runbook.md
31
- -> current backlog / sprint / feature files
32
- -> agents.md
33
- -> relevant history + decisions
34
- -> targeted source files
35
- ```
36
-
37
- ## Output Discipline
38
-
39
- - Summarize command output.
40
- - Include exact file references when they matter.
41
- - Avoid pasting large diffs unless requested.
42
- - For tests, report command, result, and relevant failures only.
43
- - For reviews, list findings by severity before summaries.