@ryuenn3123/agentic-senior-core 3.0.44 → 3.0.45

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.
@@ -8,7 +8,7 @@ This contract is a decision scaffold, not a style preset. We guide the agent; we
8
8
 
9
9
  ## Authority
10
10
  - Treat `.agent-context/` and current project docs as technical authority.
11
- - Treat `README.md` as overview, install, and user-facing context only. Do not use it as coding, architecture, or design authority when `.agent-context/` gives a stricter rule.
11
+ - Treat `README.md` as public and developer overview, setup, usage, and user-facing context only. Do not use it as coding, architecture, or design authority when `.agent-context/` gives a stricter rule.
12
12
  - Use current repo evidence, product copy, route names, component names, user goals, and existing constraints as the source of truth.
13
13
  - Treat prior-chat visuals, unrelated project memory, benchmark screenshots, and famous-product aesthetics as tainted context unless the user explicitly approves continuity.
14
14
  - Keep external references non-copying; extract constraints only.
@@ -25,9 +25,12 @@ If the user describes a project or feature, the agent must:
25
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
26
 
27
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.
28
+ 1. Materialize or refine required project docs before implementation: root `README.md` for every fresh or existing project; `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
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.
30
+ 3. Keep `README.md` public and developer friendly even for private projects: explain what the project is, who it is for, how to set it up, how to run the core workflow, how to configure it, and where deeper docs live. Do not put internal agent notes, private reasoning, secrets, or governance policy in the README.
31
+ 4. Keep documentation alive. When project behavior, setup, architecture, public contracts, data shape, deployment, or UI scope changes, update the matching docs in the same change.
32
+ 5. Avoid documentation sprawl. Add a new docs file only when the topic is stable, long enough to outgrow the README or core docs, or owned by a separate workflow such as hardware setup, deployment, troubleshooting, or testing validation.
33
+ 6. 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
34
 
32
35
  ## Direct Constraint Mode
33
36
 
@@ -11,7 +11,7 @@ Before editing:
11
11
  3. If required project docs are missing, stop and bootstrap or update docs first.
12
12
  4. If the change touches UI, load .agent-context/prompts/bootstrap-design.md and .agent-context/rules/frontend-architecture.md before editing.
13
13
  5. If the change touches a dependency, framework, Docker, runtime, or ecosystem claim, verify current official docs before choosing.
14
- 6. Enforce Universal SOP hard gate: stop implementation if `docs/architecture-decision-record.md` is missing, and for UI scope stop if `docs/DESIGN.md` or `docs/design-intent.json` is missing.
14
+ 6. Enforce Universal SOP hard gate: stop implementation if root `README.md` is missing, if `docs/architecture-decision-record.md` is missing, or for UI scope if `docs/DESIGN.md` or `docs/design-intent.json` is missing.
15
15
  7. Enforce backend universal principles: no clever hacks, no premature abstraction, readability over brevity.
16
16
  8. For backend/API scope, enforce layered boundaries, zero-trust input validation, safe centralized error responses, bounded list reads, transaction safety for multi-write mutations, idempotency for sensitive mutations, and behavior-focused API tests.
17
17
  9. Backend/API governance is global and stack-agnostic. Do not create stack-specific adapters or framework-specific rule branches; apply the global rules through the framework already present in the target project.
@@ -11,7 +11,7 @@ Before reviewing:
11
11
  3. Read .agent-context/review-checklists/architecture-review.md only when architecture or boundaries changed.
12
12
  4. Load only the rules relevant to the changed scope.
13
13
  5. For UI changes, load .agent-context/prompts/bootstrap-design.md, .agent-context/rules/frontend-architecture.md, docs/DESIGN.md, and docs/design-intent.json when present.
14
- 6. Enforce Universal SOP hard gate: block coding flow when required project docs are missing (`docs/architecture-decision-record.md`, and for UI scope `docs/DESIGN.md` plus `docs/design-intent.json`).
14
+ 6. Enforce Universal SOP hard gate: block coding flow when required project docs are missing (root `README.md`; `docs/architecture-decision-record.md`; and for UI scope `docs/DESIGN.md` plus `docs/design-intent.json`).
15
15
  7. Enforce single-source and lazy-loading policy: canonical rule source must be explicitly enforced, global domain governance must load lazily based on touched scope, and conflicting duplicate rule instructions must not appear during normal flow.
16
16
 
17
17
  Prioritize findings in this order:
@@ -60,7 +60,7 @@ Run this before declaring a task done. Apply only the sections relevant to the c
60
60
 
61
61
  - [ ] Scope applied: This applies to documentation, release notes, onboarding text, review summaries, and agent-facing explanations
62
62
  - [ ] Style scope review is advisory and does not block merge when API docs are synced in the same commit and contract details are correct
63
- - [ ] 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
+ - [ ] Required docs exist before implementation: public and developer root README; project brief; architecture decision; flow overview; API/public contract when relevant; data model when relevant; and UI design contract when relevant.
64
64
  - [ ] For docs-only or docs-first requests, implementation code was not changed unless the user explicitly asked for it or approved an implementation plan.
65
65
  - [ ] Formal project docs use English by default unless the user requested another language or existing docs established one.
66
66
  - [ ] Docs cover feature plan, architecture rationale, public contracts, data model, UI/design, security assumptions, testing strategy, delivery flow, and next validation actions where relevant.
@@ -70,6 +70,9 @@ Run this before declaring a task done. Apply only the sections relevant to the c
70
70
  - [ ] Facts, assumptions, and next actions are separated when context is incomplete.
71
71
  - [ ] No emoji in formal documentation or review summaries
72
72
  - [ ] Documentation uses plain English and avoids AI cliches
73
+ - [ ] Root README is public and developer friendly, even for private projects, and does not contain secrets, internal agent notes, private reasoning, or governance policy dumps.
74
+ - [ ] Documentation grows with the project: README and matching docs were updated when setup, runtime, architecture, public contracts, data shape, deployment, validation, or UI scope changed.
75
+ - [ ] Documentation file count stayed intentional: new docs files were added only for stable, distinct, or long workflows.
73
76
 
74
77
  ## 7. UI And Accessibility
75
78
 
@@ -116,6 +119,7 @@ Run this before declaring a task done. Apply only the sections relevant to the c
116
119
  - [ ] `.agent-context/rules/` remains the default guidance source for implementation and review.
117
120
  - [ ] Security and testing requirements remain mandatory after static template purge.
118
121
  - [ ] Coding flow is blocked if `docs/architecture-decision-record.md` (or `docs/Architecture-Decision-Record.md`) is missing
122
+ - [ ] Coding flow is blocked if root `README.md` is missing
119
123
  - [ ] UI implementation flow is blocked if `docs/DESIGN.md` or `docs/design-intent.json` is missing
120
124
 
121
125
  ## Verdict
@@ -4,6 +4,22 @@
4
4
 
5
5
  If a change affects an API, CLI command, exported library behavior, schema, event, or integration contract, update the matching docs in the same change.
6
6
 
7
+ ## Public README Boundary
8
+
9
+ Root `README.md` is required for every fresh or existing project. This includes private projects, because a future maintainer still needs a clear public and developer entrypoint.
10
+
11
+ README content must be safe for outside readers and useful for developers. It must explain what the project is, who it is for, how to set it up, how to run the main workflow, how to configure it, and where deeper docs live when those topics apply.
12
+
13
+ Keep README overview-level. Do not make it the canonical governance source. Do not put secrets, private agent notes, hidden reasoning, backlog chatter, raw architecture debate, or internal policy dumps in it.
14
+
15
+ Choose README sections from project evidence. Do not force a fixed template when a section does not apply. For private/internal projects, keep the same clear style but omit private URLs, credentials, customer names, and internal-only operational details that do not belong in repo docs.
16
+
17
+ ## Documentation Growth Model
18
+
19
+ Documentation must evolve with the project. When behavior, setup, architecture, public contracts, data shape, deployment, or validation changes, update README and the matching docs in the same change.
20
+
21
+ Start compact, then split only when a topic earns its own file. Good split signals are: the section is long, the workflow is owned separately, the content is referenced often, or the topic needs step-by-step care such as hardware setup, deployment, testing validation, operations, or troubleshooting.
22
+
7
23
  ## Contract Rules
8
24
 
9
25
  - Document the public surface before or alongside implementation.
@@ -32,17 +32,20 @@ The `.agent-context/rules/` directory is the default guidance source for impleme
32
32
  - Backend and frontend mindset checks are both required when a task spans API and UI boundaries.
33
33
  - Security and testing are non-negotiable baseline requirements.
34
34
  - Hard block before coding:
35
+ - Root `README.md` must exist for every fresh or existing project and read as a public and developer entrypoint, not an internal agent note.
35
36
  - `docs/project-brief.md` must exist.
36
37
  - `docs/architecture-decision-record.md` (alias: `docs/Architecture-Decision-Record.md`) must exist.
37
38
  - `docs/flow-overview.md` must exist.
38
39
  - If the project uses persistent data, `docs/database-schema.md` must exist.
39
40
  - If the project exposes API or web application flows, `docs/api-contract.md` must exist.
40
41
  - For UI scope, `docs/DESIGN.md` and `docs/design-intent.json` must exist.
41
- - Required docs coverage must include feature plan, architecture rationale, public contracts, data model when relevant, UI/design when relevant, security assumptions, testing strategy, delivery flow, and next validation actions.
42
+ - Required docs coverage must include a public and developer README entrypoint, feature plan, architecture rationale, public contracts, data model when relevant, UI/design when relevant, security assumptions, testing strategy, delivery flow, and next validation actions.
42
43
  - If required project context docs are missing, stop implementation and bootstrap docs before writing application code.
43
44
  - Bootstrap flow: analyze the real repo plus the latest user prompt before authoring those docs.
44
45
  - Bootstrap docs must be adaptive and project-specific. Do not create generic placeholder templates.
45
46
  - When context is incomplete, separate confirmed facts from assumptions, add an `Assumptions to Validate` section, and end with the next validation action.
47
+ - Keep docs current with project changes. Update README and the matching docs whenever setup, runtime, architecture, public contracts, data shape, UI scope, deployment, or validation flow changes.
48
+ - Control docs file count. Keep the baseline compact, then add topic files only when a subject is stable, too long for README/core docs, or belongs to a distinct workflow such as hardware setup, deployment, testing validation, operations, or troubleshooting.
46
49
 
47
50
  ## Rules as Guardian (Cross-Session Consistency)
48
51
 
@@ -10,7 +10,7 @@ Use this rule for UI, UX, page, screen, component, layout, landing, dashboard, f
10
10
 
11
11
  - Use current repo evidence, the active brief, and current project docs as valid style context.
12
12
  - Treat `.agent-context/` as design governance authority.
13
- - Treat `README.md` as overview/install/user context only when design or architecture rules conflict.
13
+ - Treat `README.md` as public and developer overview, setup, usage, and user-facing context only when design or architecture rules conflict.
14
14
  - Do not choose final style, framework, palette, typography, layout paradigm, or animation library offline.
15
15
  - Research current official docs before adding a new UI, animation, scroll, 3D, canvas, charting, icon, styling, or primitive library.
16
16
  - Dynamic UI Foundation: do not hardcode shadcn/ui, Tailwind-only, native-only, or any component library as the universal answer. Modern lightweight primitives, motion libraries, canvas/WebGL helpers, charting libraries, and styling tools are valid when product evidence, accessibility, interaction quality, maintainability, delivery speed, runtime constraints, and official docs support them.
@@ -34,7 +34,7 @@ Use this file as repo-local agent context. It records the current governance arc
34
34
  ## Agent Behavior
35
35
 
36
36
  1. Load the smallest relevant rule set.
37
- 2. Use README only for overview/install/user context when governance files conflict.
37
+ 2. Use README only for public and developer overview, setup, usage, and user-facing context when governance files conflict.
38
38
  3. Preserve generated adapter sync before release.
39
39
  4. Treat stale generated state, dual lockfiles, and obsolete V2/V3 transition files as cleanup findings.
40
40
  5. Before claiming done, run the relevant validation gate and report any skipped checks.
@@ -7,12 +7,12 @@ alwaysApply: true
7
7
 
8
8
  Adapter Mode: thin
9
9
  Adapter Source: .instructions.md
10
- Canonical Snapshot SHA256: 8a232b1dc9792849a9290898ef40dfff730c13cd0b443d217c0590ced04ed946
10
+ Canonical Snapshot SHA256: a64819c73c12f55405e4e6249b352fbdb8b94847bc43279e8bf43e07ef5357f3
11
11
 
12
12
  This repository is governed by a strict instruction contract.
13
13
  Use [.instructions.md](../../.instructions.md) as the canonical policy source.
14
14
  Use .agent-context/ for technical rules, prompts, checklists, policies, and state.
15
- Treat README.md as overview/install/user context only when governance files conflict.
15
+ Treat README.md as public and developer overview, setup, usage, and user-facing context only when governance files conflict.
16
16
 
17
17
  ## Critical Bootstrap Floor
18
18
 
@@ -23,6 +23,7 @@ Treat README.md as overview/install/user context only when governance files conf
23
23
  - For UI scope, include a one-line Motion/Palette Decision in the Bootstrap Receipt; product categories are heuristics, not style presets.
24
24
  - For UI scope, create or refine `docs/DESIGN.md` and `docs/design-intent.json` before UI implementation.
25
25
  - 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.
26
+ - Create or refine root README.md as the public and developer entrypoint before implementation.
26
27
  - For backend, API, data, auth, error, event, queue, worker, or distributed-system requests, load only relevant global rules from .agent-context/rules/ ([link](../../.agent-context/rules)).
27
28
  - For ecosystem, framework, dependency, or Docker claims, perform live web research.
28
29
  - Resolve runtime choices from project evidence and live official documentation; resolve structural planning from constraints and architecture boundaries.
package/.cursorrules CHANGED
@@ -1,6 +1,6 @@
1
1
  # .cursorrules - Legacy Thin Adapter
2
2
 
3
- Generated by Agentic-Senior-Core CLI v3.0.44
3
+ Generated by Agentic-Senior-Core CLI v3.0.45
4
4
  Adapter Mode: legacy-thin
5
5
  Adapter Source: .agent-instructions.md when present; fallback .instructions.md
6
6
  Canonical baseline: .instructions.md
@@ -2,12 +2,12 @@
2
2
 
3
3
  Adapter Mode: thin
4
4
  Adapter Source: .instructions.md
5
- Canonical Snapshot SHA256: 8a232b1dc9792849a9290898ef40dfff730c13cd0b443d217c0590ced04ed946
5
+ Canonical Snapshot SHA256: a64819c73c12f55405e4e6249b352fbdb8b94847bc43279e8bf43e07ef5357f3
6
6
 
7
7
  This repository is governed by a strict instruction contract.
8
8
  Use [.instructions.md](../.instructions.md) as the canonical policy source.
9
9
  Use .agent-context/ for technical rules, prompts, checklists, policies, and state.
10
- Treat README.md as overview/install/user context only when governance files conflict.
10
+ Treat README.md as public and developer overview, setup, usage, and user-facing context only when governance files conflict.
11
11
 
12
12
  ## Critical Bootstrap Floor
13
13
 
@@ -18,6 +18,7 @@ Treat README.md as overview/install/user context only when governance files conf
18
18
  - For UI scope, include a one-line Motion/Palette Decision in the Bootstrap Receipt; product categories are heuristics, not style presets.
19
19
  - For UI scope, create or refine `docs/DESIGN.md` and `docs/design-intent.json` before UI implementation.
20
20
  - 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.
21
+ - Create or refine root README.md as the public and developer entrypoint before implementation.
21
22
  - For backend, API, data, auth, error, event, queue, worker, or distributed-system requests, load only relevant global rules from .agent-context/rules/ ([link](../.agent-context/rules)).
22
23
  - For ecosystem, framework, dependency, or Docker claims, perform live web research.
23
24
  - Resolve runtime choices from project evidence and live official documentation; resolve structural planning from constraints and architecture boundaries.
@@ -2,12 +2,12 @@
2
2
 
3
3
  Adapter Mode: thin
4
4
  Adapter Source: .instructions.md
5
- Canonical Snapshot SHA256: 8a232b1dc9792849a9290898ef40dfff730c13cd0b443d217c0590ced04ed946
5
+ Canonical Snapshot SHA256: a64819c73c12f55405e4e6249b352fbdb8b94847bc43279e8bf43e07ef5357f3
6
6
 
7
7
  This repository is governed by a strict instruction contract.
8
8
  Use [.instructions.md](../.instructions.md) as the canonical policy source.
9
9
  Use .agent-context/ for technical rules, prompts, checklists, policies, and state.
10
- Treat README.md as overview/install/user context only when governance files conflict.
10
+ Treat README.md as public and developer overview, setup, usage, and user-facing context only when governance files conflict.
11
11
 
12
12
  ## Critical Bootstrap Floor
13
13
 
@@ -18,6 +18,7 @@ Treat README.md as overview/install/user context only when governance files conf
18
18
  - For UI scope, include a one-line Motion/Palette Decision in the Bootstrap Receipt; product categories are heuristics, not style presets.
19
19
  - For UI scope, create or refine `docs/DESIGN.md` and `docs/design-intent.json` before UI implementation.
20
20
  - 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.
21
+ - Create or refine root README.md as the public and developer entrypoint before implementation.
21
22
  - For backend, API, data, auth, error, event, queue, worker, or distributed-system requests, load only relevant global rules from .agent-context/rules/ ([link](../.agent-context/rules)).
22
23
  - For ecosystem, framework, dependency, or Docker claims, perform live web research.
23
24
  - Resolve runtime choices from project evidence and live official documentation; resolve structural planning from constraints and architecture boundaries.
@@ -6,12 +6,12 @@ applyTo: "**"
6
6
 
7
7
  Adapter Mode: thin
8
8
  Adapter Source: .instructions.md
9
- Canonical Snapshot SHA256: 8a232b1dc9792849a9290898ef40dfff730c13cd0b443d217c0590ced04ed946
9
+ Canonical Snapshot SHA256: a64819c73c12f55405e4e6249b352fbdb8b94847bc43279e8bf43e07ef5357f3
10
10
 
11
11
  This repository is governed by a strict instruction contract.
12
12
  Use [.instructions.md](../../.instructions.md) as the canonical policy source.
13
13
  Use .agent-context/ for technical rules, prompts, checklists, policies, and state.
14
- Treat README.md as overview/install/user context only when governance files conflict.
14
+ Treat README.md as public and developer overview, setup, usage, and user-facing context only when governance files conflict.
15
15
 
16
16
  ## Critical Bootstrap Floor
17
17
 
@@ -22,6 +22,7 @@ Treat README.md as overview/install/user context only when governance files conf
22
22
  - For UI scope, include a one-line Motion/Palette Decision in the Bootstrap Receipt; product categories are heuristics, not style presets.
23
23
  - For UI scope, create or refine `docs/DESIGN.md` and `docs/design-intent.json` before UI implementation.
24
24
  - 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.
25
+ - Create or refine root README.md as the public and developer entrypoint before implementation.
25
26
  - For backend, API, data, auth, error, event, queue, worker, or distributed-system requests, load only relevant global rules from .agent-context/rules/ ([link](../../.agent-context/rules)).
26
27
  - For ecosystem, framework, dependency, or Docker claims, perform live web research.
27
28
  - Resolve runtime choices from project evidence and live official documentation; resolve structural planning from constraints and architecture boundaries.
package/.instructions.md CHANGED
@@ -10,7 +10,7 @@ Act as a Principal Engineer. Ship maintainable, validated, production-ready work
10
10
 
11
11
  This repository is governed by a strict instruction contract.
12
12
 
13
- Use `.instructions.md` as the canonical baseline. Use `.agent-context/` as technical authority for rules, prompts, checklists, state, and policies. Use `README.md` only for overview, setup, and user-facing context when stricter governance files conflict.
13
+ Use `.instructions.md` as the canonical baseline. Use `.agent-context/` as technical authority for rules, prompts, checklists, state, and policies. Use `README.md` only for public and developer overview, setup, usage, and user-facing context when stricter governance files conflict.
14
14
 
15
15
  Write instructions as imperative gates:
16
16
  - Use direct commands.
@@ -97,7 +97,7 @@ Use `.agent-context/policies/` for quality gates, release thresholds, and audit
97
97
 
98
98
  ### Layer 9: Project Context
99
99
 
100
- Use `docs/` when present: `project-brief.md`, `architecture-decision-record.md`, `database-schema.md`, `api-contract.md`, `flow-overview.md`, `DESIGN.md`, `design-intent.json`.
100
+ Use root `README.md` as the public and developer entrypoint for every fresh or existing project. Use `docs/` when present: `project-brief.md`, `architecture-decision-record.md`, `database-schema.md`, `api-contract.md`, `flow-overview.md`, `DESIGN.md`, `design-intent.json`.
101
101
 
102
102
  ## Mandatory Triggers
103
103
 
@@ -106,7 +106,7 @@ Use `docs/` when present: `project-brief.md`, `architecture-decision-record.md`,
106
106
  Trigger: docs, documentation, dokumen, `docs/*`, architecture docs, flow docs, API docs, or "lengkapkan docs".
107
107
 
108
108
  1. Load `architecture.md`, `api-docs.md`, and only additional rules required by scope.
109
- 2. Create or refine required docs first: `docs/project-brief.md`, `docs/architecture-decision-record.md`, `docs/flow-overview.md`, `docs/api-contract.md` for APIs/firmware/CLI/web flows, `docs/database-schema.md` for persistent data, and `docs/DESIGN.md` plus `docs/design-intent.json` for UI scope.
109
+ 2. Create or refine required docs first: root `README.md` for every fresh or existing project; `docs/project-brief.md`; `docs/architecture-decision-record.md`; `docs/flow-overview.md`; `docs/api-contract.md` for APIs, firmware endpoints, CLI commands, or web application flows; `docs/database-schema.md` for persistent data; and `docs/DESIGN.md` plus `docs/design-intent.json` for UI scope.
110
110
  3. Write formal project docs in English by default unless the user asks otherwise.
111
111
  4. Stop after documentation when the user only asked for docs. Do not write application, firmware, or UI code until the user asks or approves implementation.
112
112
 
@@ -165,7 +165,7 @@ Why Required: [project protection]
165
165
  Never claim done without:
166
166
  1. Relevant rules applied.
167
167
  2. PR and architecture checklists considered.
168
- 3. Universal SOP gates satisfied: `docs/architecture-decision-record.md`, plus `docs/DESIGN.md` and `docs/design-intent.json` for UI scope.
168
+ 3. Universal SOP gates satisfied: public and developer root `README.md`; `docs/architecture-decision-record.md`; plus `docs/DESIGN.md` and `docs/design-intent.json` for UI scope.
169
169
  4. If `.agent-context/state/active-memory.json` exists and material project progress happened, refresh it while preserving privacy rules and user-owned entries.
170
170
  5. MCP validation passed through `npm run validate`.
171
171
 
@@ -2,12 +2,12 @@
2
2
 
3
3
  Adapter Mode: thin
4
4
  Adapter Source: .instructions.md
5
- Canonical Snapshot SHA256: 8a232b1dc9792849a9290898ef40dfff730c13cd0b443d217c0590ced04ed946
5
+ Canonical Snapshot SHA256: a64819c73c12f55405e4e6249b352fbdb8b94847bc43279e8bf43e07ef5357f3
6
6
 
7
7
  This repository is governed by a strict instruction contract.
8
8
  Use [.instructions.md](../../.instructions.md) as the canonical policy source.
9
9
  Use .agent-context/ for technical rules, prompts, checklists, policies, and state.
10
- Treat README.md as overview/install/user context only when governance files conflict.
10
+ Treat README.md as public and developer overview, setup, usage, and user-facing context only when governance files conflict.
11
11
 
12
12
  ## Critical Bootstrap Floor
13
13
 
@@ -18,6 +18,7 @@ Treat README.md as overview/install/user context only when governance files conf
18
18
  - For UI scope, include a one-line Motion/Palette Decision in the Bootstrap Receipt; product categories are heuristics, not style presets.
19
19
  - For UI scope, create or refine `docs/DESIGN.md` and `docs/design-intent.json` before UI implementation.
20
20
  - 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.
21
+ - Create or refine root README.md as the public and developer entrypoint before implementation.
21
22
  - For backend, API, data, auth, error, event, queue, worker, or distributed-system requests, load only relevant global rules from .agent-context/rules/ ([link](../../.agent-context/rules)).
22
23
  - For ecosystem, framework, dependency, or Docker claims, perform live web research.
23
24
  - Resolve runtime choices from project evidence and live official documentation; resolve structural planning from constraints and architecture boundaries.
package/.windsurfrules CHANGED
@@ -1,6 +1,6 @@
1
1
  # .windsurfrules - Legacy Thin Adapter
2
2
 
3
- Generated by Agentic-Senior-Core CLI v3.0.44
3
+ Generated by Agentic-Senior-Core CLI v3.0.45
4
4
  Adapter Mode: legacy-thin
5
5
  Adapter Source: .agent-instructions.md when present; fallback .instructions.md
6
6
  Canonical baseline: .instructions.md
package/AGENTS.md CHANGED
@@ -2,12 +2,12 @@
2
2
 
3
3
  Adapter Mode: thin
4
4
  Adapter Source: .instructions.md
5
- Canonical Snapshot SHA256: 8a232b1dc9792849a9290898ef40dfff730c13cd0b443d217c0590ced04ed946
5
+ Canonical Snapshot SHA256: a64819c73c12f55405e4e6249b352fbdb8b94847bc43279e8bf43e07ef5357f3
6
6
 
7
7
  This repository is governed by a strict instruction contract.
8
8
  Use [.instructions.md](.instructions.md) as the canonical policy source.
9
9
  Use .agent-context/ for technical rules, prompts, checklists, policies, and state.
10
- Treat README.md as overview/install/user context only when governance files conflict.
10
+ Treat README.md as public and developer overview, setup, usage, and user-facing context only when governance files conflict.
11
11
 
12
12
  ## Critical Bootstrap Floor
13
13
 
@@ -18,6 +18,7 @@ Treat README.md as overview/install/user context only when governance files conf
18
18
  - For UI scope, include a one-line Motion/Palette Decision in the Bootstrap Receipt; product categories are heuristics, not style presets.
19
19
  - For UI scope, create or refine `docs/DESIGN.md` and `docs/design-intent.json` before UI implementation.
20
20
  - 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.
21
+ - Create or refine root README.md as the public and developer entrypoint before implementation.
21
22
  - For backend, API, data, auth, error, event, queue, worker, or distributed-system requests, load only relevant global rules from .agent-context/rules/ ([link](.agent-context/rules)).
22
23
  - For ecosystem, framework, dependency, or Docker claims, perform live web research.
23
24
  - Resolve runtime choices from project evidence and live official documentation; resolve structural planning from constraints and architecture boundaries.
package/CLAUDE.md CHANGED
@@ -2,12 +2,12 @@
2
2
 
3
3
  Adapter Mode: thin
4
4
  Adapter Source: .instructions.md
5
- Canonical Snapshot SHA256: 8a232b1dc9792849a9290898ef40dfff730c13cd0b443d217c0590ced04ed946
5
+ Canonical Snapshot SHA256: a64819c73c12f55405e4e6249b352fbdb8b94847bc43279e8bf43e07ef5357f3
6
6
 
7
7
  This repository is governed by a strict instruction contract.
8
8
  Use [.instructions.md](.instructions.md) as the canonical policy source.
9
9
  Use .agent-context/ for technical rules, prompts, checklists, policies, and state.
10
- Treat README.md as overview/install/user context only when governance files conflict.
10
+ Treat README.md as public and developer overview, setup, usage, and user-facing context only when governance files conflict.
11
11
 
12
12
  ## Critical Bootstrap Floor
13
13
 
@@ -18,6 +18,7 @@ Treat README.md as overview/install/user context only when governance files conf
18
18
  - For UI scope, include a one-line Motion/Palette Decision in the Bootstrap Receipt; product categories are heuristics, not style presets.
19
19
  - For UI scope, create or refine `docs/DESIGN.md` and `docs/design-intent.json` before UI implementation.
20
20
  - 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.
21
+ - Create or refine root README.md as the public and developer entrypoint before implementation.
21
22
  - For backend, API, data, auth, error, event, queue, worker, or distributed-system requests, load only relevant global rules from .agent-context/rules/ ([link](.agent-context/rules)).
22
23
  - For ecosystem, framework, dependency, or Docker claims, perform live web research.
23
24
  - Resolve runtime choices from project evidence and live official documentation; resolve structural planning from constraints and architecture boundaries.
package/GEMINI.md CHANGED
@@ -2,12 +2,12 @@
2
2
 
3
3
  Adapter Mode: thin
4
4
  Adapter Source: .instructions.md
5
- Canonical Snapshot SHA256: 8a232b1dc9792849a9290898ef40dfff730c13cd0b443d217c0590ced04ed946
5
+ Canonical Snapshot SHA256: a64819c73c12f55405e4e6249b352fbdb8b94847bc43279e8bf43e07ef5357f3
6
6
 
7
7
  This repository is governed by a strict instruction contract.
8
8
  Use [.instructions.md](.instructions.md) as the canonical policy source.
9
9
  Use .agent-context/ for technical rules, prompts, checklists, policies, and state.
10
- Treat README.md as overview/install/user context only when governance files conflict.
10
+ Treat README.md as public and developer overview, setup, usage, and user-facing context only when governance files conflict.
11
11
 
12
12
  ## Critical Bootstrap Floor
13
13
 
@@ -18,6 +18,7 @@ Treat README.md as overview/install/user context only when governance files conf
18
18
  - For UI scope, include a one-line Motion/Palette Decision in the Bootstrap Receipt; product categories are heuristics, not style presets.
19
19
  - For UI scope, create or refine `docs/DESIGN.md` and `docs/design-intent.json` before UI implementation.
20
20
  - 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.
21
+ - Create or refine root README.md as the public and developer entrypoint before implementation.
21
22
  - For backend, API, data, auth, error, event, queue, worker, or distributed-system requests, load only relevant global rules from .agent-context/rules/ ([link](.agent-context/rules)).
22
23
  - For ecosystem, framework, dependency, or Docker claims, perform live web research.
23
24
  - Resolve runtime choices from project evidence and live official documentation; resolve structural planning from constraints and architecture boundaries.
@@ -422,7 +422,9 @@ export async function buildCompiledRulesContent({
422
422
  '3. .agent-context/prompts/review-code.md -> review, audit, check, analyze',
423
423
  '4. .agent-context/prompts/bootstrap-design.md -> ui, ux, layout, screen, tailwind, frontend, redesign',
424
424
  'Documentation-first policy:',
425
- '- 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.',
425
+ '- Create or refine required project docs before implementation: README.md for every fresh or existing project; 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.',
426
+ '- Keep README.md public and developer friendly, including for private projects: explain what the project is, who it is for, setup, usage, configuration, and links to deeper docs. Do not put secrets, internal agent notes, private reasoning, or governance policy dumps in it.',
427
+ '- Keep docs complete but compact. Add extra docs files only for stable, distinct, or long workflows such as hardware setup, deployment, operations, testing validation, or troubleshooting.',
426
428
  '- Write formal project docs in English by default unless the user explicitly asks for another documentation language.',
427
429
  '- For docs-only/docs-first requests, do not write application, firmware, or UI code until the user asks or approves an implementation plan.',
428
430
  'UI trigger policy:',
@@ -543,6 +545,7 @@ export async function buildCompiledRulesContent({
543
545
  const hasBootstrapDesignPrompt = await pathExists(bootstrapDesignPromptPath);
544
546
 
545
547
  if (await pathExists(projectBriefPath)) {
548
+ const hasRootReadme = await pathExists(path.join(resolvedTargetDirectoryPath, 'README.md'));
546
549
  const projectDocsEntries = ['project-brief.md'];
547
550
  const candidateDocFileNames = [
548
551
  'architecture-decision-record.md',
@@ -565,15 +568,18 @@ export async function buildCompiledRulesContent({
565
568
  '## LAYER 9: PROJECT CONTEXT (MANDATORY)',
566
569
  'These documents describe the specific project being built.',
567
570
  'Read them before writing any application code:',
568
- ...projectDocsEntries.map((docFileName, docIndex) => `${docIndex + 1}. docs/${docFileName}`),
571
+ ...(hasRootReadme ? ['1. README.md'] : []),
572
+ ...projectDocsEntries.map((docFileName, docIndex) => `${(hasRootReadme ? 2 : 1) + docIndex}. docs/${docFileName}`),
569
573
  '',
570
574
  'Universal SOP hard block policy:',
575
+ '- README.md must exist and read as a public and developer entrypoint.',
571
576
  '- Stop implementation if docs/project-brief.md is missing.',
572
577
  '- Stop implementation if docs/architecture-decision-record.md (alias: docs/Architecture-Decision-Record.md) is missing.',
573
578
  '- Stop implementation if docs/flow-overview.md is missing.',
574
579
  '- If the product uses persistent data, docs/database-schema.md must exist before coding continues.',
575
580
  '- If the product exposes API or web application flows, docs/api-contract.md must exist before coding continues.',
576
581
  '- For UI scope, stop implementation if docs/DESIGN.md or docs/design-intent.json is missing.',
582
+ '- Keep README.md overview-level, public, and developer friendly; do not put secrets, internal agent notes, private reasoning, or governance policy dumps in it.',
577
583
  '- Materialize missing docs first, then continue coding.',
578
584
  '- Bootstrap missing docs from real repo evidence and the latest user request. Do not write generic placeholder templates.',
579
585
  '- Separate confirmed facts from assumptions and end each major explanation with the next validation action.',
@@ -583,7 +589,7 @@ export async function buildCompiledRulesContent({
583
589
  'Latest user prompt defines current feature scope and product direction.',
584
590
  'Treat requested features as dynamic, but keep stack/database/auth constraints consistent',
585
591
  'with project docs unless the user explicitly asks for a migration.',
586
- 'When scope changes, implement the new request and update docs/* in the same change',
592
+ 'When scope changes, implement the new request and update README.md plus docs/* in the same change when documented context changes',
587
593
  'so generated context stays aligned with the codebase.',
588
594
  'Update them as the project evolves. They are living references, not frozen specs.',
589
595
  ].join('\n')
@@ -605,6 +611,7 @@ export async function buildCompiledRulesContent({
605
611
  ...bootstrapPromptEntries.map((promptFilePath, promptIndex) => `${promptIndex + 1}. ${promptFilePath}`),
606
612
  '',
607
613
  'Bootstrap policy:',
614
+ '- Create README.md as a public and developer entrypoint before coding continues.',
608
615
  '- Hard block: do not write application code until docs/project-brief.md and docs/architecture-decision-record.md exist.',
609
616
  '- docs/flow-overview.md must also exist before coding continues.',
610
617
  '- Add docs/database-schema.md when persistent data is involved.',
@@ -44,8 +44,11 @@ export function buildProjectContextBootstrapPrompt({
44
44
  ? discoveryAnswers.features.map((feature, featureIndex) => `${featureIndex + 1}. ${feature}`).join('\n')
45
45
  : 'Derive the first concrete feature set from the project name, description, and domain. Do not invent arbitrary modules just to fill space.';
46
46
 
47
- const expectedDocsList = expectedDocFileNames
48
- .map((fileName, fileIndex) => `${fileIndex + 1}. docs/${fileName}`)
47
+ const expectedDocsList = [
48
+ 'README.md',
49
+ ...expectedDocFileNames.map((fileName) => `docs/${fileName}`),
50
+ ]
51
+ .map((filePath, fileIndex) => `${fileIndex + 1}. ${filePath}`)
49
52
  .join('\n');
50
53
 
51
54
  return [
@@ -73,7 +76,9 @@ export function buildProjectContextBootstrapPrompt({
73
76
  '10. Do not invent modules or architecture layers only to make the docs look complete.',
74
77
  '11. If runtime or framework setup is unresolved, recommend the latest stable compatible option from the brief, constraints, and live official documentation before coding. If an official setup flow yields newer, better-supported defaults than manual package assembly, use that path after approval.',
75
78
  '12. Treat topology as an agent decision unless the user explicitly constrained it. If monolith fits, explain why. If a service split fits, document the evidence and service boundary logic.',
76
- '13. Required docs coverage must include feature plan, architecture rationale, flow, public API or integration contracts when relevant, data model when relevant, UI/design when relevant, security assumptions, testing strategy, runtime/deployment notes, and next validation actions.',
79
+ '13. Required docs coverage must include a public and developer README entrypoint, feature plan, architecture rationale, flow, public API or integration contracts when relevant, data model when relevant, UI/design when relevant, security assumptions, testing strategy, runtime/deployment notes, and next validation actions.',
80
+ '14. README.md must be public and developer friendly, including for private projects: what it is, who it is for, setup, core workflow, configuration, and links to deeper docs. Do not include secrets, internal agent notes, private reasoning, or governance policy dumps.',
81
+ '15. Keep docs complete but compact. Add extra docs files only for stable, distinct, or long workflows such as hardware setup, deployment, operations, testing validation, or troubleshooting.',
77
82
  '',
78
83
  '## Project Inputs',
79
84
  `- Project name: ${discoveryAnswers.projectName}`,
@@ -101,8 +106,9 @@ export function buildProjectContextBootstrapPrompt({
101
106
  '1. Create all required docs files listed above with complete Markdown content.',
102
107
  '2. Make the docs adaptive to the real repo and prompt context. These are living references, not frozen templates.',
103
108
  '3. In docs/project-brief.md and docs/architecture-decision-record.md, include explicit sections for confirmed facts, assumptions to validate, and next validation actions whenever context is incomplete.',
104
- '4. Keep content original, specific to this project, and actionable for implementation.',
105
- '5. After writing docs, continue coding tasks using these docs as living project context.',
109
+ '4. Before implementation, use the docs to confirm stack, runtime, architecture, public contracts, data, validation, and delivery assumptions.',
110
+ '5. Keep content original, specific to this project, and actionable for implementation.',
111
+ '6. After writing docs, continue coding tasks using these docs as living project context.',
106
112
  '',
107
113
  ].join('\n');
108
114
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ryuenn3123/agentic-senior-core",
3
- "version": "3.0.44",
3
+ "version": "3.0.45",
4
4
  "type": "module",
5
5
  "description": "Force your AI Agent to code like a Staff Engineer, not a Junior.",
6
6
  "bin": {
@@ -58,7 +58,7 @@ const REQUIRED_FRONTEND_RULE_SNIPPETS = [
58
58
  '## Activation',
59
59
  '## Authority',
60
60
  'Treat `.agent-context/` as design governance authority.',
61
- 'Treat `README.md` as overview/install/user context only',
61
+ 'Treat `README.md` as public and developer overview, setup, usage, and user-facing context only',
62
62
  'Do not choose final style, framework, palette, typography, layout paradigm, or animation library offline.',
63
63
  'Keep design continuity opt-in.',
64
64
  'Repo evidence outranks memory residue.',
@@ -59,7 +59,7 @@ function buildThinAdapter({
59
59
  'This repository is governed by a strict instruction contract.',
60
60
  `Use [${CANONICAL_SOURCE_PATH}](${canonicalLink}) as the canonical policy source.`,
61
61
  'Use .agent-context/ for technical rules, prompts, checklists, policies, and state.',
62
- 'Treat README.md as overview/install/user context only when governance files conflict.',
62
+ 'Treat README.md as public and developer overview, setup, usage, and user-facing context only when governance files conflict.',
63
63
  '',
64
64
  '## Critical Bootstrap Floor',
65
65
  '',
@@ -70,6 +70,7 @@ function buildThinAdapter({
70
70
  '- For UI scope, include a one-line Motion/Palette Decision in the Bootstrap Receipt; product categories are heuristics, not style presets.',
71
71
  '- For UI scope, create or refine `docs/DESIGN.md` and `docs/design-intent.json` before UI implementation.',
72
72
  '- 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.',
73
+ '- Create or refine root README.md as the public and developer entrypoint before implementation.',
73
74
  `- For backend, API, data, auth, error, event, queue, worker, or distributed-system requests, load only relevant global rules from .agent-context/rules/ ([link](${rulesLink})).`,
74
75
  '- For ecosystem, framework, dependency, or Docker claims, perform live web research.',
75
76
  '- Resolve runtime choices from project evidence and live official documentation; resolve structural planning from constraints and architecture boundaries.',
@@ -195,6 +195,7 @@ export const REQUIRED_UNIVERSAL_SOP_SNIPPETS = [
195
195
  path: '.instructions.md',
196
196
  snippets: [
197
197
  '### 1. Documentation-First Mode',
198
+ 'root `README.md` for every fresh or existing project',
198
199
  'Stop after documentation when the user only asked for docs.',
199
200
  'Do not write application, firmware, or UI code',
200
201
  ],
@@ -203,6 +204,7 @@ export const REQUIRED_UNIVERSAL_SOP_SNIPPETS = [
203
204
  path: '.agent-context/rules/architecture.md',
204
205
  snippets: [
205
206
  '## Universal SOP Baseline (Mandatory)',
207
+ 'Root `README.md` must exist for every fresh or existing project',
206
208
  'Security and testing are non-negotiable baseline requirements.',
207
209
  'If required project context docs are missing, stop implementation and bootstrap docs before writing application code.',
208
210
  ],
@@ -211,6 +213,7 @@ export const REQUIRED_UNIVERSAL_SOP_SNIPPETS = [
211
213
  path: '.agent-context/prompts/init-project.md',
212
214
  snippets: [
213
215
  '## Documentation-First Requests',
216
+ 'root `README.md` for every fresh or existing project',
214
217
  'Stop after docs when the user only asked for docs.',
215
218
  'Write formal project docs in English by default',
216
219
  ],
@@ -219,6 +222,7 @@ export const REQUIRED_UNIVERSAL_SOP_SNIPPETS = [
219
222
  path: '.agent-context/review-checklists/pr-checklist.md',
220
223
  snippets: [
221
224
  '### 15. Universal SOP Consolidation',
225
+ 'Coding flow is blocked if root `README.md` is missing',
222
226
  'Coding flow is blocked if `docs/architecture-decision-record.md` (or `docs/Architecture-Decision-Record.md`) is missing',
223
227
  'UI implementation flow is blocked if `docs/DESIGN.md` or `docs/design-intent.json` is missing',
224
228
  ],
@@ -226,21 +230,23 @@ export const REQUIRED_UNIVERSAL_SOP_SNIPPETS = [
226
230
  {
227
231
  path: '.agent-context/prompts/review-code.md',
228
232
  snippets: [
229
- 'Enforce Universal SOP hard gate: block coding flow when required project docs are missing (`docs/architecture-decision-record.md`, and for UI scope `docs/DESIGN.md` plus `docs/design-intent.json`).',
233
+ 'Enforce Universal SOP hard gate: block coding flow when required project docs are missing (root `README.md`; `docs/architecture-decision-record.md`; and for UI scope `docs/DESIGN.md` plus `docs/design-intent.json`).',
230
234
  ],
231
235
  },
232
236
  {
233
237
  path: '.agent-context/prompts/refactor.md',
234
238
  snippets: [
235
- '6. Enforce Universal SOP hard gate: stop implementation if `docs/architecture-decision-record.md` is missing, and for UI scope stop if `docs/DESIGN.md` or `docs/design-intent.json` is missing.',
239
+ '6. Enforce Universal SOP hard gate: stop implementation if root `README.md` is missing, if `docs/architecture-decision-record.md` is missing, or for UI scope if `docs/DESIGN.md` or `docs/design-intent.json` is missing.',
236
240
  ],
237
241
  },
238
242
  {
239
243
  path: 'lib/cli/compiler.mjs',
240
244
  snippets: [
241
245
  'Universal SOP hard block policy:',
246
+ 'README.md must exist and read as a public and developer entrypoint',
242
247
  'Hard block: do not write application code until docs/project-brief.md and docs/architecture-decision-record.md exist.',
243
248
  'Documentation-first policy:',
249
+ 'Keep README.md public and developer friendly',
244
250
  'For docs-only/docs-first requests, do not write application, firmware, or UI code until the user asks or approves an implementation plan.',
245
251
  'For UI scope: if docs/DESIGN.md or docs/design-intent.json is missing, execute bootstrap-design prompt before implementing UI surfaces.',
246
252
  ],