@ryuenn3123/agentic-senior-core 2.0.3 → 2.0.5
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/blueprints/mobile-app.md +21 -21
- package/.agent-context/profiles/platform.md +13 -13
- package/.agent-context/profiles/regulated.md +13 -13
- package/.agent-context/profiles/startup.md +13 -13
- package/.agent-context/review-checklists/frontend-skill-parity.md +28 -28
- package/.agent-context/review-checklists/frontend-usability.md +33 -33
- package/.agent-context/review-checklists/release-operations.md +29 -29
- package/.agent-context/skills/README.md +62 -62
- package/.agent-context/skills/backend/README.md +67 -67
- package/.agent-context/skills/backend/architecture.md +360 -360
- package/.agent-context/skills/backend/compatibility-manifest.json +8 -8
- package/.agent-context/skills/backend/data-access.md +230 -230
- package/.agent-context/skills/backend/errors.md +137 -137
- package/.agent-context/skills/backend/validation.md +116 -116
- package/.agent-context/skills/backend.md +28 -28
- package/.agent-context/skills/cli/README.md +49 -49
- package/.agent-context/skills/cli/compatibility-manifest.json +8 -8
- package/.agent-context/skills/cli/init.md +37 -37
- package/.agent-context/skills/cli/output.md +35 -35
- package/.agent-context/skills/cli/upgrade.md +37 -37
- package/.agent-context/skills/cli.md +28 -28
- package/.agent-context/skills/distribution/README.md +18 -18
- package/.agent-context/skills/distribution/compatibility-manifest.json +8 -8
- package/.agent-context/skills/distribution/compatibility.md +31 -31
- package/.agent-context/skills/distribution/publish.md +36 -36
- package/.agent-context/skills/distribution/rollback.md +31 -31
- package/.agent-context/skills/distribution.md +28 -28
- package/.agent-context/skills/frontend/README.md +35 -35
- package/.agent-context/skills/frontend/accessibility.md +107 -107
- package/.agent-context/skills/frontend/compatibility-manifest.json +8 -8
- package/.agent-context/skills/frontend/motion.md +66 -66
- package/.agent-context/skills/frontend/performance.md +62 -62
- package/.agent-context/skills/frontend/ui-architecture.md +128 -128
- package/.agent-context/skills/frontend.md +29 -29
- package/.agent-context/skills/fullstack/README.md +18 -18
- package/.agent-context/skills/fullstack/compatibility-manifest.json +8 -8
- package/.agent-context/skills/fullstack/contracts.md +52 -52
- package/.agent-context/skills/fullstack/end-to-end.md +41 -41
- package/.agent-context/skills/fullstack/feature-slicing.md +64 -64
- package/.agent-context/skills/fullstack.md +26 -26
- package/.agent-context/skills/index.json +107 -107
- package/.agent-context/skills/review-quality/README.md +18 -18
- package/.agent-context/skills/review-quality/benchmark.md +29 -29
- package/.agent-context/skills/review-quality/compatibility-manifest.json +8 -8
- package/.agent-context/skills/review-quality/planning.md +37 -37
- package/.agent-context/skills/review-quality/security.md +33 -33
- package/.agent-context/skills/review-quality.md +27 -27
- package/.agent-context/stacks/flutter.md +16 -16
- package/.agent-context/stacks/react-native.md +16 -16
- package/.agent-context/state/architecture-map.md +25 -25
- package/.agent-context/state/benchmark-analysis.json +431 -431
- package/.agent-context/state/benchmark-thresholds.json +10 -10
- package/.agent-context/state/benchmark-watchlist.json +19 -19
- package/.agent-context/state/dependency-map.md +32 -32
- package/.agent-context/state/quality-trend-report.json +79 -0
- package/.agent-context/state/skill-platform.json +38 -38
- package/.agent-context/state/token-optimization-benchmark.json +130 -0
- package/.agent-override.md +36 -36
- package/.cursorrules +1 -1
- package/.gemini/instructions.md +21 -97
- package/.github/ISSUE_TEMPLATE/v1.7-frontend-work-item.yml +54 -54
- package/.github/copilot-instructions.md +21 -166
- package/.github/workflows/benchmark-detection.yml +38 -38
- package/.github/workflows/benchmark-intelligence.yml +50 -50
- package/.github/workflows/frontend-usability-gate.yml +36 -36
- package/.github/workflows/release-gate.yml +32 -32
- package/.github/workflows/sbom-compliance.yml +32 -32
- package/.windsurfrules +1 -1
- package/AGENTS.md +28 -181
- package/README.md +368 -346
- package/lib/cli/commands/optimize.mjs +171 -171
- package/lib/cli/compatibility.mjs +124 -124
- package/lib/cli/token-optimization.mjs +275 -275
- package/mcp.json +92 -92
- package/package.json +3 -1
- package/scripts/benchmark-gate.mjs +121 -121
- package/scripts/benchmark-intelligence.mjs +140 -140
- package/scripts/detection-benchmark.mjs +138 -138
- package/scripts/frontend-usability-audit.mjs +87 -87
- package/scripts/generate-sbom.mjs +61 -61
- package/scripts/init-project.ps1 +104 -104
- package/scripts/llm-judge.mjs +664 -664
- package/scripts/quality-trend-report.mjs +289 -0
- package/scripts/release-gate.mjs +259 -204
- package/scripts/skill-tier-policy.mjs +75 -75
- package/scripts/token-optimization-benchmark.mjs +252 -0
- package/scripts/validate.mjs +865 -811
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
name: sbom-compliance
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
push:
|
|
5
|
-
branches:
|
|
6
|
-
- main
|
|
7
|
-
pull_request:
|
|
8
|
-
workflow_dispatch:
|
|
9
|
-
|
|
10
|
-
permissions:
|
|
11
|
-
contents: read
|
|
12
|
-
|
|
13
|
-
jobs:
|
|
14
|
-
generate-sbom:
|
|
15
|
-
runs-on: ubuntu-latest
|
|
16
|
-
steps:
|
|
17
|
-
- name: Checkout repository
|
|
18
|
-
uses: actions/checkout@v4
|
|
19
|
-
|
|
20
|
-
- name: Setup Node.js
|
|
21
|
-
uses: actions/setup-node@v4
|
|
22
|
-
with:
|
|
23
|
-
node-version: 24
|
|
24
|
-
|
|
25
|
-
- name: Generate CycloneDX SBOM
|
|
26
|
-
run: node ./scripts/generate-sbom.mjs > sbom.cdx.json
|
|
27
|
-
|
|
28
|
-
- name: Upload SBOM artifact
|
|
29
|
-
uses: actions/upload-artifact@v4
|
|
30
|
-
with:
|
|
31
|
-
name: sbom-cyclonedx
|
|
32
|
-
path: sbom.cdx.json
|
|
1
|
+
name: sbom-compliance
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- main
|
|
7
|
+
pull_request:
|
|
8
|
+
workflow_dispatch:
|
|
9
|
+
|
|
10
|
+
permissions:
|
|
11
|
+
contents: read
|
|
12
|
+
|
|
13
|
+
jobs:
|
|
14
|
+
generate-sbom:
|
|
15
|
+
runs-on: ubuntu-latest
|
|
16
|
+
steps:
|
|
17
|
+
- name: Checkout repository
|
|
18
|
+
uses: actions/checkout@v4
|
|
19
|
+
|
|
20
|
+
- name: Setup Node.js
|
|
21
|
+
uses: actions/setup-node@v4
|
|
22
|
+
with:
|
|
23
|
+
node-version: 24
|
|
24
|
+
|
|
25
|
+
- name: Generate CycloneDX SBOM
|
|
26
|
+
run: node ./scripts/generate-sbom.mjs > sbom.cdx.json
|
|
27
|
+
|
|
28
|
+
- name: Upload SBOM artifact
|
|
29
|
+
uses: actions/upload-artifact@v4
|
|
30
|
+
with:
|
|
31
|
+
name: sbom-cyclonedx
|
|
32
|
+
path: sbom.cdx.json
|
package/.windsurfrules
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# AGENTIC-SENIOR-CORE DYNAMIC GOVERNANCE RULESET
|
|
2
2
|
|
|
3
|
-
Generated by Agentic-Senior-Core CLI v2.0.
|
|
3
|
+
Generated by Agentic-Senior-Core CLI v2.0.5
|
|
4
4
|
Timestamp: 2026-04-08T14:58:53.570Z
|
|
5
5
|
Selected profile: beginner
|
|
6
6
|
Selected policy file: .agent-context/policies/llm-judge-threshold.json
|
package/AGENTS.md
CHANGED
|
@@ -1,181 +1,28 @@
|
|
|
1
|
-
# AGENTS.md
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
##
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|------|-------|
|
|
30
|
-
| [`.agent-context/rules/naming-conv.md`](.agent-context/rules/naming-conv.md) | Naming conventions |
|
|
31
|
-
| [`.agent-context/rules/architecture.md`](.agent-context/rules/architecture.md) | Architecture & structure |
|
|
32
|
-
| [`.agent-context/rules/security.md`](.agent-context/rules/security.md) | Security baseline |
|
|
33
|
-
| [`.agent-context/rules/performance.md`](.agent-context/rules/performance.md) | Performance standards |
|
|
34
|
-
| [`.agent-context/rules/error-handling.md`](.agent-context/rules/error-handling.md) | Error handling |
|
|
35
|
-
| [`.agent-context/rules/testing.md`](.agent-context/rules/testing.md) | Testing standards |
|
|
36
|
-
| [`.agent-context/rules/git-workflow.md`](.agent-context/rules/git-workflow.md) | Git workflow |
|
|
37
|
-
| [`.agent-context/rules/efficiency-vs-hype.md`](.agent-context/rules/efficiency-vs-hype.md) | Dependency selection |
|
|
38
|
-
| [`.agent-context/rules/api-docs.md`](.agent-context/rules/api-docs.md) | API documentation standards |
|
|
39
|
-
| [`.agent-context/rules/microservices.md`](.agent-context/rules/microservices.md) | Microservices decision framework |
|
|
40
|
-
| [`.agent-context/rules/event-driven.md`](.agent-context/rules/event-driven.md) | Event-driven architecture |
|
|
41
|
-
| [`.agent-context/rules/database-design.md`](.agent-context/rules/database-design.md) | Database schema & queries |
|
|
42
|
-
| [`.agent-context/rules/realtime.md`](.agent-context/rules/realtime.md) | Real-time & WebSockets patterns |
|
|
43
|
-
| [`.agent-context/rules/frontend-architecture.md`](.agent-context/rules/frontend-architecture.md) | Frontend state & composition patterns |
|
|
44
|
-
|
|
45
|
-
### State Awareness (V1.4)
|
|
46
|
-
|
|
47
|
-
| File | Purpose |
|
|
48
|
-
|------|---------|
|
|
49
|
-
| [`.agent-context/state/architecture-map.md`](.agent-context/state/architecture-map.md) | Critical-path boundaries and change risk zones |
|
|
50
|
-
| [`.agent-context/state/dependency-map.md`](.agent-context/state/dependency-map.md) | Allowed module dependencies and anti-cycle guidance |
|
|
51
|
-
|
|
52
|
-
### Overrides (V1.4)
|
|
53
|
-
|
|
54
|
-
| File | Purpose |
|
|
55
|
-
|------|---------|
|
|
56
|
-
| [`.agent-override.md`](.agent-override.md) | Explicit, scoped rule exceptions with expiry and owner |
|
|
57
|
-
|
|
58
|
-
### Language Profiles (Load by Stack)
|
|
59
|
-
|
|
60
|
-
| File | When |
|
|
61
|
-
|------|------|
|
|
62
|
-
| [`.agent-context/stacks/typescript.md`](.agent-context/stacks/typescript.md) | TypeScript / Node.js projects |
|
|
63
|
-
| [`.agent-context/stacks/python.md`](.agent-context/stacks/python.md) | Python projects |
|
|
64
|
-
| [`.agent-context/stacks/java.md`](.agent-context/stacks/java.md) | Java / Kotlin projects |
|
|
65
|
-
| [`.agent-context/stacks/php.md`](.agent-context/stacks/php.md) | PHP projects |
|
|
66
|
-
| [`.agent-context/stacks/go.md`](.agent-context/stacks/go.md) | Go projects |
|
|
67
|
-
| [`.agent-context/stacks/csharp.md`](.agent-context/stacks/csharp.md) | C# / .NET projects |
|
|
68
|
-
| [`.agent-context/stacks/rust.md`](.agent-context/stacks/rust.md) | Rust projects |
|
|
69
|
-
| [`.agent-context/stacks/ruby.md`](.agent-context/stacks/ruby.md) | Ruby on Rails projects |
|
|
70
|
-
|
|
71
|
-
### Blueprints (Load When Scaffolding)
|
|
72
|
-
|
|
73
|
-
| File | Creates |
|
|
74
|
-
|------|---------|
|
|
75
|
-
| [`.agent-context/blueprints/api-nextjs.md`](.agent-context/blueprints/api-nextjs.md) | Next.js API project |
|
|
76
|
-
| [`.agent-context/blueprints/nestjs-logic.md`](.agent-context/blueprints/nestjs-logic.md) | NestJS module |
|
|
77
|
-
| [`.agent-context/blueprints/fastapi-service.md`](.agent-context/blueprints/fastapi-service.md) | FastAPI service |
|
|
78
|
-
| [`.agent-context/blueprints/laravel-api.md`](.agent-context/blueprints/laravel-api.md) | Laravel API |
|
|
79
|
-
| [`.agent-context/blueprints/spring-boot-api.md`](.agent-context/blueprints/spring-boot-api.md) | Spring Boot API |
|
|
80
|
-
| [`.agent-context/blueprints/go-service.md`](.agent-context/blueprints/go-service.md) | Go chi HTTP service |
|
|
81
|
-
| [`.agent-context/blueprints/aspnet-api.md`](.agent-context/blueprints/aspnet-api.md) | ASP.NET Minimal API |
|
|
82
|
-
| [`.agent-context/blueprints/ci-github-actions.md`](.agent-context/blueprints/ci-github-actions.md) | GitHub Actions pipeline |
|
|
83
|
-
| [`.agent-context/blueprints/ci-gitlab.md`](.agent-context/blueprints/ci-gitlab.md) | GitLab CI pipeline |
|
|
84
|
-
| [`.agent-context/blueprints/observability.md`](.agent-context/blueprints/observability.md) | OpenTelemetry stack |
|
|
85
|
-
| [`.agent-context/blueprints/graphql-grpc-api.md`](.agent-context/blueprints/graphql-grpc-api.md) | GraphQL / gRPC API definitions |
|
|
86
|
-
| [`.agent-context/blueprints/infrastructure-as-code.md`](.agent-context/blueprints/infrastructure-as-code.md) | Infrastructure as Code pipeline |
|
|
87
|
-
| [`.agent-context/blueprints/kubernetes-manifests.md`](.agent-context/blueprints/kubernetes-manifests.md) | Kubernetes manifests structure |
|
|
88
|
-
### Domain Skills (Load by Context)
|
|
89
|
-
|
|
90
|
-
Domain expertise packs to auto-load when relevant:
|
|
91
|
-
|
|
92
|
-
| File | Domain | When Loaded |
|
|
93
|
-
|------|--------|-------------|
|
|
94
|
-
| [`.agent-context/skills/backend.md`](.agent-context/skills/backend.md) | Backend architecture & services | Any backend project or service design |
|
|
95
|
-
| [`.agent-context/skills/frontend.md`](.agent-context/skills/frontend.md) | Frontend UI/UX & state management | Any frontend or web app project |
|
|
96
|
-
| [`.agent-context/skills/cli.md`](.agent-context/skills/cli.md) | CLI tool design & scripting | Any CLI or automation tool |
|
|
97
|
-
| [`.agent-context/skills/distribution.md`](.agent-context/skills/distribution.md) | Packaging, deployment & release | Any publish/deploy/package scenario |
|
|
98
|
-
| [`.agent-context/skills/fullstack.md`](.agent-context/skills/fullstack.md) | Full-stack integration patterns | Any full-stack feature |
|
|
99
|
-
| [`.agent-context/skills/review-quality.md`](.agent-context/skills/review-quality.md) | Code review & quality standards | Any code review or QA gate |
|
|
100
|
-
|
|
101
|
-
### Prompts (Specialized Request Templates)
|
|
102
|
-
|
|
103
|
-
| File | Purpose | When Used |
|
|
104
|
-
|------|---------|----------|
|
|
105
|
-
| [`.agent-context/prompts/init-project.md`](.agent-context/prompts/init-project.md) | Project initialization & scaffolding | When user says "create new project" |
|
|
106
|
-
| [`.agent-context/prompts/refactor.md`](.agent-context/prompts/refactor.md) | Code refactoring with safety | When user says "refactor" or "improve" |
|
|
107
|
-
| [`.agent-context/prompts/review-code.md`](.agent-context/prompts/review-code.md) | Architectural code review | When user says "review this" |
|
|
108
|
-
|
|
109
|
-
### Team Profiles (Governance Defaults)
|
|
110
|
-
|
|
111
|
-
| File | Profile | Default Stack | CI Guardrails |
|
|
112
|
-
|------|---------|---------------|---------------|
|
|
113
|
-
| [`.agent-context/profiles/platform.md`](.agent-context/profiles/platform.md) | **Platform** — Shared infrastructure team | Go | Strict (critical, high) |
|
|
114
|
-
| [`.agent-context/profiles/regulated.md`](.agent-context/profiles/regulated.md) | **Regulated** — Financial/healthcare compliance | TypeScript + Java | Blocking (all severities) |
|
|
115
|
-
| [`.agent-context/profiles/startup.md`](.agent-context/profiles/startup.md) | **Startup** — Speed + pragmatism | TypeScript + Next.js | Permissive (critical only) |
|
|
116
|
-
|
|
117
|
-
### Policies (Governance Rules)
|
|
118
|
-
|
|
119
|
-
| File | Scope |
|
|
120
|
-
|------|-------|
|
|
121
|
-
| [`.agent-context/policies/llm-judge-threshold.json`](.agent-context/policies/llm-judge-threshold.json) | LLM quality gates & skill tier thresholds |
|
|
122
|
-
### Review Checklists (Load Before Completion)
|
|
123
|
-
|
|
124
|
-
| File | Purpose |
|
|
125
|
-
|------|---------|
|
|
126
|
-
| [`.agent-context/review-checklists/pr-checklist.md`](.agent-context/review-checklists/pr-checklist.md) | Pre-merge quality gate |
|
|
127
|
-
| [`.agent-context/review-checklists/security-audit.md`](.agent-context/review-checklists/security-audit.md) | Security review |
|
|
128
|
-
| [`.agent-context/review-checklists/performance-audit.md`](.agent-context/review-checklists/performance-audit.md) | Performance review |
|
|
129
|
-
| [`.agent-context/review-checklists/architecture-review.md`](.agent-context/review-checklists/architecture-review.md) | Architecture review |
|
|
130
|
-
|
|
131
|
-
## The Reasoning Clause (MANDATORY)
|
|
132
|
-
Every time you reject a code block, suggest a change, or enforce a rule, you MUST provide a Reasoning Chain:
|
|
133
|
-
|
|
134
|
-
```
|
|
135
|
-
REASONING CHAIN
|
|
136
|
-
Problem: [WHY the user's current approach/request is dangerous or unprofessional]
|
|
137
|
-
Solution: [The improved, production-grade approach]
|
|
138
|
-
Why Better: [WHY this is more professional — teach the human]
|
|
139
|
-
```
|
|
140
|
-
|
|
141
|
-
## Zero Tolerance & Rejection Protocol
|
|
142
|
-
If the user asks for "quick and dirty" code, skipping tests, or ignoring validation, you MUST politely but firmly refuse. Explain that today's hack is tomorrow's production incident. You do NOT tolerate shortcuts.
|
|
143
|
-
|
|
144
|
-
### The Security Halt
|
|
145
|
-
If you detect critical security vulnerabilities (e.g., hardcoded secrets, SQL injection, bypassing auth), you MUST halt feature development and refuse to proceed until the vulnerability is patched.
|
|
146
|
-
|
|
147
|
-
### The "Plan First" Rule
|
|
148
|
-
For any non-trivial request, do NOT generate full code immediately. You MUST first provide a bulleted "Implementation Plan" outlining the file structure, design patterns to be used, and security considerations. End your response with: *"Do you approve this plan? If yes, I will generate the code."*
|
|
149
|
-
|
|
150
|
-
### Self-Correction Protocol
|
|
151
|
-
Before outputting your final code, silently run a self-review against our Clean Code and Security standards. If your generated code contains `any` types, swallowed errors, or unvalidated inputs, CORRECT IT before showing it to the user. Never output code you wouldn't approve in a PR.
|
|
152
|
-
|
|
153
|
-
### Dependency Defense
|
|
154
|
-
If the user asks to install a new library, or if you feel the need to use one, evaluate it against the "stdlib-first" rule. If the functionality can be implemented safely in under 20 lines of code, write it yourself. If a dependency is strictly necessary, you MUST justify it by providing its bundle size, maintenance status, and why the standard library is insufficient.
|
|
155
|
-
|
|
156
|
-
## Absolute Clean Code Laws
|
|
157
|
-
1. **No Lazy Naming:** NEVER use generic variables like `data`, `res`, `temp`, `val`, `x`. Variables must be nouns answering "WHAT is this?". Functions must start with a verb (e.g., `validatePayment`). Booleans must use `is`/`has`/`can`/`should` prefixes.
|
|
158
|
-
2. **No 'any' or 'magic':** If using TypeScript/Python, the `any` type is completely banned. All external data MUST be validated at the boundary using schemas (like Zod or Pydantic) before touching business logic.
|
|
159
|
-
3. **Layer Separation:** Business logic does NOT touch HTTP. Database logic does NOT leak into services. No exceptions.
|
|
160
|
-
4. **Context First:** NEVER write code without checking `.agent-context/rules/` first.
|
|
161
|
-
5. **No Blind Dependencies:** NEVER introduce dependencies without justification.
|
|
162
|
-
|
|
163
|
-
## Definition of Done
|
|
164
|
-
**NEVER** declare a task "done" or ready for review without explicitly running and passing `.agent-context/review-checklists/pr-checklist.md`.
|
|
165
|
-
|
|
166
|
-
---
|
|
167
|
-
|
|
168
|
-
## Knowledge Inventory Checklist
|
|
169
|
-
|
|
170
|
-
**AUDIT REQUIREMENT**: Every agent session MUST verify all 8 knowledge layers are loaded:
|
|
171
|
-
|
|
172
|
-
- [ ] **Layer 1: Rules** (14 files) — Mandatory governance & clean code standards
|
|
173
|
-
- [ ] **Layer 2: Stacks** (10 profiles) — Language-specific tooling & conventions
|
|
174
|
-
- [ ] **Layer 3: Blueprints** (14 templates) — Scaffolding & architecture patterns
|
|
175
|
-
- [ ] **Layer 4: Skills** (6 packs) — Domain expertise by scenario
|
|
176
|
-
- [ ] **Layer 5: Prompts** (3 templates) — Request-specific workflows
|
|
177
|
-
- [ ] **Layer 6: Profiles** (3 teams) — Governance defaults by org type
|
|
178
|
-
- [ ] **Layer 7: State** (benchmarks, maps) — Codebase-aware decisions
|
|
179
|
-
- [ ] **Layer 8: Policies** (thresholds) — Enforcement & quality gates
|
|
180
|
-
|
|
181
|
-
WARNING: If any layer is missing, this indicates incomplete injection. Report to maintain context integrity.
|
|
1
|
+
# AGENTS.md - Thin Adapter
|
|
2
|
+
|
|
3
|
+
Adapter Mode: thin
|
|
4
|
+
Adapter Source: .instructions.md
|
|
5
|
+
Canonical Snapshot SHA256: ed18aa02954cf7e669d2ade4ea8c36c382bcae66e12b731c6e1ea69a59742480
|
|
6
|
+
|
|
7
|
+
This file is an adapter entrypoint for agent discovery.
|
|
8
|
+
The canonical policy source is [.instructions.md](.instructions.md).
|
|
9
|
+
|
|
10
|
+
## Mandatory Bootstrap Chain
|
|
11
|
+
|
|
12
|
+
1. Load [.instructions.md](.instructions.md) first as the single source of truth.
|
|
13
|
+
2. Read baseline governance from [.agent-context/rules/](.agent-context/rules).
|
|
14
|
+
3. Load language conventions from [.agent-context/stacks/](.agent-context/stacks).
|
|
15
|
+
4. Load scaffolding references from [.agent-context/blueprints/](.agent-context/blueprints) when creating modules/projects.
|
|
16
|
+
5. Load domain packs from [.agent-context/skills/](.agent-context/skills).
|
|
17
|
+
6. Apply request templates from [.agent-context/prompts/](.agent-context/prompts).
|
|
18
|
+
7. Apply team governance defaults from [.agent-context/profiles/](.agent-context/profiles).
|
|
19
|
+
8. Read change-risk maps from [.agent-context/state/](.agent-context/state).
|
|
20
|
+
9. Enforce policy thresholds from [.agent-context/policies/](.agent-context/policies).
|
|
21
|
+
|
|
22
|
+
## Trigger Rules
|
|
23
|
+
|
|
24
|
+
- New project or module requests: propose architecture first and wait for approval.
|
|
25
|
+
- Refactor or fix requests: propose plan first, then execute safely.
|
|
26
|
+
- Completion: run [.agent-context/review-checklists/pr-checklist.md](.agent-context/review-checklists/pr-checklist.md) before declaring done.
|
|
27
|
+
|
|
28
|
+
If this adapter drifts from canonical behavior, refresh from [.instructions.md](.instructions.md) and update the hash metadata.
|