@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.
@@ -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. When analyzing an existing UI codebase, inspect low-cost evidence such as hardcoded color density, prop-drilling candidates, and breakpoint chaos before declaring the current design direction healthy.
21
- 5. If [docs/DESIGN.md](../../docs/DESIGN.md) or `docs/design-intent.json` already exists, check for drift and improve them instead of rewriting blindly.
22
- 6. If context is incomplete, write explicit assumptions and reversible design bets instead of defaulting to generic SaaS output.
23
- 7. 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.
24
- 8. 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.
25
- 9. All references to docs or rules must be clickable markdown links.
26
- 10. Responsive work must adapt layout, navigation, density, and task order across viewports. Shrinking desktop layouts is not enough.
27
- 11. 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.
28
- 12. 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.
29
- 13. 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.
30
- 14. 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.
31
- 15. Do not default to balanced card grids, soft startup gradients, safe centered heroes, or neutral dashboard chrome unless the product context explicitly justifies them.
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. Responsive Strategy and Cross-Viewport Adaptation Matrix
41
- 8. Interaction, Motion, and Feedback Rules
42
- 9. Component Language, Morphology, and Shared Patterns
43
- 10. Accessibility Non-Negotiables
44
- 11. Anti-Patterns to Avoid
45
- 12. Implementation Notes for Future UI Tasks
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/
@@ -1,5 +1,5 @@
1
1
  {
2
- "generatedAt": "2026-04-21T16:44:50.356Z",
2
+ "generatedAt": "2026-04-22T12:33:03.350Z",
3
3
  "reportName": "memory-continuity-benchmark",
4
4
  "schemaVersion": "1.0.0",
5
5
  "passed": true,
@@ -3,7 +3,6 @@
3
3
  "generatedAt": "2026-04-18T00:00:00.000Z",
4
4
  "operationMode": "upgrade",
5
5
  "selectedProfile": "beginner",
6
- "selectedProfilePack": null,
7
6
  "selectedStack": "typescript.md",
8
7
  "selectedAdditionalStacks": [],
9
8
  "selectedBlueprint": "api-nextjs.md",
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.15
4
- Timestamp: 2026-04-18T00:00:00.000Z
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 and architecture-review.md before declaring completion.
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. Dynamic stack strategy signals from project context and live evidence.
18
- 3. Dynamic architecture playbook signals from requirements and repository state.
19
- 4. .agent-context/prompts/
20
- 5. .agent-context/review-checklists/
21
- 6. .agent-context/state/
22
- 7. .agent-context/policies/llm-judge-threshold.json
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
- Primary entrypoint: .cursorrules
26
- Mirror entrypoint: .windsurfrules
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
- Conflict resolution: prioritize data safety and API contract integrity first, then writing polish.
32
-
33
- ## LAYER 2 POLICY: DYNAMIC STACK STRATEGY
34
- Resolve stack guidance lazily from project evidence. Do not depend on deleted static stack directories.
35
-
36
- ## LAYER 3 POLICY: DYNAMIC ARCHITECTURE PLAYBOOKS
37
- Resolve architecture guidance lazily from project docs and task boundaries. Do not depend on deleted static blueprint directories.
38
-
39
- ## STATE AWARENESS (MANDATORY)
40
- Load .agent-context/state/architecture-map.md and .agent-context/state/dependency-map.md before touching critical paths.
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.15
4
- Timestamp: 2026-04-18T00:00:00.000Z
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 and architecture-review.md before declaring completion.
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. Dynamic stack strategy signals from project context and live evidence.
18
- 3. Dynamic architecture playbook signals from requirements and repository state.
19
- 4. .agent-context/prompts/
20
- 5. .agent-context/review-checklists/
21
- 6. .agent-context/state/
22
- 7. .agent-context/policies/llm-judge-threshold.json
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
- Primary entrypoint: .cursorrules
26
- Mirror entrypoint: .windsurfrules
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
- Conflict resolution: prioritize data safety and API contract integrity first, then writing polish.
32
-
33
- ## LAYER 2 POLICY: DYNAMIC STACK STRATEGY
34
- Resolve stack guidance lazily from project evidence. Do not depend on deleted static stack directories.
35
-
36
- ## LAYER 3 POLICY: DYNAMIC ARCHITECTURE PLAYBOOKS
37
- Resolve architecture guidance lazily from project docs and task boundaries. Do not depend on deleted static blueprint directories.
38
-
39
- ## STATE AWARENESS (MANDATORY)
40
- Load .agent-context/state/architecture-map.md and .agent-context/state/dependency-map.md before touching critical paths.
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.