ai-engineering-loop 1.0.14 → 1.0.15

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 (33) hide show
  1. package/.agents/workflows/ai-engineering-loop.md +1 -1
  2. package/.claude/skills/ai-engineering-loop/SKILL.md +1 -1
  3. package/.gemini/skills/ai-engineering-loop/SKILL.md +1 -1
  4. package/.grok/skills/ai-engineering-loop/SKILL.md +1 -1
  5. package/README.md +3 -3
  6. package/adapters/dot/README.md +8 -8
  7. package/adapters/dot/coreview.md +3 -2
  8. package/adapters/dot/gitlab.md +3 -3
  9. package/adapters/dot/mattermost.md +59 -71
  10. package/adapters/dot/multi-branch.md +3 -2
  11. package/adapters/dot/skills/dot-dev-workflow/SKILL.md +2 -2
  12. package/adapters/dot/skills/task-impact-inquiry/SKILL.md +155 -0
  13. package/bin/ai-engineering-loop.js +2 -2
  14. package/core/grill-policy.md +14 -10
  15. package/examples/backend-api/payment-idempotency/README.md +3 -3
  16. package/examples/dot/status-display/README.md +23 -0
  17. package/examples/dot/status-display/delivery-report.md +41 -0
  18. package/examples/dot/status-display/goal-contract.md +46 -0
  19. package/examples/dot/status-display/judge-verdict.md +44 -0
  20. package/examples/dot/status-display/review-findings.md +63 -0
  21. package/examples/initialization/README.md +2 -2
  22. package/examples/initialization/discovery-trace.md +1 -1
  23. package/examples/mobile-app/offline-sync-queue/README.md +3 -3
  24. package/lib/sync-hosts.js +4 -1
  25. package/package.json +1 -1
  26. package/tests/no-company-leak.test.js +82 -0
  27. package/tests/skill-host-compat.test.js +24 -7
  28. package/tests/sync-hosts.test.js +19 -1
  29. package/examples/dot/attendance-confirmation/README.md +0 -22
  30. package/examples/dot/attendance-confirmation/delivery-report.md +0 -51
  31. package/examples/dot/attendance-confirmation/goal-contract.md +0 -39
  32. package/examples/dot/attendance-confirmation/judge-verdict.md +0 -43
  33. package/examples/dot/attendance-confirmation/review-findings.md +0 -57
@@ -1,57 +0,0 @@
1
- # Adversarial Review Findings & Triage: Attendance Confirmation Fix
2
-
3
- ## 1. Review Summary
4
-
5
- - **Reviewer**: Devil's Advocate Agent
6
- - **Target Branch**: `main...fix/attendance-confirmation-status`
7
- - **Total Findings**: 2
8
- - **Blocking (SEV-1/2)**: 1
9
- - **Non-Blocking / Invalid**: 1
10
-
11
- ---
12
-
13
- ## 2. Findings Ledger
14
-
15
- ### Finding COR-001: Missing null safety when iterating `timeEntities`
16
- - **Severity**: `HIGH` (SEV-2)
17
- - **Category**: `Correctness`
18
- - **Location**: `src/server/attendance-confirmations/utils/resolve-display-status.ts:34-41`
19
- - **Evidence**:
20
- ```typescript
21
- const hasPending = confirmation.timeEntities.some(
22
- (entity) => entity.status === "NEED_APPROVAL"
23
- );
24
- ```
25
- - **Problem**:
26
- If `confirmation.timeEntities` is `null` or `undefined` (which occurs for historical attendance records prior to migration v2.4), calling `.some()` throws a runtime `TypeError: Cannot read properties of undefined (reading 'some')`.
27
- - **Impact**:
28
- Crashing pagination API for employees with legacy historical attendance records.
29
- - **Recommendation**:
30
- ```diff
31
- - const hasPending = confirmation.timeEntities.some(
32
- + const hasPending = (confirmation.timeEntities ?? []).some(
33
- (entity) => entity.status === "NEED_APPROVAL"
34
- );
35
- ```
36
- - **Confidence**: `HIGH`
37
- - **Status**: `TRIAGED_VALID`
38
- - **Resolution**:
39
- Maker Agent applied optional chaining and null coalescing `(confirmation.timeEntities ?? [])` and added unit test case `should return APPROVED when timeEntities is null or undefined` in `resolve-display-status.test.ts`.
40
-
41
- ---
42
-
43
- ### Finding MAINT-001: Suggestion to convert helper into an abstract factory class
44
- - **Severity**: `LOW` (SEV-4)
45
- - **Category**: `Maintainability`
46
- - **Location**: `src/server/attendance-confirmations/utils/resolve-display-status.ts:1-50`
47
- - **Evidence**:
48
- Utility is authored as a pure exported function `export function resolveAttendanceConfirmationDisplayStatus(...)`.
49
- - **Problem**:
50
- Reviewer claimed that an object-oriented Strategy/Factory pattern would allow swapping attendance status calculators in the future.
51
- - **Impact**:
52
- None. Pure functions are more testable, tree-shakeable, and align with current repository conventions.
53
- - **Recommendation**: Refactor to `class AttendanceStatusCalculatorFactory`.
54
- - **Confidence**: `LOW`
55
- - **Status**: `TRIAGED_INVALID`
56
- - **Triage Reason**:
57
- Dismissed as speculative overengineering. Repository architecture uses functional utilities with tRPC. Adding a class factory violates Technical Constraint: *"Produce minimal, surgical changes without speculative abstractions."*