@ryuenn3123/agentic-senior-core 3.0.15 → 3.0.16
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/bootstrap-design.md +25 -18
- package/.agent-context/rules/architecture.md +13 -0
- package/.agent-context/state/memory-continuity-benchmark.json +1 -1
- package/.agent-context/state/onboarding-report.json +0 -1
- package/.cursorrules +66 -29
- package/.windsurfrules +66 -29
- package/lib/cli/architect.mjs +71 -784
- package/lib/cli/commands/init.mjs +28 -98
- package/lib/cli/commands/optimize.mjs +0 -4
- package/lib/cli/commands/upgrade.mjs +2 -5
- package/lib/cli/compiler.mjs +1 -11
- package/lib/cli/constants.mjs +3 -73
- package/lib/cli/detector/design-evidence.mjs +427 -0
- package/lib/cli/detector.mjs +13 -116
- package/lib/cli/init-options.mjs +0 -118
- package/lib/cli/project-scaffolder/constants.mjs +67 -0
- package/lib/cli/project-scaffolder/design-contract.mjs +554 -0
- package/lib/cli/project-scaffolder/discovery.mjs +315 -0
- package/lib/cli/project-scaffolder/prompt-builders.mjs +196 -0
- package/lib/cli/project-scaffolder/storage.mjs +154 -0
- package/lib/cli/project-scaffolder.mjs +32 -1210
- package/lib/cli/utils.mjs +2 -11
- package/package.json +1 -1
- package/scripts/frontend-usability-audit.mjs +53 -0
- package/scripts/validate/config.mjs +401 -0
- package/scripts/validate/coverage-checks.mjs +429 -0
- package/scripts/validate.mjs +44 -854
- package/lib/cli/init-architecture-flow.mjs +0 -233
- package/lib/cli/profile-packs.mjs +0 -108
|
@@ -17,18 +17,19 @@ The agent must:
|
|
|
17
17
|
1. Read [AGENTS.md](../../AGENTS.md) for project context and team roles.
|
|
18
18
|
2. Read [frontend-architecture.md](../rules/frontend-architecture.md) and apply its UI consistency guardrails.
|
|
19
19
|
3. Use repository evidence from [.agent-context/state/onboarding-report.json](../state/onboarding-report.json), existing UI code, product copy, route names, component names, and any existing `docs/*` project docs to infer architecture and product background.
|
|
20
|
-
4.
|
|
21
|
-
5.
|
|
22
|
-
6. If
|
|
23
|
-
7.
|
|
24
|
-
8.
|
|
25
|
-
9.
|
|
26
|
-
10.
|
|
27
|
-
11.
|
|
28
|
-
12.
|
|
29
|
-
13.
|
|
30
|
-
14.
|
|
31
|
-
15.
|
|
20
|
+
4. If `repoEvidence.designEvidenceSummary` exists, treat it as the machine-readable snapshot of the current visual system, token bypasses, and UI surface inventory before proposing a new direction.
|
|
21
|
+
5. When analyzing an existing UI codebase, inspect low-cost evidence such as hardcoded color density, prop-drilling candidates, breakpoint chaos, CSS variable patterns, and component surface inventory before declaring the current design direction healthy.
|
|
22
|
+
6. If [docs/DESIGN.md](../../docs/DESIGN.md) or `docs/design-intent.json` already exists, check for drift and improve them instead of rewriting blindly.
|
|
23
|
+
7. If context is incomplete, write explicit assumptions and reversible design bets instead of defaulting to generic SaaS output.
|
|
24
|
+
8. Explore multiple plausible design directions internally, then commit to one cohesive direction with clear rationale tied to the product context and at least one memorable signature move.
|
|
25
|
+
9. Treat any example structure or stylistic inspiration as non-normative. Use it only to judge depth and clarity, never to copy a visual language directly.
|
|
26
|
+
10. All references to docs or rules must be clickable markdown links.
|
|
27
|
+
11. Responsive work must adapt layout, navigation, density, and task order across viewports. Shrinking desktop layouts is not enough.
|
|
28
|
+
12. Motion can be bold, cinematic, or highly expressive when it improves memorability, hierarchy, feedback, or perceived product quality. Do not flatten everything into static screens. Optimize motion first, and only reject it when it harms clarity, accessibility, or runtime performance.
|
|
29
|
+
13. Define how core components morph across interaction states and viewports. Component quality is not only visual styling; it includes behavior under hover, focus, active, loading, error, and constrained layouts.
|
|
30
|
+
14. Do not reuse a color palette, component skin, or motion signature from prior chats, memories, or unrelated projects unless current repo evidence or the active brand brief explicitly asks for that continuity.
|
|
31
|
+
15. Treat prior website memory, old portfolio styles, and remembered screenshots as tainted context unless the user explicitly asks to continue or evolve that specific visual system.
|
|
32
|
+
16. Do not default to balanced card grids, soft startup gradients, safe centered heroes, or neutral dashboard chrome unless the product context explicitly justifies them.
|
|
32
33
|
|
|
33
34
|
Required `docs/DESIGN.md` sections:
|
|
34
35
|
1. Design Intent and Product Personality
|
|
@@ -37,12 +38,13 @@ Required `docs/DESIGN.md` sections:
|
|
|
37
38
|
4. Color Science and Semantic Roles
|
|
38
39
|
5. Typographic Engineering and Hierarchy
|
|
39
40
|
6. Spacing, Layout Rhythm, and Density Strategy
|
|
40
|
-
7.
|
|
41
|
-
8.
|
|
42
|
-
9.
|
|
43
|
-
10.
|
|
44
|
-
11.
|
|
45
|
-
12.
|
|
41
|
+
7. Token Architecture and Alias Strategy
|
|
42
|
+
8. Responsive Strategy and Cross-Viewport Adaptation Matrix
|
|
43
|
+
9. Interaction, Motion, and Feedback Rules
|
|
44
|
+
10. Component Language, Morphology, and Shared Patterns
|
|
45
|
+
11. Accessibility Non-Negotiables
|
|
46
|
+
12. Anti-Patterns to Avoid
|
|
47
|
+
13. Implementation Notes for Future UI Tasks
|
|
46
48
|
|
|
47
49
|
Required `docs/design-intent.json` fields:
|
|
48
50
|
- `mode`
|
|
@@ -53,6 +55,7 @@ Required `docs/design-intent.json` fields:
|
|
|
53
55
|
- `antiAdjectives`
|
|
54
56
|
- `visualDirection`
|
|
55
57
|
- `mathSystems`
|
|
58
|
+
- `tokenSystem`
|
|
56
59
|
- `colorTruth`
|
|
57
60
|
- `crossViewportAdaptation`
|
|
58
61
|
- `motionSystem`
|
|
@@ -62,12 +65,16 @@ Required `docs/design-intent.json` fields:
|
|
|
62
65
|
- `validationHints`
|
|
63
66
|
- `requiredDesignSections`
|
|
64
67
|
- `implementation`
|
|
68
|
+
- `repoEvidence` when onboarding or detector evidence exists
|
|
65
69
|
|
|
66
70
|
Output:
|
|
67
71
|
- Create or update both `docs/DESIGN.md` and `docs/design-intent.json`.
|
|
68
72
|
- Keep both files synchronized: the markdown explains the why, the JSON captures the contract in machine-readable form.
|
|
73
|
+
- `docs/design-intent.json` must define a real token system, not just loose style notes. Include primitive, semantic, and component layers plus aliasing rules and naming constraints.
|
|
69
74
|
- `docs/design-intent.json` must include deterministic fields for `colorTruth.format`, `colorTruth.allowHexDerivatives`, and `crossViewportAdaptation.mutationRules.mobile/tablet/desktop`.
|
|
70
75
|
- `docs/design-intent.json` must also include `motionSystem` and `componentMorphology` so future UI work preserves state behavior and purposeful motion without collapsing into generic static output.
|
|
76
|
+
- If onboarding or detector evidence exists, preserve it under `repoEvidence.designEvidenceSummary` instead of throwing away the machine-readable snapshot of the current UI system.
|
|
77
|
+
- Token intent must stay structure-first: primitive tokens hold raw values, semantic tokens carry purpose, and component tokens consume semantic tokens instead of bypassing them with raw values.
|
|
71
78
|
- Color intent must be defined in a perceptual or relational color model first. Hex values may appear only as implementation derivatives.
|
|
72
79
|
- The contract must encode viewport mutation rules, not just breakpoint names.
|
|
73
80
|
- Motion guidance must preserve creativity: allow meaningful animation, define reduced-motion behavior, and optimize choreography instead of suppressing it by default.
|
|
@@ -167,6 +167,19 @@ If these triggers don't exist, microservices are **premature complexity**.
|
|
|
167
167
|
|
|
168
168
|
## Project Structure: Feature-Based Grouping
|
|
169
169
|
|
|
170
|
+
## Code Organization and File Size Discipline
|
|
171
|
+
|
|
172
|
+
Keep modules small enough to understand in one focused read.
|
|
173
|
+
|
|
174
|
+
- Prefer grouping by responsibility, not by convenience.
|
|
175
|
+
- One folder should represent one clear area of responsibility.
|
|
176
|
+
- Split discovery, validation, prompt building, persistence, and contract logic into separate modules when they grow.
|
|
177
|
+
- Avoid mixed-purpose mega-files that combine constants, parsing, orchestration, validation, and I/O in one place.
|
|
178
|
+
- Treat files above roughly 1000 lines as a refactor trigger, not a badge of completeness.
|
|
179
|
+
- If a file grows past that threshold, extract stable submodules with clear names before adding more behavior.
|
|
180
|
+
- Preserve one public entrypoint when it helps callers, but move the real implementation behind focused modules.
|
|
181
|
+
- Tests may aggregate scenarios, but shared helpers and repeated setup should move into dedicated support files when the suite becomes hard to scan.
|
|
182
|
+
|
|
170
183
|
### ❌ BANNED: Technical Grouping
|
|
171
184
|
```
|
|
172
185
|
src/
|
package/.cursorrules
CHANGED
|
@@ -1,49 +1,86 @@
|
|
|
1
1
|
# AGENTIC-SENIOR-CORE DYNAMIC GOVERNANCE RULESET
|
|
2
2
|
|
|
3
|
-
Generated by Agentic-Senior-Core CLI v3.0.
|
|
4
|
-
Timestamp: 2026-04-
|
|
5
|
-
Selected profile: beginner
|
|
3
|
+
Generated by Agentic-Senior-Core CLI v3.0.16
|
|
4
|
+
Timestamp: 2026-04-22T12:30:18.799Z
|
|
6
5
|
Selected policy file: .agent-context/policies/llm-judge-threshold.json
|
|
7
6
|
|
|
8
7
|
## GOVERNANCE PRECEDENCE
|
|
9
8
|
1. Follow this compiled rulebook as the primary source.
|
|
10
9
|
2. Resolve exceptions from .agent-override.md only when explicitly defined.
|
|
11
10
|
3. Use architecture-map.md and dependency-map.md as change safety boundaries.
|
|
12
|
-
4. Enforce pr-checklist.md
|
|
11
|
+
4. Enforce pr-checklist.md before declaring completion.
|
|
12
|
+
|
|
13
|
+
## OVERRIDE PROTOCOL
|
|
14
|
+
- Default: strict compliance with this file.
|
|
15
|
+
- Exception path: .agent-override.md may explicitly allow narrow deviations.
|
|
16
|
+
- Scope policy: every override must include module scope, rationale, and expiry date.
|
|
13
17
|
|
|
14
18
|
## BOOTSTRAP CHAIN (MANDATORY)
|
|
15
19
|
Load every layer before responding. Do not skip steps:
|
|
16
20
|
1. .agent-context/rules/
|
|
17
|
-
2.
|
|
18
|
-
3.
|
|
19
|
-
4.
|
|
20
|
-
5. .agent-context/
|
|
21
|
-
6. .agent-context/
|
|
22
|
-
7.
|
|
23
|
-
8. docs/ project context (or bootstrap prompts when docs are not materialized)
|
|
21
|
+
2. Resolve architecture and stack signals from project context and live evidence.
|
|
22
|
+
3. .agent-context/prompts/
|
|
23
|
+
4. Dynamic architecture and stack signals (from project context + research evidence)
|
|
24
|
+
5. .agent-context/state/
|
|
25
|
+
6. .agent-context/policies/llm-judge-threshold.json
|
|
26
|
+
7. docs/ project context (or bootstrap prompts when docs are not materialized)
|
|
24
27
|
|
|
25
|
-
|
|
26
|
-
|
|
28
|
+
Project-specific compiled snapshot: .agent-instructions.md
|
|
29
|
+
Compiled adapter entrypoints: .cursorrules, .windsurfrules, .clauderc, .gemini/instructions.md, .github/copilot-instructions.md
|
|
27
30
|
Canonical baseline: .instructions.md
|
|
28
|
-
|
|
29
31
|
## LAYER 1: UNIVERSAL RULES (MANDATORY)
|
|
30
|
-
Read every file under .agent-context/rules/ before implementation
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
32
|
+
Read every file under .agent-context/rules/ before implementation:
|
|
33
|
+
1. .agent-context/rules/api-docs.md
|
|
34
|
+
2. .agent-context/rules/architecture.md
|
|
35
|
+
3. .agent-context/rules/database-design.md
|
|
36
|
+
4. .agent-context/rules/docker-runtime.md
|
|
37
|
+
5. .agent-context/rules/efficiency-vs-hype.md
|
|
38
|
+
6. .agent-context/rules/error-handling.md
|
|
39
|
+
7. .agent-context/rules/event-driven.md
|
|
40
|
+
8. .agent-context/rules/frontend-architecture.md
|
|
41
|
+
9. .agent-context/rules/git-workflow.md
|
|
42
|
+
10. .agent-context/rules/microservices.md
|
|
43
|
+
11. .agent-context/rules/naming-conv.md
|
|
44
|
+
12. .agent-context/rules/performance.md
|
|
45
|
+
13. .agent-context/rules/realtime.md
|
|
46
|
+
14. .agent-context/rules/security.md
|
|
47
|
+
15. .agent-context/rules/testing.md
|
|
41
48
|
|
|
49
|
+
Conflict resolution: prioritize data safety and API contract integrity first, then writing polish.
|
|
50
|
+
## LAYER 2: STACK PROFILE (typescript.md)
|
|
51
|
+
Source: dynamic-research-signal (static stack profile file not required)
|
|
52
|
+
Summary: Dynamic stack strategy signal for typescript.
|
|
53
|
+
Load this stack profile to enforce language-specific conventions.
|
|
54
|
+
## LAYER 2 POLICY: LAZY RULE LOADING
|
|
55
|
+
Primary stack strategy is always loaded for this project: typescript.md (dynamic mode)
|
|
56
|
+
Additional stack profiles load only when explicitly selected or detected.
|
|
57
|
+
Load stack guidance only when task scope touches that stack.
|
|
58
|
+
Avoid eager loading unrelated stack profiles to prevent instruction conflicts.
|
|
59
|
+
## LAYER 5: EXECUTION PROMPTS AND UI TRIGGERS
|
|
60
|
+
Load these prompt contracts only when their trigger matches the user request:
|
|
61
|
+
1. .agent-context/prompts/init-project.md -> create, build, new project, scaffold
|
|
62
|
+
2. .agent-context/prompts/refactor.md -> refactor, improve, clean up, fix
|
|
63
|
+
3. .agent-context/prompts/review-code.md -> review, audit, check, analyze
|
|
64
|
+
4. .agent-context/prompts/bootstrap-design.md -> ui, ux, layout, screen, tailwind, frontend, redesign
|
|
65
|
+
UI trigger policy:
|
|
66
|
+
- Load .agent-context/prompts/bootstrap-design.md and .agent-context/rules/frontend-architecture.md first.
|
|
67
|
+
- Keep UI-only requests context-isolated and do not eagerly load backend-only rules such as database-design.md, docker-runtime.md, or microservices.md unless the task explicitly crosses those boundaries.
|
|
68
|
+
- For UI scope, materialize docs/DESIGN.md and docs/design-intent.json before implementing UI surfaces.
|
|
69
|
+
## LAYER 3: BLUEPRINT PROFILE (api-nextjs.md)
|
|
70
|
+
Source: dynamic-research-signal (static blueprint profile file not required)
|
|
71
|
+
Summary: Dynamic architecture strategy signal for api nextjs.
|
|
72
|
+
Load this blueprint when scaffolding or changing architecture boundaries.
|
|
73
|
+
## LAYER 3B: CI/CD GUARDRAILS
|
|
74
|
+
Load these CI blueprints when pipeline or release logic is touched:
|
|
75
|
+
1. ci-github-actions.md (dynamic CI policy signal)
|
|
76
|
+
2. ci-gitlab.md (dynamic CI policy signal)
|
|
77
|
+
## LAYER 7: STATE AWARENESS (MANDATORY)
|
|
78
|
+
Load these files before touching critical paths:
|
|
79
|
+
1. .agent-context/state/architecture-map.md
|
|
80
|
+
2. .agent-context/state/dependency-map.md
|
|
81
|
+
Use these maps to prevent unsafe cross-module changes.
|
|
42
82
|
## REVIEW CHECKLISTS (MANDATORY)
|
|
43
83
|
1. .agent-context/review-checklists/pr-checklist.md
|
|
44
84
|
2. .agent-context/review-checklists/architecture-review.md
|
|
85
|
+
Security and performance checks are consolidated inside these two checklist files.
|
|
45
86
|
Do not claim done before checklist pass.
|
|
46
|
-
|
|
47
|
-
## UNIVERSAL SOP HARD GATES
|
|
48
|
-
- Stop coding if docs/architecture-decision-record.md (or docs/Architecture-Decision-Record.md) is missing.
|
|
49
|
-
- For UI scope, stop coding if docs/DESIGN.md or docs/design-intent.json is missing.
|
package/.windsurfrules
CHANGED
|
@@ -1,49 +1,86 @@
|
|
|
1
1
|
# AGENTIC-SENIOR-CORE DYNAMIC GOVERNANCE RULESET
|
|
2
2
|
|
|
3
|
-
Generated by Agentic-Senior-Core CLI v3.0.
|
|
4
|
-
Timestamp: 2026-04-
|
|
5
|
-
Selected profile: beginner
|
|
3
|
+
Generated by Agentic-Senior-Core CLI v3.0.16
|
|
4
|
+
Timestamp: 2026-04-22T12:30:18.799Z
|
|
6
5
|
Selected policy file: .agent-context/policies/llm-judge-threshold.json
|
|
7
6
|
|
|
8
7
|
## GOVERNANCE PRECEDENCE
|
|
9
8
|
1. Follow this compiled rulebook as the primary source.
|
|
10
9
|
2. Resolve exceptions from .agent-override.md only when explicitly defined.
|
|
11
10
|
3. Use architecture-map.md and dependency-map.md as change safety boundaries.
|
|
12
|
-
4. Enforce pr-checklist.md
|
|
11
|
+
4. Enforce pr-checklist.md before declaring completion.
|
|
12
|
+
|
|
13
|
+
## OVERRIDE PROTOCOL
|
|
14
|
+
- Default: strict compliance with this file.
|
|
15
|
+
- Exception path: .agent-override.md may explicitly allow narrow deviations.
|
|
16
|
+
- Scope policy: every override must include module scope, rationale, and expiry date.
|
|
13
17
|
|
|
14
18
|
## BOOTSTRAP CHAIN (MANDATORY)
|
|
15
19
|
Load every layer before responding. Do not skip steps:
|
|
16
20
|
1. .agent-context/rules/
|
|
17
|
-
2.
|
|
18
|
-
3.
|
|
19
|
-
4.
|
|
20
|
-
5. .agent-context/
|
|
21
|
-
6. .agent-context/
|
|
22
|
-
7.
|
|
23
|
-
8. docs/ project context (or bootstrap prompts when docs are not materialized)
|
|
21
|
+
2. Resolve architecture and stack signals from project context and live evidence.
|
|
22
|
+
3. .agent-context/prompts/
|
|
23
|
+
4. Dynamic architecture and stack signals (from project context + research evidence)
|
|
24
|
+
5. .agent-context/state/
|
|
25
|
+
6. .agent-context/policies/llm-judge-threshold.json
|
|
26
|
+
7. docs/ project context (or bootstrap prompts when docs are not materialized)
|
|
24
27
|
|
|
25
|
-
|
|
26
|
-
|
|
28
|
+
Project-specific compiled snapshot: .agent-instructions.md
|
|
29
|
+
Compiled adapter entrypoints: .cursorrules, .windsurfrules, .clauderc, .gemini/instructions.md, .github/copilot-instructions.md
|
|
27
30
|
Canonical baseline: .instructions.md
|
|
28
|
-
|
|
29
31
|
## LAYER 1: UNIVERSAL RULES (MANDATORY)
|
|
30
|
-
Read every file under .agent-context/rules/ before implementation
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
32
|
+
Read every file under .agent-context/rules/ before implementation:
|
|
33
|
+
1. .agent-context/rules/api-docs.md
|
|
34
|
+
2. .agent-context/rules/architecture.md
|
|
35
|
+
3. .agent-context/rules/database-design.md
|
|
36
|
+
4. .agent-context/rules/docker-runtime.md
|
|
37
|
+
5. .agent-context/rules/efficiency-vs-hype.md
|
|
38
|
+
6. .agent-context/rules/error-handling.md
|
|
39
|
+
7. .agent-context/rules/event-driven.md
|
|
40
|
+
8. .agent-context/rules/frontend-architecture.md
|
|
41
|
+
9. .agent-context/rules/git-workflow.md
|
|
42
|
+
10. .agent-context/rules/microservices.md
|
|
43
|
+
11. .agent-context/rules/naming-conv.md
|
|
44
|
+
12. .agent-context/rules/performance.md
|
|
45
|
+
13. .agent-context/rules/realtime.md
|
|
46
|
+
14. .agent-context/rules/security.md
|
|
47
|
+
15. .agent-context/rules/testing.md
|
|
41
48
|
|
|
49
|
+
Conflict resolution: prioritize data safety and API contract integrity first, then writing polish.
|
|
50
|
+
## LAYER 2: STACK PROFILE (typescript.md)
|
|
51
|
+
Source: dynamic-research-signal (static stack profile file not required)
|
|
52
|
+
Summary: Dynamic stack strategy signal for typescript.
|
|
53
|
+
Load this stack profile to enforce language-specific conventions.
|
|
54
|
+
## LAYER 2 POLICY: LAZY RULE LOADING
|
|
55
|
+
Primary stack strategy is always loaded for this project: typescript.md (dynamic mode)
|
|
56
|
+
Additional stack profiles load only when explicitly selected or detected.
|
|
57
|
+
Load stack guidance only when task scope touches that stack.
|
|
58
|
+
Avoid eager loading unrelated stack profiles to prevent instruction conflicts.
|
|
59
|
+
## LAYER 5: EXECUTION PROMPTS AND UI TRIGGERS
|
|
60
|
+
Load these prompt contracts only when their trigger matches the user request:
|
|
61
|
+
1. .agent-context/prompts/init-project.md -> create, build, new project, scaffold
|
|
62
|
+
2. .agent-context/prompts/refactor.md -> refactor, improve, clean up, fix
|
|
63
|
+
3. .agent-context/prompts/review-code.md -> review, audit, check, analyze
|
|
64
|
+
4. .agent-context/prompts/bootstrap-design.md -> ui, ux, layout, screen, tailwind, frontend, redesign
|
|
65
|
+
UI trigger policy:
|
|
66
|
+
- Load .agent-context/prompts/bootstrap-design.md and .agent-context/rules/frontend-architecture.md first.
|
|
67
|
+
- Keep UI-only requests context-isolated and do not eagerly load backend-only rules such as database-design.md, docker-runtime.md, or microservices.md unless the task explicitly crosses those boundaries.
|
|
68
|
+
- For UI scope, materialize docs/DESIGN.md and docs/design-intent.json before implementing UI surfaces.
|
|
69
|
+
## LAYER 3: BLUEPRINT PROFILE (api-nextjs.md)
|
|
70
|
+
Source: dynamic-research-signal (static blueprint profile file not required)
|
|
71
|
+
Summary: Dynamic architecture strategy signal for api nextjs.
|
|
72
|
+
Load this blueprint when scaffolding or changing architecture boundaries.
|
|
73
|
+
## LAYER 3B: CI/CD GUARDRAILS
|
|
74
|
+
Load these CI blueprints when pipeline or release logic is touched:
|
|
75
|
+
1. ci-github-actions.md (dynamic CI policy signal)
|
|
76
|
+
2. ci-gitlab.md (dynamic CI policy signal)
|
|
77
|
+
## LAYER 7: STATE AWARENESS (MANDATORY)
|
|
78
|
+
Load these files before touching critical paths:
|
|
79
|
+
1. .agent-context/state/architecture-map.md
|
|
80
|
+
2. .agent-context/state/dependency-map.md
|
|
81
|
+
Use these maps to prevent unsafe cross-module changes.
|
|
42
82
|
## REVIEW CHECKLISTS (MANDATORY)
|
|
43
83
|
1. .agent-context/review-checklists/pr-checklist.md
|
|
44
84
|
2. .agent-context/review-checklists/architecture-review.md
|
|
85
|
+
Security and performance checks are consolidated inside these two checklist files.
|
|
45
86
|
Do not claim done before checklist pass.
|
|
46
|
-
|
|
47
|
-
## UNIVERSAL SOP HARD GATES
|
|
48
|
-
- Stop coding if docs/architecture-decision-record.md (or docs/Architecture-Decision-Record.md) is missing.
|
|
49
|
-
- For UI scope, stop coding if docs/DESIGN.md or docs/design-intent.json is missing.
|