@12ui/design 0.2.4 → 0.2.6

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 (58) hide show
  1. package/README.md +16 -17
  2. package/dist/cli-corpus-reference-downloads.d.ts.map +1 -1
  3. package/dist/cli-corpus-reference-downloads.js +4 -0
  4. package/dist/cli-corpus-reference-downloads.js.map +1 -1
  5. package/dist/cli-corpus-types.d.ts +4 -0
  6. package/dist/cli-corpus-types.d.ts.map +1 -1
  7. package/dist/cli-image-batch-command.d.ts +8 -0
  8. package/dist/cli-image-batch-command.d.ts.map +1 -0
  9. package/dist/cli-image-batch-command.js +127 -0
  10. package/dist/cli-image-batch-command.js.map +1 -0
  11. package/dist/cli-image-command.d.ts.map +1 -1
  12. package/dist/cli-image-command.js +17 -111
  13. package/dist/cli-image-command.js.map +1 -1
  14. package/dist/cli.js +6 -1
  15. package/dist/cli.js.map +1 -1
  16. package/dist/client-auth-guidance.d.ts +3 -0
  17. package/dist/client-auth-guidance.d.ts.map +1 -0
  18. package/dist/client-auth-guidance.js +14 -0
  19. package/dist/client-auth-guidance.js.map +1 -0
  20. package/dist/config.d.ts.map +1 -1
  21. package/dist/config.js +2 -1
  22. package/dist/config.js.map +1 -1
  23. package/dist/conversion-client.d.ts.map +1 -1
  24. package/dist/conversion-client.js +2 -1
  25. package/dist/conversion-client.js.map +1 -1
  26. package/dist/corpus-client.d.ts.map +1 -1
  27. package/dist/corpus-client.js +2 -1
  28. package/dist/corpus-client.js.map +1 -1
  29. package/dist/image-generation-batch-manifest.d.ts +24 -0
  30. package/dist/image-generation-batch-manifest.d.ts.map +1 -0
  31. package/dist/image-generation-batch-manifest.js +91 -0
  32. package/dist/image-generation-batch-manifest.js.map +1 -0
  33. package/dist/image-generation-evidence.d.ts +9 -1
  34. package/dist/image-generation-evidence.d.ts.map +1 -1
  35. package/dist/image-generation-evidence.js.map +1 -1
  36. package/dist/image-generation-request.d.ts +29 -0
  37. package/dist/image-generation-request.d.ts.map +1 -0
  38. package/dist/image-generation-request.js +46 -0
  39. package/dist/image-generation-request.js.map +1 -0
  40. package/dist/image-generation-run.d.ts +35 -0
  41. package/dist/image-generation-run.d.ts.map +1 -0
  42. package/dist/image-generation-run.js +134 -0
  43. package/dist/image-generation-run.js.map +1 -0
  44. package/dist/image-generation-usage.d.ts +71 -0
  45. package/dist/image-generation-usage.d.ts.map +1 -0
  46. package/dist/image-generation-usage.js +192 -0
  47. package/dist/image-generation-usage.js.map +1 -0
  48. package/dist/legacy-skill-catalog.d.ts.map +1 -1
  49. package/dist/legacy-skill-catalog.js +23 -2
  50. package/dist/legacy-skill-catalog.js.map +1 -1
  51. package/dist/skill-installer.d.ts.map +1 -1
  52. package/dist/skill-installer.js +43 -8
  53. package/dist/skill-installer.js.map +1 -1
  54. package/package.json +2 -2
  55. package/skills/design/SKILL.md +108 -205
  56. package/skills/design/references/selection-contract.md +43 -75
  57. package/skills/design-convert/SKILL.md +47 -97
  58. package/skills/design-search/SKILL.md +26 -60
