Skip to content

bug: trace actual loaded cortex plugin artifact and remove local-ahead deployment drift #20

@100yenadmin

Description

@100yenadmin

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:

  1. source repo state (~/repos/evaos-cortex-plugin)
  2. deployed local extension copy (~/.openclaw/extensions/cortex)
  3. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions