@event4u/agent-config 1.12.0 → 1.14.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 (260) hide show
  1. package/.agent-src/commands/agent-handoff.md +3 -0
  2. package/.agent-src/commands/agent-status.md +3 -0
  3. package/.agent-src/commands/agents-audit.md +4 -0
  4. package/.agent-src/commands/agents-cleanup.md +6 -1
  5. package/.agent-src/commands/agents-prepare.md +3 -0
  6. package/.agent-src/commands/analyze-reference-repo.md +4 -0
  7. package/.agent-src/commands/bug-fix.md +5 -1
  8. package/.agent-src/commands/bug-investigate.md +4 -0
  9. package/.agent-src/commands/chat-history-checkpoint.md +126 -0
  10. package/.agent-src/commands/chat-history-clear.md +5 -0
  11. package/.agent-src/commands/chat-history-resume.md +5 -0
  12. package/.agent-src/commands/chat-history.md +5 -0
  13. package/.agent-src/commands/check-current-md.md +126 -0
  14. package/.agent-src/commands/commit-in-chunks.md +98 -0
  15. package/.agent-src/commands/commit.md +4 -0
  16. package/.agent-src/commands/compress.md +3 -0
  17. package/.agent-src/commands/context-create.md +4 -0
  18. package/.agent-src/commands/context-refactor.md +4 -0
  19. package/.agent-src/commands/copilot-agents-init.md +3 -0
  20. package/.agent-src/commands/copilot-agents-optimize.md +3 -0
  21. package/.agent-src/commands/create-pr-description.md +4 -0
  22. package/.agent-src/commands/create-pr.md +4 -0
  23. package/.agent-src/commands/do-and-judge.md +4 -1
  24. package/.agent-src/commands/do-in-steps.md +3 -0
  25. package/.agent-src/commands/e2e-heal.md +4 -0
  26. package/.agent-src/commands/e2e-plan.md +4 -0
  27. package/.agent-src/commands/estimate-ticket.md +4 -1
  28. package/.agent-src/commands/feature-dev.md +4 -0
  29. package/.agent-src/commands/feature-explore.md +4 -0
  30. package/.agent-src/commands/feature-plan.md +4 -0
  31. package/.agent-src/commands/feature-refactor.md +4 -0
  32. package/.agent-src/commands/feature-roadmap.md +6 -0
  33. package/.agent-src/commands/fix-ci.md +4 -0
  34. package/.agent-src/commands/fix-portability.md +3 -0
  35. package/.agent-src/commands/fix-pr-bot-comments.md +4 -0
  36. package/.agent-src/commands/fix-pr-comments.md +4 -0
  37. package/.agent-src/commands/fix-pr-developer-comments.md +4 -0
  38. package/.agent-src/commands/fix-references.md +3 -0
  39. package/.agent-src/commands/fix-seeder.md +4 -0
  40. package/.agent-src/commands/implement-ticket.md +39 -13
  41. package/.agent-src/commands/jira-ticket.md +4 -0
  42. package/.agent-src/commands/judge.md +3 -0
  43. package/.agent-src/commands/memory-add.md +5 -3
  44. package/.agent-src/commands/memory-full.md +5 -2
  45. package/.agent-src/commands/memory-promote.md +7 -6
  46. package/.agent-src/commands/mode.md +3 -0
  47. package/.agent-src/commands/module-create.md +4 -0
  48. package/.agent-src/commands/module-explore.md +4 -0
  49. package/.agent-src/commands/onboard.md +24 -0
  50. package/.agent-src/commands/optimize-agents.md +4 -0
  51. package/.agent-src/commands/optimize-augmentignore.md +3 -0
  52. package/.agent-src/commands/optimize-rtk-filters.md +3 -0
  53. package/.agent-src/commands/optimize-skills.md +4 -0
  54. package/.agent-src/commands/override-create.md +4 -0
  55. package/.agent-src/commands/override-manage.md +4 -0
  56. package/.agent-src/commands/package-reset.md +3 -0
  57. package/.agent-src/commands/package-test.md +3 -0
  58. package/.agent-src/commands/prepare-for-review.md +4 -0
  59. package/.agent-src/commands/project-analyze.md +4 -0
  60. package/.agent-src/commands/project-health.md +4 -0
  61. package/.agent-src/commands/propose-memory.md +6 -8
  62. package/.agent-src/commands/quality-fix.md +4 -0
  63. package/.agent-src/commands/refine-ticket.md +4 -1
  64. package/.agent-src/commands/review-changes.md +4 -0
  65. package/.agent-src/commands/review-routing.md +4 -0
  66. package/.agent-src/commands/roadmap-create.md +7 -0
  67. package/.agent-src/commands/roadmap-execute.md +12 -1
  68. package/.agent-src/commands/rule-compliance-audit.md +4 -0
  69. package/.agent-src/commands/set-cost-profile.md +3 -0
  70. package/.agent-src/commands/sync-agent-settings.md +3 -0
  71. package/.agent-src/commands/sync-gitignore.md +3 -0
  72. package/.agent-src/commands/tests-create.md +4 -0
  73. package/.agent-src/commands/tests-execute.md +4 -0
  74. package/.agent-src/commands/threat-model.md +4 -0
  75. package/.agent-src/commands/update-form-request-messages.md +4 -0
  76. package/.agent-src/commands/upstream-contribute.md +4 -0
  77. package/.agent-src/commands/work.md +161 -0
  78. package/.agent-src/guidelines/agent-infra/engineering-memory-data-format.md +2 -6
  79. package/.agent-src/guidelines/agent-infra/layered-settings.md +0 -1
  80. package/.agent-src/guidelines/agent-infra/memory-access.md +0 -7
  81. package/.agent-src/guidelines/agent-infra/role-contracts.md +2 -4
  82. package/.agent-src/guidelines/agent-infra/self-improvement-pipeline.md +0 -1
  83. package/.agent-src/guidelines/php/patterns/strategy.md +180 -2
  84. package/.agent-src/personas/README.md +0 -1
  85. package/.agent-src/rules/artifact-drafting-protocol.md +7 -2
  86. package/.agent-src/rules/artifact-engagement-recording.md +133 -0
  87. package/.agent-src/rules/ask-when-uncertain.md +18 -13
  88. package/.agent-src/rules/augment-portability.md +8 -0
  89. package/.agent-src/rules/autonomous-execution.md +158 -0
  90. package/.agent-src/rules/chat-history.md +147 -118
  91. package/.agent-src/rules/cli-output-handling.md +26 -3
  92. package/.agent-src/rules/command-suggestion.md +133 -0
  93. package/.agent-src/rules/commit-policy.md +99 -0
  94. package/.agent-src/rules/direct-answers.md +114 -0
  95. package/.agent-src/rules/docs-sync.md +36 -0
  96. package/.agent-src/rules/downstream-changes.md +10 -9
  97. package/.agent-src/rules/improve-before-implement.md +9 -6
  98. package/.agent-src/rules/language-and-tone.md +81 -6
  99. package/.agent-src/rules/non-destructive-by-default.md +117 -0
  100. package/.agent-src/rules/package-ci-checks.md +4 -0
  101. package/.agent-src/rules/preservation-guard.md +20 -0
  102. package/.agent-src/rules/roadmap-progress-sync.md +103 -30
  103. package/.agent-src/rules/scope-control.md +42 -1
  104. package/.agent-src/rules/size-enforcement.md +1 -3
  105. package/.agent-src/rules/skill-quality.md +3 -8
  106. package/.agent-src/rules/ui-audit-before-build.md +106 -0
  107. package/.agent-src/rules/user-interaction.md +81 -3
  108. package/.agent-src/scripts/update_roadmap_progress.py +48 -6
  109. package/.agent-src/skills/blade-ui/SKILL.md +30 -5
  110. package/.agent-src/skills/command-routing/SKILL.md +32 -0
  111. package/.agent-src/skills/command-writing/SKILL.md +41 -2
  112. package/.agent-src/skills/description-assist/SKILL.md +21 -0
  113. package/.agent-src/skills/estimate-ticket/SKILL.md +0 -1
  114. package/.agent-src/skills/existing-ui-audit/SKILL.md +187 -0
  115. package/.agent-src/skills/fe-design/SKILL.md +72 -60
  116. package/.agent-src/skills/finishing-a-development-branch/SKILL.md +4 -0
  117. package/.agent-src/skills/flux/SKILL.md +31 -4
  118. package/.agent-src/skills/guideline-writing/SKILL.md +24 -2
  119. package/.agent-src/skills/learning-to-rule-or-skill/SKILL.md +51 -9
  120. package/.agent-src/skills/livewire/SKILL.md +30 -4
  121. package/.agent-src/skills/md-language-check/SKILL.md +103 -0
  122. package/.agent-src/skills/php-coder/SKILL.md +24 -0
  123. package/.agent-src/skills/react-shadcn-ui/SKILL.md +121 -0
  124. package/.agent-src/skills/refine-prompt/SKILL.md +220 -0
  125. package/.agent-src/skills/refine-ticket/SKILL.md +2 -4
  126. package/.agent-src/skills/roadmap-management/SKILL.md +10 -3
  127. package/.agent-src/skills/rule-writing/SKILL.md +23 -1
  128. package/.agent-src/skills/skill-writing/SKILL.md +1 -3
  129. package/.agent-src/skills/upstream-contribute/SKILL.md +1 -1
  130. package/.agent-src/skills/using-git-worktrees/SKILL.md +3 -1
  131. package/.agent-src/templates/AGENTS.md +24 -6
  132. package/.agent-src/templates/agent-settings.md +149 -0
  133. package/.agent-src/templates/github-workflows/roadmap-progress-check.yml +63 -0
  134. package/.agent-src/templates/hooks/pre-commit-roadmap-progress +60 -0
  135. package/.agent-src/templates/roadmaps.md +8 -2
  136. package/.agent-src/templates/scripts/implement_ticket/__init__.py +63 -26
  137. package/.agent-src/templates/scripts/implement_ticket/__main__.py +8 -2
  138. package/.agent-src/templates/scripts/memory_lookup.py +382 -21
  139. package/.agent-src/templates/scripts/memory_status.py +110 -9
  140. package/.agent-src/templates/scripts/telemetry/__init__.py +42 -0
  141. package/.agent-src/templates/scripts/telemetry/aggregator.py +154 -0
  142. package/.agent-src/templates/scripts/telemetry/boundary.py +171 -0
  143. package/.agent-src/templates/scripts/telemetry/engagement.py +238 -0
  144. package/.agent-src/templates/scripts/telemetry/report_renderer.py +170 -0
  145. package/.agent-src/templates/scripts/telemetry/settings.py +112 -0
  146. package/.agent-src/templates/scripts/telemetry_record.py +166 -0
  147. package/.agent-src/templates/scripts/telemetry_report.py +161 -0
  148. package/.agent-src/templates/scripts/telemetry_status.py +142 -0
  149. package/.agent-src/templates/scripts/work_engine/__init__.py +58 -0
  150. package/.agent-src/templates/scripts/work_engine/__main__.py +9 -0
  151. package/.agent-src/templates/scripts/work_engine/cli.py +592 -0
  152. package/.agent-src/templates/scripts/{implement_ticket → work_engine}/delivery_state.py +7 -0
  153. package/.agent-src/templates/scripts/work_engine/directives/__init__.py +33 -0
  154. package/.agent-src/templates/scripts/work_engine/directives/backend/__init__.py +98 -0
  155. package/.agent-src/templates/scripts/{implement_ticket/steps → work_engine/directives/backend}/analyze.py +1 -1
  156. package/.agent-src/templates/scripts/{implement_ticket/steps → work_engine/directives/backend}/implement.py +2 -2
  157. package/.agent-src/templates/scripts/{implement_ticket/steps → work_engine/directives/backend}/memory.py +1 -1
  158. package/.agent-src/templates/scripts/{implement_ticket/steps → work_engine/directives/backend}/plan.py +1 -1
  159. package/.agent-src/templates/scripts/work_engine/directives/backend/refine.py +396 -0
  160. package/.agent-src/templates/scripts/{implement_ticket/steps → work_engine/directives/backend}/report.py +36 -4
  161. package/.agent-src/templates/scripts/{implement_ticket/steps → work_engine/directives/backend}/test.py +2 -2
  162. package/.agent-src/templates/scripts/{implement_ticket/steps → work_engine/directives/backend}/verify.py +2 -2
  163. package/.agent-src/templates/scripts/work_engine/directives/mixed/__init__.py +116 -0
  164. package/.agent-src/templates/scripts/work_engine/directives/mixed/contract.py +254 -0
  165. package/.agent-src/templates/scripts/work_engine/directives/mixed/stitch.py +229 -0
  166. package/.agent-src/templates/scripts/work_engine/directives/mixed/ui.py +231 -0
  167. package/.agent-src/templates/scripts/work_engine/directives/ui/__init__.py +113 -0
  168. package/.agent-src/templates/scripts/work_engine/directives/ui/_passthrough.py +44 -0
  169. package/.agent-src/templates/scripts/work_engine/directives/ui/apply.py +241 -0
  170. package/.agent-src/templates/scripts/work_engine/directives/ui/audit.py +414 -0
  171. package/.agent-src/templates/scripts/work_engine/directives/ui/design.py +335 -0
  172. package/.agent-src/templates/scripts/work_engine/directives/ui/polish.py +510 -0
  173. package/.agent-src/templates/scripts/work_engine/directives/ui/review.py +468 -0
  174. package/.agent-src/templates/scripts/work_engine/directives/ui_trivial/__init__.py +119 -0
  175. package/.agent-src/templates/scripts/work_engine/directives/ui_trivial/_skipped.py +37 -0
  176. package/.agent-src/templates/scripts/work_engine/directives/ui_trivial/apply.py +165 -0
  177. package/.agent-src/templates/scripts/work_engine/directives/ui_trivial/refine.py +66 -0
  178. package/.agent-src/templates/scripts/work_engine/directives/ui_trivial/report.py +62 -0
  179. package/.agent-src/templates/scripts/work_engine/directives/ui_trivial/test.py +115 -0
  180. package/.agent-src/templates/scripts/work_engine/dispatcher.py +331 -0
  181. package/.agent-src/templates/scripts/work_engine/hooks/__init__.py +54 -0
  182. package/.agent-src/templates/scripts/work_engine/hooks/builtin/__init__.py +32 -0
  183. package/.agent-src/templates/scripts/work_engine/hooks/builtin/_chat_history_base.py +103 -0
  184. package/.agent-src/templates/scripts/work_engine/hooks/builtin/chat_history_append.py +44 -0
  185. package/.agent-src/templates/scripts/work_engine/hooks/builtin/chat_history_halt_append.py +42 -0
  186. package/.agent-src/templates/scripts/work_engine/hooks/builtin/chat_history_heartbeat.py +50 -0
  187. package/.agent-src/templates/scripts/work_engine/hooks/builtin/chat_history_turn_check.py +49 -0
  188. package/.agent-src/templates/scripts/work_engine/hooks/builtin/directive_set_guard.py +53 -0
  189. package/.agent-src/templates/scripts/work_engine/hooks/builtin/halt_surface_audit.py +50 -0
  190. package/.agent-src/templates/scripts/work_engine/hooks/builtin/state_shape_validation.py +52 -0
  191. package/.agent-src/templates/scripts/work_engine/hooks/builtin/trace.py +84 -0
  192. package/.agent-src/templates/scripts/work_engine/hooks/context.py +66 -0
  193. package/.agent-src/templates/scripts/work_engine/hooks/events.py +44 -0
  194. package/.agent-src/templates/scripts/work_engine/hooks/exceptions.py +79 -0
  195. package/.agent-src/templates/scripts/work_engine/hooks/registry.py +60 -0
  196. package/.agent-src/templates/scripts/work_engine/hooks/runner.py +73 -0
  197. package/.agent-src/templates/scripts/work_engine/hooks/settings.py +141 -0
  198. package/.agent-src/templates/scripts/work_engine/intent/__init__.py +47 -0
  199. package/.agent-src/templates/scripts/work_engine/intent/classify.py +280 -0
  200. package/.agent-src/templates/scripts/work_engine/migration/__init__.py +8 -0
  201. package/.agent-src/templates/scripts/work_engine/migration/v0_to_v1.py +199 -0
  202. package/.agent-src/templates/scripts/work_engine/resolvers/__init__.py +22 -0
  203. package/.agent-src/templates/scripts/work_engine/resolvers/diff.py +106 -0
  204. package/.agent-src/templates/scripts/work_engine/resolvers/file.py +113 -0
  205. package/.agent-src/templates/scripts/work_engine/resolvers/prompt.py +90 -0
  206. package/.agent-src/templates/scripts/work_engine/scoring/__init__.py +14 -0
  207. package/.agent-src/templates/scripts/work_engine/scoring/confidence.py +300 -0
  208. package/.agent-src/templates/scripts/work_engine/stack/__init__.py +31 -0
  209. package/.agent-src/templates/scripts/work_engine/stack/detect.py +187 -0
  210. package/.agent-src/templates/scripts/work_engine/state.py +641 -0
  211. package/.claude-plugin/marketplace.json +105 -2
  212. package/AGENTS.md +36 -8
  213. package/CHANGELOG.md +558 -0
  214. package/README.md +146 -4
  215. package/composer.json +3 -0
  216. package/config/agent-settings.template.yml +45 -0
  217. package/config/gitignore-block.txt +4 -0
  218. package/docs/architecture.md +28 -1
  219. package/docs/development.md +1 -1
  220. package/docs/getting-started.md +3 -2
  221. package/docs/installation.md +86 -0
  222. package/docs/showcase.md +204 -0
  223. package/package.json +9 -1
  224. package/scripts/agent-config +274 -0
  225. package/scripts/audit_cloud_compatibility.py +288 -0
  226. package/scripts/build_cloud_bundle.py +458 -0
  227. package/scripts/build_linear_digest.py +263 -0
  228. package/scripts/chat_history.py +796 -7
  229. package/scripts/check_compression.py +139 -0
  230. package/scripts/check_iron_law_prominence.py +143 -0
  231. package/scripts/check_md_language.py +159 -0
  232. package/scripts/check_portability.py +36 -0
  233. package/scripts/check_reply_consistency.py +140 -0
  234. package/scripts/command_suggester/__init__.py +51 -0
  235. package/scripts/command_suggester/cooldown.py +132 -0
  236. package/scripts/command_suggester/loader.py +70 -0
  237. package/scripts/command_suggester/match.py +180 -0
  238. package/scripts/command_suggester/rank.py +120 -0
  239. package/scripts/command_suggester/render.py +86 -0
  240. package/scripts/command_suggester/sanitize.py +113 -0
  241. package/scripts/command_suggester/settings.py +125 -0
  242. package/scripts/command_suggester/types.py +78 -0
  243. package/scripts/hooks/augment-chat-history.sh +56 -0
  244. package/scripts/install-hooks.sh +67 -0
  245. package/scripts/install.py +150 -33
  246. package/scripts/lint_marketplace.py +27 -0
  247. package/scripts/memory_lookup.py +143 -7
  248. package/scripts/memory_status.py +76 -14
  249. package/scripts/migrate_command_suggestions.py +151 -0
  250. package/scripts/postinstall.sh +16 -0
  251. package/scripts/schemas/command.schema.json +41 -0
  252. package/scripts/skill_linter.py +67 -0
  253. package/scripts/sync_agent_settings.py +42 -12
  254. package/templates/consumer-settings/augment-cli-hooks.json +54 -0
  255. package/templates/consumer-settings/claude-settings.json +55 -1
  256. package/.agent-src/templates/scripts/implement_ticket/cli.py +0 -171
  257. package/.agent-src/templates/scripts/implement_ticket/dispatcher.py +0 -134
  258. package/.agent-src/templates/scripts/implement_ticket/steps/__init__.py +0 -49
  259. package/.agent-src/templates/scripts/implement_ticket/steps/refine.py +0 -140
  260. /package/.agent-src/templates/scripts/{implement_ticket → work_engine}/persona_policy.py +0 -0
