@ryuenn3123/agentic-senior-core 4.3.15 → 5.1.0

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 (198) hide show
  1. package/.agents/plugins/marketplace.json +21 -0
  2. package/.agents/rules/agentic-senior-core.md +126 -0
  3. package/.claude-plugin/marketplace.json +17 -0
  4. package/.claude-plugin/plugin.json +17 -0
  5. package/.clinerules/agentic-senior-core.md +94 -0
  6. package/.codex-plugin/plugin.json +24 -0
  7. package/.cursor/rules/agentic-senior-core.mdc +99 -0
  8. package/.devin-plugin/plugin.json +13 -0
  9. package/.github/copilot-instructions.md +94 -0
  10. package/.github/plugin/marketplace.json +20 -0
  11. package/.github/plugin/plugin.json +16 -0
  12. package/.kiro/steering/agentic-senior-core.md +94 -0
  13. package/.openclaw/skills/asc/SKILL.md +23 -0
  14. package/.openclaw/skills/asc-audit/SKILL.md +28 -0
  15. package/.openclaw/skills/asc-review/SKILL.md +54 -0
  16. package/.opencode/plugins/agentic-senior-core.mjs +31 -0
  17. package/.windsurf/rules/agentic-senior-core.md +94 -0
  18. package/AGENTS.md +126 -179
  19. package/CONTRIBUTING.md +93 -63
  20. package/README.md +160 -111
  21. package/__init__.py +61 -0
  22. package/bin/agentic-senior-core.js +41 -43
  23. package/commands/asc-audit.md +1 -0
  24. package/commands/asc-audit.toml +2 -0
  25. package/commands/asc-help.md +9 -0
  26. package/commands/asc-help.toml +2 -0
  27. package/commands/asc-refactor.md +1 -0
  28. package/commands/asc-refactor.toml +2 -0
  29. package/commands/asc-review.md +1 -0
  30. package/commands/asc-review.toml +2 -0
  31. package/gemini-extension.json +10 -0
  32. package/hooks/copilot-hooks.json +21 -0
  33. package/hooks/hooks.json +31 -0
  34. package/hooks/session-start.js +36 -0
  35. package/hooks/subagent-start.js +38 -0
  36. package/lib/cli/commands/adapter.mjs +109 -0
  37. package/lib/cli/commands/clean.mjs +63 -0
  38. package/lib/cli/commands/status.mjs +94 -0
  39. package/package.json +43 -67
  40. package/plugin.yaml +16 -0
  41. package/scripts/uninstall.js +38 -0
  42. package/skills/asc/SKILL.md +16 -0
  43. package/skills/asc-audit/SKILL.md +28 -0
  44. package/skills/asc-refactor/SKILL.md +35 -0
  45. package/skills/asc-review/SKILL.md +54 -0
  46. package/.agent-context/policies/llm-judge-threshold.json +0 -29
  47. package/.agent-context/prompts/bootstrap-design.md +0 -63
  48. package/.agent-context/prompts/compact-natural-mode.md +0 -100
  49. package/.agent-context/prompts/init-project.md +0 -60
  50. package/.agent-context/prompts/refactor.md +0 -38
  51. package/.agent-context/prompts/review-code.md +0 -31
  52. package/.agent-context/review-checklists/architecture-review.md +0 -57
  53. package/.agent-context/review-checklists/pr-checklist.md +0 -136
  54. package/.agent-context/rules/api-docs.md +0 -24
  55. package/.agent-context/rules/api-versioning.md +0 -16
  56. package/.agent-context/rules/architecture.md +0 -33
  57. package/.agent-context/rules/background-jobs.md +0 -17
  58. package/.agent-context/rules/config-and-flags.md +0 -16
  59. package/.agent-context/rules/database-design.md +0 -18
  60. package/.agent-context/rules/docker-runtime.md +0 -17
  61. package/.agent-context/rules/error-handling.md +0 -16
  62. package/.agent-context/rules/event-driven.md +0 -16
  63. package/.agent-context/rules/frontend-architecture.md +0 -54
  64. package/.agent-context/rules/microservices.md +0 -16
  65. package/.agent-context/rules/migrations.md +0 -16
  66. package/.agent-context/rules/observability.md +0 -16
  67. package/.agent-context/rules/performance.md +0 -16
  68. package/.agent-context/rules/realtime.md +0 -16
  69. package/.agent-context/rules/resilience.md +0 -18
  70. package/.agent-context/rules/security.md +0 -18
  71. package/.agent-context/rules/testing.md +0 -16
  72. package/.agent-context/state/README.md +0 -25
  73. package/.agent-context/state/architecture-map.md +0 -40
  74. package/.agent-context/state/benchmark-comparison-schema.json +0 -181
  75. package/.agent-context/state/benchmark-reproducibility.json +0 -87
  76. package/.agent-context/state/benchmark-thresholds.json +0 -10
  77. package/.agent-context/state/benchmark-writer-judge-config.json +0 -58
  78. package/.agent-context/state/dependency-map.md +0 -41
  79. package/.agent-context/state/memory-adapter-contract.json +0 -52
  80. package/.agent-context/state/memory-schema-v1.json +0 -88
  81. package/GEMINI.md +0 -1
  82. package/benchmarks/README.md +0 -60
  83. package/benchmarks/compact-natural-mode/fixtures.mjs +0 -359
  84. package/benchmarks/compact-natural-mode/scorer.mjs +0 -331
  85. package/benchmarks/runtime-token-saver/fixtures.mjs +0 -836
  86. package/lib/cli/adaptive-context/catalog.mjs +0 -390
  87. package/lib/cli/adaptive-context/file-signals.mjs +0 -100
  88. package/lib/cli/adaptive-context/implications.mjs +0 -44
  89. package/lib/cli/adaptive-context.mjs +0 -365
  90. package/lib/cli/audits/typography-palette-anti-repeat/color-utils.mjs +0 -156
  91. package/lib/cli/audits/typography-palette-anti-repeat/file-scanner.mjs +0 -103
  92. package/lib/cli/audits/typography-palette-anti-repeat/typography-utils.mjs +0 -70
  93. package/lib/cli/audits/typography-palette-anti-repeat-audit.mjs +0 -239
  94. package/lib/cli/backup.mjs +0 -210
  95. package/lib/cli/commands/audit-design-anti-repeat.mjs +0 -39
  96. package/lib/cli/commands/context.mjs +0 -140
  97. package/lib/cli/commands/init/project-context.mjs +0 -60
  98. package/lib/cli/commands/init/runtime-environment.mjs +0 -59
  99. package/lib/cli/commands/init/setup-decisions.mjs +0 -83
  100. package/lib/cli/commands/init.mjs +0 -654
  101. package/lib/cli/commands/launch.mjs +0 -76
  102. package/lib/cli/commands/optimize.mjs +0 -284
  103. package/lib/cli/commands/rollback.mjs +0 -64
  104. package/lib/cli/commands/upgrade/token-optimization-state.mjs +0 -51
  105. package/lib/cli/commands/upgrade.mjs +0 -451
  106. package/lib/cli/compiler.mjs +0 -570
  107. package/lib/cli/constants.mjs +0 -136
  108. package/lib/cli/detector/constants.mjs +0 -135
  109. package/lib/cli/detector/design-evidence/collector.mjs +0 -256
  110. package/lib/cli/detector/design-evidence/constants.mjs +0 -39
  111. package/lib/cli/detector/design-evidence/file-traversal.mjs +0 -83
  112. package/lib/cli/detector/design-evidence/structured-attribute-evidence.mjs +0 -117
  113. package/lib/cli/detector/design-evidence/summary.mjs +0 -109
  114. package/lib/cli/detector/design-evidence/utility-helpers.mjs +0 -122
  115. package/lib/cli/detector/design-evidence.mjs +0 -25
  116. package/lib/cli/detector/stack-detection.mjs +0 -243
  117. package/lib/cli/detector/ui-signals.mjs +0 -150
  118. package/lib/cli/detector/workspace-scan.mjs +0 -177
  119. package/lib/cli/detector.mjs +0 -23
  120. package/lib/cli/init-detection-flow.mjs +0 -48
  121. package/lib/cli/init-options.mjs +0 -237
  122. package/lib/cli/init-selection.mjs +0 -29
  123. package/lib/cli/memory-continuity.mjs +0 -537
  124. package/lib/cli/preflight.mjs +0 -76
  125. package/lib/cli/project-scaffolder/constants.mjs +0 -69
  126. package/lib/cli/project-scaffolder/discovery.mjs +0 -272
  127. package/lib/cli/project-scaffolder/prompt-builders.mjs +0 -171
  128. package/lib/cli/project-scaffolder/storage.mjs +0 -144
  129. package/lib/cli/project-scaffolder/ui-scope-detection.mjs +0 -36
  130. package/lib/cli/project-scaffolder.mjs +0 -29
  131. package/lib/cli/rollback.mjs +0 -66
  132. package/lib/cli/token-optimization.mjs +0 -486
  133. package/lib/cli/utils/filesystem.mjs +0 -81
  134. package/lib/cli/utils/managed-surface.mjs +0 -280
  135. package/lib/cli/utils/prompting.mjs +0 -44
  136. package/lib/cli/utils.mjs +0 -479
  137. package/mcp.json +0 -134
  138. package/scripts/adaptive-context/fixtures.mjs +0 -183
  139. package/scripts/adaptive-context-benchmark.mjs +0 -9
  140. package/scripts/ascx-runtime-token-saver-benchmark.mjs +0 -9
  141. package/scripts/audit-cache-layer-contract.mjs +0 -263
  142. package/scripts/audit-caching-scope-hygiene.mjs +0 -268
  143. package/scripts/audit-file-size.mjs +0 -219
  144. package/scripts/audit-reflection-citations.mjs +0 -163
  145. package/scripts/audit-release-bundle.mjs +0 -170
  146. package/scripts/audit-rule-id-uniqueness.mjs +0 -313
  147. package/scripts/audit-typography-palette-anti-repeat.mjs +0 -120
  148. package/scripts/benchmark-evidence-bundle.mjs +0 -645
  149. package/scripts/benchmark-gate.mjs +0 -121
  150. package/scripts/benchmark-intelligence.mjs +0 -33
  151. package/scripts/benchmark-writer-judge-matrix.mjs +0 -379
  152. package/scripts/build-release-benchmark-bundle.mjs +0 -202
  153. package/scripts/bump-version.mjs +0 -103
  154. package/scripts/clean-local-artifacts.mjs +0 -78
  155. package/scripts/compact-natural-mode-benchmark.mjs +0 -9
  156. package/scripts/context-triggered-audit.mjs +0 -391
  157. package/scripts/detection-benchmark.mjs +0 -127
  158. package/scripts/docs-quality-drift-report.mjs +0 -358
  159. package/scripts/documentation-boundary-audit.mjs +0 -305
  160. package/scripts/explain-on-demand-audit.mjs +0 -427
  161. package/scripts/forbidden-content-check.mjs +0 -123
  162. package/scripts/frontend-usability-audit.mjs +0 -243
  163. package/scripts/generate-sbom.mjs +0 -61
  164. package/scripts/governance-weekly-report.mjs +0 -466
  165. package/scripts/llm-judge/checklist-loader.mjs +0 -45
  166. package/scripts/llm-judge/constants.mjs +0 -66
  167. package/scripts/llm-judge/diff-collection.mjs +0 -74
  168. package/scripts/llm-judge/prompting.mjs +0 -78
  169. package/scripts/llm-judge/providers.mjs +0 -111
  170. package/scripts/llm-judge/verdict.mjs +0 -134
  171. package/scripts/llm-judge.mjs +0 -200
  172. package/scripts/memory-continuity-benchmark.mjs +0 -322
  173. package/scripts/quality-trend-report.mjs +0 -289
  174. package/scripts/release-gate/audit-checks.mjs +0 -441
  175. package/scripts/release-gate/constants.mjs +0 -53
  176. package/scripts/release-gate/runtime.mjs +0 -63
  177. package/scripts/release-gate/static-checks.mjs +0 -182
  178. package/scripts/release-gate.mjs +0 -42
  179. package/scripts/rules-guardian-audit.mjs +0 -580
  180. package/scripts/single-source-lazy-loading-audit.mjs +0 -449
  181. package/scripts/sync-thin-adapters.mjs +0 -72
  182. package/scripts/token-optimization-benchmark.mjs +0 -252
  183. package/scripts/ui-design-judge/constants.mjs +0 -13
  184. package/scripts/ui-design-judge/design-execution-summary.mjs +0 -81
  185. package/scripts/ui-design-judge/git-input.mjs +0 -134
  186. package/scripts/ui-design-judge/prompting.mjs +0 -52
  187. package/scripts/ui-design-judge/providers.mjs +0 -102
  188. package/scripts/ui-design-judge/reporting.mjs +0 -183
  189. package/scripts/ui-design-judge/rubric-calibration.mjs +0 -214
  190. package/scripts/ui-design-judge/rubric-goldset.json +0 -188
  191. package/scripts/ui-design-judge.mjs +0 -319
  192. package/scripts/ui-rubric-calibration.mjs +0 -35
  193. package/scripts/validate/config.mjs +0 -519
  194. package/scripts/validate/coverage-checks.mjs +0 -446
  195. package/scripts/validate/file-structure.mjs +0 -162
  196. package/scripts/validate/markdown-content.mjs +0 -109
  197. package/scripts/validate/project-metadata.mjs +0 -166
  198. package/scripts/validate.mjs +0 -338
