skills/reflective/caller-trace/SKILL.md
Before invoking any tool, traces WHO else calls this tool, the cost of misuse, and whether the caller's use is load-bearing or ceremonial. Prevents scenarios like the Docker MCP dead-end loop where multiple agents chase a broken tool no one needs.
npx skillsauth add ariffazil/openclaw-workspace Caller TraceInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Caller Trace is the skill that asks, before any tool call: "Who else needs this?" Most agent failures (Docker MCP dead-end, looping web searches, redundant file reads) come from agents invoking tools without checking whether the tool is actually load-bearing for the larger system.
This skill complements route-least-power (which minimizes tool blast) by adding the provenance dimension — was this tool needed by anyone, or is the agent calling it for itself?
EXEMPT_TRACE in the agent's profile.arif_observe in CONSTITUTIONAL_REFLEX).| Input | Required | Description | |-------|----------|-------------| | tool_name | yes | Canonical MCP/tool identifier | | arguments | yes | Arguments the agent intends to pass | | upstream_caller | yes | What task or skill is requesting this call | | downstream_receivers | no | Who/what will consume the result |
Read the registered call graph for the tool. The forge_* registry (aforge__forge_registry_status) and arifOS surface (arifos_arif_retrieve_tools) both expose this.
If no upstream caller explicitly demands this call → emit CEREMONIAL flag.
If only this caller exists → emit SINGLE_USE warning.
If multiple unrelated callers exist → emit LOAD_BEARING and proceed with trace.
Before making the call, query:
Qdrant: arifos_cognitive_memory collection (last 24h)
VAULT999: /root/.local/share/arifos/vault999/seal_chain.jsonl (recent seals)
Qdrant: arifos_session_memory (this session)
Qdrant: arifos_l5_graph (cross-domain graph)
If a usable answer exists in cache → return cached, do not re-call tool.
Query the tool's last-known state:
aforge__forge_status mode=<tool_area>
arifos__arif_organ_attest_all # for organ-level tools
If the tool's last-failure-rate > 30% OR drift ≥ 3 OR degraded → emit DEGRADED_TOOL and downgrade to DEFAULT_OBSERVE (CONSTITUTIONAL_REFLEX).
For non-trivial tools, attach a trace header to the call:
trace_id: <uuid>
origin_skill: <which skill requested>
consumers: <list downstream>
estimated_value: <OBS/DER/INT/SPEC label of necessity>
If estimated_value is SPEC (speculative) → require explicit user ack before proceeding.
| Condition | Decision |
|-----------|----------|
| LOAD_BEARING + cache miss + tool HEALTHY | PROCEED |
| SINGLE_USE + cache miss | PROCEED with trace |
| CEREMONIAL (no upstream) | REFUSE — emit tool.shape.mission warning |
| DEGRADED_TOOL | DOWNGRADE to OBSERVE per CONSTITUTIONAL_REFLEX |
| Cache hit | RETURN CACHED |
| Tool | Purpose |
|------|---------|
| aforge__forge_registry_status | Read tool registry + caller graph |
| aforge__forge_status | Read tool liveness + failure rate |
| qdrant_search | Check vector memory cache |
| arifos__arif_vault_query | Check VAULT999 recent seals |
| arifOS_arif_retrieve_tools | BM25 search across full tool catalog |
888_JUDGE if the agent discovers a tool with no callers (zombie tool candidate).## Skill Result: caller-trace
### Tool
- name: <tool_name>
- arguments: <truncated to safe form>
- origin: <upstream_skill_or_task>
### Trace
- upstream_callers: <count + list>
- downstream_consumers: <count + list>
- cache_status: <hit | miss | n/a>
- tool_health: <healthy | degraded | zombie>
### Decision
- PROCEED | DOWNGRADE | RETURN_CACHED | REFUSE
### Trace ID
- <uuid> # attach to original call for audit
### Escalations
- <list or None>
| Condition | Escalate To | Method | |-----------|-------------|--------| | Zombie tool (no callers, stale, was-once-used) | forge_scar seal (post-mortem) | RECORD SCAR + arifos_arif_judge | | Tool shaped the mission (used for its own sake) | STOP per CONSTITUTIONAL_REFLEX §6 | Re-authorize task | | Cache poisoned (returning wrong cached value) | VAULT999 seal + invalidation | quarantine + reseal |
Skill version 1.0.0 — forged by FORGE (000Ω), 2026-07-05. Origin: built in response to docker-MCP dead-end (5 agents, 0 tools, 30min loop). DITEMPA BUKAN DIBERI — Caller trace is forged, not assumed.
development
Federation-wide gold (XAUUSD) trading capability. Python stack, OANDA broker, backtesting, macro signals, RSI strategy. Every organ has a role.
development
Capital claim state management — tracks claim lifecycle across WEALTH organ.
development
Archived constitutional warga placeholder retained only for audit provenance. Do not use for active work; use the live arifOS governance and constitutional skills instead.
testing
Warga (citizen) agent skills for AAA federation members. See subdirectories for specialized warga skills.