@ryuenn3123/agentic-senior-core 3.0.33 → 3.0.35

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.
@@ -20,6 +20,15 @@ If the user describes a project or feature, the agent must:
20
20
  4. Draft a high-level structure plan plus the docs/bootstrap artifacts that must exist before coding.
21
21
  5. Wait for user approval before scaffolding the project.
22
22
 
23
+ ## Documentation-First Requests
24
+
25
+ If the user asks to create, complete, fix, or review project docs, documentation, dokumen, `docs/*`, architecture docs, flow docs, API docs, or "lengkapkan docs", treat the request as documentation-first.
26
+
27
+ The agent must:
28
+ 1. Materialize or refine required project docs before implementation: `docs/project-brief.md`, `docs/architecture-decision-record.md`, `docs/flow-overview.md`, `docs/api-contract.md` when APIs, firmware endpoints, CLI commands, or web application flows exist, `docs/database-schema.md` when persistent data exists, and `docs/DESIGN.md` plus `docs/design-intent.json` for UI scope.
29
+ 2. Write formal project docs in English by default unless the user explicitly asks for another documentation language.
30
+ 3. Stop after docs when the user only asked for docs. Do not write application, firmware, or UI code until the user explicitly asks for implementation or approves the implementation plan.
31
+
23
32
  ## Direct Constraint Mode
24
33
 
25
34
  If the user specifies a framework, runtime, or architecture constraint, the agent must:
@@ -60,6 +60,8 @@ Run this before declaring a task done. Apply only the sections relevant to the c
60
60
  - [ ] Scope applied: This applies to documentation, release notes, onboarding text, review summaries, and agent-facing explanations
61
61
  - [ ] Style scope review is advisory and does not block merge when API docs are synced in the same commit and contract details are correct
62
62
  - [ ] Required docs exist before implementation: project brief, architecture decision, flow overview, API/public contract when relevant, data model when relevant, and UI design contract when relevant.
63
+ - [ ] For docs-only or docs-first requests, implementation code was not changed unless the user explicitly asked for it or approved an implementation plan.
64
+ - [ ] Formal project docs use English by default unless the user requested another language or existing docs established one.
63
65
  - [ ] Docs cover feature plan, architecture rationale, public contracts, data model, UI/design, security assumptions, testing strategy, delivery flow, and next validation actions where relevant.
64
66
  - [ ] API, event, CLI, library, data, and UI contract changes update docs in the same scope.
65
67
  - [ ] Public surface changes fail review if documentation updates are missing or stale in the same scope
@@ -24,6 +24,10 @@ If a change affects an API, CLI command, exported library behavior, schema, even
24
24
  This applies to documentation, release notes, onboarding text, review summaries, and agent-facing explanations.
25
25
  API docs and README updates are included in this scope.
26
26
 
27
+ ### Language Default
28
+
29
+ Write formal project docs in English by default, even when the user prompt is in another language. Use another documentation language only when the user explicitly asks for it or when existing project docs already establish that language.
30
+
27
31
  ### Style Baseline
28
32
 
29
33
  1. Write for native English speakers.
