@ryuenn3123/agentic-senior-core 3.0.26 → 3.0.28

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.
Files changed (36) hide show
  1. package/.agent-context/prompts/bootstrap-design.md +14 -3
  2. package/.agent-context/prompts/refactor.md +2 -0
  3. package/.agent-context/prompts/review-code.md +2 -2
  4. package/.agent-context/review-checklists/architecture-review.md +12 -0
  5. package/.agent-context/review-checklists/pr-checklist.md +10 -1
  6. package/.agent-context/rules/api-docs.md +4 -0
  7. package/.agent-context/rules/architecture.md +3 -3
  8. package/.agent-context/rules/database-design.md +9 -0
  9. package/.agent-context/rules/error-handling.md +8 -0
  10. package/.agent-context/rules/event-driven.md +3 -0
  11. package/.agent-context/rules/frontend-architecture.md +2 -0
  12. package/.agent-context/rules/microservices.md +2 -0
  13. package/.agent-context/rules/security.md +11 -0
  14. package/.agent-context/rules/testing.md +8 -0
  15. package/.agent-context/state/memory-continuity-benchmark.json +1 -1
  16. package/.agent-context/state/weekly-governance-report.json +234 -31
  17. package/.cursorrules +1 -1
  18. package/.gemini/instructions.md +3 -2
  19. package/.github/copilot-instructions.md +3 -2
  20. package/.instructions.md +21 -4
  21. package/.windsurfrules +1 -1
  22. package/AGENTS.md +4 -3
  23. package/README.md +4 -3
  24. package/lib/cli/commands/init.mjs +1 -0
  25. package/lib/cli/commands/upgrade.mjs +1 -0
  26. package/lib/cli/compiler.mjs +9 -8
  27. package/lib/cli/memory-continuity.mjs +4 -1
  28. package/lib/cli/project-scaffolder/design-contract.mjs +24 -0
  29. package/lib/cli/project-scaffolder/prompt-builders.mjs +5 -3
  30. package/package.json +1 -1
  31. package/scripts/governance-weekly-report.mjs +138 -1
  32. package/scripts/release-gate/audit-checks.mjs +1 -1
  33. package/scripts/release-gate/constants.mjs +11 -0
  34. package/scripts/rules-guardian-audit.mjs +1 -1
  35. package/scripts/single-source-lazy-loading-audit.mjs +10 -8
  36. package/scripts/sync-thin-adapters.mjs +7 -4
@@ -5,7 +5,7 @@
5
5
  *
6
6
  * Enforces V3.0-010 policy:
7
7
  * - One canonical rule source is explicitly defined and enforced.
8
- * - Language-specific rule guidance loads lazily by detected scope.
8
+ * - Global domain governance loads lazily by touched scope.
9
9
  * - Conflicting duplicate instruction paths are prevented.
10
10
  */
11
11
 
@@ -60,24 +60,24 @@ const MAX_EAGER_STACK_MENTIONS = 4;
60
60
  const REQUIRED_ARCHITECTURE_RULE_SNIPPETS = [
61
61
  '## Single Source of Truth and Lazy Rule Loading',
62
62
  'Canonical rule source is .instructions.md.',
63
- 'Load language-specific stack guidance lazily based on detected scope.',
64
- 'Do not preload unrelated stack profiles during normal flow.',
63
+ 'Load global domain rules lazily based on touched scope.',
64
+ 'Do not create or load stack-specific governance adapters as the baseline.',
65
65
  ];
66
66
 
67
67
  const REQUIRED_PR_CHECKLIST_SNIPPETS = [
68
68
  'Canonical rule source is explicitly defined and enforced',
69
- 'Language-specific guidance is loaded lazily based on detected scope',
69
+ 'Global domain governance is loaded lazily based on touched scope',
70
70
  'No conflicting duplicate rule instructions during normal flow',
71
71
  ];
72
72
 
