workforge 2.5.0__tar.gz → 2.6.0__tar.gz

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 (65) hide show
  1. {workforge-2.5.0 → workforge-2.6.0}/CHANGELOG.md +38 -8
  2. {workforge-2.5.0 → workforge-2.6.0}/PKG-INFO +83 -2
  3. {workforge-2.5.0 → workforge-2.6.0}/README.md +80 -1
  4. workforge-2.6.0/docs/README.md +46 -0
  5. workforge-2.6.0/docs/en/01-vision-and-scope.md +90 -0
  6. workforge-2.6.0/docs/en/02-software-requirements-specification.md +95 -0
  7. workforge-2.6.0/docs/en/03-use-cases.md +98 -0
  8. workforge-2.6.0/docs/en/04-software-architecture.md +146 -0
  9. workforge-2.6.0/docs/en/05-data-contracts.md +149 -0
  10. workforge-2.6.0/docs/en/06-quality-and-governance.md +111 -0
  11. workforge-2.6.0/docs/en/README.md +6 -0
  12. workforge-2.6.0/docs/es/01-vision-y-alcance.md +92 -0
  13. workforge-2.6.0/docs/es/02-especificacion-de-requisitos.md +95 -0
  14. workforge-2.6.0/docs/es/03-casos-de-uso.md +98 -0
  15. workforge-2.6.0/docs/es/04-arquitectura-de-software.md +145 -0
  16. workforge-2.6.0/docs/es/05-contratos-de-datos.md +147 -0
  17. workforge-2.6.0/docs/es/06-calidad-y-gobernanza.md +111 -0
  18. workforge-2.6.0/docs/es/README.md +6 -0
  19. {workforge-2.5.0 → workforge-2.6.0}/pyproject.toml +3 -1
  20. {workforge-2.5.0 → workforge-2.6.0}/src/workforge/cli.py +177 -23
  21. {workforge-2.5.0 → workforge-2.6.0}/src/workforge/core/parser.py +39 -1
  22. {workforge-2.5.0 → workforge-2.6.0}/src/workforge/models.py +24 -1
  23. {workforge-2.5.0 → workforge-2.6.0}/src/workforge/providers/base.py +10 -0
  24. {workforge-2.5.0 → workforge-2.6.0}/src/workforge/providers/github.py +36 -1
  25. {workforge-2.5.0 → workforge-2.6.0}/src/workforge/providers/jira.py +55 -1
  26. workforge-2.6.0/src/workforge/providers/registry.py +20 -0
  27. {workforge-2.5.0 → workforge-2.6.0}/src/workforge/providers/trello.py +72 -10
  28. workforge-2.6.0/tests/test_agent_context.py +251 -0
  29. workforge-2.6.0/tests/test_cli_output.py +93 -0
  30. {workforge-2.5.0 → workforge-2.6.0}/tests/test_github_provider.py +35 -0
  31. {workforge-2.5.0 → workforge-2.6.0}/tests/test_jira_provider.py +49 -0
  32. workforge-2.6.0/tests/test_parser.py +93 -0
  33. {workforge-2.5.0 → workforge-2.6.0}/tests/test_trello_provider.py +80 -0
  34. workforge-2.5.0/src/workforge/providers/registry.py +0 -17
  35. workforge-2.5.0/tests/test_agent_context.py +0 -138
  36. workforge-2.5.0/tests/test_cli_output.py +0 -30
  37. workforge-2.5.0/tests/test_parser.py +0 -45
  38. {workforge-2.5.0 → workforge-2.6.0}/.github/workflows/ci.yml +0 -0
  39. {workforge-2.5.0 → workforge-2.6.0}/.github/workflows/release.yml +0 -0
  40. {workforge-2.5.0 → workforge-2.6.0}/.gitignore +0 -0
  41. {workforge-2.5.0 → workforge-2.6.0}/AGENTS.md +0 -0
  42. {workforge-2.5.0 → workforge-2.6.0}/LICENSE +0 -0
  43. {workforge-2.5.0 → workforge-2.6.0}/_config.yml +0 -0
  44. {workforge-2.5.0 → workforge-2.6.0}/docs/distribution.md +0 -0
  45. {workforge-2.5.0 → workforge-2.6.0}/docs/github-provider-design.md +0 -0
  46. {workforge-2.5.0 → workforge-2.6.0}/docs/jira-provider-design.md +0 -0
  47. {workforge-2.5.0 → workforge-2.6.0}/docs/trello-provider-design.md +0 -0
  48. {workforge-2.5.0 → workforge-2.6.0}/src/workforge/__init__.py +0 -0
  49. {workforge-2.5.0 → workforge-2.6.0}/src/workforge/config.py +0 -0
  50. {workforge-2.5.0 → workforge-2.6.0}/src/workforge/core/__init__.py +0 -0
  51. {workforge-2.5.0 → workforge-2.6.0}/src/workforge/providers/__init__.py +0 -0
  52. {workforge-2.5.0 → workforge-2.6.0}/tests/test_init_workspace.py +0 -0
  53. {workforge-2.5.0 → workforge-2.6.0}/tests/test_workspace_runtime.py +0 -0
  54. {workforge-2.5.0 → workforge-2.6.0}/workspaces/github-projects-example/.env.example +0 -0
  55. {workforge-2.5.0 → workforge-2.6.0}/workspaces/github-projects-example/inbox/sample-requirements.md +0 -0
  56. {workforge-2.5.0 → workforge-2.6.0}/workspaces/github-projects-example/output/.gitkeep +0 -0
  57. {workforge-2.5.0 → workforge-2.6.0}/workspaces/github-projects-example/workforge.yaml +0 -0
  58. {workforge-2.5.0 → workforge-2.6.0}/workspaces/jira-example/.env.example +0 -0
  59. {workforge-2.5.0 → workforge-2.6.0}/workspaces/jira-example/inbox/sample-requirements.md +0 -0
  60. {workforge-2.5.0 → workforge-2.6.0}/workspaces/jira-example/output/.gitkeep +0 -0
  61. {workforge-2.5.0 → workforge-2.6.0}/workspaces/jira-example/workforge.yaml +0 -0
  62. {workforge-2.5.0 → workforge-2.6.0}/workspaces/trello-example/.env.example +0 -0
  63. {workforge-2.5.0 → workforge-2.6.0}/workspaces/trello-example/inbox/sample-requirements.md +0 -0
  64. {workforge-2.5.0 → workforge-2.6.0}/workspaces/trello-example/output/.gitkeep +0 -0
  65. {workforge-2.5.0 → workforge-2.6.0}/workspaces/trello-example/workforge.yaml +0 -0
