@ryuenn3123/agentic-senior-core 3.0.46 → 3.0.48
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 -7
- package/.agent-context/prompts/refactor.md +1 -1
- package/.agent-context/prompts/review-code.md +1 -1
- package/.agent-context/review-checklists/pr-checklist.md +3 -0
- package/.agent-context/rules/api-docs.md +4 -0
- package/.agent-context/rules/architecture.md +16 -2
- package/.agent-context/state/architecture-map.md +3 -3
- package/.agent-context/state/dependency-map.md +2 -2
- package/AGENTS.md +170 -35
- package/CLAUDE.md +1 -44
- package/CONTRIBUTING.md +2 -3
- package/GEMINI.md +1 -44
- package/README.md +28 -22
- package/lib/cli/backup.mjs +37 -0
- package/lib/cli/commands/init.mjs +15 -29
- package/lib/cli/commands/optimize.mjs +2 -48
- package/lib/cli/commands/upgrade.mjs +14 -52
- package/lib/cli/compiler.mjs +25 -95
- package/lib/cli/constants.mjs +1 -9
- package/lib/cli/detector.mjs +0 -1
- package/lib/cli/init-options.mjs +1 -1
- package/lib/cli/project-scaffolder/constants.mjs +1 -0
- package/lib/cli/project-scaffolder/discovery.mjs +2 -0
- package/lib/cli/project-scaffolder/prompt-builders.mjs +9 -5
- package/lib/cli/utils/filesystem.mjs +2 -0
- package/lib/cli/utils/managed-surface.mjs +45 -2
- package/lib/cli/utils.mjs +19 -4
- package/package.json +1 -10
- package/scripts/bump-version.mjs +1 -16
- package/scripts/docs-quality-drift-report.mjs +0 -6
- package/scripts/frontend-usability-audit.mjs +2 -2
- package/scripts/governance-weekly-report.mjs +2 -2
- package/scripts/single-source-lazy-loading-audit.mjs +13 -126
- package/scripts/sync-thin-adapters.mjs +13 -121
- package/scripts/validate/config.mjs +20 -27
- package/scripts/validate/coverage-checks.mjs +9 -76
- package/scripts/validate.mjs +12 -97
- package/.agent-override.md +0 -36
- package/.agents/workflows/init-project.md +0 -12
- package/.agents/workflows/refactor.md +0 -12
- package/.agents/workflows/review-code.md +0 -11
- package/.cursor/mcp.json +0 -10
- package/.cursor/rules/agentic-senior-core.mdc +0 -49
- package/.cursorrules +0 -26
- package/.gemini/instructions.md +0 -44
- package/.github/copilot-instructions.md +0 -44
- package/.github/instructions/agentic-senior-core.instructions.md +0 -48
- package/.github/workflows/benchmark-detection.yml +0 -45
- package/.github/workflows/benchmark-intelligence.yml +0 -50
- package/.github/workflows/docs-quality-drift-report.yml +0 -37
- package/.github/workflows/frontend-usability-gate.yml +0 -36
- package/.github/workflows/governance-weekly-report.yml +0 -43
- package/.github/workflows/publish.yml +0 -32
- package/.github/workflows/release-gate.yml +0 -32
- package/.github/workflows/sbom-compliance.yml +0 -32
- package/.instructions.md +0 -186
- package/.windsurf/rules/agentic-senior-core.md +0 -44
- package/.windsurfrules +0 -26
|
@@ -26,19 +26,21 @@ If the user describes a project or feature, the agent must:
|
|
|
26
26
|
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.
|
|
27
27
|
|
|
28
28
|
The agent must:
|
|
29
|
-
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
|
+
1. Materialize or refine required project docs before implementation: root `README.md` for every fresh or existing project; `docs/doc-index.md` whenever `docs/` exists; `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.
|
|
30
30
|
2. Write formal project docs in English by default unless the user explicitly asks for another documentation language.
|
|
31
|
-
3. Keep `
|
|
32
|
-
4. Keep
|
|
33
|
-
5.
|
|
34
|
-
6.
|
|
31
|
+
3. Keep `docs/doc-index.md` short. Use it as the read-routing map with document path, purpose, reads-when triggers, status, and last-updated date. Do not duplicate the docs it points to.
|
|
32
|
+
4. 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.
|
|
33
|
+
5. 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.
|
|
34
|
+
6. 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.
|
|
35
|
+
7. Add PRD, SRS, technical-design, or separate ERD only when evidence triggers them. Use PRD for product roadmap/user-story ownership, SRS for contractual or multi-stakeholder acceptance criteria, technical-design for non-trivial architecture decisions, and a separate ERD only when `docs/database-schema.md` cannot stay readable with an embedded diagram.
|
|
36
|
+
8. 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.
|
|
35
37
|
|
|
36
38
|
## Direct Constraint Mode
|
|
37
39
|
|
|
38
40
|
If the user specifies a framework, runtime, or architecture constraint, the agent must:
|
|
39
41
|
1. Read [AGENTS.md](../../AGENTS.md) for role context.
|
|
40
42
|
2. Resolve only the rules required by the explicit constraint and scope. Do not read unrelated backend, frontend, or DevOps rules by habit.
|
|
41
|
-
3. Reference [.agent-context/state/onboarding-report.json](../state/onboarding-report.json), [.
|
|
43
|
+
3. Reference [.agent-context/state/onboarding-report.json](../state/onboarding-report.json), [AGENTS.md](../../AGENTS.md), and the relevant `.agent-context/` files for runtime evidence and any explicit constraints already applied to this project.
|
|
42
44
|
4. Scaffold the initial project structure only after runtime and architecture decisions are explicit:
|
|
43
45
|
- Create only the directories and files justified by the approved structure.
|
|
44
46
|
- Set up configuration, validation, error handling, observability, health checks, and persistence only when they fit the approved runtime and project scope.
|
|
@@ -51,7 +53,7 @@ If the user specifies a framework, runtime, or architecture constraint, the agen
|
|
|
51
53
|
|
|
52
54
|
## Runtime and Architecture Reference
|
|
53
55
|
|
|
54
|
-
See [.agent-context/state/onboarding-report.json](../state/onboarding-report.json), [.
|
|
56
|
+
See [.agent-context/state/onboarding-report.json](../state/onboarding-report.json), [AGENTS.md](../../AGENTS.md), and the relevant `.agent-context/` files for the latest shipped runtime evidence, explicit constraints, and agent-decision status.
|
|
55
57
|
|
|
56
58
|
## UI/UX Bootstrap
|
|
57
59
|
|
|
@@ -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 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.
|
|
14
|
+
6. Enforce Universal SOP hard gate: stop implementation if root `README.md` is missing, if `docs/doc-index.md` is missing while `docs/` exists, 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 (root `README.md`; `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/doc-index.md` when `docs/` exists; `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:
|
|
@@ -61,6 +61,7 @@ Run this before declaring a task done. Apply only the sections relevant to the c
|
|
|
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
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
|
+
- [ ] `docs/doc-index.md` exists whenever `docs/` exists and acts as a compact read-routing map instead of duplicating requirements or architecture.
|
|
64
65
|
- [ ] 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
66
|
- [ ] Formal project docs use English by default unless the user requested another language or existing docs established one.
|
|
66
67
|
- [ ] Docs cover feature plan, architecture rationale, public contracts, data model, UI/design, security assumptions, testing strategy, delivery flow, and next validation actions where relevant.
|
|
@@ -73,6 +74,7 @@ Run this before declaring a task done. Apply only the sections relevant to the c
|
|
|
73
74
|
- [ ] 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
75
|
- [ ] 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
76
|
- [ ] Documentation file count stayed intentional: new docs files were added only for stable, distinct, or long workflows.
|
|
77
|
+
- [ ] PRD, SRS, technical-design, or separate ERD files were added only when project evidence justified a distinct document.
|
|
76
78
|
|
|
77
79
|
## 7. UI And Accessibility
|
|
78
80
|
|
|
@@ -120,6 +122,7 @@ Run this before declaring a task done. Apply only the sections relevant to the c
|
|
|
120
122
|
- [ ] Security and testing requirements remain mandatory after static template purge.
|
|
121
123
|
- [ ] Coding flow is blocked if `docs/architecture-decision-record.md` (or `docs/Architecture-Decision-Record.md`) is missing
|
|
122
124
|
- [ ] Coding flow is blocked if root `README.md` is missing
|
|
125
|
+
- [ ] Coding flow is blocked if `docs/doc-index.md` is missing while `docs/` exists
|
|
123
126
|
- [ ] UI implementation flow is blocked if `docs/DESIGN.md` or `docs/design-intent.json` is missing
|
|
124
127
|
|
|
125
128
|
## Verdict
|
|
@@ -18,8 +18,12 @@ Choose README sections from project evidence. Do not force a fixed template when
|
|
|
18
18
|
|
|
19
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
20
|
|
|
21
|
+
When `docs/` exists, keep `docs/doc-index.md` as the compact routing map for humans and agents. It should list active docs, their purpose, read triggers, status, and last update. It must not duplicate requirements, architecture, or API contracts.
|
|
22
|
+
|
|
21
23
|
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
24
|
|
|
25
|
+
Use PRD, SRS, technical design, and ERD as conditional docs, not default boilerplate. PRD covers product intent and roadmap ownership. SRS covers contractual or complex acceptance criteria. Technical design covers architecture under pressure. ERD stays inside `docs/database-schema.md` unless the data model is large or relationship-heavy.
|
|
26
|
+
|
|
23
27
|
## Contract Rules
|
|
24
28
|
|
|
25
29
|
- Document the public surface before or alongside implementation.
|
|
@@ -33,6 +33,7 @@ The `.agent-context/rules/` directory is the default guidance source for impleme
|
|
|
33
33
|
- Security and testing are non-negotiable baseline requirements.
|
|
34
34
|
- Hard block before coding:
|
|
35
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.
|
|
36
|
+
- `docs/doc-index.md` must exist whenever `docs/` exists. It is a compact read-routing map, not a replacement for project docs.
|
|
36
37
|
- `docs/project-brief.md` must exist.
|
|
37
38
|
- `docs/architecture-decision-record.md` (alias: `docs/Architecture-Decision-Record.md`) must exist.
|
|
38
39
|
- `docs/flow-overview.md` must exist.
|
|
@@ -47,6 +48,19 @@ The `.agent-context/rules/` directory is the default guidance source for impleme
|
|
|
47
48
|
- 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
49
|
- 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.
|
|
49
50
|
|
|
51
|
+
## Documentation Read Routing and Conditional Specs
|
|
52
|
+
|
|
53
|
+
Use `README.md` for human orientation, then use `docs/doc-index.md` to choose the smallest relevant read set. Do not broad-read every Markdown file in `docs/` by default.
|
|
54
|
+
|
|
55
|
+
- Read `docs/project-brief.md`, `docs/architecture-decision-record.md`, and `docs/flow-overview.md` for broad planning, new features, or architecture changes.
|
|
56
|
+
- Read `docs/api-contract.md` only when API, CLI, firmware endpoint, web flow, event, or library contract behavior is in scope.
|
|
57
|
+
- Read `docs/database-schema.md` only when persistence, migrations, data shape, or query behavior is in scope.
|
|
58
|
+
- Read `docs/DESIGN.md` and `docs/design-intent.json` only for UI, UX, frontend, layout, component, or visual work.
|
|
59
|
+
- Add `docs/prd.md` only when there is product-roadmap, user-story, metrics, product-owner, or feature-flag ownership that would otherwise bloat the project brief.
|
|
60
|
+
- Add `docs/srs.md` only for contractual, regulated, multi-stakeholder, or acceptance-criteria-heavy projects. Do not create both PRD and SRS unless those owners and purposes are distinct.
|
|
61
|
+
- Add `docs/technical-design.md` only for non-trivial architecture decisions, major refactors, cross-cutting behavior, or system interactions that outgrow the ADR and flow overview.
|
|
62
|
+
- Keep ERD inside `docs/database-schema.md` for small and medium schemas. Add a separate ERD file only when relationship complexity makes the schema doc hard to scan.
|
|
63
|
+
|
|
50
64
|
## Rules as Guardian (Cross-Session Consistency)
|
|
51
65
|
|
|
52
66
|
- Session handoff must include active architecture contract summary.
|
|
@@ -64,8 +78,8 @@ The `.agent-context/rules/` directory is the default guidance source for impleme
|
|
|
64
78
|
|
|
65
79
|
## Single Source of Truth and Lazy Rule Loading
|
|
66
80
|
|
|
67
|
-
- Canonical rule source is .
|
|
68
|
-
-
|
|
81
|
+
- Canonical rule source is AGENTS.md.
|
|
82
|
+
- Native adapter entry files stay thin and must import the canonical source.
|
|
69
83
|
- Load global domain rules lazily based on touched scope.
|
|
70
84
|
- Do not create or load stack-specific governance adapters as the baseline.
|
|
71
85
|
- Runtime or framework evidence can clarify implementation details, but it must not replace the global architecture, security, data, API, error, event, and testing boundaries.
|
|
@@ -6,10 +6,10 @@ Use this file as repo-local agent context. It records the current governance arc
|
|
|
6
6
|
|
|
7
7
|
| Surface | Criticality | Change Policy | Required Checks |
|
|
8
8
|
| --- | --- | --- | --- |
|
|
9
|
-
|
|
|
9
|
+
| `AGENTS.md`, `CLAUDE.md`, `GEMINI.md` | critical | Keep `AGENTS.md` canonical and native bridges minimal | `npm run sync:adapters`, `npm run check:adapters`, `npm run validate` |
|
|
10
10
|
| `.agent-context/rules/**`, `.agent-context/prompts/**`, `.agent-context/review-checklists/**` | critical | Keep rules imperative, compact, scope-resolved, and non-duplicative | adapter sync, validation, targeted smoke tests |
|
|
11
11
|
| `.agent-context/state/**` | high | Track only seed/config and current operational state; keep generated reports local-only | `npm pack --dry-run`, state README review |
|
|
12
|
-
| `
|
|
12
|
+
| `scripts/sync-thin-adapters.mjs` | critical | Preserve minimal import bridge compatibility for Claude and Gemini | adapter tests, smoke tests, validation |
|
|
13
13
|
| `lib/cli/commands/init.mjs`, `lib/cli/commands/upgrade.mjs` | high | Preserve fresh-project and existing-project behavior without silent stack/style decisions | CLI smoke tests, onboarding report checks |
|
|
14
14
|
| `lib/cli/project-scaffolder/**` | high | Preserve docs-first and design-contract behavior without hardcoded house style | design/detection smoke tests, validation |
|
|
15
15
|
| `scripts/validate*.mjs`, `scripts/validate/**` | high | Keep validation mechanical and aligned with current shipped surfaces | `node ./scripts/validate.mjs`, targeted script checks |
|
|
@@ -35,6 +35,6 @@ Use this file as repo-local agent context. It records the current governance arc
|
|
|
35
35
|
|
|
36
36
|
1. Load the smallest relevant rule set.
|
|
37
37
|
2. Use README only for public and developer overview, setup, usage, and user-facing context when governance files conflict.
|
|
38
|
-
3. Preserve
|
|
38
|
+
3. Preserve native import bridge 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.
|
|
@@ -21,7 +21,7 @@ Use this map to keep Agentic-Senior-Core's CLI, governance, and validation layer
|
|
|
21
21
|
| `lib/cli/commands/upgrade.mjs` | detector, compiler, scaffolder seeds, backup/rollback, shared setup helpers | duplicated setup-policy helpers, silent stack migration |
|
|
22
22
|
| `lib/cli/project-scaffolder.mjs` | stable public scaffolder exports | private validation helpers that do not need public API exposure |
|
|
23
23
|
| `lib/cli/project-scaffolder/design-contract.mjs` | validation submodule, constants, utilities | hardcoded final palettes, fixed layouts, external design memory |
|
|
24
|
-
| `scripts/sync-thin-adapters.mjs` |
|
|
24
|
+
| `scripts/sync-thin-adapters.mjs` | `AGENTS.md` and native import bridge targets | hand-maintained duplicate policy blocks |
|
|
25
25
|
| `scripts/validate*.mjs` | config, coverage checks, file evidence | stale V2 skill-marketplace artifacts |
|
|
26
26
|
| `.agent-context/prompts/bootstrap-design.md` | current repo evidence and frontend rule | prior-chat visuals, unrelated screenshots, template style presets |
|
|
27
27
|
|
|
@@ -30,7 +30,7 @@ Use this map to keep Agentic-Senior-Core's CLI, governance, and validation layer
|
|
|
30
30
|
- Reject `commands -> project-scaffolder -> commands`.
|
|
31
31
|
- Reject `compiler -> commands`.
|
|
32
32
|
- Reject `scripts/validate -> tests`.
|
|
33
|
-
- Reject generated adapters becoming inputs for
|
|
33
|
+
- Reject generated adapters becoming inputs for `AGENTS.md` or `.agent-context/`.
|
|
34
34
|
- Move repeated command setup policy into shared helper modules instead of copying local functions.
|
|
35
35
|
|
|
36
36
|
## Package Hygiene
|
package/AGENTS.md
CHANGED
|
@@ -1,44 +1,179 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Agentic-Senior-Core: Unified AI Agent Instructions
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
Adapter Source: .instructions.md
|
|
5
|
-
Canonical Snapshot SHA256: c66b5dfe48a25f0df297a1681aa6bab572da95d2201f09abf3767d38a2934591
|
|
3
|
+
Canonical project instructions. Resolve the smallest relevant layer set for the current request.
|
|
6
4
|
|
|
5
|
+
## Role
|
|
6
|
+
Act as a Principal Engineer. Ship maintainable, validated, production-ready work. Use clear plain language in formal artifacts. Do not use emoji.
|
|
7
|
+
|
|
8
|
+
## Authority
|
|
7
9
|
This repository is governed by a strict instruction contract.
|
|
8
|
-
|
|
9
|
-
Use .agent-context
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
-
|
|
15
|
-
-
|
|
16
|
-
-
|
|
17
|
-
- For UI, UX, layout, screen, tailwind, frontend, or redesign requests, load [bootstrap-design.md](.agent-context/prompts/bootstrap-design.md) and [frontend-architecture.md](.agent-context/rules/frontend-architecture.md) before code edits.
|
|
18
|
-
- For UI scope, include a one-line Motion/Palette Decision in the Bootstrap Receipt; product categories are heuristics, not style presets.
|
|
19
|
-
- For UI scope, create or refine `docs/DESIGN.md` and `docs/design-intent.json` before UI implementation.
|
|
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.
|
|
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)).
|
|
23
|
-
- For ecosystem, framework, dependency, or Docker claims, perform live web research.
|
|
24
|
-
- Resolve runtime choices from project evidence and live official documentation; resolve structural planning from constraints and architecture boundaries.
|
|
25
|
-
|
|
26
|
-
## Mandatory Bootstrap Chain
|
|
27
|
-
|
|
28
|
-
1. Load [.instructions.md](.instructions.md).
|
|
29
|
-
2. Load `.agent-instructions.md` when present.
|
|
30
|
-
3. Load only relevant files from .agent-context/rules/ ([link](.agent-context/rules)).
|
|
31
|
-
4. Apply matching prompts from .agent-context/prompts/ ([link](.agent-context/prompts)).
|
|
32
|
-
5. Enforce .agent-context/review-checklists/ ([link](.agent-context/review-checklists/pr-checklist.md)).
|
|
33
|
-
6. Use .agent-context/state/ ([link](.agent-context/state)) and .agent-context/policies/ ([link](.agent-context/policies)) only when relevant.
|
|
34
|
-
7. Use project docs and live evidence for runtime, dependency, and architecture claims.
|
|
10
|
+
|
|
11
|
+
Use `AGENTS.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.
|
|
12
|
+
|
|
13
|
+
Write instructions as imperative gates:
|
|
14
|
+
- Use direct commands.
|
|
15
|
+
- Prefer short mechanical checks over descriptive prose.
|
|
16
|
+
- Keep root adapters thin.
|
|
17
|
+
- Move detailed policy into `.agent-context/`.
|
|
18
|
+
- Add validation when a rule can drift.
|
|
35
19
|
|
|
36
20
|
## Bootstrap Receipt
|
|
21
|
+
For non-trivial coding, review, planning, or governance work, emit a concise Bootstrap Receipt before implementation output or file edits:
|
|
22
|
+
- `loaded_files`: files actually read
|
|
23
|
+
- `selected_rules`: files selected for this scope and why
|
|
24
|
+
- `skipped_rules`: out-of-scope categories left unloaded
|
|
25
|
+
- `unreachable_files`: required files that could not be read
|
|
26
|
+
- `validation_plan`: expected checks before completion
|
|
27
|
+
|
|
28
|
+
Keep it short. Do not load every rule just to fill it out.
|
|
29
|
+
|
|
30
|
+
## Command Economy
|
|
31
|
+
Avoid repeated command output. Do not rerun broad inspections unless edits changed the result. Prefer targeted reads, targeted searches, concise diffs, and final validation gates.
|
|
32
|
+
|
|
33
|
+
## Layer Index
|
|
34
|
+
### Layer 1: Rules (15 Files) [SCOPE-RESOLVED]
|
|
35
|
+
Location: `.agent-context/rules/`.
|
|
36
|
+
|
|
37
|
+
Load only relevant rule files. Do not read the entire rule directory by default.
|
|
38
|
+
|
|
39
|
+
Available rules: `naming-conv.md`, `architecture.md`, `security.md`, `performance.md`, `error-handling.md`, `testing.md`, `git-workflow.md`, `efficiency-vs-hype.md`, `api-docs.md`, `microservices.md`, `event-driven.md`, `database-design.md`, `realtime.md`, `frontend-architecture.md`, `docker-runtime.md`.
|
|
40
|
+
|
|
41
|
+
For Docker or Compose work, load `docker-runtime.md` and verify the latest official Docker docs before authoring container assets. Also perform live web research for Docker and framework/package setup claims. For framework or package setup work, use the latest stable compatible dependency set and official setup flow unless a documented compatibility constraint blocks it. Prefer official framework scaffolders when they create the supported project shape; manual file assembly needs a repo, prototype, learning, or architecture reason. New dependencies are allowed when they improve efficiency, delivery time, correctness, accessibility, UX, or maintainability. Do not treat dependency avoidance or vague performance fear as a default reason to skip a modern maintained library.
|
|
42
|
+
|
|
43
|
+
Backend/API routing:
|
|
44
|
+
- Data/schema/persistence: `architecture.md`, `database-design.md`, `performance.md`, `testing.md`.
|
|
45
|
+
- Endpoint/API/error contracts: `architecture.md`, `api-docs.md`, `error-handling.md`, `security.md`, `testing.md`.
|
|
46
|
+
- Auth/secrets/uploads/permissions: `security.md`, `error-handling.md`, `testing.md`.
|
|
47
|
+
- Queue/worker/cron/events/retry: `event-driven.md`, `database-design.md`, `error-handling.md`, `performance.md`, `testing.md`.
|
|
48
|
+
- Multi-service/distributed boundaries: `microservices.md`, `event-driven.md`, `database-design.md`, `api-docs.md`, `architecture.md`.
|
|
49
|
+
|
|
50
|
+
Use the union once when scopes overlap. Do not create framework-specific governance adapters.
|
|
51
|
+
|
|
52
|
+
### Layer 2: Runtime Decision Signals
|
|
53
|
+
|
|
54
|
+
Runtime Decision Signals come from project context, repo evidence, and live research. Runtime signals are evidence gates, not style cues or popularity rankings.
|
|
55
|
+
|
|
56
|
+
For fresh projects, recommend runtime/framework from the brief, constraints, and live official docs before coding. For existing projects, treat detected markers as evidence only. Ignore pattern frequency, external rankings, and remembered defaults. Do not default web projects to Next.js, Tailwind-only styling, shadcn/ui, Vite, or any familiar web stack by habit, and do not avoid them because of this guard when they are the strongest project fit.
|
|
57
|
+
|
|
58
|
+
### Layer 3: Structural Planning Signals
|
|
59
|
+
|
|
60
|
+
Structural Planning Signals use dynamic structural planning from repo context, docs, runtime constraints, and live research. Structural planning signals are not a hard whitelist.
|
|
61
|
+
|
|
62
|
+
For new projects or modules, extract constraints, boundaries, and required docs first. Do not silently choose frameworks or architecture from offline heuristics. If runtime or architecture is unresolved, produce a short recommendation from evidence and live official documentation before coding. Compare at least one plausible alternative when the strongest-looking option is a familiar web default and the user did not explicitly choose it.
|
|
63
|
+
|
|
64
|
+
### Layer 4: Execution Contracts
|
|
65
|
+
|
|
66
|
+
Execution Contracts are dynamic execution contracts from prompts, review checklists, and policy thresholds. Resolve the active contract, then enforce mandatory checks before declaring completion.
|
|
67
|
+
|
|
68
|
+
### Layer 5: Prompts
|
|
69
|
+
|
|
70
|
+
Location: `.agent-context/prompts/`.
|
|
71
|
+
|
|
72
|
+
Load the matching prompt only:
|
|
73
|
+
- `init-project.md` -> create, build, new project, scaffold
|
|
74
|
+
- `refactor.md` -> refactor, improve, clean up, fix
|
|
75
|
+
- `review-code.md` -> review, audit, check, analyze
|
|
76
|
+
- `bootstrap-design.md` -> ui, ux, layout, screen, tailwind, frontend, redesign
|
|
77
|
+
|
|
78
|
+
For UI-only work, load `bootstrap-design.md` and `frontend-architecture.md` first; do not eagerly load unrelated backend-only rules unless the request crosses that boundary. The valid style context is current repo evidence, current brief, and current project docs. External references, prior-chat memory, unrelated-project visuals, and remembered screenshots are tainted unless the user makes them current-task constraints. Treat WCAG 2.2 AA as the hard compliance floor and APCA as advisory perceptual tuning only. Do not require screenshot capture as a baseline dependency.
|
|
79
|
+
|
|
80
|
+
### Layer 6: Governance Modes
|
|
81
|
+
|
|
82
|
+
Governance Modes use dynamic governance context from state files, policies, and repo norms. Apply matching defaults only when relevant.
|
|
83
|
+
|
|
84
|
+
### Layer 7: State and Benchmarks
|
|
85
|
+
|
|
86
|
+
Use `.agent-context/state/` only when the task needs risk zones, dependency boundaries, benchmarks, or continuity metadata. For initialized projects, `.agent-context/state/onboarding-report.json` records selected profile, runtime evidence, architecture decision status, token optimization, and memory continuity.
|
|
87
|
+
|
|
88
|
+
### Layer 8: Policies and Thresholds
|
|
89
|
+
|
|
90
|
+
Use `.agent-context/policies/` for quality gates, release thresholds, and audit posture.
|
|
91
|
+
|
|
92
|
+
### Layer 9: Project Context
|
|
93
|
+
|
|
94
|
+
Use root `README.md` as the public and developer entrypoint for every fresh or existing project. Use `docs/doc-index.md` as the compact routing map when `docs/` exists. 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`.
|
|
95
|
+
|
|
96
|
+
## Mandatory Triggers
|
|
97
|
+
|
|
98
|
+
### 1. Documentation-First Mode
|
|
99
|
+
|
|
100
|
+
Trigger: docs, documentation, dokumen, `docs/*`, architecture docs, flow docs, API docs, or "lengkapkan docs".
|
|
101
|
+
|
|
102
|
+
1. Load `architecture.md`, `api-docs.md`, and only additional rules required by scope.
|
|
103
|
+
2. Create or refine required docs first: root `README.md` for every fresh or existing project; `docs/doc-index.md` whenever `docs/` exists; `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.
|
|
104
|
+
3. Use `docs/doc-index.md` as the compact read-routing map. Add PRD, SRS, technical-design, or separate ERD only when project evidence justifies them.
|
|
105
|
+
4. Write formal project docs in English by default unless the user asks otherwise.
|
|
106
|
+
5. 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; do not write application, firmware, or UI code before approval.
|
|
107
|
+
|
|
108
|
+
### 2. New Project Planning
|
|
109
|
+
|
|
110
|
+
Trigger: create, build, new project, scaffold.
|
|
111
|
+
|
|
112
|
+
1. Resolve relevant rules.
|
|
113
|
+
2. Read `init-project.md`.
|
|
114
|
+
3. Infer constraints, required docs, and boundaries from requirements, repo evidence, docs, and live research.
|
|
115
|
+
4. Recommend runtime/architecture when unresolved.
|
|
116
|
+
5. WAIT for user approval before generating code.
|
|
117
|
+
|
|
118
|
+
### 3. Refactor Mode
|
|
119
|
+
|
|
120
|
+
Trigger: refactor, improve, fix, clean up.
|
|
121
|
+
|
|
122
|
+
1. Resolve relevant rules.
|
|
123
|
+
2. Read `refactor.md`.
|
|
124
|
+
3. Apply active prompt/checklist contracts.
|
|
125
|
+
4. Propose a plan before edits.
|
|
126
|
+
5. WAIT for approval.
|
|
127
|
+
|
|
128
|
+
### 4. Code Review Mode
|
|
129
|
+
|
|
130
|
+
Trigger: review, audit, check, analyze.
|
|
131
|
+
|
|
132
|
+
Load `pr-checklist.md` and `architecture-review.md`, then report defects, risks, regressions, and missing tests first.
|
|
133
|
+
|
|
134
|
+
### 5. UI Design Mode
|
|
135
|
+
|
|
136
|
+
Trigger: ui, ux, layout, screen, tailwind, frontend, redesign.
|
|
137
|
+
|
|
138
|
+
1. Read `bootstrap-design.md` and `frontend-architecture.md`.
|
|
139
|
+
2. Read UI-relevant repo evidence from state, current UI code, and `docs/*`.
|
|
140
|
+
3. Include a one-line Motion/Palette Decision before UI code; product categories are heuristics, not style presets.
|
|
141
|
+
4. Before UI code, record one real-world anchor, one signature motion behavior, and one typographic role contrast.
|
|
142
|
+
5. Ensure `docs/design-intent.json` includes `conceptualAnchor.anchorReference`, top-level `derivedTokenLogic`, `libraryResearchStatus`, `libraryDecisions[]`, and motion/palette decisions.
|
|
143
|
+
6. Generate or refine `docs/DESIGN.md` plus `docs/design-intent.json` before UI implementation.
|
|
144
|
+
7. Keep context isolated; do not eagerly load unrelated backend-only rules.
|
|
145
|
+
8. In UI Design Mode, choose the ambition level proactively. For broad screens or redesigns, treat expressive motion, spatial hierarchy, distinctive composition, and product-specific interaction as the baseline even when the user did not say "rich"; quiet or static surfaces require a concrete product, performance, accessibility, device, or dependency reason.
|
|
146
|
+
9. Do not let conceptual anchors collapse into room, darkroom, counting room, control room, war room, studio, lab, cockpit, or command center by habit. Prefer artifacts, workflows, custody chains, instruments, data behaviors, material systems, editorial systems, service rituals, or interaction mechanisms unless a physical place model is core to the product.
|
|
147
|
+
10. External websites and benchmark examples are candidate evidence for constraints, mechanics, and quality bars only. Do not copy their layout rhythm, palette, component skin, visual metaphor, or brand posture without explicit user approval and product-fit rationale.
|
|
148
|
+
|
|
149
|
+
## Reasoning Chain
|
|
150
|
+
|
|
151
|
+
When rejecting an approach or enforcing a rule, use:
|
|
152
|
+
|
|
153
|
+
```text
|
|
154
|
+
REASONING CHAIN
|
|
155
|
+
Problem: [risk]
|
|
156
|
+
Required Action: [boundary]
|
|
157
|
+
Why Required: [project protection]
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
## Definition of Done
|
|
161
|
+
|
|
162
|
+
Never claim done without:
|
|
163
|
+
1. Relevant rules applied.
|
|
164
|
+
2. PR and architecture checklists considered.
|
|
165
|
+
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.
|
|
166
|
+
4. If `.agent-context/state/active-memory.json` exists and material project progress happened, refresh it while preserving privacy rules and user-owned entries.
|
|
167
|
+
5. MCP validation passed through `npm run validate`.
|
|
37
168
|
|
|
38
|
-
|
|
169
|
+
## Knowledge Inventory Checklist
|
|
39
170
|
|
|
40
|
-
|
|
171
|
+
Verify reachability when relevant: Layer 1 Rules, Layer 2 Runtime Decision Signals, Layer 3 Structural Planning Signals, Layer 4 Execution Contracts, Layer 5 Prompts, Layer 6 Governance Modes, Layer 7 State, Layer 8 Policies, Layer 9 Project Context.
|
|
41
172
|
|
|
42
|
-
|
|
173
|
+
## Operating Gates
|
|
43
174
|
|
|
44
|
-
|
|
175
|
+
- Before code: resolve active rules and contract.
|
|
176
|
+
- Before PR: run review checklists.
|
|
177
|
+
- Before deploy: check policy thresholds.
|
|
178
|
+
- Before major refactor: read `architecture-map.md`.
|
|
179
|
+
- Before UI implementation: confirm valid style context, design contract, and required docs.
|
package/CLAUDE.md
CHANGED
|
@@ -1,44 +1 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
Adapter Mode: thin
|
|
4
|
-
Adapter Source: .instructions.md
|
|
5
|
-
Canonical Snapshot SHA256: c66b5dfe48a25f0df297a1681aa6bab572da95d2201f09abf3767d38a2934591
|
|
6
|
-
|
|
7
|
-
This repository is governed by a strict instruction contract.
|
|
8
|
-
Use [.instructions.md](.instructions.md) as the canonical policy source.
|
|
9
|
-
Use .agent-context/ for technical rules, prompts, checklists, policies, and state.
|
|
10
|
-
Treat README.md as public and developer overview, setup, usage, and user-facing context only when governance files conflict.
|
|
11
|
-
|
|
12
|
-
## Critical Bootstrap Floor
|
|
13
|
-
|
|
14
|
-
- If your host stops at this file, continue the chain manually before coding.
|
|
15
|
-
- Read `.agent-instructions.md` next when it exists.
|
|
16
|
-
- Memory continuity does not replace bootstrap loading.
|
|
17
|
-
- For UI, UX, layout, screen, tailwind, frontend, or redesign requests, load [bootstrap-design.md](.agent-context/prompts/bootstrap-design.md) and [frontend-architecture.md](.agent-context/rules/frontend-architecture.md) before code edits.
|
|
18
|
-
- For UI scope, include a one-line Motion/Palette Decision in the Bootstrap Receipt; product categories are heuristics, not style presets.
|
|
19
|
-
- For UI scope, create or refine `docs/DESIGN.md` and `docs/design-intent.json` before UI implementation.
|
|
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.
|
|
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)).
|
|
23
|
-
- For ecosystem, framework, dependency, or Docker claims, perform live web research.
|
|
24
|
-
- Resolve runtime choices from project evidence and live official documentation; resolve structural planning from constraints and architecture boundaries.
|
|
25
|
-
|
|
26
|
-
## Mandatory Bootstrap Chain
|
|
27
|
-
|
|
28
|
-
1. Load [.instructions.md](.instructions.md).
|
|
29
|
-
2. Load `.agent-instructions.md` when present.
|
|
30
|
-
3. Load only relevant files from .agent-context/rules/ ([link](.agent-context/rules)).
|
|
31
|
-
4. Apply matching prompts from .agent-context/prompts/ ([link](.agent-context/prompts)).
|
|
32
|
-
5. Enforce .agent-context/review-checklists/ ([link](.agent-context/review-checklists/pr-checklist.md)).
|
|
33
|
-
6. Use .agent-context/state/ ([link](.agent-context/state)) and .agent-context/policies/ ([link](.agent-context/policies)) only when relevant.
|
|
34
|
-
7. Use project docs and live evidence for runtime, dependency, and architecture claims.
|
|
35
|
-
|
|
36
|
-
## Bootstrap Receipt
|
|
37
|
-
|
|
38
|
-
For non-trivial coding, review, planning, or governance work, produce a short Bootstrap Receipt before implementation output: `loaded_files`, `selected_rules`, `skipped_rules`, `unreachable_files`, and `validation_plan`.
|
|
39
|
-
|
|
40
|
-
## Completion Gate
|
|
41
|
-
|
|
42
|
-
Run [pr-checklist.md](.agent-context/review-checklists/pr-checklist.md) before declaring work complete.
|
|
43
|
-
|
|
44
|
-
If this adapter drifts from canonical behavior, refresh from [.instructions.md](.instructions.md) and update the hash metadata.
|
|
1
|
+
@AGENTS.md
|
package/CONTRIBUTING.md
CHANGED
|
@@ -13,7 +13,6 @@ Thanks for wanting to make AI agents write better code. Here's how to contribute
|
|
|
13
13
|
| Structural planning guidance update | `.agent-context/prompts/`, `lib/cli/compiler.mjs` | Scope planning, docs bootstrap, and project-context guidance |
|
|
14
14
|
| New checklist | `.agent-context/review-checklists/` | Self-audit guide |
|
|
15
15
|
| State intelligence update | `.agent-context/state/` | Architecture boundaries and dependency map |
|
|
16
|
-
| Override policy update | `.agent-override.md` | Scoped rule exceptions |
|
|
17
16
|
| MCP workflow update | `mcp.json` | Self-healing automation flow |
|
|
18
17
|
| Bug fix | Any file | Typos, broken links, incorrect rules |
|
|
19
18
|
| Improvement | Any file | Sharper wording, stricter boundaries |
|
|
@@ -63,7 +62,7 @@ If all three are "yes", it belongs here.
|
|
|
63
62
|
- Core principle (1-2 sentences)
|
|
64
63
|
- BANNED / REQUIRED sections with enforceable boundaries
|
|
65
64
|
- Decision tree or quick ruleset when it reduces ambiguity
|
|
66
|
-
3. Update
|
|
65
|
+
3. Update `AGENTS.md` or `.agent-context/` as the source, then verify thin adapters with `npm run check:adapters`
|
|
67
66
|
4. Update `review-checklists/pr-checklist.md` when the rule is part of review scope
|
|
68
67
|
5. Validate and PR
|
|
69
68
|
|
|
@@ -88,7 +87,7 @@ If all three are "yes", it belongs here.
|
|
|
88
87
|
- Generic content that reads like it was auto-generated without thought
|
|
89
88
|
- Rules without concrete enforcement boundaries
|
|
90
89
|
- Stack profiles for languages the author doesn't actually use in production
|
|
91
|
-
- PRs that don't update the relevant source files,
|
|
90
|
+
- PRs that don't update the relevant source files, docs, validators, and checklists
|
|
92
91
|
|
|
93
92
|
---
|
|
94
93
|
|
package/GEMINI.md
CHANGED
|
@@ -1,44 +1 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
Adapter Mode: thin
|
|
4
|
-
Adapter Source: .instructions.md
|
|
5
|
-
Canonical Snapshot SHA256: c66b5dfe48a25f0df297a1681aa6bab572da95d2201f09abf3767d38a2934591
|
|
6
|
-
|
|
7
|
-
This repository is governed by a strict instruction contract.
|
|
8
|
-
Use [.instructions.md](.instructions.md) as the canonical policy source.
|
|
9
|
-
Use .agent-context/ for technical rules, prompts, checklists, policies, and state.
|
|
10
|
-
Treat README.md as public and developer overview, setup, usage, and user-facing context only when governance files conflict.
|
|
11
|
-
|
|
12
|
-
## Critical Bootstrap Floor
|
|
13
|
-
|
|
14
|
-
- If your host stops at this file, continue the chain manually before coding.
|
|
15
|
-
- Read `.agent-instructions.md` next when it exists.
|
|
16
|
-
- Memory continuity does not replace bootstrap loading.
|
|
17
|
-
- For UI, UX, layout, screen, tailwind, frontend, or redesign requests, load [bootstrap-design.md](.agent-context/prompts/bootstrap-design.md) and [frontend-architecture.md](.agent-context/rules/frontend-architecture.md) before code edits.
|
|
18
|
-
- For UI scope, include a one-line Motion/Palette Decision in the Bootstrap Receipt; product categories are heuristics, not style presets.
|
|
19
|
-
- For UI scope, create or refine `docs/DESIGN.md` and `docs/design-intent.json` before UI implementation.
|
|
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.
|
|
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)).
|
|
23
|
-
- For ecosystem, framework, dependency, or Docker claims, perform live web research.
|
|
24
|
-
- Resolve runtime choices from project evidence and live official documentation; resolve structural planning from constraints and architecture boundaries.
|
|
25
|
-
|
|
26
|
-
## Mandatory Bootstrap Chain
|
|
27
|
-
|
|
28
|
-
1. Load [.instructions.md](.instructions.md).
|
|
29
|
-
2. Load `.agent-instructions.md` when present.
|
|
30
|
-
3. Load only relevant files from .agent-context/rules/ ([link](.agent-context/rules)).
|
|
31
|
-
4. Apply matching prompts from .agent-context/prompts/ ([link](.agent-context/prompts)).
|
|
32
|
-
5. Enforce .agent-context/review-checklists/ ([link](.agent-context/review-checklists/pr-checklist.md)).
|
|
33
|
-
6. Use .agent-context/state/ ([link](.agent-context/state)) and .agent-context/policies/ ([link](.agent-context/policies)) only when relevant.
|
|
34
|
-
7. Use project docs and live evidence for runtime, dependency, and architecture claims.
|
|
35
|
-
|
|
36
|
-
## Bootstrap Receipt
|
|
37
|
-
|
|
38
|
-
For non-trivial coding, review, planning, or governance work, produce a short Bootstrap Receipt before implementation output: `loaded_files`, `selected_rules`, `skipped_rules`, `unreachable_files`, and `validation_plan`.
|
|
39
|
-
|
|
40
|
-
## Completion Gate
|
|
41
|
-
|
|
42
|
-
Run [pr-checklist.md](.agent-context/review-checklists/pr-checklist.md) before declaring work complete.
|
|
43
|
-
|
|
44
|
-
If this adapter drifts from canonical behavior, refresh from [.instructions.md](.instructions.md) and update the hash metadata.
|
|
1
|
+
@AGENTS.md
|