@@ -1,519 +0,0 @@
1
- // @file-size-exception: Pure config table aggregation (snippet expectation lists); deferred to Phase 1 split.
2
- export const ALLOWED_SEVERITIES = new Set(['critical', 'high', 'medium', 'low']);
3
- export const THIN_ADAPTER_PATHS = [
4
- 'CLAUDE.md',
5
- 'GEMINI.md',
6
- ];
7
- export const FORMAL_ARTIFACT_PATHS = [
8
- 'AGENTS.md',
9
- 'README.md',
10
- 'CHANGELOG.md',
11
- 'docs/doc-index.md',
12
- 'docs/project-brief.md',
13
- 'docs/flow-overview.md',
14
- 'docs/api-contract.md',
15
- 'docs/deep-analysis-and-roadmap-backlog.md',
16
- '.agent-context/rules/api-docs.md',
17
- '.agent-context/review-checklists/pr-checklist.md',
18
- '.agent-context/prompts/compact-natural-mode.md',
19
- '.agent-context/prompts/review-code.md',
20
- 'CLAUDE.md',
21
- 'GEMINI.md',
22
- ];
23
- export const REQUIRED_HUMAN_WRITING_SNIPPETS = [
24
-
25
- {
26
- path: '.agent-context/review-checklists/pr-checklist.md',
27
- snippets: [
28
- 'Scope applied: This applies to documentation, release notes, onboarding text, review summaries, and agent-facing explanations',
29
- 'Style scope review is advisory and does not block merge when API docs are synced in the same commit and contract details are correct',
30
- 'Formal project docs use English by default',
31
- 'No emoji in formal documentation or review summaries',
32
- 'Documentation uses plain English and avoids AI cliches',
33
- ],
34
- },
35
- {
36
- path: 'docs/deep-analysis-and-roadmap-backlog.md',
37
- snippets: [
38
- '## Part 6: Documentation and Explanation Standards (Mandatory)',
39
- 'This applies to documentation, release notes, onboarding text, review summaries, and agent-facing explanations.',
40
- 'No emoji in formal artifacts. This is mandatory.',
41
- ],
42
- },
43
- ];
44
- export const TERMINOLOGY_REFERENCE_PATHS = [
45
- 'README.md',
46
- ];
47
- export const REQUIRED_TERMINOLOGY_ROW_PATTERNS = [
48
- {
49
- label: 'Federated Governance -> Federated Rules Operations',
50
- pattern: /\|\s*Federated Governance\s*\|\s*Federated Rules Operations\s*\|/u,
51
- },
52
- {
53
- label: 'Governance Engine -> Rules Engine',
54
- pattern: /\|\s*Governance Engine\s*\|\s*Rules Engine\s*\|/u,
55
- },
56
- {
57
- label: 'Guardrails -> Quality Checks',
58
- pattern: /\|\s*Guardrails\s*\|\s*Quality Checks\s*\|/u,
59
- },
60
- ];
61
- export const REQUIRED_TERMINOLOGY_RULE_SNIPPET =
62
- 'Rule: on first mention in developer-facing docs, include canonical term in parentheses.';
63
- export const REQUIRED_DEVELOPER_FIRST_MENTION_PATTERNS = [
64
- {
65
- path: 'README.md',
66
- label: 'Rules Engine first mention includes Governance Engine',
67
- pattern: /Rules Engine\s*\(Governance Engine\)/u,
68
- },
69
- {
70
- path: 'docs/deep-dive.md',
71
- label: 'Dynamic Rules Engine first mention includes Governance Engine',
72
- pattern: /Dynamic Rules Engine\s*\(Governance Engine\)/u,
73
- },
74
- {
75
- path: 'docs/faq.md',
76
- label: 'Quality Checks first mention includes Guardrails',
77
- pattern: /Quality Checks\s*\(Guardrails\)/u,
78
- },
79
- {
80
- path: '.agent-context/prompts/init-project.md',
81
- label: 'Init prompt first mention includes strict AI coding guidance context',
82
- pattern: /strict AI coding guidance context/iu,
83
- },
84
- {
85
- path: 'lib/cli/commands/init.mjs',
86
- label: 'Init command wording includes project guidance pack',
87
- pattern: /copy the project guidance pack[^\n]*AGENTS\.md and native import bridges/iu,
88
- },
89
- {
90
- path: 'lib/cli/commands/upgrade.mjs',
91
- label: 'Upgrade command wording includes managed guidance upgrade',
92
- pattern: /running managed guidance upgrade for an existing repository\./iu,
93
- },
94
- {
95
- path: 'lib/cli/utils.mjs',
96
- label: 'CLI help wording includes quality checks and guardrails',
97
- pattern: /quality checks\s*\(guardrails\)/iu,
98
- },
99
- ];
100
- export const COMPLIANCE_TERMINOLOGY_BOUNDARY_PATHS = [
101
- '.agent-context/review-checklists/pr-checklist.md',
102
- '.agent-context/review-checklists/architecture-review.md',
103
- 'scripts/release-gate.mjs',
104
- 'scripts/forbidden-content-check.mjs',
105
- ];
106
- export const COMPLIANCE_ALIAS_TERMS = [
107
- 'Federated Rules Operations',
108
- ];
109
- export const REQUIRED_COMPLIANCE_CANONICAL_SNIPPETS = [
110
- {
111
- path: '.agent-context/review-checklists/pr-checklist.md',
112
- snippet: '### 15. Universal SOP Consolidation',
113
- label: 'PR checklist keeps consolidated Universal SOP section',
114
- },
115
- ];
116
- export const REQUIRED_DETECTION_TRANSPARENCY_SNIPPETS = [
117
- {
118
- path: 'lib/cli/init-detection-flow.mjs',
119
- snippets: [
120
- 'existing-project-evidence-only',
121
- 'detectionTransparency',
122
- ],
123
- },
124
- {
125
- path: 'lib/cli/commands/upgrade.mjs',
126
- snippets: [
127
- 'Existing project detection transparency:',
128
- 'formatDetectionCandidates(projectDetection.rankedCandidates)',
129
- 'detectionTransparency',
130
- ],
131
- },
132
- {
133
- path: 'lib/cli/compiler.mjs',
134
- snippets: [
135
- 'detectionTransparency = null',
136
- 'detectionTransparency: detectionTransparency || null',
137
- ],
138
- },
139
- ];
140
- export const REQUIRED_STACK_DECISION_BOUNDARY_SNIPPETS = [
141
- {
142
- path: 'AGENTS.md',
143
- snippets: [
144
- 'Do not silently choose frameworks or architecture from offline heuristics.',
145
- 'produce a short recommendation from evidence and live official documentation before coding',
146
- ],
147
- },
148
- {
149
- path: '.agent-context/prompts/init-project.md',
150
- snippets: [
151
- 'If the user already named a stack or framework, treat it as an explicit constraint.',
152
- 'produce a short evidence-backed recommendation from the brief, repo evidence, and live official documentation before coding',
153
- ],
154
- },
155
-
156
-
157
- {
158
- path: 'lib/cli/commands/init.mjs',
159
- snippets: [
160
- 'AGENT_DECISION_STACK_FILE_NAME',
161
- 'agent recommendation required from current repo/brief evidence',
162
- ],
163
- },
164
- ];
165
- export const REQUIRED_UNIVERSAL_SOP_SNIPPETS = [
166
- {
167
- path: 'AGENTS.md',
168
- snippets: [
169
- '### 1. Documentation-First Mode',
170
- 'root `README.md` for every fresh or existing project',
171
- 'docs/doc-index.md',
172
- 'Stop after documentation when the user only asked for docs.',
173
- 'Do not write application, firmware, or UI code',
174
- ],
175
- },
176
-
177
- {
178
- path: '.agent-context/prompts/init-project.md',
179
- snippets: [
180
- '## Documentation-First Requests',
181
- 'root `README.md` for every fresh or existing project',
182
- '`docs/doc-index.md` whenever `docs/` exists',
183
- 'Stop after docs when the user only asked for docs.',
184
- 'Write formal project docs in English by default',
185
- ],
186
- },
187
- {
188
- path: '.agent-context/review-checklists/pr-checklist.md',
189
- snippets: [
190
- '### 15. Universal SOP Consolidation',
191
- 'Coding flow is blocked if root `README.md` is missing',
192
- 'Coding flow is blocked if `docs/architecture-decision-record.md` (or `docs/Architecture-Decision-Record.md`) is missing',
193
- 'Coding flow is blocked if `docs/flow-overview.md` is missing',
194
- 'Coding flow is blocked if `docs/database-schema.md` is missing while the project uses persistent data',
195
- 'Coding flow is blocked if `docs/api-contract.md` is missing while the project exposes API or web application flows',
196
- 'UI implementation flow is blocked if `docs/DESIGN.md` is missing',
197
- ],
198
- },
199
- {
200
- path: '.agent-context/prompts/review-code.md',
201
- snippets: [
202
- 'Enforce Universal SOP hard gate: block coding flow when required project docs are missing',
203
- 'docs/flow-overview.md',
204
- 'docs/database-schema.md',
205
- 'docs/api-contract.md',
206
- ],
207
- },
208
- {
209
- path: '.agent-context/prompts/refactor.md',
210
- snippets: [
211
- 'Enforce Universal SOP hard gate: stop implementation if root `README.md` is missing',
212
- 'docs/flow-overview.md',
213
- 'docs/database-schema.md',
214
- 'docs/api-contract.md',
215
- ],
216
- },
217
- {
218
- path: 'lib/cli/compiler.mjs',
219
- snippets: [
220
- 'Universal SOP hard block policy:',
221
- 'docs/doc-index.md whenever docs/ exists',
222
- 'README.md must exist and read as a public and developer entrypoint',
223
- 'Hard block: do not write application code until docs/project-brief.md and docs/architecture-decision-record.md exist.',
224
- 'Documentation-first policy:',
225
- 'Keep README.md public and developer friendly',
226
- 'For docs-only/docs-first requests, do not write application, firmware, or UI code until the user asks or approves an implementation plan.',
227
- 'Follow the three-step design direction process in bootstrap-design.md',
228
- ],
229
- },
230
- ];
231
- export const REQUIRED_DIAGRAM_FORMAT_SNIPPETS = [
232
-
233
- {
234
- path: 'lib/cli/project-scaffolder/prompt-builders.mjs',
235
- snippets: [
236
- 'Mermaid.js as the default diagram format',
237
- ],
238
- },
239
- ];
240
- export const REQUIRED_TEMPLATE_FREE_BOOTSTRAP_SNIPPETS = [
241
- {
242
- path: 'lib/cli/project-scaffolder/storage.mjs',
243
- snippets: [
244
- 'generateProjectDocumentation',
245
- "bootstrapMode: 'ai-synthesis'",
246
- ],
247
- },
248
- {
249
- path: 'lib/cli/project-scaffolder/prompt-builders.mjs',
250
- snippets: [
251
- 'Write project context docs from scratch (no template rendering, no placeholder boilerplate).',
252
- 'For any ecosystem or technology claim, perform live web research and include citation metadata (source + fetchedAt timestamp) rather than relying on offline heuristics.',
253
- ],
254
- },
255
- {
256
- path: 'lib/cli/commands/init.mjs',
257
- snippets: [
258
- 'Project docs will be authored dynamically by your IDE assistant from these prompts.',
259
- 'bootstrap-project-context.md',
260
- 'Seed docs:',
261
- 'I prepared dynamic synthesis bootstrap prompts',
262
- ],
263
- },
264
- ];
265
- export const REQUIRED_UPGRADE_UI_CONTRACT_WARNING_SNIPPETS = [
266
- {
267
- path: 'lib/cli/commands/upgrade.mjs',
268
- snippets: [
269
- 'UI/frontend scope was detected, but the dynamic design contract is incomplete:',
270
- 'detectUiScopeSignals',
271
- ],
272
- },
273
- ];
274
- export const REQUIRED_UI_DESIGN_AUTOMATION_SNIPPETS = [
275
- {
276
- path: 'AGENTS.md',
277
- snippets: [
278
- 'UI Design Mode',
279
- 'bootstrap-design.md',
280
- 'frontend-architecture.md',
281
- 'docs/DESIGN.md',
282
- 'Documentation-First Mode',
283
- 'English by default',
284
- 'do not write application, firmware, or UI code',
285
- 'three-step direction process',
286
- 'anti-repeat ledger',
287
- 'perform live web research',
288
- ],
289
- },
290
- {
291
- path: 'AGENTS.md',
292
- snippets: [
293
- 'Resolve the smallest relevant layer set for the current request.',
294
- 'UI Design Mode',
295
- 'bootstrap-design.md',
296
- 'frontend-architecture.md',
297
- 'do not eagerly load unrelated backend-only rules',
298
- 'valid style context',
299
- 'External references, prior-chat memory, unrelated-project visuals, and remembered screenshots are tainted',
300
- 'WCAG 2.2 AA as the hard compliance floor',
301
- 'APCA as advisory perceptual tuning only',
302
- ],
303
- },
304
- {
305
- path: '.agent-context/prompts/bootstrap-design.md',
306
- snippets: [
307
- 'WCAG 2.2 AA is the hard compliance floor',
308
- 'Name Your Defaults',
309
- 'Choose an Anchor',
310
- 'Creative Commitments',
311
- 'Previous Directions',
312
- 'Redesign Protocol',
313
- 'research current official docs',
314
- ],
315
- },
316
- {
317
- path: 'scripts/ui-design-judge.mjs',
318
- snippets: [
319
- 'Advisory-default UI design contract judge.',
320
- 'Repo-internal workflow audit; no user-facing runtime modes.',
321
- 'genericityAutoFail',
322
- 'blocking required actions',
323
- 'Do not reward generic SaaS defaults or popular template patterns.',
324
- 'UI design judge only evaluates changed UI surfaces.',
325
- 'Structured design execution summary was supplied to semantic review.',
326
- 'designExecutionSignalCount',
327
- 'designExecutionPolicy',
328
- 'designExecutionHandoff',
329
- 'reviewRubric',
330
- 'genericityStatus',
331
- 'handoffReady',
332
- 'structuredInspectionAvailable',
333
- 'calibratedStatus',
334
- 'applyGenericityAutoFail',
335
- ],
336
- },
337
- {
338
- path: 'scripts/ui-design-judge/rubric-calibration.mjs',
339
- snippets: [
340
- 'ui-rubric-calibration-v1',
341
- 'matchedGenericitySignals',
342
- 'matchedForbiddenPatterns',
343
- 'matchedValidBoldSignals',
344
- 'contractDriftDetected',
345
- 'Genericity claim was not backed by any named drift signal.',
346
- ],
347
- },
348
- {
349
- path: 'scripts/ui-rubric-calibration.mjs',
350
- snippets: [
351
- 'ui-rubric-calibration',
352
- 'rubric-goldset.json',
353
- 'accuracyPercent',
354
- ],
355
- },
356
- {
357
- path: 'lib/cli/project-scaffolder/ui-scope-detection.mjs',
358
- snippets: [
359
- 'shouldBootstrapDesignDocument',
360
- ],
361
- },
362
- {
363
- path: 'lib/cli/detector.mjs',
364
- snippets: [
365
- 'frontendEvidenceMetrics',
366
- 'designEvidenceSummary',
367
- ],
368
- },
369
- {
370
- path: 'lib/cli/detector/design-evidence.mjs',
371
- snippets: [
372
- 'summaryVersion',
373
- 'hardcodedColorCount',
374
- 'propDrillingCandidateCount',
375
- 'arbitraryBreakpointCount',
376
- 'cssVariables',
377
- 'componentInventory',
378
- 'structuredInspection',
379
- 'classAttributeCount',
380
- 'inlineStyleObjectCount',
381
- 'tokenBypassSignals',
382
- ],
383
- },
384
- {
385
- path: 'lib/cli/compiler.mjs',
386
- snippets: [
387
- 'Resolve the smallest relevant layer set before responding.',
388
- 'LAYER 1: RULES (SCOPE-RESOLVED)',
389
- 'LAYER 5: EXECUTION PROMPTS AND UI TRIGGERS',
390
- 'bootstrap-design.md -> ui, ux, layout, screen, tailwind, frontend, redesign',
391
- 'three-step design direction process in bootstrap-design.md',
392
- 'designEvidenceSummary',
393
- ],
394
- },
395
- ];
396
- export const REQUIRED_DOCKER_RUNTIME_AUTOMATION_SNIPPETS = [
397
- {
398
- path: 'AGENTS.md',
399
- snippets: [
400
- 'docker-runtime.md',
401
- 'For Docker or Compose work, load `docker-runtime.md` and verify the latest official Docker docs before authoring container assets.',
402
- ],
403
- },
404
-
405
- {
406
- path: '.agent-context/prompts/init-project.md',
407
- snippets: [
408
- 'If Docker or Compose is in scope, load [docker-runtime.md](../rules/docker-runtime.md) and verify the latest official Docker guidance before authoring container assets.',
409
- 'If containerization is selected, Docker assets must follow [docker-runtime.md](../rules/docker-runtime.md) and the latest official Docker docs instead of stale blog-era patterns.',
410
- ],
411
- },
412
- ];
413
- export const REQUIRED_DEPENDENCY_FRESHNESS_AUTOMATION_SNIPPETS = [
414
- {
415
- path: 'AGENTS.md',
416
- snippets: [
417
- 'use the latest stable compatible dependency set and official setup flow',
418
- ],
419
- },
420
-
421
- {
422
- path: '.agent-context/prompts/init-project.md',
423
- snippets: [
424
- 'recommend the latest stable compatible dependency set and official framework setup flow from live official documentation before coding',
425
- 'Use official framework setup commands or canonical starter flows',
426
- ],
427
- },
428
- ];
429
- export const FORBIDDEN_TEMPLATE_BOOTSTRAP_SNIPPETS = [
430
- {
431
- path: 'lib/cli/project-scaffolder/prompt-builders.mjs',
432
- snippets: [
433
- '.tmpl',
434
- ],
435
- },
436
- ];
437
- export const FORBIDDEN_ACTIVE_BIAS_ANCHOR_SNIPPETS = [
438
- {
439
- path: 'AGENTS.md',
440
- snippets: [
441
- 'illustrative, not exhaustive',
442
- 'explicitly approved reference systems',
443
- 'Do not auto-recommend frameworks',
444
- 'prefer the latest stable compatible dependency set',
445
- ],
446
- },
447
- {
448
- path: '.agent-context/prompts/bootstrap-design.md',
449
- snippets: [
450
- 'stylistic inspiration',
451
- 'famous brand reference',
452
- 'explicitly approved reference systems',
453
- ],
454
- },
455
- {
456
- path: '.agent-context/prompts/init-project.md',
457
- snippets: [
458
- 'Compact User Prompt Patterns',
459
- 'latest stable compatible dependency set and official framework setup flow first',
460
- 'Prefer official framework setup commands',
461
- 'ask for confirmation instead of silently choosing a stack',
462
- ],
463
- },
464
- {
465
- path: 'lib/cli/constants.mjs',
466
- snippets: [
467
- 'BLUEPRINT_RECOMMENDATIONS',
468
- `java-${'enter'}${'prise'}-api`,
469
- `dotnet-${'enter'}${'prise'}-api`,
470
- ],
471
- },
472
- {
473
- path: 'lib/cli/init-detection-flow.mjs',
474
- snippets: [
475
- `Using detected ${'stack'} automatically`,
476
- `Use detected ${'setup'} for this existing project?`,
477
- 'Override detected stack',
478
- ],
479
- },
480
- {
481
- path: 'scripts/ui-design-judge/prompting.mjs',
482
- snippets: [
483
- '"recommendation": string',
484
- ],
485
- },
486
- {
487
- path: 'scripts/documentation-boundary-audit.mjs',
488
- snippets: [
489
- 'suggestedActions',
490
- 'suggestedDocumentationUpdates',
491
- ],
492
- },
493
- ];
494
- export const REQUIRED_DETERMINISTIC_BOUNDARY_ENFORCEMENT_SNIPPETS = [
495
- {
496
- path: 'scripts/documentation-boundary-audit.mjs',
497
- snippets: [
498
- 'reportVersion',
499
- 'violations',
500
- 'requiredActions',
501
- 'diagnosticCode',
502
- 'autoDocsSyncScope',
503
- 'rolloutMetrics',
504
- 'precision',
505
- 'recall',
506
- ],
507
- },
508
- {
509
- path: 'scripts/release-gate.mjs',
510
- snippets: [
511
- 'documentation-boundary-hard-rule',
512
- 'documentation-boundary-diagnostics-machine-readable',
513
- 'diagnostics.documentationBoundaryAudit',
514
- 'auto-docs-sync-scope-phase1',
515
- 'auto-docs-sync-rollout-metrics',
516
- 'ui-design-judge-structured-diagnostics',
517
- ],
518
- },
519
- ];