73
73
  const REQUIRED_REVIEW_PROMPT_SNIPPETS = [
74
- 'Enforce single-source and lazy-loading policy: canonical rule source must be explicitly enforced, language-specific guidance must load lazily based on detected scope, and conflicting duplicate rule instructions must not appear during normal flow.',
74
+ '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.',
75
75
  ];
76
76
 
77
77
  const REQUIRED_COMPILER_SNIPPETS = [
78
78
  '## LAYER 2 POLICY: LAZY RULE LOADING',
79
- 'Load runtime-specific guidance only when task scope touches that runtime.',
80
- 'Avoid eager loading unrelated runtime guidance to prevent instruction conflicts.',
79
+ 'Load global domain rules only when task scope touches that domain.',
80
+ 'Avoid eager loading unrelated runtime or domain guidance to prevent instruction conflicts.',
81
81
  "stackLoadingMode: 'lazy'",
82
82
  ];
83
83
 
@@ -377,6 +377,7 @@ function runAudit() {
377
377
  if (lazyPolicy
378
378
  && lazyPolicy.canonicalSource === CANONICAL_SOURCE_PATH
379
379
  && lazyPolicy.stackLoadingMode === 'lazy'
380
+ && (lazyPolicy.domainRuleLoadingMode === 'lazy' || typeof lazyPolicy.domainRuleLoadingMode === 'undefined')
380
381
  && lazyPolicy.loadedOnDemand === true) {
381
382
  onboardingLazyPolicyMode = 'explicit-lazy-policy';
382
383
  onboardingLazyPolicyValidated = true;
@@ -478,7 +479,7 @@ function runAudit() {
478
479
  && !eagerLoadingDetected;
479
480
 
480
481
  if (lazyRuleLoadingEnforced) {
481
- pushResult(results, true, 'lazy-rule-loading-hard-rule', 'Language-specific guidance is loaded lazily by detected scope');
482
+ pushResult(results, true, 'lazy-rule-loading-hard-rule', 'Global domain governance is loaded lazily by touched scope');
482
483
  } else {
483
484
  failures.push('Lazy rule loading hard-rule is not fully enforced');
484
485
  pushResult(results, false, 'lazy-rule-loading-hard-rule', 'Lazy loading enforcement failed');
@@ -514,6 +515,7 @@ function runAudit() {
514
515
  onboardingPolicyValidated: onboardingLazyPolicyValidated,
515
516
  eagerLoadingDetected,
516
517
  maxAllowedStackMentions: MAX_EAGER_STACK_MENTIONS,
518
+ globalDomainGovernance: true,
517
519
  },
518
520
  duplicationPolicy: {
519
521
  noConflictingDuplicates,
@@ -44,8 +44,9 @@ If your host stops at this file instead of following the full chain, obey the Cr
44
44
  - Memory continuity does not replace bootstrap loading. It is host-dependent project memory, not a guarantee that instructions were reloaded for this session.
45
45
  - For UI, UX, layout, screen, tailwind, frontend, or redesign requests: load [.agent-context/prompts/bootstrap-design.md](.agent-context/prompts/bootstrap-design.md) and [.agent-context/rules/frontend-architecture.md](.agent-context/rules/frontend-architecture.md) before editing code.
46
46
  - For UI scope: if \`docs/DESIGN.md\` or \`docs/design-intent.json\` is missing, materialize or refine them before implementing UI changes.
47
+ - For backend, API, data, auth, error, event, queue, worker, or distributed-system requests: load the relevant global rules from [.agent-context/rules/](.agent-context/rules); do not create stack-specific governance adapters.
47
48
  - For refactor, improve, clean up, or fix requests: inspect the active rules and propose a plan before editing.
48
- - For new project or module requests: clarify constraints, stack decisions, and required docs before generating code.
49
+ - For new project or module requests: clarify constraints, runtime decisions, and required docs before generating code.
49
50
  - For ecosystem, framework, dependency, or Docker claims: perform live web research instead of relying on stale local heuristics.
50
51
 
51
52
  ## Mandatory Bootstrap Chain
@@ -57,7 +58,7 @@ If your host stops at this file instead of following the full chain, obey the Cr
57
58
  5. Enforce review contracts from [.agent-context/review-checklists/](.agent-context/review-checklists).
58
59
  6. Read change-risk maps and continuity state from [.agent-context/state/](.agent-context/state).
59
60
  7. Enforce policy thresholds from [.agent-context/policies/](.agent-context/policies).
60
- 8. Use dynamic stack, structure, and live research signals from project context docs.
61
+ 8. Use runtime evidence, structure, and live research signals from project context docs.
61
62
 
62
63
  ## Trigger Rules
63
64
 
@@ -82,6 +83,7 @@ If your host stops at this file, follow this minimum floor:
82
83
  - Read \`.agent-instructions.md\` next when it exists.
83
84
  - For UI or redesign requests, load [.agent-context/prompts/bootstrap-design.md](../.agent-context/prompts/bootstrap-design.md) and [.agent-context/rules/frontend-architecture.md](../.agent-context/rules/frontend-architecture.md) before coding.
84
85
  - If UI scope and \`docs/DESIGN.md\` or \`docs/design-intent.json\` is missing, materialize them before UI implementation.
86
+ - For backend/API/data/auth/event requests, load relevant global rules from [.agent-context/rules/](../.agent-context/rules) and do not create stack-specific governance adapters.
85
87
  - Memory continuity is host-dependent project memory and does not replace bootstrap loading.
86
88
 
87
89
  ## Required Load Order
@@ -92,7 +94,7 @@ If your host stops at this file, follow this minimum floor:
92
94
  4. Load request templates from [.agent-context/prompts/](../.agent-context/prompts).
93
95
  5. Apply review contracts from [.agent-context/review-checklists/](../.agent-context/review-checklists).
94
96
  6. Apply state awareness from [.agent-context/state/](../.agent-context/state) and thresholds from [.agent-context/policies/](../.agent-context/policies).
95
- 7. Resolve stack, structure, and dependency choices from project context docs plus live evidence.
97
+ 7. Resolve runtime, structure, and dependency choices from project context docs plus live evidence.
96
98
 
97
99
  ## Completion Gate
98
100
 
@@ -113,6 +115,7 @@ If your host stops at this file, follow this minimum floor:
113
115
  - Read \`.agent-instructions.md\` next when it exists.
114
116
  - For UI or redesign requests, load [.agent-context/prompts/bootstrap-design.md](../.agent-context/prompts/bootstrap-design.md) and [.agent-context/rules/frontend-architecture.md](../.agent-context/rules/frontend-architecture.md) before coding.
115
117
  - If UI scope and \`docs/DESIGN.md\` or \`docs/design-intent.json\` is missing, materialize them before UI implementation.
118
+ - For backend/API/data/auth/event requests, load relevant global rules from [.agent-context/rules/](../.agent-context/rules) and do not create stack-specific governance adapters.
116
119
  - Memory continuity is host-dependent project memory and does not replace bootstrap loading.
117
120
 
118
121
  ## Bootstrap Sequence
@@ -123,7 +126,7 @@ If your host stops at this file, follow this minimum floor:
123
126
  4. Load request templates from [.agent-context/prompts/](../.agent-context/prompts).
124
127
  5. Apply review contracts from [.agent-context/review-checklists/](../.agent-context/review-checklists).
125
128
  6. Apply state awareness from [.agent-context/state/](../.agent-context/state) and policy thresholds from [.agent-context/policies/](../.agent-context/policies).
126
- 7. Resolve stack, structure, and dependency choices from project context docs plus live evidence.
129
+ 7. Resolve runtime, structure, and dependency choices from project context docs plus live evidence.
127
130
 
128
131
  ## Completion Gate
129
132