@ryuenn3123/agentic-senior-core 3.0.33 → 3.0.34
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.
- package/.agent-context/prompts/init-project.md +9 -0
- package/.agent-context/review-checklists/pr-checklist.md +2 -0
- package/.agent-context/rules/api-docs.md +4 -0
- package/.agent-context/state/memory-continuity-benchmark.json +1 -1
- package/.cursorrules +10 -5
- package/.gemini/instructions.md +2 -1
- package/.github/copilot-instructions.md +2 -1
- package/.instructions.md +15 -4
- package/.windsurfrules +10 -5
- package/AGENTS.md +2 -1
- package/lib/cli/compiler.mjs +6 -0
- package/package.json +1 -1
- package/scripts/sync-thin-adapters.mjs +3 -0
- package/scripts/validate/config.mjs +23 -0
|
@@ -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.
|
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.
|
|
4
|
-
Timestamp: 2026-04-
|
|
3
|
+
Generated by Agentic-Senior-Core CLI v3.0.34
|
|
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
|
-
|
|
58
|
-
Load
|
|
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/.gemini/instructions.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Adapter Mode: thin
|
|
4
4
|
Adapter Source: .instructions.md
|
|
5
|
-
Canonical Snapshot SHA256:
|
|
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:
|
|
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.
|
|
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
|
-
###
|
|
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
|
-
###
|
|
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
|
-
###
|
|
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.
|
|
4
|
-
Timestamp: 2026-04-
|
|
3
|
+
Generated by Agentic-Senior-Core CLI v3.0.34
|
|
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
|
-
|
|
58
|
-
Load
|
|
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:
|
|
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.
|
package/lib/cli/compiler.mjs
CHANGED
|
@@ -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.'
|
package/package.json
CHANGED
|
@@ -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',
|