Problem
We have repeated live before_agent_start failures on the deployed Cortex plugin, but recent investigation quality has been poor because we keep mixing three different things:
- source repo state (
~/repos/evaos-cortex-plugin)
- deployed local extension copy (
~/.openclaw/extensions/cortex)
- whatever artifact OpenClaw actually loaded into the running gateway process
Historically, we often edit locally first, leaving the local runtime ahead of GitHub. Later sync/download steps then overwrite or bypass those local patches. That means we can no longer trust repo inspection alone.
Goal
Trace the exact runtime path end-to-end:
- which plugin path is loaded by the running gateway
- which file (
src, dist, or copied extension`) is actually executed
- which artifact contains the failing
before_agent_start hook
- whether GitHub repo, local repo, deployed extension dir, and loaded runtime are in parity or drift
Deliverables
- exact path trace: GitHub ref -> local repo -> deployed extension dir -> loaded runtime artifact
- explanation of how the current live failure happened
- contingency actions for each drift mode
- durable fix so GitHub remains source of truth and local deploys cannot silently drift ahead
Acceptance criteria
- We can answer: "it fired from here, retrieved from here, and failed here" with exact file paths
- We can prove which copy the gateway is executing
- We have a GitHub-native workflow to prevent future local-ahead overwrite/loss cycles
Notes
This is trace-first, adversarial review required. Do not assume repo state equals runtime state.
Problem
We have repeated live
before_agent_startfailures on the deployed Cortex plugin, but recent investigation quality has been poor because we keep mixing three different things:~/repos/evaos-cortex-plugin)~/.openclaw/extensions/cortex)Historically, we often edit locally first, leaving the local runtime ahead of GitHub. Later sync/download steps then overwrite or bypass those local patches. That means we can no longer trust repo inspection alone.
Goal
Trace the exact runtime path end-to-end:
src,dist, or copied extension`) is actually executedbefore_agent_starthookDeliverables
Acceptance criteria
Notes
This is trace-first, adversarial review required. Do not assume repo state equals runtime state.