@@ -1,3 +1,29 @@
1
+ ## [2.6.0] - 2026-12-02
2
+
3
+ ### 🚀 Features
4
+
5
+ - *(parser)* Support repeatable technical references
6
+ - *(cli)* Show technical references in agent context
7
+ - *(cli)* Record and display documentation impacts
8
+ - *(parser)* Validate item dependencies in previews
9
+ - *(cli)* Orchestrate item dependency synchronization
10
+ - *(github)* Synchronize issue dependencies
11
+ - *(jira)* Synchronize blocked-by issue links
12
+ - *(trello)* Represent card dependencies
13
+
14
+ ### 🐛 Bug Fixes
15
+
16
+ - *(deps)* Require patched TLS dependencies
17
+ - *(trello)* Preserve manual dependency checklists
18
+
19
+ ### 📚 Documentation
20
+
21
+ - Establish bilingual technical baseline
22
+ - Clarify technical context and impact retention
23
+
24
+ ### 🧪 Testing
25
+
26
+ - *(cli)* Cover technical context with a mocked provider
1
27
  ## [2.5.0] - 2026-08-25
2
28
 
3
29
  ### 🚀 Features
@@ -7,11 +33,11 @@
7
33
  ### 📚 Documentation
8
34
 
9
35
  - Clarify WorkForge installation modes
10
- ## [2.4.1] - 2026-08-21
11
36
 
12
- ### 💼 Other
37
+ ### ⚙️ Miscellaneous Tasks
13
38
 
14
- - Publish releases to PyPI
39
+ - Release 2.5.0
40
+ ## [2.4.1] - 2026-08-21
15
41
 
16
42
  ### 📚 Documentation
17
43
 
@@ -23,6 +49,10 @@
23
49
  - *(github pages)* Create theme configuration file
24
50
  - Updates documentation
25
51
  - Release 2.4.1
52
+
53
+ ### 💼 Other
54
+
55
+ - Publish releases to PyPI
26
56
  ## [2.4.0] - 2026-08-21
27
57
 
28
58
  ### 🚀 Features
@@ -92,17 +122,17 @@
92
122
 
93
123
  - Harden GitHub provider failures
94
124
 
95
- ### 🚜 Refactor
96
-
97
- - Store provider output as items
98
- - Use provider-neutral item terminology
99
-
100
125
  ### 📚 Documentation
101
126
 
102
127
  - Document GitHub Projects provider
103
128
  - Add GitHub Projects example workspace
104
129
  - Add v2 migration guide
105
130
 
131
+ ### 🚜 Refactor
132
+
133
+ - Store provider output as items
134
+ - Use provider-neutral item terminology
135
+
106
136
  ### ⚙️ Miscellaneous Tasks
107
137
 
108
138
  - Release 2.0.0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: workforge
3
- Version: 2.5.0
3
+ Version: 2.6.0
4
4
  Summary: Turn work inputs into provider-neutral requirements and planning items.
5
5
  Project-URL: Homepage, https://github.com/Nanielito/workforge
6
6
  Project-URL: Repository, https://github.com/Nanielito/workforge.git
@@ -20,6 +20,8 @@ Classifier: Programming Language :: Python :: 3.12
20
20
  Classifier: Programming Language :: Python :: 3.13
21
21
  Classifier: Topic :: Software Development
22
22
  Requires-Python: >=3.11
23
+ Requires-Dist: anyio>=4.14.2
24
+ Requires-Dist: certifi>=2026.10.19
23
25
  Requires-Dist: httpx>=0.27.0
24
26
  Requires-Dist: pydantic>=2.8.0
25
27
  Requires-Dist: python-dotenv>=1.0.1
@@ -91,12 +93,32 @@ GitHub Actions runs on pull requests and pushes to `main`.
91
93
  - Tests run on Python 3.11, 3.12, and 3.13.
92
94
  - The package build is validated with `python -m build`.
93
95
 