@@ -0,0 +1,60 @@
1
+ #!/usr/bin/env bash
2
+ # Pre-commit hook: roadmap progress dashboard sync (event4u/agent-config)
3
+ #
4
+ # Installed by `./agent-config hooks:install`. Aborts the commit if
5
+ # `agents/roadmaps-progress.md` is out of date relative to staged
6
+ # changes under `agents/roadmaps/`. Exits silently when no roadmap
7
+ # files are staged — zero overhead on unrelated commits.
8
+ #
9
+ # To run manually:
10
+ # ./agent-config roadmap:progress-check
11
+ #
12
+ # To uninstall:
13
+ # rm .git/hooks/pre-commit
14
+ set -e
15
+
16
+ # Only act on commits that touch roadmap content.
17
+ staged="$(git diff --cached --name-only --diff-filter=ACMR 2>/dev/null || true)"
18
+ case "$staged" in
19
+ *agents/roadmaps/*.md*|*agents/roadmaps-progress.md*|*.augment/scripts/update_roadmap_progress.py*)
20
+ : ;;
21
+ *)
22
+ exit 0 ;;
23
+ esac
24
+
25
+ # Resolve the script — prefer the consumer-shipped path, fall back to
26
+ # the source-of-truth copy when run from inside the package itself.
27
+ script=""
28
+ for cand in \
29
+ ".augment/scripts/update_roadmap_progress.py" \
30
+ ".agent-src/scripts/update_roadmap_progress.py" \
31
+ ".agent-src.uncompressed/scripts/update_roadmap_progress.py"; do
32
+ if [ -f "$cand" ]; then
33
+ script="$cand"
34
+ break
35
+ fi
36
+ done
37
+
38
+ if [ -z "$script" ]; then
39
+ echo "⚠️ pre-commit-roadmap-progress: update_roadmap_progress.py not found." >&2
40
+ echo " Run \`task install\` (or \`./agent-config install\`) and retry." >&2
41
+ echo " Skipping check — letting commit through." >&2
42
+ exit 0
43
+ fi
44
+
45
+ if ! python3 "$script" --check >/dev/null 2>&1; then
46
+ echo "❌ agents/roadmaps-progress.md is stale relative to your staged changes." >&2
47
+ echo "" >&2
48
+ echo " Regenerate the dashboard with one of:" >&2
49
+ echo " ./agent-config roadmap:progress" >&2
50
+ echo " task roadmap-progress" >&2
51
+ echo " python3 $script" >&2
52
+ echo "" >&2
53
+ echo " Then \`git add agents/roadmaps-progress.md\` and retry the commit." >&2
54
+ echo "" >&2
55
+ echo " To bypass once (NOT recommended):" >&2
56
+ echo " git commit --no-verify" >&2
57
+ exit 1
58
+ fi
59
+
60
+ exit 0
@@ -27,8 +27,14 @@ Templates for roadmap files stored in `agents/roadmaps/` or `app/Modules/{Module
27
27
 
28
28
  13. **No tags, releases, or version numbers.** Roadmaps describe work, not shipping.
29
29
  Never assign version suffixes to phases (`Phase 1 — v1.8.0`), never write
30
- "Target release: X.Y.Z", never plan git tags. Release and tag decisions
31
- belong to the user and are taken outside the roadmap.
30
+ "Target release: X.Y.Z", never plan git tags or deprecation dates. Release
31
+ and tag decisions belong to the user, taken outside the roadmap. Enforced by
32
+ [`scope-control`](../rules/scope-control.md#git-operations--permission-gated).
33
+ 14. **No automatic branch switches mid-roadmap.** Roadmap work runs on the
34
+ current branch. If a separate branch (spike, hotfix, experiment) would
35
+ be useful, agent may propose it **once** during creation — not during
36
+ execution. Default: stay on current branch. If user declines, topic is
37
+ closed for this roadmap. See [`scope-control`](../rules/scope-control.md#decline--silence--no-re-asking-on-the-same-task).
32
38
 
33
39
  ---
34
40
 
@@ -1,40 +1,77 @@
1
- """/implement-ticket orchestrator linear step dispatcher.
2
-
3
- Shipped to consumer projects via the installer. Consumer code imports
4
- ``DeliveryState``, ``dispatch``, and the ``Outcome`` enum from this
5
- package; step implementations land in Phase 2 under
6
- ``.agent-src.uncompressed/skills/implement-ticket/`` and plug into the
7
- ``Step`` protocol exposed here.
8
-
9
- Architectural constraints (from
10
- ``agents/contexts/adr-implement-ticket-runtime.md`` and
11
- ``agents/contexts/implement-ticket-flow.md``):
12
-
13
- - Runtime is Python 3.10+.
14
- - The dispatcher is linear, not a DAG. Eight fixed steps, fixed order.
15
- - ``DeliveryState`` is the only object shared between steps — no
16
- hidden state, no side channels.
17
- - Every step terminates in ``success | blocked | partial``. ``blocked``
18
- and ``partial`` halt the flow and surface numbered questions.
19
- - The dispatcher never calls git, writes commits, or opens PRs.
1
+ """``implement_ticket``deprecated shim, retained for one release.
2
+
3
+ The engine moved to :mod:`work_engine` in R1 Phase 3. This module
4
+ re-exports the public surface so existing imports keep working, but
5
+ emits :class:`DeprecationWarning` on import. The Golden-Transcript
6
+ freeze-guard pins ``./agent-config implement-ticket`` against the
7
+ locked baseline; the shim keeps that path byte-stable while internal
8
+ callers migrate to ``work_engine``.
9
+
10
+ Remove after the next public release of this package.
20
11
  """
21
12
  from __future__ import annotations
22
13
 
23
- from .delivery_state import (
14
+ import sys as _sys
15
+ import warnings as _warnings
16
+
17
+ _warnings.warn(
18
+ "implement_ticket has moved to work_engine; importing implement_ticket "
19
+ "is deprecated and will be removed in a future release. Update imports "
20
+ "to `from work_engine import …`.",
21
+ DeprecationWarning,
22
+ stacklevel=2,
23
+ )
24
+
25
+ # Register submodule aliases so `from implement_ticket.steps.plan import …`
26
+ # and friends keep resolving to the work_engine implementation. The legacy
27
+ # package no longer ships these submodules on disk; sys.modules entries
28
+ # keep dotted-path imports working until the shim is removed.
29
+ import work_engine as _we_pkg # noqa: E402
30
+ import work_engine.cli as _we_cli # noqa: E402
31
+ import work_engine.delivery_state as _we_delivery_state # noqa: E402
32
+ import work_engine.dispatcher as _we_dispatcher # noqa: E402
33
+ import work_engine.persona_policy as _we_persona_policy # noqa: E402
34
+ import work_engine.directives.backend as _we_steps # noqa: E402
35
+ from work_engine.directives.backend import ( # noqa: E402
36
+ analyze as _we_step_analyze,
37
+ implement as _we_step_implement,
38
+ memory as _we_step_memory,
39
+ plan as _we_step_plan,
40
+ refine as _we_step_refine,
41
+ report as _we_step_report,
42
+ test as _we_step_test,
43
+ verify as _we_step_verify,
44
+ )
45
+
46
+ _sys.modules.setdefault("implement_ticket.cli", _we_cli)
47
+ _sys.modules.setdefault("implement_ticket.delivery_state", _we_delivery_state)
48
+ _sys.modules.setdefault("implement_ticket.dispatcher", _we_dispatcher)
49
+ _sys.modules.setdefault("implement_ticket.persona_policy", _we_persona_policy)
50
+ _sys.modules.setdefault("implement_ticket.steps", _we_steps)
51
+ _sys.modules.setdefault("implement_ticket.steps.analyze", _we_step_analyze)
52
+ _sys.modules.setdefault("implement_ticket.steps.implement", _we_step_implement)
53
+ _sys.modules.setdefault("implement_ticket.steps.memory", _we_step_memory)
54
+ _sys.modules.setdefault("implement_ticket.steps.plan", _we_step_plan)
55
+ _sys.modules.setdefault("implement_ticket.steps.refine", _we_step_refine)
56
+ _sys.modules.setdefault("implement_ticket.steps.report", _we_step_report)
57
+ _sys.modules.setdefault("implement_ticket.steps.test", _we_step_test)
58
+ _sys.modules.setdefault("implement_ticket.steps.verify", _we_step_verify)
59
+
60
+ from work_engine import ( # noqa: E402,F401 — re-export for backwards compat
24
61
  AGENT_DIRECTIVE_PREFIX,
62
+ DEFAULT_PERSONA,
63
+ DEFAULT_STATE_FILE,
25
64
  DeliveryState,
26
65
  Outcome,
66
+ PersonaPolicy,
67
+ STEP_ORDER,
27
68
  Step,
28
69
  StepResult,
29
70
  agent_directive,
71
+ dispatch,
30
72
  is_agent_directive,
31
- )
32
- from .cli import DEFAULT_STATE_FILE, main
33
- from .dispatcher import STEP_ORDER, dispatch
34
- from .persona_policy import (
35
- DEFAULT_PERSONA,
36
- PersonaPolicy,
37
73
  known_personas,
74
+ main,
38
75
  resolve_policy,
39
76
  )
40
77
 
@@ -1,9 +1,15 @@
1
- """Module entry point — lets ``python3 -m implement_ticket`` run the CLI."""
1
+ """Deprecated CLI entry point — delegates to :mod:`work_engine`.
2
+
3
+ ``python3 -m implement_ticket`` still works because the Golden-Transcript
4
+ freeze-guard pins that invocation. Internally it forwards to
5
+ ``work_engine.cli.main`` after emitting a ``DeprecationWarning`` from
6
+ the package ``__init__``.
7
+ """
2
8
  from __future__ import annotations
3
9
 
4
10
  import sys
5
11
 
6
- from .cli import main
12
+ from work_engine.cli import main
7
13
 
8
14
  if __name__ == "__main__":
9
15
  sys.exit(main())