agentic-development-framework 0.2.0__tar.gz → 0.3.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 (64) hide show
  1. {agentic_development_framework-0.2.0 → agentic_development_framework-0.3.0}/CHANGELOG.md +17 -0
  2. {agentic_development_framework-0.2.0 → agentic_development_framework-0.3.0}/PKG-INFO +21 -2
  3. {agentic_development_framework-0.2.0 → agentic_development_framework-0.3.0}/README.md +20 -1
  4. {agentic_development_framework-0.2.0 → agentic_development_framework-0.3.0}/docs/APPROVALS_AND_REVISIONS.md +5 -0
  5. {agentic_development_framework-0.2.0 → agentic_development_framework-0.3.0}/docs/IMPLEMENTATION_PROGRESS.md +18 -1
  6. {agentic_development_framework-0.2.0 → agentic_development_framework-0.3.0}/docs/PYPI_RELEASE.md +3 -3
  7. {agentic_development_framework-0.2.0 → agentic_development_framework-0.3.0}/docs/REQUIREMENTS_MANAGEMENT.md +13 -0
  8. {agentic_development_framework-0.2.0 → agentic_development_framework-0.3.0}/docs/STAGE_EXECUTION.md +7 -4
  9. agentic_development_framework-0.3.0/docs/UI_UX_WORKFLOW.md +81 -0
  10. {agentic_development_framework-0.2.0 → agentic_development_framework-0.3.0}/scripts/release_acceptance.py +23 -0
  11. {agentic_development_framework-0.2.0 → agentic_development_framework-0.3.0}/src/agentic_framework/__init__.py +1 -1
  12. {agentic_development_framework-0.2.0 → agentic_development_framework-0.3.0}/src/agentic_framework/adapters/generator.py +40 -5
  13. {agentic_development_framework-0.2.0 → agentic_development_framework-0.3.0}/src/agentic_framework/cli.py +22 -1
  14. {agentic_development_framework-0.2.0 → agentic_development_framework-0.3.0}/src/agentic_framework/core/initialization.py +17 -0
  15. {agentic_development_framework-0.2.0 → agentic_development_framework-0.3.0}/src/agentic_framework/core/stages.py +103 -14
  16. {agentic_development_framework-0.2.0 → agentic_development_framework-0.3.0}/src/agentic_framework/core/workflow.py +89 -1
  17. agentic_development_framework-0.3.0/src/agentic_framework/requirements_manager/__init__.py +23 -0
  18. {agentic_development_framework-0.2.0 → agentic_development_framework-0.3.0}/src/agentic_framework/requirements_manager/ingestion.py +2 -0
  19. agentic_development_framework-0.3.0/src/agentic_framework/requirements_manager/screenshots.py +435 -0
  20. {agentic_development_framework-0.2.0 → agentic_development_framework-0.3.0}/src/agentic_framework/templates/skills/agentic-commands/SKILL.md +6 -0
  21. {agentic_development_framework-0.2.0 → agentic_development_framework-0.3.0}/tests/acceptance/test_requirements_cli.py +23 -0
  22. {agentic_development_framework-0.2.0 → agentic_development_framework-0.3.0}/tests/integration/test_stage_execution.py +115 -0
  23. {agentic_development_framework-0.2.0 → agentic_development_framework-0.3.0}/tests/unit/test_adapters.py +4 -0
  24. {agentic_development_framework-0.2.0 → agentic_development_framework-0.3.0}/tests/unit/test_cli.py +1 -1
  25. {agentic_development_framework-0.2.0 → agentic_development_framework-0.3.0}/tests/unit/test_initialization.py +4 -0
  26. agentic_development_framework-0.3.0/tests/unit/test_screenshots.py +208 -0
  27. agentic_development_framework-0.2.0/src/agentic_framework/requirements_manager/__init__.py +0 -8
  28. {agentic_development_framework-0.2.0 → agentic_development_framework-0.3.0}/.gitignore +0 -0
  29. {agentic_development_framework-0.2.0 → agentic_development_framework-0.3.0}/LICENSE +0 -0
  30. {agentic_development_framework-0.2.0 → agentic_development_framework-0.3.0}/docs/ACCEPTANCE_REPORT.md +0 -0
  31. {agentic_development_framework-0.2.0 → agentic_development_framework-0.3.0}/docs/ANTIGRAVITY_SETUP.md +0 -0
  32. {agentic_development_framework-0.2.0 → agentic_development_framework-0.3.0}/docs/COMMAND_REFERENCE.md +0 -0
  33. {agentic_development_framework-0.2.0 → agentic_development_framework-0.3.0}/docs/IMPLEMENTATION_PLAN.md +0 -0
  34. {agentic_development_framework-0.2.0 → agentic_development_framework-0.3.0}/docs/WORKFLOW_ARCHITECTURE.md +0 -0
  35. {agentic_development_framework-0.2.0 → agentic_development_framework-0.3.0}/pyproject.toml +0 -0
  36. {agentic_development_framework-0.2.0 → agentic_development_framework-0.3.0}/scripts/installed_distribution_tests.py +0 -0
  37. {agentic_development_framework-0.2.0 → agentic_development_framework-0.3.0}/src/agentic_framework/__main__.py +0 -0
  38. {agentic_development_framework-0.2.0 → agentic_development_framework-0.3.0}/src/agentic_framework/adapters/__init__.py +0 -0
  39. {agentic_development_framework-0.2.0 → agentic_development_framework-0.3.0}/src/agentic_framework/core/__init__.py +0 -0
  40. {agentic_development_framework-0.2.0 → agentic_development_framework-0.3.0}/src/agentic_framework/core/command_registry.py +0 -0
  41. {agentic_development_framework-0.2.0 → agentic_development_framework-0.3.0}/src/agentic_framework/core/config.py +0 -0
  42. {agentic_development_framework-0.2.0 → agentic_development_framework-0.3.0}/src/agentic_framework/core/custom_commands.py +0 -0
  43. {agentic_development_framework-0.2.0 → agentic_development_framework-0.3.0}/src/agentic_framework/core/project.py +0 -0
  44. {agentic_development_framework-0.2.0 → agentic_development_framework-0.3.0}/src/agentic_framework/exceptions.py +0 -0
  45. {agentic_development_framework-0.2.0 → agentic_development_framework-0.3.0}/src/agentic_framework/logging.py +0 -0
  46. {agentic_development_framework-0.2.0 → agentic_development_framework-0.3.0}/src/agentic_framework/requirements_manager/comparison.py +0 -0
  47. {agentic_development_framework-0.2.0 → agentic_development_framework-0.3.0}/src/agentic_framework/requirements_manager/extraction.py +0 -0
  48. {agentic_development_framework-0.2.0 → agentic_development_framework-0.3.0}/src/agentic_framework/requirements_manager/traceability.py +0 -0
  49. {agentic_development_framework-0.2.0 → agentic_development_framework-0.3.0}/src/agentic_framework/state/__init__.py +0 -0
  50. {agentic_development_framework-0.2.0 → agentic_development_framework-0.3.0}/src/agentic_framework/state/database.py +0 -0
  51. {agentic_development_framework-0.2.0 → agentic_development_framework-0.3.0}/src/agentic_framework/templates/__init__.py +0 -0
  52. {agentic_development_framework-0.2.0 → agentic_development_framework-0.3.0}/tests/acceptance/test_commands_cli.py +0 -0
  53. {agentic_development_framework-0.2.0 → agentic_development_framework-0.3.0}/tests/acceptance/test_init_cli.py +0 -0
  54. {agentic_development_framework-0.2.0 → agentic_development_framework-0.3.0}/tests/integration/test_requirements_ingestion.py +0 -0
  55. {agentic_development_framework-0.2.0 → agentic_development_framework-0.3.0}/tests/integration/test_workflow_recovery.py +0 -0
  56. {agentic_development_framework-0.2.0 → agentic_development_framework-0.3.0}/tests/unit/test_comparison.py +0 -0
  57. {agentic_development_framework-0.2.0 → agentic_development_framework-0.3.0}/tests/unit/test_config.py +0 -0
  58. {agentic_development_framework-0.2.0 → agentic_development_framework-0.3.0}/tests/unit/test_custom_commands.py +0 -0
  59. {agentic_development_framework-0.2.0 → agentic_development_framework-0.3.0}/tests/unit/test_extraction.py +0 -0
  60. {agentic_development_framework-0.2.0 → agentic_development_framework-0.3.0}/tests/unit/test_logging.py +0 -0
  61. {agentic_development_framework-0.2.0 → agentic_development_framework-0.3.0}/tests/unit/test_package_resources.py +0 -0
  62. {agentic_development_framework-0.2.0 → agentic_development_framework-0.3.0}/tests/unit/test_project.py +0 -0
  63. {agentic_development_framework-0.2.0 → agentic_development_framework-0.3.0}/tests/unit/test_state.py +0 -0
  64. {agentic_development_framework-0.2.0 → agentic_development_framework-0.3.0}/tests/unit/test_traceability.py +0 -0
