Skip to content

feat(tui): odek v2.34.0 episode promotion contract - #153

Merged
jkyberneees merged 1 commit into
mainfrom
feat/episode-promote-v234
Oct 10, 2026
Merged

jkyberneees merged 1 commit into
mainfrom
feat/episode-promote-v234

Conversation

@jkyberneees

Copy link
Copy Markdown
Contributor

Adapts the memory tab to the v2.34.0 promote contract (odek#314):

  • PromoteEpisode(sessionID, summarySHA256) sends the required summary_sha256, decodes the 200 body ({session_id, summary, sources}), and returns a typed *PromoteError so 409 (text changed since listing) is distinguishable from other failures
  • GET /api/memory pending episodes now carry full summary, hash, turns, created_at, and provenance sources
  • p arms a y confirm gate naming taint sources, summary length and hash prefix; hash-less rows cannot promote
  • 409/4xx reload the tab for re-review; 5xx/network keep the row for retry
  • New x → y discard flow (POST /api/memory/episodes/discard)
  • Detail view shows the full summary, sources and hash (sanitized)

Requires odek v2.34.0+. Tests written RED-first (client + TUI); race/vet/lint clean.

POST /api/memory/episodes/promote now requires summary_sha256 and
returns the promoted summary and taint sources. Bodek sends the hash,
decodes the 200 body, and distinguishes 409 (stored text changed —
reload and re-review) from other failures via a typed error.

Promotion is the security-relevant direction, so p arms a y confirm
gate naming the taint sources, summary length and hash prefix; hash-less
rows (unreadable episode text) cannot promote. Adds the x → y discard
flow and a detail view showing the full summary, sources and hash.

Requires odek v2.34.0 or later.
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
bodek 0dc1525 Commit Preview URL

Branch Preview URL
Oct 10 2026, 07:53 AM

@jkyberneees
jkyberneees merged commit ad97771 into main Oct 10, 2026
9 checks passed
@jkyberneees
jkyberneees deleted the feat/episode-promote-v234 branch October 10, 2026 07:57
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