|
1 | 1 | { |
2 | | - "artifactId": "prompt-surface-budget", |
3 | | - "revision": "s2-r1", |
4 | | - "status": "PENDING-RATIFICATION", |
5 | | - "policy": { |
6 | | - "expression": "floor(0.50 * mutableProseBaseline)", |
7 | | - "fraction": 0.5, |
8 | | - "ceilingFirst": true |
9 | | - }, |
10 | | - "tokenizer": { |
11 | | - "package": "ai-tokenizer", |
12 | | - "encoding": "claude", |
13 | | - "version": "1.0.6", |
14 | | - "method": "new Tokenizer(claudeEncoding).count(rawText)", |
15 | | - "immutabilityPoint": "This fixture's tokenizer identity, primary variant, inclusion/exclusion lists, and ceiling are immutable after Ufuk ratification; source drift requires a reviewed fixture revision." |
16 | | - }, |
17 | | - "primaryVariant": { |
18 | | - "id": "primary-full-reduce-memory-on", |
19 | | - "guidance": "buildMagicContextSection(null, 20, true, true, true, false, false, undefined, true)", |
20 | | - "features": { |
21 | | - "ctxReduceCallable": true, |
22 | | - "dreamerEnabled": true, |
23 | | - "temporalAwarenessEnabled": true, |
24 | | - "cavemanTextCompressionEnabled": false, |
25 | | - "subagentMode": false, |
26 | | - "language": null, |
27 | | - "memoryEnabled": true, |
28 | | - "protectedTags": 20 |
29 | | - } |
30 | | - }, |
31 | | - "activeTools": [ |
32 | | - "ctx_reduce", |
33 | | - "ctx_expand", |
34 | | - "ctx_note", |
35 | | - "ctx_memory", |
36 | | - "ctx_search" |
37 | | - ], |
38 | | - "fullMeasurements": { |
39 | | - "guidance": { |
40 | | - "primary-full-reduce-memory-on": { "chars": 8714, "tokens": 2003 }, |
41 | | - "primary-full-reduce-memory-off": { "chars": 7679, "tokens": 1744 }, |
42 | | - "primary-full-no-reduce-memory-on": { "chars": 6429, "tokens": 1477 }, |
43 | | - "primary-full-no-reduce-memory-off": { "chars": 5394, "tokens": 1218 }, |
44 | | - "primary-full-reduce-dreamer-off": { "chars": 8385, "tokens": 1926 }, |
45 | | - "primary-full-reduce-temporal-off": { "chars": 8279, "tokens": 1896 }, |
46 | | - "primary-full-reduce-caveman-on": { "chars": 9329, "tokens": 2129 }, |
47 | | - "primary-full-reduce-language-on": { "chars": 8914, "tokens": 2049 }, |
48 | | - "subagent-reduce": { "chars": 679, "tokens": 185 } |
| 2 | + "artifactId": "prompt-surface-budget", |
| 3 | + "revision": "s2-r1", |
| 4 | + "status": "PENDING-RATIFICATION", |
| 5 | + "policy": { |
| 6 | + "expression": "floor(0.50 * mutableProseBaseline)", |
| 7 | + "fraction": 0.5, |
| 8 | + "ceilingFirst": true |
49 | 9 | }, |
50 | | - "toolDescriptions": { |
51 | | - "ctx_reduce": { "chars": 1335, "tokens": 318 }, |
52 | | - "ctx_expand": { "chars": 1586, "tokens": 395 }, |
53 | | - "ctx_note": { "chars": 1608, "tokens": 391 }, |
54 | | - "ctx_memory": { "chars": 980, "tokens": 234 }, |
55 | | - "ctx_search": { "chars": 1253, "tokens": 309 } |
| 10 | + "tokenizer": { |
| 11 | + "package": "ai-tokenizer", |
| 12 | + "encoding": "claude", |
| 13 | + "version": "1.0.6", |
| 14 | + "method": "new Tokenizer(claudeEncoding).count(rawText)", |
| 15 | + "immutabilityPoint": "This fixture's tokenizer identity, primary variant, inclusion/exclusion lists, and ceiling are immutable after Ufuk ratification; source drift requires a reviewed fixture revision." |
56 | 16 | }, |
57 | | - "serializedParameterSchemas": { |
58 | | - "ctx_reduce": { "chars": 91, "tokens": 31 }, |
59 | | - "ctx_expand": { "chars": 791, "tokens": 177 }, |
60 | | - "ctx_note": { "chars": 1366, "tokens": 317 }, |
61 | | - "ctx_memory": { "chars": 840, "tokens": 201 }, |
62 | | - "ctx_search": { "chars": 777, "tokens": 184 }, |
63 | | - "totalTokens": 910 |
| 17 | + "primaryVariant": { |
| 18 | + "id": "primary-full-reduce-memory-on", |
| 19 | + "guidance": "buildMagicContextSection(null, 20, true, true, true, false, false, undefined, true)", |
| 20 | + "features": { |
| 21 | + "ctxReduceCallable": true, |
| 22 | + "dreamerEnabled": true, |
| 23 | + "temporalAwarenessEnabled": true, |
| 24 | + "cavemanTextCompressionEnabled": false, |
| 25 | + "subagentMode": false, |
| 26 | + "language": null, |
| 27 | + "memoryEnabled": true, |
| 28 | + "protectedTags": 20 |
| 29 | + } |
64 | 30 | }, |
65 | | - "builtInProviderVisibleTotal": 4560 |
66 | | - }, |
67 | | - "mutableProseBaseline": 3650, |
68 | | - "integerLightCeiling": 1825, |
69 | | - "includedSurfaces": [ |
70 | | - "The primary built-in full guidance section for the exact feature variant above.", |
71 | | - "One built-in full top-level description for every active ctx_* tool above.", |
72 | | - "The same raw-text tokenizer method for built-in light guidance and descriptions.", |
73 | | - "All four runtime serving combinations: full/full, full/light, light/full, and light/light guidance/description pairs.", |
74 | | - "Claude Code built-in guidance_light_primary.txt and guidance_light_no_reduce.txt assets." |
75 | | - ], |
76 | | - "excludedSurfaces": [ |
77 | | - "Serialized parameter schemas; they are reported separately and added only to provider-visible totals.", |
78 | | - "USER guidance and tool-description overrides; runtime estimates use a named method and are not combined with this fixture metric.", |
79 | | - "Project documentation, profile, memory rendering, compartments, m0, temporal overlays, and other session adjuncts; no static counts are fabricated.", |
80 | | - "Non-primary guidance variants from ceiling enforcement; they remain measured and reported." |
81 | | - ], |
82 | | - "lightMeasurement": { |
83 | | - "status": "PENDING-LIGHT-AUTHORING", |
84 | | - "manifest": null, |
85 | | - "note": "S3 authors light prose only after this fixture and the checklist have been ratified. Until then the gate reports no light counts rather than fabricating zeroes." |
86 | | - }, |
87 | | - "source": { |
88 | | - "guidance": "packages/plugin/src/agents/magic-context-prompt.ts#buildMagicContextSection", |
89 | | - "tools": [ |
90 | | - "packages/plugin/src/tools/ctx-reduce/constants.ts#CTX_REDUCE_DESCRIPTION", |
91 | | - "packages/plugin/src/tools/ctx-expand/constants.ts#CTX_EXPAND_DESCRIPTION", |
92 | | - "packages/plugin/src/tools/ctx-note/constants.ts#CTX_NOTE_DESCRIPTION", |
93 | | - "packages/plugin/src/tools/ctx-memory/constants.ts#CTX_MEMORY_DESCRIPTION", |
94 | | - "packages/plugin/src/tools/ctx-search/constants.ts#CTX_SEARCH_DESCRIPTION" |
95 | | - ] |
96 | | - } |
| 31 | + "activeTools": [ |
| 32 | + "ctx_reduce", |
| 33 | + "ctx_expand", |
| 34 | + "ctx_note", |
| 35 | + "ctx_memory", |
| 36 | + "ctx_search", |
| 37 | + "ctx_skill_note", |
| 38 | + "ctx_skill_recall" |
| 39 | + ], |
| 40 | + "fullMeasurements": { |
| 41 | + "guidance": { |
| 42 | + "primary-full-reduce-memory-on": { |
| 43 | + "chars": 9833, |
| 44 | + "tokens": 2294 |
| 45 | + }, |
| 46 | + "primary-full-reduce-memory-off": { |
| 47 | + "chars": 8767, |
| 48 | + "tokens": 2027 |
| 49 | + }, |
| 50 | + "primary-full-no-reduce-memory-on": { |
| 51 | + "chars": 7548, |
| 52 | + "tokens": 1768 |
| 53 | + }, |
| 54 | + "primary-full-no-reduce-memory-off": { |
| 55 | + "chars": 6482, |
| 56 | + "tokens": 1501 |
| 57 | + }, |
| 58 | + "primary-full-reduce-dreamer-off": { |
| 59 | + "chars": 9504, |
| 60 | + "tokens": 2217 |
| 61 | + }, |
| 62 | + "primary-full-reduce-temporal-off": { |
| 63 | + "chars": 9398, |
| 64 | + "tokens": 2187 |
| 65 | + }, |
| 66 | + "primary-full-reduce-caveman-on": { |
| 67 | + "chars": 10448, |
| 68 | + "tokens": 2420 |
| 69 | + }, |
| 70 | + "primary-full-reduce-language-on": { |
| 71 | + "chars": 10033, |
| 72 | + "tokens": 2340 |
| 73 | + }, |
| 74 | + "subagent-reduce": { |
| 75 | + "chars": 679, |
| 76 | + "tokens": 185 |
| 77 | + } |
| 78 | + }, |
| 79 | + "toolDescriptions": { |
| 80 | + "ctx_reduce": { |
| 81 | + "chars": 1335, |
| 82 | + "tokens": 318 |
| 83 | + }, |
| 84 | + "ctx_expand": { |
| 85 | + "chars": 1586, |
| 86 | + "tokens": 395 |
| 87 | + }, |
| 88 | + "ctx_note": { |
| 89 | + "chars": 1608, |
| 90 | + "tokens": 391 |
| 91 | + }, |
| 92 | + "ctx_memory": { |
| 93 | + "chars": 980, |
| 94 | + "tokens": 234 |
| 95 | + }, |
| 96 | + "ctx_search": { |
| 97 | + "chars": 1253, |
| 98 | + "tokens": 309 |
| 99 | + }, |
| 100 | + "ctx_skill_note": { |
| 101 | + "chars": 300, |
| 102 | + "tokens": 67 |
| 103 | + }, |
| 104 | + "ctx_skill_recall": { |
| 105 | + "chars": 359, |
| 106 | + "tokens": 79 |
| 107 | + } |
| 108 | + }, |
| 109 | + "serializedParameterSchemas": { |
| 110 | + "ctx_reduce": { |
| 111 | + "chars": 91, |
| 112 | + "tokens": 31 |
| 113 | + }, |
| 114 | + "ctx_expand": { |
| 115 | + "chars": 791, |
| 116 | + "tokens": 177 |
| 117 | + }, |
| 118 | + "ctx_note": { |
| 119 | + "chars": 1366, |
| 120 | + "tokens": 317 |
| 121 | + }, |
| 122 | + "ctx_memory": { |
| 123 | + "chars": 840, |
| 124 | + "tokens": 201 |
| 125 | + }, |
| 126 | + "ctx_search": { |
| 127 | + "chars": 777, |
| 128 | + "tokens": 184 |
| 129 | + }, |
| 130 | + "ctx_skill_note": { |
| 131 | + "chars": 690, |
| 132 | + "tokens": 168 |
| 133 | + }, |
| 134 | + "ctx_skill_recall": { |
| 135 | + "chars": 396, |
| 136 | + "tokens": 95 |
| 137 | + }, |
| 138 | + "totalTokens": 1173 |
| 139 | + }, |
| 140 | + "builtInProviderVisibleTotal": 5260 |
| 141 | + }, |
| 142 | + "mutableProseBaseline": 4087, |
| 143 | + "integerLightCeiling": 2043, |
| 144 | + "includedSurfaces": [ |
| 145 | + "The primary built-in full guidance section for the exact feature variant above.", |
| 146 | + "One built-in full top-level description for every active ctx_* tool above.", |
| 147 | + "The same raw-text tokenizer method for the future built-in light guidance and descriptions." |
| 148 | + ], |
| 149 | + "excludedSurfaces": [ |
| 150 | + "Serialized parameter schemas; they are reported separately and added only to provider-visible totals.", |
| 151 | + "USER guidance and tool-description overrides; runtime estimates use a named method and are not combined with this fixture metric.", |
| 152 | + "Project documentation, profile, memory rendering, compartments, m0, temporal overlays, and other session adjuncts; no static counts are fabricated.", |
| 153 | + "Non-primary guidance variants from ceiling enforcement; they remain measured and reported." |
| 154 | + ], |
| 155 | + "lightMeasurement": { |
| 156 | + "status": "PENDING-LIGHT-AUTHORING", |
| 157 | + "manifest": null, |
| 158 | + "note": "S3 authors light prose only after this fixture and the checklist have been ratified. Until then the gate reports no light counts rather than fabricating zeroes." |
| 159 | + }, |
| 160 | + "source": { |
| 161 | + "guidance": "packages/plugin/src/agents/magic-context-prompt.ts#buildMagicContextSection", |
| 162 | + "tools": [ |
| 163 | + "packages/plugin/src/tools/ctx-reduce/constants.ts#CTX_REDUCE_DESCRIPTION", |
| 164 | + "packages/plugin/src/tools/ctx-expand/constants.ts#CTX_EXPAND_DESCRIPTION", |
| 165 | + "packages/plugin/src/tools/ctx-note/constants.ts#CTX_NOTE_DESCRIPTION", |
| 166 | + "packages/plugin/src/tools/ctx-memory/constants.ts#CTX_MEMORY_DESCRIPTION", |
| 167 | + "packages/plugin/src/tools/ctx-search/constants.ts#CTX_SEARCH_DESCRIPTION" |
| 168 | + ] |
| 169 | + }, |
| 170 | + "downstreamNote": "DOWNSTREAM MEASUREMENT, NOT A RATIFICATION. This fork adds ctx_skill_note and ctx_skill_recall (skill-memory), so the measured surface is larger than the upstream s2-r1 numbers. Values here are re-measured from source with the same tokenizer identity and the same floor(0.50 * mutableProseBaseline) policy; only the measurements moved, never the policy, the tokenizer, the primary variant, or the inclusion/exclusion lists. Upstream baseline for reference: mutableProseBaseline 3650, integerLightCeiling 1825, builtInProviderVisibleTotal 4560, 5 active tools. The ceiling is a derived consequence of the larger surface, not a request to relax the budget -- ratifying the increase is upstream's call." |
97 | 171 | } |
0 commit comments