@laitszkin/apollo-toolkit 3.0.1 → 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,17 @@ 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
+
15
+ ## [v3.0.2] - 2026-04-20
16
+
17
+ ### Changed
18
+ - Strengthen `scheduled-runtime-health-check` so bounded-run investigations must detect artifact-path drift, reconcile reports back to one canonical run root before comparison, and report bounded execute time separately from setup and shutdown overhead.
19
+ - Strengthen `systematic-debug` so runtime reruns that inherit stale report paths are classified as artifact-routing problems before any performance conclusion, and speed analysis now separates execute time from provisioning/readiness/cleanup overhead.
20
+
10
21
  ## [v3.0.1] - 2026-04-19
11
22
 
12
23
  ### 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.1",
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",
@@ -14,7 +14,7 @@ description: Use a background terminal to run a user-specified command immediate
14
14
 
15
15
  ## Standards
16
16
 
17
- - Evidence: Anchor every conclusion to the requested command, execution window, startup/shutdown timestamps, one canonical run folder or artifact root, captured logs, and concrete runtime signals.
17
+ - Evidence: Anchor every conclusion to the requested command, execution window, startup/shutdown timestamps, one canonical run folder or artifact root, captured logs, and concrete runtime signals; when structured artifacts land outside that canonical root because of inherited environment or wrapper drift, prove the mismatch and treat the artifact-path correction as part of the evidence trail.
18
18
  - Execution: Collect the run contract, verify the real stop mechanism before launch, choose the highest-fidelity execution mode that matches the user's intent, use a background terminal, optionally update the code only when the user asks, execute the requested command immediately or in the requested window, record the canonical run folder once the process materializes it, capture logs, stop cleanly when bounded, then delegate log review to `analyse-app-logs` only when findings are requested or needed.
19
19
  - Quality: Keep scheduling, execution, and shutdown deterministic; separate confirmed findings from hypotheses; and mark each assessed module healthy/degraded/failed/unknown with reasons.
20
20
  - Output: Return the run configuration, execution status, log locations, optional code-update result, optional module health by area, confirmed issues, potential issues, observability gaps, and scheduler status when applicable.
@@ -53,6 +53,7 @@ This skill is an orchestration layer. It owns the background terminal session, o
53
53
  - Separate scheduler failures, boot failures, runtime failures, and shutdown failures.
54
54
  - For complex pipelines, identify the last successful stage before attributing the failure to application logic.
55
55
  - When the user asks to compare a bounded run with a previous run, compare only runs with the same command or preset, duration, runtime mode, and complete structured artifacts. If the previous run lacks canonical reports, databases, or startup artifacts, mark the runs incomparable and explain the artifact completeness gap instead of inventing performance deltas.
56
+ - When wrappers, copied environments, or report-path variables cause the current run's report or database to land under an older run directory, stop and reconcile the artifact root before analysis: record the intended run root, locate the actual emitted files, move or copy them back only when needed to restore one canonical evidence set, and report the path drift as an observability problem instead of silently mixing runs.
56
57
  - If logs cannot support a health judgment, mark the module as `unknown` instead of guessing.
57
58
 
58
59
  ## Required workflow
@@ -80,6 +81,7 @@ This skill is an orchestration layer. It owns the background terminal session, o
80
81
  5. Run and capture readiness
81
82
  - Execute the requested command in the same background terminal.
82
83
  - As soon as the command emits or creates its canonical run directory, artifact root, or equivalent output location, record that path and reuse it for every later check.
84
+ - If later structured outputs appear under a different directory than the recorded run root, pause the analysis and reconcile the mismatch before reading metrics or logs from either location.
83
85
  - Report the exact runtime mode used in the evidence record so later analysis does not accidentally treat synthetic-harness results as proof about production behavior.
84
86
  - Wait for a concrete readiness signal when the command is expected to stay up, such as a health endpoint, listening-port log, worker boot line, or queue-consumer ready message.
85
87
  - If readiness never arrives, stop the run, preserve logs, and treat it as a failed startup window.
@@ -99,6 +101,7 @@ This skill is an orchestration layer. It owns the background terminal session, o
99
101
  - Reuse its confirmed issues, hypotheses, and monitoring improvements instead of rewriting a separate incident workflow.
100
102
  8. Produce the final report
101
103
  - Always summarize the actual command executed, actual start/end timestamps, execution status, and log locations.