@@ -4,6 +4,23 @@ All notable changes to this project will be documented in this file.
4
4
 
5
5
  ## Unreleased
6
6
 
7
+ ## 0.3.0 - 2026-11-03
8
+
9
+ ### Added
10
+
11
+ - Recursive PNG/JPG/JPEG/WEBP screenshot-reference discovery with dimensions, contextual hints,
12
+ immutable byte-preserving revisions, tamper detection, and generated analysis inventory.
13
+ - `adt requirements screenshots` plus automatic screenshot synchronization during requirements
14
+ ingestion and UI/UX stage preparation.
15
+ - Structured design-input and browser-verification evidence gates, versioned prototypes, and
16
+ frontend design-reference traceability.
17
+
18
+ ### Changed
19
+
20
+ - The existing UI/UX stages now treat the interactive prototype as the final visual source of
21
+ truth, support Figma MCP, generated, and screenshot inputs together, and require desktop,
22
+ tablet, mobile, interaction, revision, and explicit human-approval evidence.
23
+
7
24
  ## 0.2.0 - 2026-11-02
8
25
 
9
26
  ### Added
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: agentic-development-framework
3
- Version: 0.2.0
3
+ Version: 0.3.0
4
4
  Summary: A local-first framework for agentic software development workflows.
5
5
  Project-URL: Homepage, https://github.com/Badsha-ugv/ide-agentic-development-framework
