|
| 1 | +# BUILD_PR_LEVEL_11_158_FORCE_FIX_LITERAL_ASSET_NONE_RENDERER |
| 2 | + |
| 3 | +## Purpose |
| 4 | +Force-fix the exact Workspace Manager renderer path that still outputs the literal visible text `Asset: none` for SVG Asset Studio. |
| 5 | + |
| 6 | +## Current Failure |
| 7 | +After multiple targeted PRs, the UI still shows: |
| 8 | + |
| 9 | +```text |
| 10 | +Vector Assets |
| 11 | +SVG Asset Studio |
| 12 | +Asset: none |
| 13 | +``` |
| 14 | + |
| 15 | +This means prior changes did not patch the active renderer path. |
| 16 | + |
| 17 | +## STRICT SCOPE |
| 18 | + |
| 19 | +### ALLOWED FILES |
| 20 | +- tools/workspace-manager/main.js |
| 21 | +- docs/dev/reports/literal_asset_none_renderer_11_158.txt |
| 22 | + |
| 23 | +### ALLOWED CHANGES |
| 24 | +- find and patch the exact active path that creates the visible `Asset: none` line |
| 25 | +- add a temporary hard assertion if needed so the PR cannot silently pass while the literal remains |
| 26 | +- create/update report |
| 27 | + |
| 28 | +## FORBIDDEN |
| 29 | + |
| 30 | +Codex MUST NOT: |
| 31 | +- modify schemas |
| 32 | +- modify samples |
| 33 | +- modify SVG Asset Studio |
| 34 | +- modify runtime host |
| 35 | +- modify routing outside Workspace Manager |
| 36 | +- modify unrelated tools |
| 37 | +- add fallback/default/demo data |
| 38 | +- transform/wrap/normalize payload |
| 39 | +- leave report empty |
| 40 | + |
| 41 | +## Mandatory Search |
| 42 | + |
| 43 | +Codex MUST search `tools/workspace-manager/main.js` for every occurrence of: |
| 44 | + |
| 45 | +- `Asset:` |
| 46 | +- `none` |
| 47 | +- `data-workspace` |
| 48 | +- `textContent` |
| 49 | +- `innerHTML` |
| 50 | +- `appendChild` |
| 51 | +- `assetLabel` |
| 52 | +- `assetStatus` |
| 53 | +- `assetSummary` |
| 54 | +- `tool.asset` |
| 55 | +- `toolData` |
| 56 | +- `svg-asset-studio` |
| 57 | + |
| 58 | +Codex MUST identify which occurrence actually creates the visible `Asset: none`. |
| 59 | + |
| 60 | +## Required Hard Fix |
| 61 | + |
| 62 | +For the active visible renderer path: |
| 63 | + |
| 64 | +When rendering the SVG Asset Studio card, if loaded manifest contains: |
| 65 | + |
| 66 | +```js |
| 67 | +workspaceManifest.tools["svg-asset-studio"].vectorAssetDocument.svgText |
| 68 | +``` |
| 69 | + |
| 70 | +then the visible asset line MUST NOT be `Asset: none`. |
| 71 | + |
| 72 | +It MUST be: |
| 73 | + |
| 74 | +```text |
| 75 | +Asset: sample-0901-ship.svg |
| 76 | +``` |
| 77 | + |
| 78 | +using: |
| 79 | + |
| 80 | +```js |
| 81 | +workspaceManifest.tools["svg-asset-studio"].vectorAssetDocument.sourceName |
| 82 | +``` |
| 83 | + |
| 84 | +If `sourceName` is missing but `svgText` exists: |
| 85 | + |
| 86 | +```text |
| 87 | +Asset: Inline SVG |
| 88 | +``` |
| 89 | + |
| 90 | +## Anti-Noop Requirement |
| 91 | + |
| 92 | +This PR must FAIL unless one of these is true: |
| 93 | + |
| 94 | +1. The exact renderer branch generating `Asset: none` was changed; OR |
| 95 | +2. A temporary targeted assertion/log is added that fires when SVG Asset Studio renders `Asset: none`. |
| 96 | + |
| 97 | +If Codex cannot statically find the active branch, it MUST add this temporary diagnostic: |
| 98 | + |
| 99 | +```js |
| 100 | +if (toolId === "svg-asset-studio" && renderedAssetText === "Asset: none") { |
| 101 | + console.error("[WorkspaceManager][svg-asset-studio][asset-none-source]", { |
| 102 | + toolId, |
| 103 | + renderedAssetText, |
| 104 | + workspaceToolEntry: workspaceManifest?.tools?.["svg-asset-studio"] |
| 105 | + }); |
| 106 | +} |
| 107 | +``` |
| 108 | +
|
| 109 | +Use actual variable names. |
| 110 | +
|
| 111 | +## Required Report Evidence |
| 112 | +
|
| 113 | +The report MUST include: |
| 114 | +
|
| 115 | +- every literal occurrence of `none` related to asset display |
| 116 | +- the exact branch changed |
| 117 | +- the exact data source now used |
| 118 | +- whether a diagnostic/assertion remains |
| 119 | +- expected visible output |
| 120 | +- why previous PRs missed the active path |
| 121 | +
|
| 122 | +## Validation |
| 123 | +
|
| 124 | +Run targeted validation only. |
| 125 | +
|
| 126 | +Required: |
| 127 | +- `node --check tools/workspace-manager/main.js` |
| 128 | +- static search proves the SVG active branch cannot produce `Asset: none` when `vectorAssetDocument.svgText` exists, OR diagnostic remains to identify the source |
| 129 | +- `git diff --name-only` contains only ALLOWED FILES |
| 130 | +
|
| 131 | +## Full Samples Smoke Test |
| 132 | +
|
| 133 | +Skipped. |
| 134 | +
|
| 135 | +Reason: |
| 136 | +- targeted literal renderer fix only |
| 137 | +- full samples smoke test takes approximately 20 minutes |
| 138 | +
|
| 139 | +## Acceptance |
| 140 | +
|
| 141 | +- SVG Asset Studio card no longer displays `Asset: none` when the data is loaded, OR |
| 142 | +- a targeted diagnostic proves exactly where that string is still coming from on the next run. |
0 commit comments