Skip to content

feat(harness-state): map OpenCode events to v3 - #477

Closed
schickling-assistant wants to merge 1 commit into
schickling-assistant/2026-09-05-harness-v3-producer-apifrom
schickling-assistant/2026-09-05-harness-v3-opencode-adapter
Closed

feat(harness-state): map OpenCode events to v3#477
schickling-assistant wants to merge 1 commit into
schickling-assistant/2026-09-05-harness-v3-producer-apifrom
schickling-assistant/2026-09-05-harness-v3-opencode-adapter

Conversation

@schickling-assistant

@schickling-assistant schickling-assistant commented Sep 5, 2026

Copy link
Copy Markdown
Contributor

Problem

OpenCode's event stream and retries can lose fault/clear evidence across reconnects, and legacy terminal writes cannot bootstrap v3.

Goal

Make the event reducer publish typed v3 state while preserving ordering, reseed authority, and v2 bytes.

Decisions

  • provider authentication is live, never terminal
  • only completed non-summary assistant messages clear all
  • exact retry keys survive reconnect and clear after the last holder settles
  • epoch retry instants and delays use distinct parsing
  • live and terminal frames state the axis over claim fences exactly once

Verification

  • cargo test -p st2 --lib opencode_session:: (56 passed)
  • independent review completed with no remaining P0-P2 findings

Complexity

The reducer owns ordering and reconnect reconciliation; no parallel state machine was added.

Concerns

The exact legacy path remains until #479.

Friction & bottlenecks

No adapter-specific deviation.

Follow-ups

#479 activates the integrated writer.

References

Depends on #470.

Posted on behalf of @schickling
field value
agent_identity dev3.direct.omp.9exwnk6h
session dev3.9exwnk6h
agent_persona generalist
agent_supervisor unavailable
agent_tool OMP
agent_tool_version 18.1.7
agent_runtime OMP 18.1.7
tooling_profile dotfiles@931583a

agent-identity: dev3.direct.omp.9exwnk6h
agent-persona: generalist
agent-supervisor: unavailable
agent-tool: OMP
agent-tool-version: 18.1.7
agent-runtime: OMP 18.1.7
tooling-profile: dotfiles@931583a
@schickling-assistant
schickling-assistant force-pushed the schickling-assistant/2026-09-05-harness-v3-opencode-adapter branch from c9a15f5 to c5fd792 Compare September 5, 2026 20:58
@schickling-assistant
schickling-assistant marked this pull request as ready for review September 5, 2026 22:41
@schickling-assistant

Copy link
Copy Markdown
Contributor Author

Parking this PR (closed, branch kept) per decision Q1 incidents-first in seat dev3.direct.omp.43sz6ujq (record 2we9ak / answer 8b0ow1, 2026-09-06): the harness-state v3 stack ships only once a named consumer requirement or incident calls for the fault/ask/conversation axes.

Findings that shape re-entry (evidence: an independent 12-reviewer pass + orchestrator reports in the orch worktree, tmp/orch-reconcile/reports/{stack,migrations,complexity}.md):

Posted on behalf of @schickling
field value
agent_identity dev3.direct.omp.43sz6ujq
session dev3.43sz6ujq
agent_persona generalist
agent_supervisor unavailable
agent_tool OMP
agent_tool_version 18.1.7
agent_runtime OMP 18.1.7
tooling_profile dotfiles@39a19af

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