Skip to content

feat(runtime,bridge): r_t tool_outcome attribution for plasticity#82

Merged
HyperdustLabs merged 2 commits into
mainfrom
feat/v0.3-r-t-tool-outcome-attribution
May 24, 2026
Merged

feat(runtime,bridge): r_t tool_outcome attribution for plasticity#82
HyperdustLabs merged 2 commits into
mainfrom
feat/v0.3-r-t-tool-outcome-attribution

Conversation

@HyperdustLabs

Copy link
Copy Markdown
Owner

Summary

  • PlasticityEngine: tool_outcome with reflex policy_id reinforces on success (r=1) and weakens on tool error (r=0 + signal.error).
  • Bridge: buildToolOutcomeRt emits structured reflex fields; ReflexMonitor records matchedPolicyId for attribution; only stash reflex on before_tool_call when policy_id is set.
  • Docs: README table for reweight rules + opencoat concern show score check.

Test plan

  • uv run pytest tests/core/test_plasticity_engine.py
  • cd integrations/openclaw-opencoat-bridge && npm test
  • Local: in-proc guard + emitRtJsonl → successful tool after rewrite policy path → concern score up; failed tool → score down

Stack: v0.3 follow-up after #81.

Made with Cursor

…eight

Reinforce or weaken concerns on after_tool_call when reflex policy_id is
present; emit structured reflex metadata from tool outcomes; document score checks.

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

Here are some automated review suggestions for this pull request.

Reviewed commit: 08d0c5238e

ℹ️ 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/src/reflex-monitor.ts Outdated
Avoid attributing r_t outcomes to a policy when advisory decide() throws
before producing a valid decision.

Co-authored-by: Cursor <cursoragent@cursor.com>
@HyperdustLabs HyperdustLabs merged commit 699bf31 into main May 24, 2026
3 checks passed
@HyperdustLabs HyperdustLabs deleted the feat/v0.3-r-t-tool-outcome-attribution branch May 24, 2026 16:32
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