94
- ## Provider design documentation
96
+ ## Technical documentation
97
+
98
+ - [Documentation map](https://github.com/Nanielito/workforge/blob/main/docs/README.md)
99
+ - [Technical baseline in English](https://github.com/Nanielito/workforge/blob/main/docs/en/README.md)
100
+ - [Línea base técnica en español](https://github.com/Nanielito/workforge/blob/main/docs/es/README.md)
101
+
102
+ Provider references:
95
103
 
96
104
  - [Trello provider design](https://github.com/Nanielito/workforge/blob/main/docs/trello-provider-design.md)
97
105
  - [GitHub Projects provider design](https://github.com/Nanielito/workforge/blob/main/docs/github-provider-design.md)
98
106
  - [Jira Cloud provider design](https://github.com/Nanielito/workforge/blob/main/docs/jira-provider-design.md)
99
107
 
108
+ ## TLS certificates
109
+
110
+ WorkForge uses HTTPX with `certifi>=2026.10.19` by default. This minimum
111
+ includes the fix for the [October 2026 emSign incident](https://github.com/advisories/GHSA-6q48-6c7w-9gw2).
112
+ The async TLS backend also requires `anyio>=4.14.2` for the
113
+ [hostname verification fix](https://github.com/advisories/GHSA-82r6-8w77-94w6).
114
+ For an existing pip installation, run
115
+ `python -m pip install --upgrade "certifi>=2026.10.19" "anyio>=4.14.2"` in the same environment.
116
+ For an existing uv tool installation, run
117
+ `uv tool install --reinstall --with "certifi>=2026.10.19" --with "anyio>=4.14.2" workforge`.
118
+ For on-demand runs, use `uvx --with "certifi>=2026.10.19" --with "anyio>=4.14.2" workforge`.
119
+ When using `SSL_CERT_FILE` or `SSL_CERT_DIR`, keep that CA store up to date
120
+ because HTTPX uses it in place of the bundled roots.
121
+
100
122
  ## Quick Start
101
123
 
102
124
  `uvx` is included with `uv`. If it is not available yet, install `uv` using the
@@ -203,6 +225,13 @@ workforge status workspaces/trello-example/inbox/sample-requirements.md --worksp
203
225
 
204
226
  Generate implementation context for an agent:
205
227
 
228
+ Add one `Technical reference: <path-or-URL>` line per reference in a requirement.
229
+ Both context commands display these locators as written when the requirement
230
+ and the saved item have a unique title match, ignoring case. Use paths relative
231
+ to the repository the agent will work in, or URLs the agent can access. The
232
+ agent resolves the locators. WorkForge does not resolve paths against the
233
+ workspace or input file, check that documents exist, or fetch URLs.
234
+
206
235
  ```bash
207
236
  workforge agent-context workspaces/trello-example/inbox/sample-requirements.md --workspace workspaces/trello-example --save
208
237
  ```
@@ -216,6 +245,30 @@ workforge item-context workspaces/trello-example/inbox/sample-requirements.md \
216
245
  --save
217
246
  ```
218
247
 
248
+ Record a local suggestion to review documentation for a saved item:
249
+
250
+ ```bash
251
+ workforge record-documentation-impact requirements.md --workspace .workforge \
252
+ --item 48 --document docs/architecture.md --reason "The item contract changed" \
253
+ --provenance "implementation review" --evidence src/models.py
254
+ ```
255
+
256
+ `--evidence` is optional. Generate agent or item context again with the same
257
+ workspace, input name, and provider to see the suggestion. WorkForge stores
258
+ each distinct suggestion as a JSON file under
259
+ `output/<input-name>/documentation-impacts/`, keyed to the provider and item
260
+ ID. These files are local to the workspace. Back up that directory before
261
+ cleaning `output/` if you need to keep the suggestions. To display restored
262
+ suggestions, put them back under the same input name and keep or rebuild the
263
+ corresponding `items.json`.
264
+
265
+ For items discovered with `workforge discover --workspace .workforge --save`,
266
+ use `discovered` in place of `requirements.md` in both the recording and
267
+ context commands. If you used `--output-name`, use that name instead. Select
268
+ the same provider you used for discovery. Without a matching source
269
+ requirement, generated context can show the recorded suggestions, while the
270
+ **Technical References** section is absent.
271
+
219
272
  Mark a provider checklist task as complete:
220
273
 
221
274
  ```bash
@@ -374,6 +427,34 @@ Shopify asked us to explain what customer data is collected and why.
374
427
 
375
428
  Each `##` section becomes one provider-neutral requirement.
376
429
 
430
+ Use `ID: api` on a prerequisite and `Depends_on: api` on the requirement it
431
+ blocks. Separate multiple IDs with commas. IDs are case-sensitive and resolve
432
+ within the same Markdown file, including references to later sections.
433
+ WorkForge rejects duplicate IDs, missing references, self-dependencies, and
434
+ cycles. Preview includes the validated references. Creating items with
435
+ dependencies requires provider synchronization support. WorkForge creates all
436
+ items before linking them, so references can point to later sections.
437
+ With `--save`, `items.json` records the Markdown requirement IDs and intended
438
+ dependencies alongside the provider item IDs. If linking fails, this file
439
+ still lists the created items. Check the provider before retrying, since
440
+ running `create` again can create duplicates.
441
+
442
+ GitHub Projects creates native blocked-by relationships on the underlying
443
+ issues using the workspace token's Issues write access. Jira Cloud creates
444
+ native Blocks links and requires issue linking to be enabled and the Browse
445
+ Projects and Link Issues permissions. For customized Jira link types, set
446
+ `dependency_link_type` (default `Blocks`) and `dependency_blocked_by` (default
447
+ `is blocked by`) under `providers.jira`. Use the exact name and the label
448
+ that appears on the blocked issue.
449
+
450
+ Trello adds a marked link to each prerequisite card in a dedicated
451
+ `Dependencies (WorkForge)` checklist and attaches a backlink to the
452
+ prerequisite card. Manual entries remain available in `status` and
453
+ `complete-task`, including entries in checklists named `Dependencies`.
454
+ Older unmarked links are left in place and treated as ordinary entries.
455
+ Dependency links do not enforce a block or update completion automatically. Both preview
456
+ commands describe this behavior on stderr when targeting Trello.
457
+
377
458
  ## Output Files
378
459
 
379
460
  Saved output is grouped by input filename under the selected workspace:
@@ -59,12 +59,32 @@ GitHub Actions runs on pull requests and pushes to `main`.
59
59
  - Tests run on Python 3.11, 3.12, and 3.13.
60
60
  - The package build is validated with `python -m build`.
61
61
 
62
- ## Provider design documentation
62
+ ## Technical documentation
63
+
64
+ - [Documentation map](https://github.com/Nanielito/workforge/blob/main/docs/README.md)
65
+ - [Technical baseline in English](https://github.com/Nanielito/workforge/blob/main/docs/en/README.md)
66
+ - [Línea base técnica en español](https://github.com/Nanielito/workforge/blob/main/docs/es/README.md)
67
+
68
+ Provider references:
63
69
 
64
70
  - [Trello provider design](https://github.com/Nanielito/workforge/blob/main/docs/trello-provider-design.md)
65
71
  - [GitHub Projects provider design](https://github.com/Nanielito/workforge/blob/main/docs/github-provider-design.md)
66
72
  - [Jira Cloud provider design](https://github.com/Nanielito/workforge/blob/main/docs/jira-provider-design.md)
67
73
 
74
+ ## TLS certificates
75
+
76
+ WorkForge uses HTTPX with `certifi>=2026.10.19` by default. This minimum
77
+ includes the fix for the [October 2026 emSign incident](https://github.com/advisories/GHSA-6q48-6c7w-9gw2).
78
+ The async TLS backend also requires `anyio>=4.14.2` for the
79
+ [hostname verification fix](https://github.com/advisories/GHSA-82r6-8w77-94w6).
80
+ For an existing pip installation, run
81
+ `python -m pip install --upgrade "certifi>=2026.10.19" "anyio>=4.14.2"` in the same environment.
82
+ For an existing uv tool installation, run
83
+ `uv tool install --reinstall --with "certifi>=2026.10.19" --with "anyio>=4.14.2" workforge`.
84
+ For on-demand runs, use `uvx --with "certifi>=2026.10.19" --with "anyio>=4.14.2" workforge`.
85
+ When using `SSL_CERT_FILE` or `SSL_CERT_DIR`, keep that CA store up to date
86
+ because HTTPX uses it in place of the bundled roots.
87
+
68
88
  ## Quick Start
69
89
 
70
90
  `uvx` is included with `uv`. If it is not available yet, install `uv` using the
@@ -171,6 +191,13 @@ workforge status workspaces/trello-example/inbox/sample-requirements.md --worksp
171
191
 
172
192
  Generate implementation context for an agent:
173
193
 
194
+ Add one `Technical reference: <path-or-URL>` line per reference in a requirement.
195
+ Both context commands display these locators as written when the requirement
196
+ and the saved item have a unique title match, ignoring case. Use paths relative
197
+ to the repository the agent will work in, or URLs the agent can access. The
198
+ agent resolves the locators. WorkForge does not resolve paths against the
199
+ workspace or input file, check that documents exist, or fetch URLs.
200
+
174
201
  ```bash
175
202
  workforge agent-context workspaces/trello-example/inbox/sample-requirements.md --workspace workspaces/trello-example --save
176
203
  ```
@@ -184,6 +211,30 @@ workforge item-context workspaces/trello-example/inbox/sample-requirements.md \
184
211
  --save
185
212
  ```
186
213
 
214
+ Record a local suggestion to review documentation for a saved item:
215
+
216
+ ```bash
217
+ workforge record-documentation-impact requirements.md --workspace .workforge \
218
+ --item 48 --document docs/architecture.md --reason "The item contract changed" \
219
+ --provenance "implementation review" --evidence src/models.py
220
+ ```
221
+
222
+ `--evidence` is optional. Generate agent or item context again with the same
223
+ workspace, input name, and provider to see the suggestion. WorkForge stores
224
+ each distinct suggestion as a JSON file under
225
+ `output/<input-name>/documentation-impacts/`, keyed to the provider and item
226
+ ID. These files are local to the workspace. Back up that directory before
227
+ cleaning `output/` if you need to keep the suggestions. To display restored
228
+ suggestions, put them back under the same input name and keep or rebuild the
229
+ corresponding `items.json`.
230
+
231
+ For items discovered with `workforge discover --workspace .workforge --save`,
232
+ use `discovered` in place of `requirements.md` in both the recording and
233
+ context commands. If you used `--output-name`, use that name instead. Select
234
+ the same provider you used for discovery. Without a matching source
235
+ requirement, generated context can show the recorded suggestions, while the
236
+ **Technical References** section is absent.
237
+
187
238
  Mark a provider checklist task as complete:
188
239
 
189
240
  ```bash
@@ -342,6 +393,34 @@ Shopify asked us to explain what customer data is collected and why.
342
393
 
343
394
  Each `##` section becomes one provider-neutral requirement.
344
395
 
396
+ Use `ID: api` on a prerequisite and `Depends_on: api` on the requirement it
397
+ blocks. Separate multiple IDs with commas. IDs are case-sensitive and resolve
398
+ within the same Markdown file, including references to later sections.
399
+ WorkForge rejects duplicate IDs, missing references, self-dependencies, and
400
+ cycles. Preview includes the validated references. Creating items with
401
+ dependencies requires provider synchronization support. WorkForge creates all
402
+ items before linking them, so references can point to later sections.
403
+ With `--save`, `items.json` records the Markdown requirement IDs and intended
404
+ dependencies alongside the provider item IDs. If linking fails, this file
405
+ still lists the created items. Check the provider before retrying, since
406
+ running `create` again can create duplicates.
407
+
408
+ GitHub Projects creates native blocked-by relationships on the underlying
409
+ issues using the workspace token's Issues write access. Jira Cloud creates
410
+ native Blocks links and requires issue linking to be enabled and the Browse
411
+ Projects and Link Issues permissions. For customized Jira link types, set
412
+ `dependency_link_type` (default `Blocks`) and `dependency_blocked_by` (default
413
+ `is blocked by`) under `providers.jira`. Use the exact name and the label
414
+ that appears on the blocked issue.
415
+
416
+ Trello adds a marked link to each prerequisite card in a dedicated
417
+ `Dependencies (WorkForge)` checklist and attaches a backlink to the
418
+ prerequisite card. Manual entries remain available in `status` and
419
+ `complete-task`, including entries in checklists named `Dependencies`.
420
+ Older unmarked links are left in place and treated as ordinary entries.
421
+ Dependency links do not enforce a block or update completion automatically. Both preview
422
+ commands describe this behavior on stderr when targeting Trello.
423
+
345
424
  ## Output Files
346
425
 
347
426
  Saved output is grouped by input filename under the selected workspace:
@@ -0,0 +1,46 @@
1
+ # WorkForge technical documentation
2
+
3
+ This directory contains the normative technical baseline and supporting guides
4
+ for WorkForge.
5
+
6
+ [Documentación en español](es/README.md) · [English documentation](en/README.md)
7
+
8
+ ## Baseline
9
+
10
+ | Field | Value |
11
+ | --- | --- |
12
+ | Documentation version | 1.0.0-draft |
13
+ | Product target | WorkForge 2.5.x |
14
+ | Canonical language | English; synchronized Spanish translation |
15
+ | Last synchronized | 2026-10-19 |
16
+
17
+ ## Documentation map
18
+
19
+ | ID | English | Español | Purpose |
20
+ | --- | --- | --- | --- |
21
+ | DOC-01 | [Vision and scope](en/01-vision-and-scope.md) | [Visión y alcance](es/01-vision-y-alcance.md) | Problem, users, boundaries, and principles |
22
+ | DOC-02 | [Software requirements](en/02-software-requirements-specification.md) | [Especificación de requisitos](es/02-especificacion-de-requisitos.md) | Verifiable product behavior |
23
+ | DOC-03 | [Use cases](en/03-use-cases.md) | [Casos de uso](es/03-casos-de-uso.md) | Primary and alternative workflows |
24
+ | DOC-04 | [Software architecture](en/04-software-architecture.md) | [Arquitectura de software](es/04-arquitectura-de-software.md) | Components, flow, trust boundaries, and effects |
25
+ | DOC-05 | [Data contracts](en/05-data-contracts.md) | [Contratos de datos](es/05-contratos-de-datos.md) | Inputs, models, configuration, and saved artifacts |
26
+ | DOC-06 | [Quality and governance](en/06-quality-and-governance.md) | [Calidad y gobernanza](es/06-calidad-y-gobernanza.md) | Compatibility, testing, risks, and documentation rules |
27
+
28
+ Supporting references remain in English:
29
+
30
+ - [Distribution and release guide](distribution.md)
31
+ - [GitHub provider design](github-provider-design.md)
32
+ - [Jira provider design](jira-provider-design.md)
33
+ - [Trello provider design](trello-provider-design.md)
34
+
35
+ ## Statuses
36
+
37
+ `Draft` → `In review` → `Approved` → `Superseded` or `Retired`.
38
+
39
+ ## Rules
40
+
41
+ 1. English is canonical; Spanish is synchronized in the same change.
42
+ 2. Requirement, use-case, data, and risk IDs are stable and are not reused.
43
+ 3. Behavior changes update every affected contract and use case.
44
+ 4. Significant architectural changes require an ADR after the ADR catalog is established.
45
+ 5. Markdown is the source of truth; generated formats are artifacts.
46
+
@@ -0,0 +1,90 @@
1
+ # DOC-01 — Vision and scope
2
+
3
+ | Field | Value |
4
+ | --- | --- |
5
+ | Status | Draft |
6
+ | Version | 1.0.0 |
7
+ | Product target | WorkForge 2.5.x |
8
+ | Last updated | 2026-10-19 |
9
+
10
+ ## 1. Purpose
11
+
12
+ Define the problem WorkForge solves, its users, current product boundary, and
13
+ principles. Testable commitments live in [DOC-02](02-software-requirements-specification.md).
14
+
15
+ ## 2. Problem
16
+
17
+ Teams often describe work in Markdown but manage delivery in provider-specific
18
+ systems. Manually recreating issues, cards, task lists, status, and agent context
19
+ duplicates effort and makes automation depend on one provider.
20
+
21
+ ## 3. Vision
22
+
23
+ WorkForge is a local-first CLI that turns readable requirements into
24
+ provider-neutral planning items and synchronizes their operational state with
25
+ Trello, GitHub Projects, and Jira.
26
+
27
+ **Current promise:** the same requirement and CLI workflow can be previewed,
28
+ created, discovered, inspected, and progressed without leaking provider concepts
29
+ into the shared domain or workspace artifacts.
30
+
31
+ ## 4. Users
32
+
33
+ | Actor | Need |
34
+ | --- | --- |
35
+ | Maintainer | Turn reviewed requirements into provider items safely |
36
+ | Contributor | Claim an item, understand its tasks, and report progress |
37
+ | Automation agent | Consume stable context and complete tracked tasks |
38
+ | Team | Change planning providers without changing the requirement model |
39
+
40
+ ## 5. Current scope
41
+
42
+ - Python 3.11+ CLI distributed through PyPI.
43
+ - Project-local or shared workspaces with isolated credentials.
44
+ - Markdown requirements with metadata and task lists.
45
+ - Preview before external writes.
46
+ - Trello, personal GitHub Projects v2, and Jira Cloud providers.
47
+ - Item creation, discovery, status, comments, assignment, movement, and task completion.
48
+ - Provider-neutral JSON and Markdown artifacts for local tracking and agent context.
49
+ - Task-list synchronization from requirements to existing items.
50
+
51
+ ## 6. Out of scope
52
+
53
+ - Hosting a planning service, database, or credential store.
54
+ - Continuous synchronization, polling, or webhooks.
55
+ - Creating or administering provider projects, boards, workflows, fields, labels, or milestones.
56
+ - Guaranteeing atomic multi-request provider operations.
57
+ - Arbitrary bidirectional synchronization of provider content.
58
+ - Supporting multiple providers in one saved item set.
59
+ - Treating generated output as the remote source of truth.
60
+
61
+ ## 7. Principles
62
+
63
+ 1. Provider-neutral contracts before provider-specific behavior.
64
+ 2. Preview before external mutation.
65
+ 3. Credentials remain scoped to one workspace.
66
+ 4. Remote provider state is authoritative; local output is recoverable tracking state.
67
+ 5. Managed task content is changed narrowly; unrelated provider content is preserved.
68
+ 6. Public CLI, configuration, and saved formats remain compatible within a major version.
69
+ 7. New abstractions follow demonstrated provider needs.
70
+
71
+ ## 8. Success indicators
72
+
73
+ - A contributor can initialize a workspace and validate its configured provider setup from its README.
74
+ - A reviewed requirement creates equivalent planning items across supported providers.
75
+ - Discovery can rebuild local item tracking after generated output is removed.
76
+ - Task completion updates only the intended managed task.
77
+ - Provider tests run without live external services or real credentials.
78
+ - Errors and artifacts do not expose workspace secrets.
79
+
80
+ ## 9. Uncommitted future
81
+
82
+ Additional providers, organization-owned GitHub Projects, richer requirement
83
+ formats, continuous synchronization, and machine protocols require evidence and
84
+ an explicit contract change before adoption.
85
+
86
+ ## 10. Document history
87
+
88
+ | Version | Date | Change |
89
+ | --- | --- | --- |
90
+ | 1.0.0 | 2026-10-19 | Initial retrospective technical baseline |
@@ -0,0 +1,95 @@
1
+ # DOC-02 — Software requirements specification
2
+
3
+ | Field | Value |
4
+ | --- | --- |
5
+ | Status | Draft |
6
+ | Version | 1.0.0 |
7
+ | Product target | WorkForge 2.5.x |
8
+ | Last updated | 2026-10-19 |
9
+
10
+ ## 1. Conventions
11
+
12
+ **MUST**, **MUST NOT**, **SHOULD**, and **MAY** express requirement strength.
13
+ IDs are stable. Provider-specific realizations are documented in the provider
14
+ designs rather than repeated here.
15
+
16
+ ## 2. Workspace and parsing requirements
17
+
18
+ | ID | Requirement | Verification |
19
+ | --- | --- | --- |
20
+ | RF-001 | `init` MUST create a workspace configuration, credential template, contributor README, inbox, and output directory without overwriting existing files unless `--force` is set. | Unit |
21
+ | RF-002 | A workspace MUST load `workforge.yaml` and its local `.env` without mutating the process environment. | Unit |
22
+ | RF-003 | The selected provider MUST default to `default_provider` and MAY be overridden by the command. | Unit/integration |
23
+ | RF-010 | The parser MUST convert each `##` section into one `Requirement`. | Unit |
24
+ | RF-011 | It MUST recognize Source, Namespace, Priority, Milestone, Labels, description text, and `- Task` lines. | Unit |
25
+ | RF-012 | Missing source and namespace MUST use workspace defaults; unsupported priority values MUST normalize to `medium`. | Unit |
26
+
27
+ ## 3. Safe execution requirements
28
+
29
+ | ID | Requirement | Verification |
30
+ | --- | --- | --- |
31
+ | RF-020 | `preview` MUST parse and print requirements without contacting a provider. | Unit/manual |
32
+ | RF-021 | `create` MUST avoid external writes when `--dry-run` is set or workspace `dry_run` is true without `--execute`. | Unit/integration |
33
+ | RF-022 | Executed creation MUST return provider-neutral `CreatedItem` values and MAY save them as `items.json`. | Provider tests |
34
+ | RF-023 | Provider configuration MUST be validated before the first mutation whenever the provider can validate it locally. | Provider tests |
35
+ | RF-024 | Credentials and authorization material MUST NOT appear in WorkForge-generated output, artifacts, fixtures, or translated errors. | Security tests/review |
36
+
37
+ ## 4. Tracking and synchronization requirements
38
+
39
+ | ID | Requirement | Verification |
40
+ | --- | --- | --- |
41
+ | RF-030 | `discover` MUST return open provider items and MAY filter them by label, assignee, and status. | Provider tests |
42
+ | RF-031 | Saved discovery MUST create an `items.json` usable by status and mutation commands. | Unit/provider tests |
43
+ | RF-032 | `status` MUST map live provider state and managed tasks to provider-neutral `ItemStatus` values. | Provider tests |
44
+ | RF-033 | `agent-context` and `item-context` MUST distinguish pending and completed tasks. | Unit |
45
+ | RF-034 | Item references MUST accept an ID, exact title, or unique title substring and MUST reject ambiguous references. | Unit |
46
+ | RF-035 | `update` MUST match requirements to saved items by exact title and preview before mutation unless `--execute` is supplied. | Unit/provider tests |
47
+ | RF-036 | Task synchronization SHOULD retain completion for unchanged task titles and preserve unmanaged provider content. | Provider tests |
48
+ | RF-037 | `complete-task` MUST accept the provider task ID, exact title, or unique substring and MUST reject ambiguous references. | Provider tests |
49
+ | RF-038 | Successful item mutations SHOULD refresh saved status and agent context by default. | Unit/provider tests |
50
+
51
+ ## 5. Provider requirements
52
+
53
+ | ID | Requirement | Verification |
54
+ | --- | --- | --- |
55
+ | RF-040 | Every provider MUST implement the complete `PlanningProvider` contract. | Type/registry review |
56
+ | RF-041 | Provider-specific identifiers and payloads MUST remain inside provider modules and configuration. | Architecture review |
57
+ | RF-042 | `check` MUST be read-only and return a provider-neutral result. | Provider tests |
58
+ | RF-043 | Network methods MUST use bounded timeouts. | Provider review/tests |
59
+ | RF-044 | Tests MUST inject `httpx.MockTransport` and MUST NOT call live services. | Test review |
60
+ | RF-045 | Partial creation failures MUST report enough non-secret information for recovery and MUST NOT silently claim success. | Provider tests |
61
+
62
+ ## 6. Non-functional requirements
63
+
64
+ | ID | Category | Requirement | Verification |
65
+ | --- | --- | --- | --- |
66
+ | RNF-001 | Compatibility | CLI names, options, workspace fields, provider contracts, and saved artifacts MUST remain backward-compatible within major version 2. | Release review |
67
+ | RNF-002 | Portability | The package MUST support Python 3.11, 3.12, and 3.13. | CI |
68
+ | RNF-003 | Security | Workspace credentials MUST remain local and secret-safe. | Unit/provider tests |
69
+ | RNF-004 | Recoverability | Generated tracking artifacts SHOULD be rebuildable through discovery and live status. | Use-case review |
70
+ | RNF-005 | Maintainability | Shared code MUST remain provider-neutral and providers MUST use the common contract. | Architecture review |
71
+ | RNF-006 | Distribution | Releases MUST build valid wheel and source distributions before publication. | Release workflow |
72
+ | RNF-007 | Observability | Errors SHOULD identify the failing configuration or provider operation without revealing secrets. | Provider tests |
73
+
74
+ ## 7. Draft conformance notes
75
+
76
+ The 2.5.x implementation has known gaps against this draft baseline:
77
+
78
+ - `init --provider jira` does not yet emit Jira-specific configuration or credential keys.
79
+ - Trello `providers test` validates required local values but does not verify remote access.
80
+ - Trello HTTP failure redaction does not yet have explicit token-leak regression coverage.
81
+
82
+ These notes are follow-up inputs, not exceptions to the requirements.
83
+
84
+ ## 8. Traceability rules
85
+
86
+ - Every use case references its RF and RNF requirements.
87
+ - DOC-04 assigns responsibilities without redefining requirements.
88
+ - Every persistent or exchanged datum appears in DOC-05.
89
+ - Provider designs explain how RF-040 through RF-045 are realized.
90
+
91
+ ## 9. Document history
92
+
93
+ | Version | Date | Change |
94
+ | --- | --- | --- |
95
+ | 1.0.0 | 2026-10-19 | Initial requirements reconstructed from WorkForge 2.5.x |
@@ -0,0 +1,98 @@
1
+ # DOC-03 — Use cases
2
+
3
+ | Field | Value |
4
+ | --- | --- |
5
+ | Status | Draft |
6
+ | Version | 1.0.0 |
7
+ | Product target | WorkForge 2.5.x |
8
+ | Last updated | 2026-10-19 |
9
+
10
+ ## 1. Actors
11
+
12
+ - **Maintainer:** configures a workspace and authorizes provider writes.
13
+ - **Contributor:** claims and progresses an existing planning item.
14
+ - **Automation agent:** consumes saved context and performs scoped work.
15
+ - **Planning provider:** stores remote items and is an untrusted external system.
16
+ - **Filesystem:** stores versioned requirements, local secrets, and generated artifacts.
17
+
18
+ ## 2. Catalog
19
+
20
+ | ID | Use case | Requirements |
21
+ | --- | --- | --- |
22
+ | CU-001 | Initialize and validate a workspace | RF-001–003, RF-024, RF-042 |
23
+ | CU-002 | Preview and create items | RF-010–012, RF-020–024, RF-045 |
24
+ | CU-003 | Discover and continue existing items | RF-030–034, RNF-004 |
25
+ | CU-004 | Synchronize requirement tasks | RF-035–036 |
26
+ | CU-005 | Progress one tracked item | RF-032–034, RF-037–038 |
27
+ | CU-006 | Generate agent context | RF-032–034 |
28
+ | CU-007 | Diagnose configuration or provider failure | RF-023–024, RF-042–045, RNF-007 |
29
+
30
+ ## 3. CU-001 — Initialize and validate a workspace
31
+
32
+ 1. The maintainer runs `workforge init` with a provider and namespace.
33
+ 2. WorkForge creates only missing scaffold files unless `--force` is used.
34
+ 3. The maintainer copies `.env.example` to `.env` and supplies credentials.
35
+ 4. `providers test` loads only that workspace and validates configuration and,
36
+ where supported, remote access without mutation.
37
+
38
+ **Alternative:** invalid or missing configuration returns a useful failure; no planning item is changed.
39
+
40
+ ## 4. CU-002 — Preview and create items
41
+
42
+ 1. The maintainer writes one or more Markdown requirement sections.
43
+ 2. `preview`, or dry-run `create`, emits provider-neutral requirements.
44
+ 3. The maintainer reviews the title, metadata, description, and tasks.
45
+ 4. An explicitly executed `create` sends each requirement to the selected provider.
46
+ 5. With `--save`, WorkForge writes returned item IDs, titles, URLs, and provider names.
47
+
48
+ **Alternatives:** workspace dry-run prevents mutation; a provider failure stops the command. Multi-step provider creation may leave a recoverable partial remote item.
49
+
50
+ ## 5. CU-003 — Discover and continue existing items
51
+
52
+ 1. The contributor runs `discover` with optional label, assignee, or status filters.
53
+ 2. The provider returns open items in its configured planning scope.
54
+ 3. With `--save`, WorkForge creates `items.json` under the selected output name.
55
+ 4. The contributor uses that output reference with status and mutation commands.
56
+
57
+ **Alternative:** discovery may be run again to rebuild local tracking; it does not recreate remote items.
58
+
59
+ ## 6. CU-004 — Synchronize requirement tasks
60
+
61
+ 1. The maintainer edits tasks in the requirement document.
62
+ 2. `update` matches each requirement to one saved item by exact title.
63
+ 3. Without `--execute`, WorkForge prints the proposed task list.
64
+ 4. With `--execute`, the provider replaces only its managed task content.
65
+ 5. Completion is retained for unchanged titles when the provider supports synchronization.
66
+
67
+ **Alternatives:** missing or duplicate exact titles fail before mutation; unmanaged provider content remains outside WorkForge ownership.
68
+
69
+ ## 7. CU-005 — Progress one tracked item
70
+
71
+ 1. The contributor selects an item by ID, exact title, or unique substring.
72
+ 2. `claim-item` assigns it, commonly to `@me`.
73
+ 3. `move-item` changes its provider status or list.
74
+ 4. `comment-item` records an implementation note when needed.
75
+ 5. After implementing and verifying one task, `complete-task` marks it done.
76
+ 6. WorkForge refreshes saved status and agent context by default.
77
+
78
+ **Alternatives:** ambiguous item or task references fail without choosing one arbitrarily; provider workflows may reject unavailable transitions.
79
+
80
+ ## 8. CU-006 — Generate agent context
81
+
82
+ 1. WorkForge reads saved items and fetches their live provider status.
83
+ 2. `agent-context` groups every item's pending and completed tasks.
84
+ 3. `item-context` selects one item and emits focused implementation guidance.
85
+ 4. With `--save`, the Markdown stays beside the related tracking artifacts.
86
+
87
+ ## 9. CU-007 — Diagnose a failure
88
+
89
+ 1. WorkForge validates workspace and provider inputs as early as the operation permits.
90
+ 2. It reports the resource, field, or provider operation that failed.
91
+ 3. It omits credentials and authorization material.
92
+ 4. If a partial remote item exists, the error identifies a safe recovery target when available.
93
+
94
+ ## 10. Document history
95
+
96
+ | Version | Date | Change |
97
+ | --- | --- | --- |
98
+ | 1.0.0 | 2026-10-19 | Initial use cases for WorkForge 2.5.x |