Skip to content

feat(runtime,bridge): r_t JSONL and PlasticityEngine reweight#81

Merged
HyperdustLabs merged 4 commits into
mainfrom
feat/v0.3-r-t-plasticity
May 24, 2026
Merged

feat(runtime,bridge): r_t JSONL and PlasticityEngine reweight#81
HyperdustLabs merged 4 commits into
mainfrom
feat/v0.3-r-t-plasticity

Conversation

@HyperdustLabs

Copy link
Copy Markdown
Owner

Summary

  • Daemon: credit.r_t.append / stats / consume, ~/.opencoat/r_t.jsonl, PlasticityEngine reweight (tool_blocked → reinforce policy concern).
  • Heartbeat: RtPlasticityWorker drains unread lines; archived concerns revived before reinforce.
  • Bridge: r-t-emit.ts fire-and-forget on deny / after_tool_call / llm_output / agent_end (emitRtJsonl).

Test plan

  • uv run pytest tests/core/test_plasticity_engine.py tests/core/test_rt_plasticity_service.py tests/daemon/test_credit_rt_jsonrpc.py tests/storage/test_r_t_recorder.py
  • npm test in bridge package
  • Block rm -rfcredit.r_t.append plasticity reinforced: 1opencoat concern show demo-tool-block

Stack: 4/4 (base: #80). Merge order: #78#79#80 → this PR.

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: 9b0df4f731

ℹ️ 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 packages/opencoat-runtime/opencoat_runtime_core/credit/rt_plasticity_service.py Outdated
Comment thread packages/opencoat-runtime/opencoat_runtime_core/credit/__init__.py Outdated
@HyperdustLabs HyperdustLabs force-pushed the feat/v0.3-bridge-in-proc-tcb branch from 62de061 to add146d Compare May 24, 2026 13:50
@HyperdustLabs HyperdustLabs force-pushed the feat/v0.3-r-t-plasticity branch from ebd3288 to 8c1f3fb Compare May 24, 2026 13:50
@HyperdustLabs HyperdustLabs force-pushed the feat/v0.3-bridge-in-proc-tcb branch from add146d to 7aab9ca Compare May 24, 2026 14:04
@HyperdustLabs HyperdustLabs changed the base branch from feat/v0.3-bridge-in-proc-tcb to main May 24, 2026 14:05
@HyperdustLabs HyperdustLabs force-pushed the feat/v0.3-r-t-plasticity branch from 8c1f3fb to 34d24be Compare May 24, 2026 14:05
moss and others added 4 commits May 24, 2026 21:08
…eight

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>
Co-authored-by: Cursor <cursoragent@cursor.com>
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>
Co-authored-by: Cursor <cursoragent@cursor.com>
@HyperdustLabs HyperdustLabs force-pushed the feat/v0.3-r-t-plasticity branch from 34d24be to febebb7 Compare May 24, 2026 14:08
@HyperdustLabs HyperdustLabs merged commit c9c4c71 into main May 24, 2026
3 checks passed
@HyperdustLabs HyperdustLabs deleted the feat/v0.3-r-t-plasticity branch May 24, 2026 14:09
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