6
6
  Project-URL: Repository, https://github.com/Badsha-ugv/ide-agentic-development-framework
@@ -39,7 +39,7 @@ The project is being delivered incrementally. The current implementation provide
39
39
  installable package, strict configuration validation, structured logging, safe project
40
40
  initialization, immutable requirements versioning, SQLite workflow state, recovery checkpoints,
41
41
  lifecycle commands, structured stage execution contracts, artifact validation, approval history,
42
- and Codex/Antigravity project configuration.
42
+ Codex/Antigravity project configuration, and a browser-verified final visual prototype workflow.
43
43
 
44
44
  ## Requirements
45
45
 
@@ -74,6 +74,7 @@ adt --version
74
74
  adt init
75
75
  adt config validate path/to/config.yaml
76
76
  adt requirements ingest
77
+ adt requirements screenshots
77
78
  adt start
78
79
  adt status
79
80
  adt pause
@@ -137,6 +138,24 @@ clear unsupported-extraction status. Optional binary-format extractors are futur
137
138
 
138
139
  See `docs/REQUIREMENTS_MANAGEMENT.md` for the file contract and safety behavior.
139
140
 
141
+ Place PNG, JPG, JPEG, or WEBP design references anywhere below `requirements/screenshots/` and
142
+ run `adt requirements screenshots`. ADF recursively catalogs them, preserves immutable reference
143
+ revisions, records dimensions and contextual folder hints, and updates
144
+ `docs/ui-ux/screenshot-reference-analysis.md` without modifying originals. Requirements ingestion
145
+ also performs this synchronization.
146
+
147
+ ## UI/UX final visual workflow
148
+
149
+ The `ui_ux_design` stage accepts authenticated Figma MCP context, generated HTML/CSS/Tailwind
150
+ design, screenshot references, or a combination. Its prototype is the final visual source of truth,
151
+ not a preliminary wireframe. The stage requires a design system, complete page and role inventory,
152
+ responsive and interactive states, immutable prototype versions, and browser evidence for desktop,
153
+ tablet, and mobile rendering. Structured evidence is validated before completion.
154
+
155
+ The following `design_review` stage always waits for explicit human approval. Frontend work must
156
+ follow the approved prototype and produce design-reference traceability. See
157
+ [`docs/UI_UX_WORKFLOW.md`](docs/UI_UX_WORKFLOW.md).
158
+
140
159
  ## Runtime state and recovery
141
160
 
142
161
  Initialization creates `.agentic/database/agentic.db` as the transactional source of truth,
@@ -7,7 +7,7 @@ The project is being delivered incrementally. The current implementation provide
7
7
  installable package, strict configuration validation, structured logging, safe project
8
8
  initialization, immutable requirements versioning, SQLite workflow state, recovery checkpoints,
