@laitszkin/apollo-toolkit 3.0.2 → 3.0.3

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/CHANGELOG.md CHANGED
@@ -7,6 +7,11 @@ All notable changes to this repository are documented in this file.
7
7
  ### Changed
8
8
  - None yet.
9
9
 
10
+ ## [v3.0.3] - 2026-04-21
11
+
12
+ ### Changed
13
+ - Strengthen `improve-observability` so ownership-model refactors must audit and repair stale log messages, event names, and structured fields, keeping canonical owners distinct from compatibility projections in telemetry.
14
+
10
15
  ## [v3.0.2] - 2026-04-20
11
16
 
12
17
  ### Changed
@@ -14,10 +14,10 @@ description: Add focused observability to an existing system so opaque workflows
14
14
 
15
15
  ## Standards
16
16
 
17
- - Evidence: Read the real execution path and current telemetry before deciding where visibility actually disappears.
18
- - Execution: Add the smallest useful instrumentation around decision points, scope contracts, outcomes, failure reasons, and any cross-path lifecycle gaps between summary counters and detailed outcome records.
19
- - Quality: Keep changes behavior-neutral, use structured high-signal telemetry, avoid secrets, and lock the signals with tests.
20
- - Output: Report which stages are now observable, which fields or metrics to inspect, and which tests validate the instrumentation.
17
+ - Evidence: Read the real execution path, current telemetry, and the true ownership model before deciding where visibility actually disappears or where existing logs no longer describe the live code path.
18
+ - Execution: Add the smallest useful instrumentation around decision points, scope contracts, outcomes, failure reasons, and any cross-path lifecycle gaps between summary counters and detailed outcome records; when observability drift already exists, repair stale log names and structured fields so they match the current owner, scope, and lifecycle semantics.
19
+ - Quality: Keep changes behavior-neutral, use structured high-signal telemetry, avoid secrets, and lock the signals with tests; treat stale terminology after refactors as an observability defect, not harmless wording.
20
+ - Output: Report which stages are now observable, which fields or metrics to inspect, which stale signals were renamed or re-scoped, and which tests validate the instrumentation.
21
21
 
22
22
  ## Overview
23
23
 
@@ -42,6 +42,8 @@ Do not use this skill for generic bug fixing when the main request is behavior c
42
42
  - Read the relevant entrypoints, orchestration layers, and current telemetry before editing.
43
43
  - Identify the exact stages where information disappears: validation, branching, external calls, persistence, retries, settlement, cleanup, or error handling.
44
44
  - When the same business event can flow through multiple execution paths such as harness, replay, batch worker, or production runtime, compare those paths explicitly and find where their observability contract diverges.
45
+ - Identify the canonical owner of the workflow under today's implementation, such as account, request, job, batch, position projection, or transaction step, before changing any log labels or field names.
46
+ - Distinguish canonical owners from compatibility projections or legacy mirrors. If the code still stores or exposes a compatibility projection, keep it diagnosable but do not let logs present that projection as the primary truth.
45
47
  - Reuse the project's existing logger, tracing library, metric naming style, and error taxonomy.
46
48
 
47
49
  ### 2. Choose the smallest useful signals
@@ -80,6 +82,16 @@ When a system reports aggregate counts such as `success_count`, `processed_count
80
82
  - treat "aggregate says success but detail table is empty" as an observability bug, not as an acceptable reporting gap
81
83
  - if multiple runtime modes claim the same business event, keep the critical observability fields aligned across those modes unless the output contract intentionally differs
82
84
 
85
+ ### 3.3 Repair terminology drift after refactors
86
+
87
+ When the codebase has moved from one ownership model or lifecycle model to another, audit existing observability for stale terminology.
88
+
89
+ - rename log messages, event names, metrics, and structured fields that still describe retired concepts such as old owners, outdated scope units, or deprecated lifecycle phases
90
+ - prefer names that describe the live source of truth, for example `account`, `account_opportunity`, `projection`, `admission_health`, or `projected_step`, instead of legacy names that survived only because a field was never revisited
91
+ - preserve compatibility aliases only when operators or downstream dashboards still require them, and clearly label them as compatibility views rather than canonical truth
92
+ - when a workflow still legitimately mixes canonical owners and derived projections, name both explicitly so operators can tell which field is authoritative
93
+ - update or add tests that lock the renamed signals, especially around branch-specific reason codes, progress events, and structured field keys
94
+
83
95
  ### 3.1 Preserve cross-stage scope contracts
84
96
 
85
97
  When a workflow derives scope in one stage and consumes it later, make that contract observable end-to-end.
@@ -105,6 +117,7 @@ Add or update tests that prove the new observability survives refactors. Focus o
105
117
  - metrics increments for success, skip, and failure paths
106
118
  - regression coverage for the exact opaque scenario that motivated the work
107
119
  - edge paths such as early-return, dependency failure, and partial completion
120
+ - renamed observability fields or progress-event names after ownership-model or lifecycle refactors
108
121
 
109
122
  Use existing test helpers for log capture and avoid brittle assertions on timestamps or fully formatted log strings.
110
123
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@laitszkin/apollo-toolkit",
3
- "version": "3.0.2",
3
+ "version": "3.0.3",
4
4
  "description": "Apollo Toolkit npm installer for managed skill copying across Codex, OpenClaw, and Trae.",
5
5
  "license": "MIT",
6
6
  "author": "LaiTszKin",