104
+ - Separate bounded execute time from setup, readiness, collection, and shutdown overhead so a 2-minute observation is not misreported as 2 minutes of end-to-end pipeline latency.
102
105
  - Include the code-update result only when an update step was requested.
103
106
  - When findings were requested, classify each relevant module as `healthy`, `degraded`, `failed`, or `unknown` with concrete evidence and separate observed issues from risks that still need validation.
104
107
 
@@ -125,7 +128,7 @@ Absence of errors alone is not enough for `healthy`.
125
128
  Use this structure in responses:
126
129
 
127
130
  1. Run summary
128
- - Workspace, command, schedule if any, actual start/end timestamps, duration if bounded, readiness result, shutdown result if applicable, canonical run folder or artifact root, and log locations.
131
+ - Workspace, command, schedule if any, actual start/end timestamps, bounded execute duration, total wall-clock duration, readiness result, shutdown result if applicable, canonical run folder or artifact root, and log locations.
129
132
  2. Execution result
130
133
  - Whether the command completed, stayed up for the requested window, or failed early.
131
134
  3. Code update result
@@ -14,7 +14,7 @@ description: "Systematic debugging workflow for program issues: understand obser
14
14
 
15
15
  ## Standards
16
16
 
17
- - Evidence: Gather expected versus observed behavior from code and runtime facts before deciding on a cause, and when the issue involves a runtime pipeline or bounded run, anchor the investigation to one canonical artifact root or run directory instead of mixed terminal snippets from multiple runs.
17
+ - Evidence: Gather expected versus observed behavior from code and runtime facts before deciding on a cause, and when the issue involves a runtime pipeline or bounded run, anchor the investigation to one canonical artifact root or run directory instead of mixed terminal snippets from multiple runs; if generated reports or databases drift into an older run directory, capture that mismatch explicitly before treating any artifact as evidence.
18
18
  - Execution: Inspect the relevant paths, reproduce every plausible cause with tests or bounded reruns, choose a reproduction mode whose fidelity matches the user's claim, map each observed failure to a concrete pipeline stage, distinguish toolchain/platform faults from application-logic faults, classify failing tests as stale test contract vs test-harness interference vs real product bug, then apply the minimal fix at the true owner.
19
19
  - Quality: Keep scope focused on the bug, prefer existing test patterns, explicitly rule out hypotheses that could not be reproduced, and when failures disappear in isolated reruns treat shared-state or parallel-test interference as a first-class hypothesis instead of silently dismissing the original failure.
20
20
  - Output: Deliver the plausible-cause list, the canonical evidence source, reproduction tests or reruns, the final failure classification for each investigated symptom, validated fix summary, and passing-test confirmation.
@@ -59,8 +59,9 @@ Also auto-invoke this skill when mismatch evidence appears during normal executi
59
59
  - If a hypothesized cause cannot be reproduced, document why and deprioritize it explicitly.
60
60
  - For long-running or generated-artifact workflows, record the exact command, timestamps, and artifact paths before inspecting outputs so later comparisons stay on the same evidence set.
61
61
  - Do not mix baseline data and rerun data casually; compare the same scenario or command across runs and call out when a conclusion comes from a rerun rather than the original failure.
62
+ - When rerun artifacts land in the wrong directory because a wrapper or inherited environment reused a previous report path, fix the evidence layout first and only then compare metrics; otherwise classify the result as an artifact-routing problem rather than a performance delta.
62
63
  - For post-run "why did most events not happen" questions, derive the answer from a funnel over structured artifacts first, then corroborate with logs: discovered or eligible candidates, admission blocks, stale or skipped decisions, queue/governor outcomes, execution attempts, confirmations, retries, and persisted event rows.
63
- - For speed questions, compute per-stage timings from available event timestamps and state which stages are measured versus unavailable; avoid treating wall-clock bounded duration as pipeline latency.
64
+ - For speed questions, compute per-stage timings from available event timestamps and state which stages are measured versus unavailable; avoid treating wall-clock bounded duration as pipeline latency, and separately report bounded execute time versus provisioning/readiness/cleanup overhead when both are present.
64
65
  - When test fixtures or assertions no longer match the implemented contract, update the tests instead of weakening the product behavior to satisfy stale expectations.
65
66
  - When tests shell out to shared local infrastructure, add deterministic isolation such as mutexes, unique temp roots, or serialized sections before accepting flakes as inevitable.
66
67