Skip to content

feat(runtime,bridge): v0.3 phase-2 — TCB guards, cold plasticity, replay#83

Merged
HyperdustLabs merged 2 commits into
mainfrom
feat/v0.3-phase2-mega
May 24, 2026
Merged

feat(runtime,bridge): v0.3 phase-2 — TCB guards, cold plasticity, replay#83
HyperdustLabs merged 2 commits into
mainfrom
feat/v0.3-phase2-mega

Conversation

@HyperdustLabs

Copy link
Copy Markdown
Owner

Summary

Merged #83–#86 scope into one PR for faster user-facing delivery:

  • In-proc TCB extension: reflex.policies.export now supports tool_call, spawn, message_out, queue_enqueue, and all. Bridge runs ReflexMonitor on before_tool_call, subagent_spawning, message_sending, and queue_before_enqueue when inProcReflexToolGuard / inProcReflexGuards is enabled (fail-closed).
  • Queue dogfood: exports oc.dogfood.queue-block (QUEUE_DOGFOOD_BLOCK); built-in demo fallback when daemon export is empty.
  • Cold plasticity (v0.3 §11 step 3 subset): PlasticityEngine.cold_step lifts high-score reinforced concerns to reflex=True and archives very weak concerns; wired via ColdPlasticityWorker on heartbeat.
  • Deterministic replay (v0.3 §11 step 4): rt_replay.replay_rt_jsonl + tests prove identical scores on repeated replay.

Test plan

  • uv run pytest — reflex export, plasticity cold, r_t replay, plasticity engine
  • npm test in integrations/openclaw-opencoat-bridge (35 tests)
  • Local smoke: pipx install --force packages/opencoat-runtime && opencoat runtime up
  • Import queue dogfood concern + enable inProcReflexToolGuard in openclaw.json
  • Send follow-up with QUEUE_DOGFOOD_BLOCK → enqueue blocked in gateway log
  • credit.r_t.consume + heartbeat → concern score / reflex flag updates

Made with Cursor

…, replay

Extend in-proc ReflexMonitor to spawn/message/queue hooks, export all action kinds,
add cold lift/archive on heartbeat, and deterministic r_t JSONL replay tests so users
can enable one config flag and get full hot-path + plasticity loop.

Co-authored-by: Cursor <cursoragent@cursor.com>

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review


P1 Badge Fail closed on non-tool in-proc guard exceptions

The catch path still fails closed only for tool_guard; for message_out, subagent_spawn, and queue_guard it falls through to undefined (allow). That is now a safety gap because the new in-proc branches can throw (for example during payload serialization), and any such error bypasses blocking instead of enforcing the documented fail-closed behavior for these hooks.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

…food test

Apply ruff format on phase-2 Python files so CI passes. Extend in-proc
ReflexMonitor error handling to fail-closed for message, spawn, and queue
hooks (not only tool_guard). Improve live queue block script to wait for an
active run and recognize in-proc deny log lines.

Co-authored-by: Cursor <cursoragent@cursor.com>
@HyperdustLabs HyperdustLabs merged commit 7f58ace into main May 24, 2026
3 checks passed
@HyperdustLabs HyperdustLabs deleted the feat/v0.3-phase2-mega branch May 24, 2026 18:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant