Skip to content

feat(bridge): in-proc ReflexMonitor tool_guard (TCB prototype)#80

Merged
HyperdustLabs merged 1 commit into
mainfrom
feat/v0.3-bridge-in-proc-tcb
May 24, 2026
Merged

feat(bridge): in-proc ReflexMonitor tool_guard (TCB prototype)#80
HyperdustLabs merged 1 commit into
mainfrom
feat/v0.3-bridge-in-proc-tcb

Conversation

@HyperdustLabs

Copy link
Copy Markdown
Owner

Summary

  • Add ReflexMonitor, portable policy spec, and reflex-tool-guard fail-closed path on before_tool_call.
  • Sync policies from daemon reflex.policies.export; optional audit joinpoint.
  • Plugin config: inProcReflexToolGuard, reflexSyncFromDaemon, reflexAuditToDaemon.

Test plan

  • cd integrations/openclaw-opencoat-bridge && npm test
  • Enable plugin flags; gateway log shows in-proc ReflexMonitor tool_guard policies: …
  • rm -rf blocked in-proc without daemon RPC on guard path

Stack: 3/4 (base: #79).

Made with Cursor

@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

Here are some automated review suggestions for this pull request.

Reviewed commit: 62de061c7f

ℹ️ 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".

Comment thread integrations/openclaw-opencoat-bridge/package.json
@HyperdustLabs HyperdustLabs force-pushed the feat/v0.3-reflex-policy-export branch from 791da54 to 6677eee Compare May 24, 2026 13:50
@HyperdustLabs HyperdustLabs force-pushed the feat/v0.3-bridge-in-proc-tcb branch from 62de061 to add146d Compare May 24, 2026 13:50
Base automatically changed from feat/v0.3-reflex-policy-export to main May 24, 2026 14:03
Add ReflexMonitor, policy sync from reflex.policies.export, and fail-closed
before_tool_call path with optional daemon audit.

Co-authored-by: Cursor <cursoragent@cursor.com>
@HyperdustLabs HyperdustLabs force-pushed the feat/v0.3-bridge-in-proc-tcb branch from add146d to 7aab9ca Compare May 24, 2026 14:04
HyperdustLabs pushed a commit that referenced this pull request May 24, 2026
Co-authored-by: Cursor <cursoragent@cursor.com>
@HyperdustLabs HyperdustLabs merged commit a78c765 into main May 24, 2026
3 checks passed
@HyperdustLabs HyperdustLabs deleted the feat/v0.3-bridge-in-proc-tcb branch May 24, 2026 14:07
HyperdustLabs pushed a commit that referenced this pull request May 24, 2026
Co-authored-by: Cursor <cursoragent@cursor.com>
HyperdustLabs added a commit that referenced this pull request May 24, 2026
* feat(runtime,bridge): r_t JSONL emission and warm-path plasticity reweight

Add credit.r_t.* RPCs, PlasticityEngine reweight on heartbeat/append,
bridge r_t emit on tool outcomes, and RtPlasticityWorker maintenance.

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

* chore: drop unrelated sync-bai-llm-keys script from PR

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

* fix(runtime): lock r_t consume and break credit package import cycle

Serialize read_new + reweight under an RLock for JSON-RPC vs heartbeat.
Stop re-exporting RtPlasticityService from credit/__init__ to avoid
r_t_recorder circular import on fresh processes.

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

* chore: fix ruff lint on r_t branch (stacked on #80)

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

---------

Co-authored-by: moss <moss@mosss-MacBook-Pro-2.local>
Co-authored-by: Cursor <cursoragent@cursor.com>
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