name: exeris-jfr-telemetry-review description: 'Observability contract review for Exeris Kernel. Use for PRs touching bootstrap, telemetry, memory, transport, lifecycle/state machines, and exception mapping to enforce JFR-first events, lightweight emission, secret-safe payloads, L0/L1 boundaries, and error/rawArgs contracts.' argument-hint: 'PR scope, changed lifecycle points, and telemetry/error-code impact' user-invocable: true disable-model-invocation: false
Exeris JFR Telemetry Review
Purpose
Enforce observability as a contract, not a best-effort logging add-on.
This skill validates that lifecycle-critical behavior emits compliant telemetry with minimal overhead and safe payload semantics.
Canon to Load First
- docs/subsystems/telemetry.md
- docs/subsystems/exceptions.md
- docs/performance-contract.md
- docs/architecture.md
- docs/whitepaper.md
- docs/modules/02-core.md
- docs/modules/05-tck.md
- related subsystem docs for changed code paths (bootstrap/memory/transport/flow/config/security)
When to Use
- PR touches bootstrap or subsystem lifecycle orchestration
- PR changes memory allocation paths or allocation-failure handling
- PR changes transport bind/start/handshake/state transitions
- PR changes telemetry sink/event mapping, error codes, or exception payloads (
rawArgs) - PR modifies L0/L1 interaction boundaries for observability
Required Inputs
- PR diff or changed file list
- Changed lifecycle transitions and state-machine edges
- Changed exception/error-code paths and
rawArgsschema
Mandatory Checks
Critical event coverage
- Verify telemetry events exist for: bootstrap lifecycle, allocation failure, transport bind/engine start, and state transitions.
- Flag silent transitions (state changes without typed event emission).
Event weight discipline
- Verify JFR events are lightweight; require
@StackTrace(false)where contract expects zero-overhead emission. - Flag payload inflation or heavy per-event formatting/serialization on emission path.
- Verify JFR events are lightweight; require
Secret leakage guard
- Verify no credentials/tokens/secrets are emitted in
rawArgsor event fields. - Require caller-side redaction/truncation for sensitive values before emission.
- Verify no credentials/tokens/secrets are emitted in
L0/L1 boundary integrity
- Verify observability responsibilities remain aligned with architecture tiers.
- Flag boundary violations where telemetry logic leaks into wrong tier or bypasses defined sinks/contracts.
Error-code and rawArgs contract integrity
- Verify failures map to stable
EX-*codes. - Verify
rawArgslayout matches contract semantics (shape/order/meaning) and remains decoder-safe. - Flag ad-hoc message-only error handling without contract code/payload.
- Verify failures map to stable
Review Procedure
Map telemetry-relevant deltas
- Enumerate all lifecycle transitions and failure edges touched by the PR.
Build event matrix
- For each transition/failure edge, map: trigger -> expected typed event -> required fields -> tier owner.
Validate emission quality
- Check lightweight event annotations and avoid heavy runtime formatting on emission path.
Validate payload safety and semantics
- Check secret redaction contract and
rawArgsschema consistency with error-code intent.
- Check secret redaction contract and
Validate tier boundaries
- Confirm L0/L1 responsibilities are preserved and no observability layer inversion occurred.
Gate outcome
- Output
APPROVE,CONDITIONAL, orREJECTwith minimal root-cause fixes.
- Output
Decision Logic
- APPROVE: Required lifecycle events are present, lightweight, safe, and contract-correct; boundaries preserved.
- CONDITIONAL: Minor telemetry gaps or payload hygiene issues with clear bounded remediation.
- REJECT: Missing critical events, secret leakage risk, boundary violation, or broken error/rawArgs contract.
Completion Criteria
Review is complete only if all are true:
- Event coverage validated for bootstrap, allocation failure, bind/start, and state transitions.
- Event overhead reviewed (
@StackTrace(false)and emission-path weight where applicable). - Secret leakage review completed for event fields and
rawArgs. - L0/L1 boundary checks completed.
- Error-code and
rawArgscontract checks completed. - Verdict and required fixes documented.
Review Output Template
- Scope analyzed (files, transitions, failure edges)
- Event coverage findings
- Event weight findings
- Secret hygiene findings
- L0/L1 boundary findings
- Error/rawArgs contract findings
- Verdict (APPROVE | CONDITIONAL | REJECT)
- Required actions (minimal root-cause fixes)
Non-Negotiable Rules
- No critical lifecycle transition without typed telemetry event.
- No secret-bearing payload in events or
rawArgs. - No contract drift between error code and
rawArgsschema. - No tier-boundary violations in telemetry responsibilities.