9
9
  lifecycle commands, structured stage execution contracts, artifact validation, approval history,
10
- and Codex/Antigravity project configuration.
10
+ Codex/Antigravity project configuration, and a browser-verified final visual prototype workflow.
11
11
 
12
12
  ## Requirements
13
13
 
@@ -42,6 +42,7 @@ adt --version
42
42
  adt init
43
43
  adt config validate path/to/config.yaml
44
44
  adt requirements ingest
45
+ adt requirements screenshots
45
46
  adt start
46
47
  adt status
47
48
  adt pause
@@ -105,6 +106,24 @@ clear unsupported-extraction status. Optional binary-format extractors are futur
105
106
 
106
107
  See `docs/REQUIREMENTS_MANAGEMENT.md` for the file contract and safety behavior.
107
108
 
109
+ Place PNG, JPG, JPEG, or WEBP design references anywhere below `requirements/screenshots/` and
110
+ run `adt requirements screenshots`. ADF recursively catalogs them, preserves immutable reference
111
+ revisions, records dimensions and contextual folder hints, and updates
112
+ `docs/ui-ux/screenshot-reference-analysis.md` without modifying originals. Requirements ingestion
113
+ also performs this synchronization.
114
+
115
+ ## UI/UX final visual workflow
116
+
117
+ The `ui_ux_design` stage accepts authenticated Figma MCP context, generated HTML/CSS/Tailwind
118
+ design, screenshot references, or a combination. Its prototype is the final visual source of truth,
119
+ not a preliminary wireframe. The stage requires a design system, complete page and role inventory,
120
+ responsive and interactive states, immutable prototype versions, and browser evidence for desktop,
121
+ tablet, and mobile rendering. Structured evidence is validated before completion.
122
+
123
+ The following `design_review` stage always waits for explicit human approval. Frontend work must
124
+ follow the approved prototype and produce design-reference traceability. See
125
+ [`docs/UI_UX_WORKFLOW.md`](docs/UI_UX_WORKFLOW.md).
126
+
108
127
  ## Runtime state and recovery
109
128
 
110
129
  Initialization creates `.agentic/database/agentic.db` as the transactional source of truth,
@@ -22,3 +22,8 @@ Approval is requested again; revision feedback never implies approval.
22
22
  Revision snapshots, artifact metadata revisions, approval state, event history, and checkpoints
23
23
  survive process and IDE restarts. The normal project documents remain the editable working copy;
24
24
  the snapshot is the immutable review-history evidence.
25
+
26
+ For `design_review`, revision work must also create a new version below
27
+ `design-prototype/versions/`, update the UI/UX revision history, and rerun browser verification for
28
+ all affected pages and viewports. The final visual prototype is never automatically approved, and
29
+ frontend implementation cannot begin until `adt approve design_review` succeeds.
@@ -140,5 +140,22 @@ Status: PyPI 0.1.0 release gates passed (2026-11-02)
140
140
 
141
141
  Phase 8, broader Phase 9 integrations, the VS Code portion of Phase 7, and native AI-provider
142
142
  integration remain on the roadmap. IDE agents are the supported reasoning layer; the CLI does not
143
- embed or call a paid model API. These changes are included in the 0.2.0 release candidate.
143
+ embed or call a paid model API. These changes were released in 0.2.0.
144
+
145
+ ## UI/UX final visual prototype improvement
146
+
147
+ Status: complete; included in the 0.3.0 release candidate (2026-11-03)
148
+
149
+ - [x] Existing `ui_ux_design` and `design_review` stages extended without parallel workflow IDs
150
+ - [x] Figma MCP, generated prototype, and screenshot methods supported independently or together
151
+ - [x] Flexible screenshot folders initialized below `requirements/screenshots/`
152
+ - [x] Recursive PNG/JPG/JPEG/WEBP discovery with dimensions, hashes, and contextual hints
153
+ - [x] Immutable screenshot revisions and tamper detection without modifying originals
154
+ - [x] Generated screenshot analysis inventory with agent-editable analysis preserved
155
+ - [x] Design-system-first, page/role inventory, interaction, responsive, and state requirements
156
+ - [x] Structured browser verification gate with rendered screenshot validation
157
+ - [x] Immutable prototype version and revision-history requirements
158
+ - [x] Explicit final visual human approval gate
159
+ - [x] Frontend approved-design traceability requirement
160
+ - [x] Focused unit, integration, and acceptance coverage
144
161
 