@@ -1,5 +1,5 @@
1
1
  {
2
- "generatedAt": "2026-04-26T22:56:14.192Z",
2
+ "generatedAt": "2026-04-27T02:24:13.742Z",
3
3
  "reportName": "memory-continuity-benchmark",
4
4
  "schemaVersion": "1.0.0",
5
5
  "passed": true,
package/.cursorrules CHANGED
@@ -1,7 +1,7 @@
1
1
  # AGENTIC-SENIOR-CORE DYNAMIC GOVERNANCE RULESET
2
2
 
3
- Generated by Agentic-Senior-Core CLI v3.0.33
4
- Timestamp: 2026-04-24T06:02:48.303Z
3
+ Generated by Agentic-Senior-Core CLI v3.0.35
4
+ Timestamp: 2026-04-26T23:31:29.580Z
5
5
  Selected policy file: .agent-context/policies/llm-judge-threshold.json
6
6
 
7
7
  ## GOVERNANCE PRECEDENCE
@@ -54,15 +54,20 @@ For an existing project, inspect repo markers and current files directly before
54
54
  Do not silently choose a stack from offline defaults.
55
55
  ## LAYER 2 POLICY: LAZY RULE LOADING
56
56
  Primary runtime constraint: unresolved until agent recommendation is approved
57
- Additional runtime guidance loads only when explicitly selected by the user or required by touched code.
58
- Load runtime-specific guidance only when task scope touches that runtime.
59
- Avoid eager loading unrelated runtime guidance to prevent instruction conflicts.
57
+ No stack-specific governance adapter is loaded by default.
58
+ Load global domain rules only when task scope touches that domain.
59
+ Avoid eager loading unrelated runtime or domain guidance to prevent instruction conflicts.
60
60
  ## LAYER 5: EXECUTION PROMPTS AND UI TRIGGERS
61
61
  Load these prompt contracts only when their trigger matches the user request:
62
+ 0. Documentation-first mode -> docs, documentation, dokumen, docs/*, architecture docs, flow docs, API docs, lengkapkan docs
62
63
  1. .agent-context/prompts/init-project.md -> create, build, new project, scaffold
63
64
  2. .agent-context/prompts/refactor.md -> refactor, improve, clean up, fix
64
65
  3. .agent-context/prompts/review-code.md -> review, audit, check, analyze
65
66
  4. .agent-context/prompts/bootstrap-design.md -> ui, ux, layout, screen, tailwind, frontend, redesign
67
+ Documentation-first policy:
68
+ - Create or refine required project docs before implementation: docs/project-brief.md, docs/architecture-decision-record.md, docs/flow-overview.md, docs/api-contract.md when APIs, firmware endpoints, CLI commands, or web application flows exist, docs/database-schema.md when persistent data exists, and docs/DESIGN.md plus docs/design-intent.json for UI scope.
69
+ - Write formal project docs in English by default unless the user explicitly asks for another documentation language.
70
+ - For docs-only/docs-first requests, do not write application, firmware, or UI code until the user asks or approves an implementation plan.
66
71
  UI trigger policy:
67
72
  - Load .agent-context/prompts/bootstrap-design.md and .agent-context/rules/frontend-architecture.md first.
68
73
  - Keep UI-only requests context-isolated and do not eagerly load backend-only rules such as database-design.md, docker-runtime.md, microservices.md, git-workflow.md, or general implementation-theory rules unless the task explicitly crosses those boundaries.
@@ -2,7 +2,7 @@
2
2
 
3
3
  Adapter Mode: thin
4
4
  Adapter Source: .instructions.md
5
- Canonical Snapshot SHA256: a49781782fac817a8a979e7937563b67826fd088af160a12cf84bdab4d038624
5
+ Canonical Snapshot SHA256: 06e3f81d1df0e86bad6c3fe2a4623da640a1ea88b3124aecf1c10214cdc178e6
6
6
 
7
7
  Canonical policy source: [.instructions.md](../.instructions.md).
8
8
 
@@ -11,6 +11,7 @@ If your host stops at this file, follow this minimum floor:
11
11
  - For UI or redesign requests, load [.agent-context/prompts/bootstrap-design.md](../.agent-context/prompts/bootstrap-design.md) and [.agent-context/rules/frontend-architecture.md](../.agent-context/rules/frontend-architecture.md) before coding.
12
12
  - For UI scope, include a one-line Motion/Palette Decision in the Bootstrap Receipt; product categories are heuristics, not style presets.
13
13
  - If UI scope and `docs/DESIGN.md` or `docs/design-intent.json` is missing, materialize them before UI implementation.
14
+ - For documentation-first requests, create or refine required project docs in English by default and do not write application, firmware, or UI code until the user asks or approves.
14
15
  - For backend/API/data/auth/event requests, load relevant global rules from [.agent-context/rules/](../.agent-context/rules) and do not create stack-specific governance adapters.
15
16
  - Memory continuity is host-dependent project memory and does not replace bootstrap loading.
16
17
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  Adapter Mode: thin
4
4
  Adapter Source: .instructions.md
5
- Canonical Snapshot SHA256: a49781782fac817a8a979e7937563b67826fd088af160a12cf84bdab4d038624
5
+ Canonical Snapshot SHA256: 06e3f81d1df0e86bad6c3fe2a4623da640a1ea88b3124aecf1c10214cdc178e6
6
6
 
7
7
  The canonical policy source for this repository is [.instructions.md](../.instructions.md).
8
8
 
@@ -11,6 +11,7 @@ If your host stops at this file, follow this minimum floor:
11
11
  - For UI or redesign requests, load [.agent-context/prompts/bootstrap-design.md](../.agent-context/prompts/bootstrap-design.md) and [.agent-context/rules/frontend-architecture.md](../.agent-context/rules/frontend-architecture.md) before coding.
12
12
  - For UI scope, include a one-line Motion/Palette Decision in the Bootstrap Receipt; product categories are heuristics, not style presets.
13
13
  - If UI scope and `docs/DESIGN.md` or `docs/design-intent.json` is missing, materialize them before UI implementation.
14
+ - For documentation-first requests, create or refine required project docs in English by default and do not write application, firmware, or UI code until the user asks or approves.
14
15
  - For backend/API/data/auth/event requests, load relevant global rules from [.agent-context/rules/](../.agent-context/rules) and do not create stack-specific governance adapters.
15
16
  - Memory continuity is host-dependent project memory and does not replace bootstrap loading.
16
17
 
package/.instructions.md CHANGED
@@ -161,7 +161,18 @@ Use available MCP tools when you need validation, linting, or test execution.
161
161
 
162
162
  ## Mandatory Triggers
163
163
 
164
- ### 1. New Project Planning
164
+ ### 1. Documentation-First Mode
165
+
166
+ **Trigger**: User asks to create, complete, fix, or review project docs, documentation, dokumen, `docs/*`, architecture docs, flow docs, API docs, or "lengkapkan docs".
167
+
168
+ **Workflow**:
169
+
170
+ 1. Load `architecture.md` and `api-docs.md`, then load only additional rules needed by the documented scope.
171
+ 2. Create or refine the required project docs before implementation: `docs/project-brief.md`, `docs/architecture-decision-record.md`, `docs/flow-overview.md`, `docs/api-contract.md` when APIs, firmware endpoints, CLI commands, or web application flows exist, `docs/database-schema.md` when persistent data exists, and `docs/DESIGN.md` plus `docs/design-intent.json` for UI scope.
172
+ 3. Write formal project docs in English by default unless the user explicitly asks for another documentation language.
173
+ 4. Stop after documentation when the user only asked for docs. Do not write application, firmware, or UI code until the user explicitly asks for implementation or approves the implementation plan.
174
+
175
+ ### 2. New Project Planning
165
176
 
166
177
  **Trigger**: User says "create", "build", "new project", or "scaffold"
167
178
 
@@ -173,7 +184,7 @@ Use available MCP tools when you need validation, linting, or test execution.
173
184
  4. Produce scope, required docs, implementation boundaries, and a runtime/architecture recommendation when those decisions are unresolved.
174
185
  5. **WAIT for user approval** before generating code.
175
186
 
176
- ### 2. Refactor Mode (EXISTING CODE)
187
+ ### 3. Refactor Mode (EXISTING CODE)
177
188
 
178
189
  **Trigger**: User says "refactor", "improve", "fix", or "clean up"
179
190
 
@@ -185,7 +196,7 @@ Use available MCP tools when you need validation, linting, or test execution.
185
196
  4. Propose plan before executing changes.
186
197
  5. **WAIT for approval**.
187
198
 
188
- ### 3. Code Review Mode
199
+ ### 4. Code Review Mode
189
200
 
190
201
  **Trigger**: User says "review", "audit", "check", or "analyze"
191
202
 
@@ -196,7 +207,7 @@ Use available MCP tools when you need validation, linting, or test execution.
196
207
  3. Execute review against the active rules and contracts.
197
208
  4. Generate a structured report.
198
209
 
199
- ### 4. UI Design Mode
210
+ ### 5. UI Design Mode
200
211
 
201
212
  **Trigger**: User says "ui", "ux", "layout", "screen", "tailwind", "frontend", or "redesign"
202
213
 
package/.windsurfrules CHANGED
@@ -1,7 +1,7 @@
1
1
  # AGENTIC-SENIOR-CORE DYNAMIC GOVERNANCE RULESET
2
2
 
3
- Generated by Agentic-Senior-Core CLI v3.0.33
4
- Timestamp: 2026-04-24T06:02:48.303Z
3
+ Generated by Agentic-Senior-Core CLI v3.0.35
4
+ Timestamp: 2026-04-26T23:31:29.580Z
5
5
  Selected policy file: .agent-context/policies/llm-judge-threshold.json
6
6
 
7
7
  ## GOVERNANCE PRECEDENCE
@@ -54,15 +54,20 @@ For an existing project, inspect repo markers and current files directly before
54
54
  Do not silently choose a stack from offline defaults.
55
55
  ## LAYER 2 POLICY: LAZY RULE LOADING
56
56
  Primary runtime constraint: unresolved until agent recommendation is approved
57
- Additional runtime guidance loads only when explicitly selected by the user or required by touched code.
58
- Load runtime-specific guidance only when task scope touches that runtime.
59
- Avoid eager loading unrelated runtime guidance to prevent instruction conflicts.
57
+ No stack-specific governance adapter is loaded by default.
58
+ Load global domain rules only when task scope touches that domain.
59
+ Avoid eager loading unrelated runtime or domain guidance to prevent instruction conflicts.
60
60
  ## LAYER 5: EXECUTION PROMPTS AND UI TRIGGERS
61
61
  Load these prompt contracts only when their trigger matches the user request:
62
+ 0. Documentation-first mode -> docs, documentation, dokumen, docs/*, architecture docs, flow docs, API docs, lengkapkan docs
62
63
  1. .agent-context/prompts/init-project.md -> create, build, new project, scaffold
63
64
  2. .agent-context/prompts/refactor.md -> refactor, improve, clean up, fix
64
65
  3. .agent-context/prompts/review-code.md -> review, audit, check, analyze
65
66
  4. .agent-context/prompts/bootstrap-design.md -> ui, ux, layout, screen, tailwind, frontend, redesign
67
+ Documentation-first policy:
68
+ - Create or refine required project docs before implementation: docs/project-brief.md, docs/architecture-decision-record.md, docs/flow-overview.md, docs/api-contract.md when APIs, firmware endpoints, CLI commands, or web application flows exist, docs/database-schema.md when persistent data exists, and docs/DESIGN.md plus docs/design-intent.json for UI scope.
69
+ - Write formal project docs in English by default unless the user explicitly asks for another documentation language.
70
+ - For docs-only/docs-first requests, do not write application, firmware, or UI code until the user asks or approves an implementation plan.
66
71
  UI trigger policy:
67
72
  - Load .agent-context/prompts/bootstrap-design.md and .agent-context/rules/frontend-architecture.md first.
68
73
  - Keep UI-only requests context-isolated and do not eagerly load backend-only rules such as database-design.md, docker-runtime.md, microservices.md, git-workflow.md, or general implementation-theory rules unless the task explicitly crosses those boundaries.
package/AGENTS.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Adapter Mode: thin
4
4
  Adapter Source: .instructions.md
5
- Canonical Snapshot SHA256: a49781782fac817a8a979e7937563b67826fd088af160a12cf84bdab4d038624
5
+ Canonical Snapshot SHA256: 06e3f81d1df0e86bad6c3fe2a4623da640a1ea88b3124aecf1c10214cdc178e6
6
6
 
7
7
  This file is an adapter entrypoint for agent discovery.
8
8
  The canonical policy source is [.instructions.md](.instructions.md).
@@ -16,6 +16,7 @@ If your host stops at this file instead of following the full chain, obey the Cr
16
16
  - For UI, UX, layout, screen, tailwind, frontend, or redesign requests: load [.agent-context/prompts/bootstrap-design.md](.agent-context/prompts/bootstrap-design.md) and [.agent-context/rules/frontend-architecture.md](.agent-context/rules/frontend-architecture.md) before editing code.
17
17
  - For UI scope, include a one-line Motion/Palette Decision in the Bootstrap Receipt; product categories are heuristics, not style presets.
18
18
  - For UI scope: if `docs/DESIGN.md` or `docs/design-intent.json` is missing, materialize or refine them before implementing UI changes.
19
+ - For documentation-first requests: create or refine required project docs in English by default and do not write application, firmware, or UI code until the user asks or approves.
19
20
  - For backend, API, data, auth, error, event, queue, worker, or distributed-system requests: load the relevant global rules from [.agent-context/rules/](.agent-context/rules); do not create stack-specific governance adapters.
20
21
  - For refactor, improve, clean up, or fix requests: inspect the active rules and propose a plan before editing.
21
22
  - For new project or module requests: clarify constraints, runtime decisions, and required docs before generating code.
@@ -348,10 +348,15 @@ export async function buildCompiledRulesContent({
348
348
  [
349
349
  '## LAYER 5: EXECUTION PROMPTS AND UI TRIGGERS',
350
350
  'Load these prompt contracts only when their trigger matches the user request:',
351
+ '0. Documentation-first mode -> docs, documentation, dokumen, docs/*, architecture docs, flow docs, API docs, lengkapkan docs',
351
352
  '1. .agent-context/prompts/init-project.md -> create, build, new project, scaffold',
352
353
  '2. .agent-context/prompts/refactor.md -> refactor, improve, clean up, fix',
353
354
  '3. .agent-context/prompts/review-code.md -> review, audit, check, analyze',
354
355
  '4. .agent-context/prompts/bootstrap-design.md -> ui, ux, layout, screen, tailwind, frontend, redesign',
356
+ 'Documentation-first policy:',
357
+ '- Create or refine required project docs before implementation: docs/project-brief.md, docs/architecture-decision-record.md, docs/flow-overview.md, docs/api-contract.md when APIs, firmware endpoints, CLI commands, or web application flows exist, docs/database-schema.md when persistent data exists, and docs/DESIGN.md plus docs/design-intent.json for UI scope.',
358
+ '- Write formal project docs in English by default unless the user explicitly asks for another documentation language.',
359
+ '- For docs-only/docs-first requests, do not write application, firmware, or UI code until the user asks or approves an implementation plan.',
355
360
  'UI trigger policy:',
356
361
  '- Load .agent-context/prompts/bootstrap-design.md and .agent-context/rules/frontend-architecture.md first.',
357
362
  '- Keep UI-only requests context-isolated and do not eagerly load backend-only rules such as database-design.md, docker-runtime.md, microservices.md, git-workflow.md, or general implementation-theory rules unless the task explicitly crosses those boundaries.',
@@ -536,6 +541,7 @@ export async function buildCompiledRulesContent({
536
541
  '- docs/flow-overview.md must also exist before coding continues.',
537
542
  '- Add docs/database-schema.md when persistent data is involved.',
538
543
  '- Add docs/api-contract.md when API or web application flows are involved.',
544
+ '- For docs-only/docs-first requests, stop after docs unless the user asks for implementation or approves an implementation plan.',
539
545
  '- If docs/project-brief.md is missing, execute bootstrap-project-context prompt immediately.',
540
546
  hasBootstrapDesignPrompt
541
547
  ? '- For UI scope: if docs/DESIGN.md or docs/design-intent.json is missing, execute bootstrap-design prompt before implementing UI surfaces.'
@@ -8,6 +8,7 @@ export function shouldBootstrapDesignDocument(discoveryAnswers, initContext) {
8
8
  const isUiDomain = normalizedDomain.includes('web')
9
9
  || normalizedDomain.includes('mobile')
10
10
  || normalizedDomain.includes('frontend')
11
+ || normalizedDomain.includes('fullstack')
11
12
  || normalizedDomain.includes('ui');
12
13
 
13
14
  const isBackendOnlyDomain = normalizedDomain.includes('api service')
@@ -165,7 +165,8 @@ export function resolveProjectDocTargets(discoveryAnswers) {
165
165
  const hasDatabase = !discoveryAnswers.databaseChoice.toLowerCase().startsWith('none');
166
166
  const isApiOrWebDomain = ['API service', 'Web application'].includes(discoveryAnswers.primaryDomain)
167
167
  || discoveryAnswers.primaryDomain.toLowerCase().includes('api')
168
- || discoveryAnswers.primaryDomain.toLowerCase().includes('web');
168
+ || discoveryAnswers.primaryDomain.toLowerCase().includes('web')
169
+ || discoveryAnswers.primaryDomain.toLowerCase().includes('fullstack');
169
170
 
170
171
  const requiredDocFileNames = [
171
172
  'project-brief.md',
@@ -43,6 +43,15 @@ export async function generateProjectDocumentation(
43
43
  const expectedDocFileNames = [...requiredDocFileNames];
44
44
  const generatedPromptFileNames = [];
45
45
  const materializedFileNames = [];
46
+ const shouldCreateDesignContract = shouldBootstrapDesignDocument(discoveryAnswers, initContext);
47
+
48
+ if (shouldCreateDesignContract) {
49
+ for (const designContractFileName of UI_DESIGN_CONTRACT_FILE_NAMES) {
50
+ if (!expectedDocFileNames.includes(designContractFileName)) {
51
+ expectedDocFileNames.push(designContractFileName);
52
+ }
53
+ }
54
+ }
46
55
 
47
56
  const projectContextPromptFileName = 'bootstrap-project-context.md';
48
57
  const projectContextPromptContent = buildProjectContextBootstrapPrompt({
@@ -58,7 +67,7 @@ export async function generateProjectDocumentation(
58
67
  );
59
68
  generatedPromptFileNames.push(projectContextPromptFileName);
60
69
 
61
- if (shouldBootstrapDesignDocument(discoveryAnswers, initContext)) {
70
+ if (shouldCreateDesignContract) {
62
71
  const designPromptFileName = 'bootstrap-design.md';
63
72
  const designPromptContent = buildDesignBootstrapPrompt({
64
73
  discoveryAnswers,
@@ -75,12 +84,6 @@ export async function generateProjectDocumentation(
75
84
  });
76
85
  await fs.writeFile(path.join(docsDirectoryPath, designIntentSeedFileName), designIntentSeedContent, 'utf8');
77
86
  materializedFileNames.push(designIntentSeedFileName);
78
-
79
- for (const designContractFileName of UI_DESIGN_CONTRACT_FILE_NAMES) {
80
- if (!expectedDocFileNames.includes(designContractFileName)) {
81
- expectedDocFileNames.push(designContractFileName);
82
- }
83
- }
84
87
  }
85
88
 
86
89
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ryuenn3123/agentic-senior-core",
3
- "version": "3.0.33",
3
+ "version": "3.0.35",
4
4
  "type": "module",
5
5
  "description": "Force your AI Agent to code like a Staff Engineer, not a Junior.",
6
6
  "bin": {
@@ -45,6 +45,7 @@ If your host stops at this file instead of following the full chain, obey the Cr
45
45
  - For UI, UX, layout, screen, tailwind, frontend, or redesign requests: load [.agent-context/prompts/bootstrap-design.md](.agent-context/prompts/bootstrap-design.md) and [.agent-context/rules/frontend-architecture.md](.agent-context/rules/frontend-architecture.md) before editing code.
46
46
  - For UI scope, include a one-line Motion/Palette Decision in the Bootstrap Receipt; product categories are heuristics, not style presets.
47
47
  - For UI scope: if \`docs/DESIGN.md\` or \`docs/design-intent.json\` is missing, materialize or refine them before implementing UI changes.
48
+ - For documentation-first requests: create or refine required project docs in English by default and do not write application, firmware, or UI code until the user asks or approves.
48
49
  - For backend, API, data, auth, error, event, queue, worker, or distributed-system requests: load the relevant global rules from [.agent-context/rules/](.agent-context/rules); do not create stack-specific governance adapters.
49
50
  - For refactor, improve, clean up, or fix requests: inspect the active rules and propose a plan before editing.
50
51
  - For new project or module requests: clarify constraints, runtime decisions, and required docs before generating code.
@@ -89,6 +90,7 @@ If your host stops at this file, follow this minimum floor:
89
90
  - For UI or redesign requests, load [.agent-context/prompts/bootstrap-design.md](../.agent-context/prompts/bootstrap-design.md) and [.agent-context/rules/frontend-architecture.md](../.agent-context/rules/frontend-architecture.md) before coding.
90
91
  - For UI scope, include a one-line Motion/Palette Decision in the Bootstrap Receipt; product categories are heuristics, not style presets.
91
92
  - If UI scope and \`docs/DESIGN.md\` or \`docs/design-intent.json\` is missing, materialize them before UI implementation.
93
+ - For documentation-first requests, create or refine required project docs in English by default and do not write application, firmware, or UI code until the user asks or approves.
92
94
  - For backend/API/data/auth/event requests, load relevant global rules from [.agent-context/rules/](../.agent-context/rules) and do not create stack-specific governance adapters.
93
95
  - Memory continuity is host-dependent project memory and does not replace bootstrap loading.
94
96
 
@@ -126,6 +128,7 @@ If your host stops at this file, follow this minimum floor:
126
128
  - For UI or redesign requests, load [.agent-context/prompts/bootstrap-design.md](../.agent-context/prompts/bootstrap-design.md) and [.agent-context/rules/frontend-architecture.md](../.agent-context/rules/frontend-architecture.md) before coding.
127
129
  - For UI scope, include a one-line Motion/Palette Decision in the Bootstrap Receipt; product categories are heuristics, not style presets.
128
130
  - If UI scope and \`docs/DESIGN.md\` or \`docs/design-intent.json\` is missing, materialize them before UI implementation.
131
+ - For documentation-first requests, create or refine required project docs in English by default and do not write application, firmware, or UI code until the user asks or approves.
129
132
  - For backend/API/data/auth/event requests, load relevant global rules from [.agent-context/rules/](../.agent-context/rules) and do not create stack-specific governance adapters.
130
133
  - Memory continuity is host-dependent project memory and does not replace bootstrap loading.
131
134
 
@@ -24,6 +24,7 @@ export const REQUIRED_HUMAN_WRITING_SNIPPETS = [
24
24
  '## Human Writing Standard (Mandatory)',
25
25
  'This applies to documentation, release notes, onboarding text, review summaries, and agent-facing explanations.',
26
26
  'Style baseline findings are advisory by default and must not block endpoint-change commits that already include accurate docs/spec updates.',
27
+ 'Write formal project docs in English by default',
27
28
  'No emoji in formal artifacts.',
28
29
  ],
29
30
  },
@@ -32,6 +33,7 @@ export const REQUIRED_HUMAN_WRITING_SNIPPETS = [
32
33
  snippets: [
33
34
  'Scope applied: This applies to documentation, release notes, onboarding text, review summaries, and agent-facing explanations',
34
35
  'Style scope review is advisory and does not block merge when API docs are synced in the same commit and contract details are correct',
36
+ 'Formal project docs use English by default',
35
37
  'No emoji in formal documentation or review summaries',
36
38
  'Documentation uses plain English and avoids AI cliches',
37
39
  ],
@@ -179,6 +181,14 @@ export const REQUIRED_STACK_DECISION_BOUNDARY_SNIPPETS = [
179
181
  },
180
182
  ];
181
183
  export const REQUIRED_UNIVERSAL_SOP_SNIPPETS = [
184
+ {
185
+ path: '.instructions.md',
186
+ snippets: [
187
+ '### 1. Documentation-First Mode',
188
+ 'Stop after documentation when the user only asked for docs.',
189
+ 'Do not write application, firmware, or UI code',
190
+ ],
191
+ },
182
192
  {
183
193
  path: '.agent-context/rules/architecture.md',
184
194
  snippets: [
@@ -187,6 +197,14 @@ export const REQUIRED_UNIVERSAL_SOP_SNIPPETS = [
187
197
  'If required project context docs are missing, stop implementation and bootstrap docs before writing application code.',
188
198
  ],
189
199
  },
200
+ {
201
+ path: '.agent-context/prompts/init-project.md',
202
+ snippets: [
203
+ '## Documentation-First Requests',
204
+ 'Stop after docs when the user only asked for docs.',
205
+ 'Write formal project docs in English by default',
206
+ ],
207
+ },
190
208
  {
191
209
  path: '.agent-context/review-checklists/pr-checklist.md',
192
210
  snippets: [
@@ -212,6 +230,8 @@ export const REQUIRED_UNIVERSAL_SOP_SNIPPETS = [
212
230
  snippets: [
213
231
  'Universal SOP hard block policy:',
214
232
  'Hard block: do not write application code until docs/project-brief.md and docs/architecture-decision-record.md exist.',
233
+ 'Documentation-first policy:',
234
+ 'For docs-only/docs-first requests, do not write application, firmware, or UI code until the user asks or approves an implementation plan.',
215
235
  'For UI scope: if docs/DESIGN.md or docs/design-intent.json is missing, execute bootstrap-design prompt before implementing UI surfaces.',
216
236
  ],
217
237
  },
@@ -265,6 +285,9 @@ export const REQUIRED_UI_DESIGN_AUTOMATION_SNIPPETS = [
265
285
  'docs/DESIGN.md',
266
286
  'docs/design-intent.json',
267
287
  'does not replace bootstrap loading',
288
+ 'documentation-first requests',
289
+ 'English by default',
290
+ 'do not write application, firmware, or UI code',
268
291
  'Motion/Palette Decision',
269
292
  'product categories are heuristics',
270
293
  'perform live web research',