arifos-observability (O_Ω Orchestration Layer)
Purpose
Generate and analyze structured telemetry for skill runs, compiling health dashboards and triggering performance warnings.
Use When
- Parsing telemetry outputs (
timing.json, grading.json, benchmark.json) generated by any L2 skill run.
- Generating a live skill execution dashboard or summary report for the operator.
- Troubleshooting skill paralysis, token bloat, or latency bottlenecks.
- Auditing a skill's historical pass rates, activation precision, and cross-skill collision rates.
- Raising alert triggers if a critical skill (e.g.
arifos-governance) falls below baseline trust metrics.
Do Not Use When
- Executing new parallel test runs or synthetic benchmarks (use
arifos-evals instead).
- Auditing broad folder references or package configuration dates (use
arifos-recursive-audit instead).
- Modifying the telemetry logging schemas of other skills.
Inputs
- Run Telemetry: Local JSON/JSONL logs located at
/root/.agents/telemetry/ or specific workspace folders.
- Execution Logs: Direct step outputs containing token counts, latency, and commands executed.
Procedure
- Parse Telemetry Records: Read all execution logs (
timing.json, benchmark.json) generated during active sessions.
- Aggregate Run Metrics: Calculate total input tokens, output tokens, total latency, commands executed, and the occurrence rate of
888_HOLD events.
- Compute Skill Health Indicators: Update historical scorecards:
- Activation Precision: Ratio of correct activations vs false triggers.
- Rollback Safety: Verified success rate of F1 rollback commands.
- Cross-skill Collision Rate: Frequency of multi-skill triggers for a single task.
- Audit Postcondition Status: Confirm if postconditions were programmatically verified or bypassed.
- Compile Dashboard: Generate a clean, human-readable markdown dashboard mapping active skill health.
- Trigger Performance Warnings: If activation precision < 0.90, or rollback safety < 1.00, raise an alert ticket and recommend description tuning.
Postconditions
- All parsed telemetry logs are validated and aggregated without loss.
- An active skill health dashboard is outputted to the session workspace.
- Trigger drift and latency alert flags are generated and logged.
Failure Modes & Escalation
- Corrupted Log Payload: Telemetry logs contain invalid JSON structure. Action: Flag record corruption, skip the line, log
ERR_LOG_CORRUPTION, and alert the developer.
- Database Read Timeout: Redis or postgres connection is blocked. Action: Fall back to parsing local file-backed telemetry directories.
Telemetry per Run
{
"skill_name": "arifos-observability",
"version": "1.0.0",
"trigger_phrase": "{{trigger_phrase}}",
"selected_reason": "{{selected_reason}}",
"latency_ms": 0,
"token_in": 0,
"token_out": 0,
"commands_run": 0,
"artifacts_written": 1,
"postcondition_pass": false,
"human_approval_required": false,
"hold_code": "{{hold_code}}"
}
Recursive Scorecard
- Activation Precision: [0.0 - 1.0] (Target: >0.98)
- Task Completion Rate: [0.0 - 1.0] (Target: >0.95)
- Rollback Safety: [0.0 - 1.0] (Target: 1.00)
- Context Efficiency: [0.0 - 1.0] (Target: >0.95)
- Doc Freshness: [0.0 - 1.0] (Target: 1.00)
- Cross-Skill Collision Rate: [0.0 - 1.0] (Target: 0.00)
- Human Trust Score: [0.0 - 1.0] (Target: >0.98)
1---2name: arifos-observability3description: Generate structured telemetry for skill runs, including trigger source, chosen branch, command count, runtime, and postcondition checks. Load when you need to parse run logs, compile dashboards, or audit execution performance.4---5# arifos-observability (O_Ω Orchestration Layer)67## Purpose8Generate and analyze structured telemetry for skill runs, compiling health dashboards and triggering performance warnings.910## Use When111. Parsing telemetry outputs (`timing.json`, `grading.json`, `benchmark.json`) generated by any L2 skill run.122. Generating a live skill execution dashboard or summary report for the operator.133. Troubleshooting skill paralysis, token bloat, or latency bottlenecks.144. Auditing a skill's historical pass rates, activation precision, and cross-skill collision rates.155. Raising alert triggers if a critical skill (e.g. `arifos-governance`) falls below baseline trust metrics.1617## Do Not Use When181. Executing new parallel test runs or synthetic benchmarks (use `arifos-evals` instead).192. Auditing broad folder references or package configuration dates (use `arifos-recursive-audit` instead).203. Modifying the telemetry logging schemas of other skills.2122## Inputs23* **Run Telemetry:** Local JSON/JSONL logs located at `/root/.agents/telemetry/` or specific workspace folders.24* **Execution Logs:** Direct step outputs containing token counts, latency, and commands executed.2526## Procedure271. **Parse Telemetry Records:** Read all execution logs (`timing.json`, `benchmark.json`) generated during active sessions.282. **Aggregate Run Metrics:** Calculate total input tokens, output tokens, total latency, commands executed, and the occurrence rate of `888_HOLD` events.293. **Compute Skill Health Indicators:** Update historical scorecards:30 * *Activation Precision:* Ratio of correct activations vs false triggers.31 * *Rollback Safety:* Verified success rate of F1 rollback commands.32 * *Cross-skill Collision Rate:* Frequency of multi-skill triggers for a single task.334. **Audit Postcondition Status:** Confirm if postconditions were programmatically verified or bypassed.345. **Compile Dashboard:** Generate a clean, human-readable markdown dashboard mapping active skill health.356. **Trigger Performance Warnings:** If activation precision < 0.90, or rollback safety < 1.00, raise an alert ticket and recommend description tuning.3637## Postconditions381. All parsed telemetry logs are validated and aggregated without loss.392. An active skill health dashboard is outputted to the session workspace.403. Trigger drift and latency alert flags are generated and logged.4142## Failure Modes & Escalation43* **Corrupted Log Payload:** Telemetry logs contain invalid JSON structure. *Action:* Flag record corruption, skip the line, log `ERR_LOG_CORRUPTION`, and alert the developer.44* **Database Read Timeout:** Redis or postgres connection is blocked. *Action:* Fall back to parsing local file-backed telemetry directories.4546## Telemetry per Run47```json48{49 "skill_name": "arifos-observability",50 "version": "1.0.0",51 "trigger_phrase": "{{trigger_phrase}}",52 "selected_reason": "{{selected_reason}}",53 "latency_ms": 0,54 "token_in": 0,55 "token_out": 0,56 "commands_run": 0,57 "artifacts_written": 1,58 "postcondition_pass": false,59 "human_approval_required": false,60 "hold_code": "{{hold_code}}"61}62```6364## Recursive Scorecard65* **Activation Precision:** [0.0 - 1.0] (Target: >0.98)66* **Task Completion Rate:** [0.0 - 1.0] (Target: >0.95)67* **Rollback Safety:** [0.0 - 1.0] (Target: 1.00)68* **Context Efficiency:** [0.0 - 1.0] (Target: >0.95)69* **Doc Freshness:** [0.0 - 1.0] (Target: 1.00)70* **Cross-Skill Collision Rate:** [0.0 - 1.0] (Target: 0.00)71* **Human Trust Score:** [0.0 - 1.0] (Target: >0.98)