@@ -84,8 +84,8 @@ Review the complete diff and confirm CI on `main` is green. Then create and push
84
84
  git switch main
85
85
  git pull --ff-only
86
86
  git status --short
87
- git tag -s v0.2.0 -m "Release 0.2.0"
88
- git push origin v0.2.0
87
+ git tag -s v0.3.0 -m "Release 0.3.0"
88
+ git push origin v0.3.0
89
89
  ```
90
90
 
91
91
  Use an annotated unsigned tag (`git tag -a`) only if signed tags are not available. Do not reuse a
@@ -104,7 +104,7 @@ must all pass before the OIDC publishing job can run.
104
104
  ```bash
105
105
  verify_tmp="$(mktemp -d)"
106
106
  python -m venv "$verify_tmp/venv"
107
- "$verify_tmp/venv/bin/python" -m pip install agentic-development-framework==0.2.0
107
+ "$verify_tmp/venv/bin/python" -m pip install agentic-development-framework==0.3.0
108
108
  "$verify_tmp/venv/bin/adt" --version
109
109
  "$verify_tmp/venv/bin/adt" --help
110
110
  ```
@@ -58,3 +58,16 @@ extraction never prevents source preservation or version publication.
58
58
 
59
59
  Symbolic links are rejected so ingestion cannot copy files from outside the explicitly managed
60
60
  inbox.
61
+
62
+ ## Screenshot design references
63
+
64
+ Visual references are managed separately below `requirements/screenshots/`; they are not treated
65
+ as textual inbox requirements. PNG, JPG, JPEG, and WEBP images may use arbitrary nested folders.
66
+ Run `adt requirements screenshots` to recursively discover them, record dimensions and contextual
67
+ folder hints, and update `manifest.json` plus `docs/ui-ux/screenshot-reference-analysis.md`.
68
+
69
+ Each changed screenshot set creates an immutable revision under
70
+ `requirements/screenshots/.versions/` with verified byte-for-byte copies. Existing revisions are
71
+ hash-validated before use, originals remain untouched, unsupported files are ignored, and symbolic
72
+ links or invalid image headers produce actionable errors. Requirements ingestion synchronizes the
73
+ same catalog after it has validated a non-empty inbox.
@@ -30,7 +30,10 @@ Facts, assumptions, risks, and open questions must remain distinct. Missing prod
30
30
  into the clarification log; the agent must not invent answers. Requirements stages then create
31
31
  stable IDs, acceptance criteria, traceability, and the SRS before the requirements approval gate.
32
32
 
33
- Later contracts cover architecture, a Figma-backed or local interactive design prototype,
34
- development planning, implementation, integration, testing, review, delivery validation,
35
- documentation, and release review. The contract file—not conversational memory—is the durable
36
- definition of the next work.
33
+ Later contracts cover architecture, a Figma-backed, screenshot-informed, or generated final visual
34
+ prototype, development planning, implementation, integration, testing, review, delivery
35
+ validation, documentation, and release review. UI/UX completion requires versioned prototype
36
+ artifacts plus structured browser evidence for all pages, interactions, and desktop, tablet, and
37
+ mobile layouts. `design_review` cannot advance without explicit approval, and implementation must
38
+ produce frontend design-reference traceability. The contract file—not conversational memory—is
39
+ the durable definition of the next work.
@@ -0,0 +1,81 @@
1
+ # UI/UX Design & Final Visual Prototype
2
+
3
+ ADF treats the interactive prototype as the final visual specification for frontend
4
+ implementation. It is not a wireframe or disposable mockup. The stable workflow stage IDs remain
5
+ `ui_ux_design` and `design_review`, so existing runtime state remains compatible.
6
+
7
+ ## Design inputs
8
+
9
+ The UI/UX agent records one or more methods in `docs/ui-ux/design-inputs.json`:
10
+
11
+ - `figma_mcp`: an authenticated Figma MCP connection was used to inspect the supplied file or
12
+ frame, including its components, styles, variables, assets, and visual screenshots;
13
+ - `generated_prototype`: the agent established a design system and generated the final visual
14
+ direction from approved requirements; and
15
+ - `screenshots`: the agent visually inspected references discovered below
16
+ `requirements/screenshots/`.
17
+
18
+ Methods may be combined. Selecting Figma without recording successful authenticated inspection
19
+ blocks completion. An unavailable MCP server or failed authentication must be reported as a
20
+ blocker; generated claims cannot substitute for design context.
21
+
22
+ ## Screenshot references
23
+
24
+ `adt init` creates suggested desktop, mobile, role, and general reference folders. These are
25
+ conveniences, not a schema. Any additional nesting is supported. PNG, JPG, JPEG, and WEBP files
26
+ are discovered recursively with:
27
+
28
+ ```bash
29
+ adt requirements screenshots
30
+ ```
31
+
32
+ ADF reads image dimensions, hashes original bytes, records contextual folder hints, writes
33
+ `requirements/screenshots/manifest.json`, and maintains immutable copies under the hidden
34
+ `requirements/screenshots/.versions/` history. It never modifies or deletes originals. A changed
35
+ reference creates a new revision; unchanged references do not.
36
+
37
+ The generated inventory block in `docs/ui-ux/screenshot-reference-analysis.md` is updated without
38
+ overwriting the agent-authored analysis below it. Folder names are only hints. The agent must open
39
+ and inspect the images, record visual patterns and missing screens, and trace references to
40
+ generated pages.
41
+
42
+ Requirements ingestion also synchronizes screenshot references. Preparing `ui_ux_design` or
43
+ `design_review` performs the same synchronization, so newly added references enter the current
44
+ design cycle automatically.
45
+
46
+ ## Required final-design evidence
47
+
48
+ The design contract requires:
49
+
50
+ - a page and role inventory;
51
+ - the complete design system;
52
+ - screenshot analysis and missing-screen decisions;
53
+ - the high-fidelity interactive prototype;
54
+ - at least one immutable prototype version;
55
+ - revision history;
56
+ - rendered verification screenshots; and
57
+ - structured browser evidence in `docs/ui-ux/browser-verification.json`.
58
+
59
+ Browser evidence must mark the run as passed and list every page with desktop, tablet, and mobile
60
+ coverage, passing interactions, and project-relative rendered screenshot paths below
61
+ `design-prototype/verification-screenshots/`. `adt stage complete` validates this evidence instead
62
+ of accepting file existence alone.
63
+
64
+ Visible controls must perform meaningful actions. Browser verification covers navigation,
65
+ responsive behavior, states, forms, filters, dialogs, and other interactions relevant to the
66
+ approved requirements.
67
+
68
+ ## Review, revisions, and frontend handoff
69
+
70
+ `design_review` presents the complete page inventory, preview instructions, design system,
71
+ responsive and interaction evidence, issues, and revision history. It always stops at
72
+ `awaiting_approval`. Only explicit `adt approve design_review` advances the workflow.
73
+
74
+ `adt revise design_review "FEEDBACK"` preserves the reviewed artifact snapshot. The agent updates
75
+ affected screens without discarding unrelated approved decisions, creates a new prototype version,
76
+ reruns browser verification, registers the new bytes, and submits the same review stage again.
77
+
78
+ The implementation stage consumes the approved prototype and requires
79
+ `docs/reports/frontend-design-traceability.md`. Production frontend work must preserve approved
80
+ layouts, components, visual hierarchy, interactions, and responsive behavior, then compare its
81
+ rendering with the approved prototype rather than independently redesigning it.
@@ -79,6 +79,9 @@ def _verify_files(root: Path) -> None:
79
79
  ".agentic/state/execution.json",
80
80
  ".agentic/logs/events.jsonl",
81
81
  "requirements/inbox",
82
+ "requirements/screenshots/desktop/homepage",
83
+ "requirements/screenshots/mobile/dashboard",
84
+ "requirements/screenshots/admin-dashboard",
82
85
  "requirements/versions",
83
86
  "requirements/reports",
84
87
  )
@@ -175,6 +178,25 @@ def run_acceptance(artifact: Path) -> dict[str, object]:
175
178
  [str(adt), "config", "validate", ".agentic/config.yaml"], cwd=root
176
179
  )
177
180
 
181
+ screenshot = root / "requirements/screenshots/desktop/dashboard/reference.png"
182
+ screenshot.parent.mkdir(parents=True, exist_ok=True)
183
+ screenshot_bytes = (
184
+ b"\x89PNG\r\n\x1a\n\x00\x00\x00\rIHDR"
185
+ + (1440).to_bytes(4, "big")
186
+ + (900).to_bytes(4, "big")
187
+ )
188
+ screenshot.write_bytes(screenshot_bytes)
189
+ screenshot_sync = _run([str(adt), "requirements", "screenshots"], cwd=root)
190
+ assert "Published screenshot revision 1" in screenshot_sync
191
+ assert screenshot.read_bytes() == screenshot_bytes
192
+ assert (root / "requirements/screenshots/manifest.json").is_file()
193
+ assert (
194
+ root
195
+ / "requirements/screenshots/.versions/version-001/source-files"
196
+ / "desktop/dashboard/reference.png"
197
+ ).read_bytes() == screenshot_bytes
198
+ assert (root / "docs/ui-ux/screenshot-reference-analysis.md").is_file()
199
+
178
200
  inbox = root / "requirements/inbox"
179
201
  (inbox / "product.md").write_text("REQ-001: Sign in\n", encoding="utf-8")
180
202
  _run([str(adt), "requirements", "ingest"], cwd=root)
@@ -216,6 +238,7 @@ def run_acceptance(artifact: Path) -> dict[str, object]:
216
238
  "configuration_validation": True,
217
239
  "state_database": True,
218
240
  "requirements_versions": 2,
241
+ "screenshot_reference_versioning": True,
219
242
  "recovery": True,
220
243
  }
221
244
 
@@ -1,6 +1,6 @@
1
1
  """Agentic Development Framework public package metadata."""
2
2
 
3
- __version__ = "0.2.0"
3
+ __version__ = "0.3.0"
4
4
 
5
5
  __all__ = ["__version__"]
6
6
 
@@ -31,6 +31,8 @@ read the shared command skill and
31
31
  `.agentic/execution-contracts.yaml`; do not merely run a lifecycle command and report its output.
32
32
  The IDE agent performs reasoning and artifact creation while `adt` persists execution, artifacts,
33
33
  validation, approvals, and recovery. Never bypass approval gates or overwrite unrelated changes.
34
+ For the UI/UX stage, treat the browser-verified prototype as the final visual specification, sync
35
+ and inspect screenshot references, and require explicit approval before frontend implementation.
34
36
  """
35
37
 
36
38
  _CODEX_NOTE = """# Codex adapter
@@ -78,24 +80,57 @@ def _workflow() -> str:
78
80
  "checkpoint_policy": "on_completion",
79
81
  }
80
82
  )
81
- return _yaml({"schema_version": 2, "name": "default", "stages": stages})
83
+ return _yaml({"schema_version": 3, "name": "default", "stages": stages})
82
84
 
83
85
 
84
86
  def _registry() -> str:
85
87
  agents = []
86
88
  for agent_id, name in _AGENTS:
89
+ responsibilities = [f"Perform {name.lower()} work within approved scope"]
90
+ required_inputs: list[str] = []
91
+ expected_outputs = ["standardized agent result"]
92
+ verification = ["run relevant checks"]
93
+ if agent_id == "ui_ux_designer":
94
+ responsibilities = [
95
+ "Create the complete high-fidelity final visual prototype",
96
+ "Analyze Figma, screenshots, and approved requirements without inventing evidence",
97
+ "Verify every page, viewport, and interaction in a browser",
98
+ ]
99
+ required_inputs = [
100
+ "approved requirements and architecture",
101
+ "screenshot manifest and actual images",
102
+ "optional authenticated Figma design context",
103
+ ]
104
+ expected_outputs = [
105
+ "versioned interactive prototype",
106
+ "design system and page inventory",
107
+ "browser verification evidence",
108
+ ]
109
+ verification = [
110
+ "inspect desktop, tablet, and mobile rendering",
111
+ "test meaningful behavior for every visible control",
112
+ "preserve revision and visual-reference traceability",
113
+ ]
114
+ elif agent_id == "frontend_developer":
115
+ responsibilities = [
116
+ "Implement the explicitly approved final visual prototype faithfully",
117
+ "Preserve approved layouts, components, interactions, and responsive behavior",
118
+ ]
119
+ required_inputs = ["approved design prototype and browser evidence"]
120
+ expected_outputs = ["frontend design-reference traceability"]
121
+ verification = ["compare production rendering with approved prototype screenshots"]
87
122
  agents.append(
88
123
  {
89
124
  "id": agent_id,
90
125
  "name": name,
91
126
  "role": name,
92
- "responsibilities": [f"Perform {name.lower()} work within approved scope"],
127
+ "responsibilities": responsibilities,
93
128
  "scope": "assigned tasks only",
94
- "required_inputs": [],
95
- "expected_outputs": ["standardized agent result"],
129
+ "required_inputs": required_inputs,
130
+ "expected_outputs": expected_outputs,
96
131
  "allowed_tools": ["repository read/write tools", "project test commands"],
97
132
  "restricted_operations": ["secrets", "force push", "unapproved deployment"],
98
- "verification_requirements": ["run relevant checks"],
133
+ "verification_requirements": verification,
99
134
  "handoff_format": "agent result contract",
100
135
  "failure_and_escalation": "record blocker and escalate to orchestrator",
101
136
  }
@@ -19,7 +19,7 @@ from agentic_framework.exceptions import (
19
19
  RequirementsError,
20
20
  StateError,
21
21
  )
22
- from agentic_framework.requirements_manager import RequirementsManager
22
+ from agentic_framework.requirements_manager import RequirementsManager, ScreenshotManager
23
23
 
24
24
  app = typer.Typer(
25
25
  name="adt",
@@ -427,3 +427,24 @@ def ingest_requirements(
427
427
  relative_report = result.impact_report.relative_to(result.version_path.parents[1])
428
428
  typer.echo(f"Impact report: {relative_report}")
429
429
 
430
+
431
+ @requirements_app.command("screenshots")
432
+ def sync_screenshots(
433
+ path: Annotated[
434
+ Path,
435
+ typer.Option("--path", help="Project directory containing requirements/screenshots."),
436
+ ] = Path("."),
437
+ ) -> None:
438
+ """Discover screenshot references and publish an immutable manifest revision."""
439
+
440
+ try:
441
+ result = ScreenshotManager(path).sync()
442
+ except RequirementsError as exc:
443
+ typer.echo(f"Error: {exc}", err=True)
444
+ raise typer.Exit(code=2) from exc
445
+ action = "Unchanged" if result.duplicate else "Published"
446
+ typer.echo(f"{action} screenshot revision {result.revision}.")
447
+ typer.echo(f"Screenshot files: {result.file_count}")
448
+ typer.echo("Manifest: requirements/screenshots/manifest.json")
449
+ typer.echo("Analysis: docs/ui-ux/screenshot-reference-analysis.md")
450
+
@@ -34,12 +34,23 @@ _DIRECTORIES = (
34
34
  ".github/instructions",
35
35
  ".github/workflows",
36
36
  "requirements/inbox",
37
+ "requirements/screenshots/desktop/homepage",
38
+ "requirements/screenshots/desktop/dashboard",
39
+ "requirements/screenshots/desktop/other",
40
+ "requirements/screenshots/mobile/homepage",
41
+ "requirements/screenshots/mobile/dashboard",
42
+ "requirements/screenshots/mobile/other",
43
+ "requirements/screenshots/admin-dashboard",
44
+ "requirements/screenshots/vendor-dashboard",
45
+ "requirements/screenshots/customer-dashboard",
46
+ "requirements/screenshots/references",
37
47
  "requirements/versions",
38
48
  "requirements/reports",
39
49
  "docs/discovery",
40
50
  "docs/requirements",
41
51
  "docs/architecture",
42
52
  "docs/design",
53
+ "docs/ui-ux",
43
54
  "docs/decisions",
44
55
  "docs/planning",
45
56
  "docs/technical",
@@ -64,6 +75,8 @@ This project uses the Agentic Development Framework (ADF).
64
75
  and run `adt stage complete`. The CLI persists state; the IDE agent performs the work.
65
76
  - Never treat successful `adt continue` output as completion or stage advancement.
66
77
  - Do not claim a task or phase is complete until its required checks pass.
78
+ - Treat the UI/UX prototype as the final visual specification: inspect actual Figma/screenshots,
79
+ browser-test all pages and viewports, preserve revisions, and wait for explicit design approval.
67
80
  """
68
81
 
69
82
  _REQUIREMENTS_README = """# Project requirements
@@ -72,6 +85,10 @@ Place source requirement files in `inbox/`, then run `adt requirements ingest`.
72
85
  source byte-for-byte into an immutable directory under `versions/`, detects duplicates using
73
86
  SHA-256 hashes, and compares each new version with its predecessor. Files in `inbox/` are never
74
87
  silently overwritten or removed.
88
+
89
+ Place PNG, JPG, JPEG, or WEBP visual references anywhere under `screenshots/`. ADF discovers them
90
+ recursively, preserves immutable revisions, and updates the screenshot manifest with
91
+ `adt requirements screenshots`. Folder names provide context but never replace visual inspection.
75
92
  """
76
93
 
77
94
  _GITIGNORE = """# Agentic Development Framework local runtime data