Phase D: Move the Cortex store, pricing, session API and attribution into the binary

オープン
#1,727 コメント 0 件 リアクション 0 件 担当者 1 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@huang195 がすでに取り組んでいます。

2026年11月7日 から。

評価

この issue はまだ評価されていません。

説明

laptop

Part of #1714 · phase D · Section 8 · design in #1717 (docs/superpowers/specs/2026-11-07-praxis-mode-design.md)

Goal

Make Cortex one Rust binary on the Praxis crates, in the shape of praxis-ai today. agentop does not change.

Scope

  • Port about 13.7k lines of Go into the binary:

    • the session store, archive and timeline, as a Cortex store crate on SQLite in the pattern of praxis-ai's store crates.
    • pricing and the ledger, as a Rust pricing filter, then Tokenomics when it is on par.
    • the session API, as filters on :47601 (/v1/events through StreamingTerminalResponse).
    • attribution.
  • Attribution moves together with the store, because the store's events feed its state. The Go front door passes the client's socket address in X-Cortex-Client, and the binary does the process lookup itself.

  • cortex_record writes the same record type to the store in process. /v1/ingest and the emitter's HTTP stream go away.

  • Decide: an importer for existing archives, or only the retention window. Decide each remaining plugin: port or retire. Split this issue into sub-issues before work starts.

  • Decide the path for the rows that the Go front door still writes (refusals, gateway_unavailable, tunnels, WebSockets) into the binary's store. Proposal: the front door posts them to the ingestion endpoint, now in the binary. Test it before phase C.

  • Decide how a ported filter that reads parsed facts in both directions (opa, session budget) fits the chain.

Done when

  • The same agentop session gives the same /v1/sessions, /v1/events, /v1/usage and timeline answers against the Go and the Rust store.
  • The Go tests of the ported packages pass as parity cases.

Depends on

Trigger: none. Start when praxis mode is the default and stable (#1725). Comes before phase C.

Assisted-By: Claude (Anthropic AI) [email protected]

主要言語
Go
スター
26
フォーク
46
平均マージ
13時間 49分
マージ済み PR(30日)
244

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

rossoctl/cortex のほかの issue

rossoctl/cortex の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。