@ryuenn3123/agentic-senior-core 3.0.39 → 3.0.40

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.
@@ -15,6 +15,7 @@ Before editing:
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.
18
+ 10. Enforce the complexity budget: choose fewer moving parts only when behavior, safety, clarity, and maintainability stay intact.
18
19
 
19
20
  Refactor rules:
20
21
  - Improve clarity, boundaries, naming, validation, error handling, tests, and docs.
@@ -23,6 +24,9 @@ Refactor rules:
23
24
  - Keep module boundaries explicit and project-specific.
24
25
  - Split large files when the split makes the flow easier to understand.
25
26
  - Do not introduce abstractions before the repeated pattern is real.
27
+ - Remove code that does not carry behavior, safety, clarity, maintainability, or test value.
28
+ - Prefer the shorter implementation only when it keeps the same guarantees.
29
+ - Run a final simplification pass before completion.
26
30
  - Update tests and docs whenever behavior contracts, public APIs, data shape, or UI contracts change.
27
31
 
28
32
  For every meaningful change, explain:
@@ -25,6 +25,7 @@ Run this before declaring a task done. Apply only the sections relevant to the c
25
25
  - [ ] No clever hacks in backend and shared core modules
26
26
  - [ ] No premature abstraction (base classes/util layers created only after repeated stable patterns)
27
27
  - [ ] Readability over brevity for maintainability
28
+ - [ ] Complexity budget was applied: equivalent behavior uses fewer moving parts without losing validation, error handling, fallbacks, accessibility, tests, or security boundaries.
28
29
  - [ ] Controllers, route handlers, and transport adapters do not contain business policy, raw queries, or cross-resource orchestration.
29
30
  - [ ] Services or use cases own business flow, transaction boundaries, and mutation safety.
30
31
  - [ ] Repositories or adapters own persistence/external IO details without hiding business decisions.
@@ -12,6 +12,19 @@ These principles are mandatory for backend and shared core modules.
12
12
  - Keep transport, application, domain, and infrastructure concerns separated.
13
13
  - Favor explicit module boundaries over hidden cross-layer shortcuts.
14
14
 
15
+ ## Complexity Budget (Mandatory)
16
+
17
+ Prefer the smallest clear implementation that fully preserves behavior, safety, and maintainability.
18
+
19
+ - If two implementations are equivalent in behavior and quality, choose the one with fewer moving parts.
20
+ - Remove code that does not carry behavior, safety, clarity, maintainability, or test value.
21
+ - Prefer direct logic over extra wrappers, layers, classes, config, or state when the abstraction does not reduce real complexity.
22
+ - Keep validation, error handling, fallback paths, accessibility, tests, security boundaries, and observability when they protect real behavior.
23
+ - Run a final simplification pass before completion.
24
+ - Do not optimize for line count alone.
25
+ - Do not replace clear code with clever, dense, or surprising code.
26
+ - Do not remove safeguards just because the happy path works.
27
+
15
28
  ## Universal SOP Baseline (Mandatory)
16
29
 
17
30
  The `.agent-context/rules/` directory is the default guidance source for implementation and review.
@@ -91,6 +104,7 @@ Service separation only makes sense when multiple signals are true, such as:
91
104
  - Cross-cutting utilities belong in explicit shared locations, not scattered feature internals.
92
105
  - Files above roughly 1000 lines are a refactor trigger, not a success signal.
93
106
  - Preserve one clear public entrypoint per module when helpful, but move implementation into smaller focused files.
107
+ - Keep code compact because the design is understood, not because safeguards were removed.
94
108
 
95
109
  ## Module Communication
96
110
 
package/.cursorrules CHANGED
@@ -1,6 +1,6 @@
1
1
  # .cursorrules - Legacy Thin Adapter
2
2
 
3
- Generated by Agentic-Senior-Core CLI v3.0.39
3
+ Generated by Agentic-Senior-Core CLI v3.0.40
4
4
  Adapter Mode: legacy-thin
5
5
  Adapter Source: .agent-instructions.md when present; fallback .instructions.md
6
6
  Canonical baseline: .instructions.md
package/.windsurfrules CHANGED
@@ -1,6 +1,6 @@
1
1
  # .windsurfrules - Legacy Thin Adapter
2
2
 
3
- Generated by Agentic-Senior-Core CLI v3.0.39
3
+ Generated by Agentic-Senior-Core CLI v3.0.40
4
4
  Adapter Mode: legacy-thin
5
5
  Adapter Source: .agent-instructions.md when present; fallback .instructions.md
6
6
  Canonical baseline: .instructions.md
package/README.md CHANGED
@@ -10,12 +10,12 @@
10
10
  **Production-grade Rules Engine (Governance Engine) for AI coding agents.**
11
11
  Works with Cursor, Windsurf, GitHub Copilot, Claude Code, Gemini, and other LLM-powered IDE workflows.
12
12
 
13
- Latest release: 3.0.39 (2026-04-30).
13
+ Latest release: 3.0.40 (2026-04-30).
14
14
 
15
- Highlights in 3.0.39:
16
- - Post-release hygiene removes stale V2 evidence-bundle and Bun lockfile drift surfaces.
17
- - Package and lockfile validation now blocks version drift and accidental dual package-manager state.
18
- - Repo-local agent context now documents frontend/backend governance boundaries and anti-grid wallpaper handling.
15
+ Highlights in 3.0.40:
16
+ - Adds a mandatory complexity budget so agents choose fewer moving parts only when quality stays intact.
17
+ - Refactor guidance now requires a final simplification pass before completion.
18
+ - Release tooling keeps legacy root adapter version metadata aligned with package bumps.
19
19
 
20
20
  </div>
21
21
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ryuenn3123/agentic-senior-core",
3
- "version": "3.0.39",
3
+ "version": "3.0.40",
4
4
  "type": "module",
5
5
  "description": "Force your AI Agent to code like a Staff Engineer, not a Junior.",
6
6
  "bin": {
@@ -71,7 +71,22 @@ async function bumpVersion() {
71
71
  console.log('Updated docs/deep_analysis_and_roadmap_backlog.md');
72
72
  }
73
73
 
74
- // 4. Update CHANGELOG.md
74
+ // 4. Update legacy root adapters that carry release metadata.
75
+ const legacyAdapterFiles = ['.cursorrules', '.windsurfrules'];
76
+ for (const legacyAdapterFile of legacyAdapterFiles) {
77
+ const legacyAdapterPath = path.join(ROOT_DIR, legacyAdapterFile);
78
+ if (await fileExists(legacyAdapterPath)) {
79
+ const legacyAdapterContent = await readTextFile(legacyAdapterPath);
80
+ const updatedLegacyAdapterContent = legacyAdapterContent.replace(
81
+ /Generated by Agentic-Senior-Core CLI v\d+\.\d+\.\d+/,
82
+ `Generated by Agentic-Senior-Core CLI v${newVersion}`
83
+ );
84
+ await writeTextFile(legacyAdapterPath, updatedLegacyAdapterContent);
85
+ console.log(`Updated ${legacyAdapterFile}`);
86
+ }
87
+ }
88
+
89
+ // 5. Update CHANGELOG.md
75
90
  const changelogPath = path.join(ROOT_DIR, 'CHANGELOG.md');
76
91
  if (await fileExists(changelogPath)) {
77
92
  let changelogContent = await readTextFile(changelogPath);