@@ -1 +1 @@
1
- {"version":3,"file":"skill-installer.js","sourceRoot":"","sources":["../src/skill-installer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACpC,OAAO,EACL,MAAM,EACN,EAAE,EACF,KAAK,EACL,OAAO,EACP,QAAQ,EACR,MAAM,EACN,KAAK,EACL,EAAE,EACF,IAAI,GACL,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEzC,OAAO,EACL,2BAA2B,EAC3B,+BAA+B,EAC/B,kBAAkB,EAClB,wBAAwB,GACzB,MAAM,2BAA2B,CAAC;AAEnC,MAAM,CAAC,MAAM,oBAAoB,GAAG,QAAQ,CAAC;AAC7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IAAI,CAAC,aAAa,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC,EAAE,MAAM,CAAC,CAC9D,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@12ui/design",
3
- "version": "0.2.4",
3
+ "version": "0.2.6",
4
4
  "type": "module",
5
5
  "description": "The canonical 12UI CLI, SDK, MCP server, and visual interface design skills",
6
6
  "main": "dist/index.js",
@@ -24,7 +24,7 @@
24
24
  "prepublishOnly": "npm run build"
25
25
  },
26
26
  "dependencies": {
27
- "@just-every/ensemble": "0.2.271",
27
+ "@just-every/ensemble": "0.2.272",
28
28
  "@modelcontextprotocol/sdk": "^1.29.0",
29
29
  "sharp": "^0.34.5"
30
30
  },
@@ -5,230 +5,133 @@ description: "REQUIRED for all visual interface tasks (UI, Web, Mobile). Uses de
5
5
 
6
6
  # Design
7
7
 
8
- Author the visual direction before implementing it. Code-first agents tend to
9
- settle on safe, generic visual defaults. Corpus-conditioned image generation
10
- introduces personality and a wider design vocabulary; converting the selected
11
- image then preserves that direction with near-pixel-perfect fidelity much
12
- faster than manually recreating it in code.
13
-
14
- This skill orchestrates `design-search`, image generation, `design-convert`,
15
- project integration, and visual verification. It is for UI, web, and mobile
16
- interfaces.
17
-
18
- ## Route the request
19
-
20
- Inspect the input and the target repository, then choose exactly one route:
21
-
22
- - **Finished screenshot or mockup:** invoke the `design-convert` workflow
23
- directly. Do not search or generate alternatives.
24
- - **Small visual edit:** edit the existing project code directly. Do not make a
25
- paid corpus, image-generation, or conversion call.
26
- - **Rough brief, new interface, or major redesign:** run the complete authored
27
- workflow below.
28
-
29
- If the route is unclear, prefer the least expensive route that can satisfy the
30
- request. A request changes to the complete workflow only when it needs a new
31
- visual direction, not merely because design work is involved.
32
-
33
- ## Complete authored workflow
34
-
35
- ### 1. Prepare
36
-
37
- 1. Inspect the repository instructions, framework, routes, styling, reusable
38
- components, assets, package manager, validation commands, and current user
39
- changes.
40
- 2. Create an isolated run directory under the system temporary directory using
41
- the host's standard temporary-directory mechanism.
42
- 3. Treat the user's request and the inspected project as the implementation
43
- contract. Distill only the concise search query and generation prompts that
44
- the next steps require; do not duplicate the whole brief into a file.
45
- 4. Use one CLI installation and one account/origin throughout the run. Verify
46
- it with `12ui auth status` and `12ui capabilities --json`. When a local
47
- development setup has a separate Login origin, pass its documented
48
- `--login-origin <origin>` to `auth status`; keep that Login/Worker pair for
49
- the whole run.
50
-
51
- Never substitute cached examples, invented corpus entries, placeholder images,
52
- or mock conversion output for a real run.
53
-
54
- ### 2. Retrieve exactly four references
55
-
56
- Compose a concise search query covering the product, audience, primary goal,
57
- surface, and desired personality. Describe the design problem, not every page
58
- section or UI control. Invoke the CLI directly:
8
+ Author the visual direction before coding it. Code-first agents tend toward
9
+ safe, generic visual defaults. Corpus-conditioned generation introduces a
10
+ wider visual vocabulary and more personality; converting the chosen image
11
+ then preserves that direction with near-pixel-perfect fidelity much faster
12
+ than recreating it manually.
13
+
14
+ ## Choose the route
15
+
16
+ - Finished screenshot or mockup: use `design-convert` directly.
17
+ - Small visual edit: change the existing project code. Do not search, generate,
18
+ or convert.
19
+ - Rough brief, new interface, or major redesign: use the workflow below.
20
+
21
+ ## Authored workflow
22
+
23
+ ### 1. Inspect and search
24
+
25
+ Inspect the project before designing: its instructions, framework, routes,
26
+ components, assets, conventions, validation commands, and existing user
27
+ changes. Create the run directory under the system temporary directory.
28
+
29
+ Search with the CLI; do not make a separate brief file:
59
30
 
60
31
  ```bash
61
32
  12ui corpus inspire \
62
- --query "<concise interface concept>" \
33
+ --query "<product, audience, surface, primary goal, personality>" \
63
34
  --count 4 \
64
35
  --aspect <landscape|portrait|square> \
65
36
  --out-dir <run-dir>/references
66
37
  ```
67
38
 
68
- Add `--origin <origin>` only when targeting a specific verified deployment.
69
- Use `--query-file` only when a genuinely long query or shell quoting makes it
70
- necessary. The CLI records the exact query in its attempt, evidence, and
71
- manifest.
72
-
73
- The complete authored workflow always requires four distinct, successfully
74
- downloaded real corpus images. Validate `manifest.json`, preserve endpoint
75
- order and metrics, and map reference 1 to candidate A, 2 to B, 3 to C, and 4
76
- to D.
77
-
78
- If the search request is interrupted or ambiguous, use `12ui corpus resume`
79
- with the saved output directory and original origin. Do not delete evidence,
80
- start a replacement request, or spend another search for the same unchanged
81
- brief.
39
+ Use the four real downloaded images in endpoint order. `manifest.json`
40
+ contains their IDs, paths, hashes, roles, arms, cells, relevance, relevance
41
+ percentiles, and quality percentiles. Preserve those values; do not rerank or
42
+ invent a composite score. If interrupted, run `12ui corpus resume --out-dir
43
+ <run-dir>/references` rather than starting another search.
82
44
 
83
- ### 3. Generate exactly four candidates
45
+ ### 2. Generate four directions
84
46
 
85
- Generate a focused visual direction, not a compressed product specification.
86
- Default the image surface to:
47
+ Generate only the first viewport, one primary app state, or one mobile screen.
48
+ Do not squeeze the whole page or journey into one canvas. Prefer full-bleed
49
+ imagery where useful, strong hierarchy, breathing room, and sound UX. Make the
50
+ result striking at first glance, but keep the prompt to a few sentences and
51
+ let the image model choose layout, style, palette, typography, and detail.
87
52
 
88
- - the first viewport for a landing, editorial, marketing, or commerce page;
89
- - one primary working state for a web app or dashboard; or
90
- - one screen in the journey for mobile.
91
-
92
- Show a complete surface only when it is naturally simple or the user explicitly
93
- asks for one. Eventual below-fold sections, routes, exact copy, and interactions
94
- remain implementation requirements after conversion; do not squeeze them all
95
- into the generated viewport.
96
-
97
- Keep each candidate prompt brief: usually 60-100 words, with 120 words as a
98
- hard cap rather than a target. Describe one visual outcome or feeling. Include
99
- only the product and primary purpose, chosen viewport/state, and two or three
100
- essential visual anchors. Normally provide no exact copy; include at most one
101
- exact string only when it must shape the composition. Do not enumerate the
102
- layout, navigation, secondary controls, later sections, palette, fonts, or
103
- visual techniques. Give the model room to make those choices.
104
-
105
- Use this short prompt shape as a guide, not a fill-in form:
53
+ Use this shape as guidance, not a form to fill mechanically:
106
54
 
107
55
  ```text
108
- Create one striking [desktop/mobile] [interface type] for [product and primary
109
- purpose]. It should feel [one desired quality].
110
-
111
- Show only [the first viewport / one primary application state]. Do not compress
112
- the whole product or journey. Make [primary goal] immediately clear through
113
- [two or three essential visual anchors].
114
-
115
- Use the attached image as loose visual inspiration, not a template. Preserve
116
- clear hierarchy and breathing room; choose the layout and visual language
117
- yourself. Fill the canvas with the interface, without a device or presentation
56
+ Create one distinctive [desktop/mobile] [interface] for [product and purpose].
57
+ It should feel [desired quality]. Show only [first viewport / primary state /
58
+ single screen], with [primary goal] immediately clear. Use the attached image
59
+ as loose visual inspiration, not a template. Leave breathing room and choose
60
+ the visual language yourself. Fill the canvas without a device or presentation
118
61
  frame.
119
62
  ```
120
63
 
121
- Each candidate receives exactly one reference image: A gets ordered reference
122
- 1, B gets 2, C gets 3, and D gets 4. Do not mention candidate labels, corpus
123
- IDs, local paths, or the other references in the image prompt. The reference is
124
- an inspiration source, not a second specification.
64
+ Map reference 1 to candidate A, 2 to B, 3 to C, and 4 to D. Each candidate gets
65
+ exactly one reference. Never combine references in a single generation.
66
+ Before writing the prompts, derive one short, visibly grounded direction from
67
+ each paired reference—such as airy editorial, tactile retail, cinematic, or
68
+ playful illustration. Use that as the candidate's one desired quality, and
69
+ make the four directions meaningfully different. Do not describe the whole
70
+ reference or prescribe its layout, palette, or techniques.
71
+
72
+ Write one batch manifest in the run directory with four candidates:
73
+
74
+ ```json
75
+ {
76
+ "version": 1,
77
+ "projectRoot": "<absolute-project-root>",
78
+ "provider": "auto",
79
+ "aspect": "landscape",
80
+ "candidates": [
81
+ {
82
+ "id": "A",
83
+ "prompt": "<short candidate prompt>",
84
+ "reference": "<reference-1-path>",
85
+ "out": "<run-dir>/candidates/A.png",
86
+ "idempotencyKey": "<stable-A-key>"
87
+ }
88
+ ]
89
+ }
90
+ ```
125
91
 
126
- Dispatch the four candidates in parallel. Use the host's built-in imagegen
127
- tool when it is available. Otherwise, invoke one `12ui image generate`
128
- operation per candidate with its prompt, its one mapped reference, a unique
129
- `.png` output path, the project root, an explicit
130
- `--aspect landscape|portrait|square` matching the target surface, the
131
- preselected provider, and a stable idempotency key:
92
+ Include A-D, each with its mapped reference, unique PNG output, and stable key.
93
+ Then run one foreground command:
132
94
 
133
95
  ```bash
134
- 12ui image generate \
135
- --prompt "<candidate prompt>" \
136
- --reference <one-reference-file> \
137
- --out <run-dir>/candidates/<candidate>.png \
138
- --aspect <landscape|portrait|square> \
139
- --provider <auto|codex|openai> \
140
- --project-root <project-root> \
141
- --idempotency-key <stable-candidate-key>
96
+ 12ui image generate-batch --manifest <run-dir>/generation.json
142
97
  ```
143
98
 
144
- Use `--prompt-file` instead of `--prompt` only when quoting or prompt length
145
- requires it. For built-in imagegen, likewise make one invocation per candidate
146
- with exactly its one mapped reference image.
147
-
148
- If the built-in tool exposes no idempotency-key or operation-ID field, do not
149
- claim provider-enforced idempotency. Assign a stable host audit key before each
150
- dispatch and write one durable attempt file per candidate using the built-in
151
- shape in the selection contract. Record `providerIdempotencyEnforced: false`,
152
- the exact prompt/reference hashes, the serializable tool result, original and
153
- copied paths, copied digest, and completion time. When the tool result embeds
154
- image bytes, replace only those bytes with their media type, byte length, and
155
- SHA-256 while preserving every other returned field exactly.
156
-
157
- Run the four operations beneath one joinable foreground parent and wait for
158
- all four to finish before the host turn exits. In a noninteractive coding
159
- agent, use its supported foreground task-group primitive, `Promise.all`, or a
160
- shell parent that explicitly `wait`s for every child. Never leave generation
161
- as detached background work: the host may tear those processes down after the
162
- turn, leaving dispatched evidence without a recoverable provider result. If
163
- the host cannot guarantee that join, stop before dispatch and report the
164
- limitation.
165
-
166
- Select the provider before dispatch:
167
-
168
- - built-in imagegen when the host exposes it;
169
- - otherwise authenticated Codex image generation after successful
170
- `codex --version` and `codex login status` preflights; or
171
- - otherwise `gpt-image-2` only when `OPENAI_API_KEY` is available in the
172
- process or exactly `<project-root>/.env` and the CLI's safety checks pass.
173
-
174
- Never switch providers after dispatch. Preserve attempt evidence and stop on a
175
- failed or ambiguous operation. Do not replace a candidate generated without
176
- its mapped reference. The CLI fallback always returns PNG bytes and rejects any
177
- output path that does not end in `.png`; save those original bytes under
178
- `<run-dir>/candidates` and hash them immediately.
179
-
180
- ### 4. Choose the winner
181
-
182
- The host agent inspects all four candidates at original detail against the
183
- intended viewport. Reject any candidate that misses the primary goal or
184
- essential visible elements, copies reference identity or text, has implausible
185
- UX, is visibly illegible, or cannot be implemented on the requested surface.
186
- Do not reject a first-viewport candidate merely because it does not display
187
- content intended for later sections, routes, or states.
188
-
189
- Choose the strongest eligible direction using visible evidence: fulfillment of
190
- the brief, hierarchy and usability, distinctiveness and personality,
191
- accessibility, and feasibility. This is a host-agent design decision; do not
192
- delegate the decision to an external evaluator.
193
-
194
- Before conversion, write `<run-dir>/selection.json` following
195
- [the selection contract](references/selection-contract.md). It must preserve
196
- the exact prompts, reference IDs, candidate paths and SHA-256 hashes, selected
197
- winner, rejection reasons for every non-winner, and a concise rationale tied to
198
- visible features.
199
-
200
- ### 5. Convert only the winner
201
-
202
- Invoke `design-convert` once for the winning bitmap. Use a stable idempotency
203
- key derived from the project identity, winner digest, target, viewport, and
204
- workflow revision. Preserve the base conversion ID and its durable evidence.
205
-
206
- If conversion fails or its outcome is ambiguous, diagnose or resume that
207
- operation. Capture the conversion CLI's JSON stdout. Resume only when it
208
- contains an operation ID, using the required output and destination flags. If
209
- create failed before emitting an ID, repeat the exact request with the same
210
- stable idempotency key. Do not convert another candidate merely to bypass the
211
- failure.
212
-
213
- ### 6. Integrate and verify
214
-
215
- 1. Inspect generated files and assets before copying them.
216
- 2. Merge the smallest coherent set into the target, preserving its routing,
217
- components, tokens, dependency policy, accessibility conventions, and
218
- unrelated user changes.
219
- 3. Apply the implementation contract that was intentionally left out of the
220
- image prompt: exact copy, real interactions, responsive behavior, remaining
221
- below-fold content, and required routes or states. Extend the winning
222
- direction instead of shrinking its source viewport to fit everything.
223
- 4. Remove duplicate generated scaffolding after integration.
224
- 5. Run focused typecheck, tests, lint, and build checks in parallel when their
225
- outputs do not conflict.
226
- 6. Launch the real interface and exercise its interactions.
227
- 7. Compare the implementation with the winning image at the source viewport
228
- and representative narrower and wider viewports. Correct integration defects
229
- in project code and retain evidence for conversion defects.
230
-
231
- Report the corpus idempotency key, set ID, and reference IDs, four candidate
232
- paths and hashes, selected winner and rationale, base conversion ID, integrated
233
- files, launched examples, validation results, and any remaining visual
99
+ The CLI chooses and preflights one provider, reserves all four attempts, starts
100
+ all four provider calls concurrently, waits for every result, and records start
101
+ and completion evidence. Do not replace this with four built-in imagegen calls
102
+ from one host task: that tool path may queue them serially. Never retry a failed
103
+ or ambiguous candidate, switch providers after dispatch, use cached samples, or
104
+ leave generation in detached background work.
105
+
106
+ ### 3. Select and convert
107
+
108
+ Inspect all candidates at original detail. Choose the best eligible direction
109
+ for the brief, hierarchy, usability, personality, accessibility, feasibility,
110
+ and ability to extend into the rest of the product.
111
+
112
+ Treat common model palettes as neutral, not evidence of quality. Neon lime on
113
+ dark and orange on light should win only when the brief or paired reference
114
+ supports them. Prefer a specific, repeatable visual system over an impressive
115
+ hero that gives no direction for later screens. Use corpus metrics only as
116
+ provenance or a tie-breaker between visibly strong candidates.
117
+
118
+ Write `<run-dir>/selection.json` using
119
+ [the selection contract](references/selection-contract.md). Record exact
120
+ prompts, references, candidate paths and hashes, winner, specific rejection
121
+ reasons, and visible rationale. Convert only that winner with `design-convert`.
122
+ If conversion is interrupted, resume its ID or repeat the exact create request
123
+ with the same idempotency key; do not convert another candidate as a shortcut.
124
+
125
+ ### 4. Integrate and verify
126
+
127
+ Inspect generated files before merging the smallest coherent set into the
128
+ project. Preserve routing, components, tokens, accessibility, dependencies,
129
+ and unrelated changes. Add the exact copy, interactions, responsive behavior,
130
+ later sections, and routes intentionally omitted from the image prompt while
131
+ extending the winning visual system.
132
+
133
+ Run focused checks, launch the real interface, exercise interactions, and
134
+ compare it with the winner at the source viewport plus representative narrower
135
+ and wider widths. Report corpus and generation IDs/evidence, candidate hashes,
136
+ selection rationale, conversion ID, integrated files, validation, and visible
234
137
  differences.
@@ -1,94 +1,62 @@
1
1
  # Selection evidence contract
2
2
 
3
- Write `selection.json` before converting a candidate. Use absolute candidate
4
- paths so a resumed run cannot select the wrong file. Keep exact prompt text and
5
- SHA-256 digests; do not replace them with summaries.
6
-
7
- The document has this shape:
3
+ Write `selection.json` before conversion. Use absolute image paths and exact
4
+ prompt text so a resumed run cannot silently select different evidence.
8
5
 
9
6
  ```json
10
7
  {
11
- "version": 2,
12
- "createdAt": "<ISO-8601 timestamp>",
13
- "requestSummary": "<concise implementation contract from the user and project>",
8
+ "version": 3,
9
+ "createdAt": "<ISO-8601>",
10
+ "requestSummary": "<concise implementation contract>",
14
11
  "viewportMode": "<first-viewport|primary-state|single-screen|complete-simple-surface>",
15
12
  "corpus": {
16
- "query": "<exact corpus query>",
17
- "idempotencyKey": "<stable corpus inspiration key>",
18
- "setId": "<returned set ID>",
19
- "referenceIds": ["<id-1>", "<id-2>", "<id-3>", "<id-4>"]
13
+ "query": "<exact query>",
14
+ "idempotencyKey": "<manifest value>",
15
+ "setId": "<manifest value>",
16
+ "references": [
17
+ {
18
+ "id": "<id-1>",
19
+ "path": "<absolute path>",
20
+ "sha256": "<sha256>",
21
+ "role": "<core|stretch>",
22
+ "arm": "<returned arm>",
23
+ "cell": "<returned cell or null>",
24
+ "relevance": 0,
25
+ "relevancePercentile": 0,
26
+ "qualityPercentile": 0
27
+ }
28
+ ]
29
+ },
30
+ "generation": {
31
+ "manifestPath": "<absolute generation manifest path>",
32
+ "manifestSha256": "<sha256>",
33
+ "batchAttemptPath": "<absolute batch attempt path>"
20
34
  },
21
35
  "candidates": [
22
36
  {
23
37
  "id": "A",
24
- "path": "<absolute original-image path>",
25
- "sha256": "<SHA-256>",
26
- "prompt": "<exact generation prompt>",
27
- "promptSha256": "<SHA-256 of exact prompt>",
38
+ "path": "<absolute PNG path>",
39
+ "sha256": "<sha256>",
40
+ "prompt": "<exact prompt>",
41
+ "promptSha256": "<sha256>",
28
42
  "referenceId": "<id-1>",
29
- "referencePath": "<absolute path to reference 1>",
30
- "referenceSha256": "<SHA-256 of reference 1>",
31
- "provider": "<selected provider>",
32
- "idempotencyKey": "<provider key or stable host audit key>",
33
- "providerIdempotencyEnforced": true,
34
- "attemptEvidencePath": "<absolute attempt-evidence path>",
43
+ "referencePath": "<absolute path>",
44
+ "referenceSha256": "<sha256>",
45
+ "provider": "<codex|openai>",
46
+ "idempotencyKey": "<stable key>",
47
+ "providerIdempotencyEnforced": false,
48
+ "attemptEvidencePath": "<absolute attempt path>",
35
49
  "rejectionReasons": []
36
50
  }
37
51
  ],
38
52
  "winner": "A",
39
- "rationale": "<concise rationale based on visible features>"
53
+ "rationale": "<visible, brief-specific rationale>"
40
54
  }
41
55
  ```
42
56
 
43
- For built-in imagegen, write a separate attempt file for every candidate before
44
- selection and point that candidate's `attemptEvidencePath` to it:
45
-
46
- ```json
47
- {
48
- "version": 1,
49
- "candidateId": "A",
50
- "status": "succeeded",
51
- "provider": "host-built-in-imagegen",
52
- "hostAuditKey": "<stable preassigned key>",
53
- "providerIdempotencyEnforced": false,
54
- "promptSha256": "<SHA-256 of exact prompt>",
55
- "reference": {
56
- "id": "<id-1>",
57
- "path": "<absolute reference path>",
58
- "sha256": "<SHA-256 of reference bytes>"
59
- },
60
- "toolResult": {
61
- "outputHint": "<exact returned non-byte field when present>",
62
- "returnedMediaType": "image/png",
63
- "returnedByteLength": 123,
64
- "returnedSha256": "<SHA-256 replacing an inline image payload>"
65
- },
66
- "originalPath": "<absolute host-result path>",
67
- "copiedPath": "<absolute candidate path>",
68
- "copiedSha256": "<SHA-256 of copied candidate>",
69
- "completedAt": "<ISO-8601 timestamp>"
70
- }
71
- ```
72
-
73
- Preserve every serializable non-byte field returned by the built-in tool
74
- exactly. Inline encoded image bytes may be replaced only by their media type,
75
- byte length, and SHA-256. The copied digest must equal the candidate digest in
76
- `selection.json`.
77
-
78
- Include exactly four candidate objects and four corpus reference IDs in
79
- endpoint order. Candidate A must contain only reference 1, B only reference 2,
80
- C only reference 3, and D only reference 4. Copy the exact query,
81
- `corpus.idempotencyKey`, and `corpus.setId` from the completed inspiration
82
- manifest; none may be invented or replaced by an internal request identifier.
83
- For each non-winner, `rejectionReasons` must contain at least one specific
84
- visible reason judged against the intended viewport rather than eventual
85
- below-fold content. The winner must have an empty `rejectionReasons` array.
86
- Record provider and attempt evidence for auditability; do not store API keys or
87
- other secrets. Set `providerIdempotencyEnforced` to `true` only when the
88
- provider dispatch actually accepted the recorded key. When built-in imagegen
89
- does not expose an idempotency or operation-ID field, use the preassigned host
90
- audit key for `idempotencyKey`, set `providerIdempotencyEnforced` to `false`,
91
- and use the built-in attempt shape above. For CLI-generated candidates, copy the
92
- boolean from the CLI attempt file: OpenAI dispatches are provider-enforced,
93
- while installed-Codex dispatches use the key only as a stable audit identity.
94
- Do not imply provider guarantees that the selected path cannot enforce.
57
+ Include exactly four corpus references and candidates in endpoint order: A/1,
58
+ B/2, C/3, D/4. Copy corpus metrics from `manifest.json`, and generation fields
59
+ from the batch and candidate attempt files. Never store credentials or invent
60
+ IDs, metrics, or provider guarantees. The winner has no rejection reasons;
61
+ every other candidate has at least one specific visible reason. Set
62
+ `providerIdempotencyEnforced` only to the recorded CLI value.