Skip to content

T4: Core rebuild per spec 190 #197

Closed

Description

@omridevk

Six modules: session-rows / run / subscribe / stop / ask / transcript. MESSAGES_SNAPSHOT lead (UIMessages verbatim, never bundled with terminal events), runId-stamped live chunks, UIMessages straight into chat(), claimRun spans approval continuations, in-process ask promises, tombstone/restore, monotonic row-keyed snapshot cache, truncated-line tolerance. Core-purity gate. Plan: #183 T4; spec #190.

Activity

  1. omridevk commented on Aug 3, 2026

    @omridevk
    ContributorAuthor

    T1 audit addition for T4's delete list: the import staged packages/core/src/chat/adopt.ts, connect-exec.ts, transcript-tail.ts, dial-log.ts (inventory KEEP predated the #187/#192 eviction). T4 deletes them from core (connect-exec/dial-log logic re-homes to the extension in T7 per spec; transcript-tail fed the deleted candidates tail — dies). Also drop .changeset/session-observer.md.

  2. omridevk commented on Aug 3, 2026

    @omridevk
    ContributorAuthor

    T4 landed and audited. Commits 66f379ae..f24fe0be on chat-rewrite (10 commits, 36 files, +1570/-1702).

    Orchestrator audit (personally rerun):

    • Deletions verified: adopt.ts, attach.ts, connect-exec.ts, dial-log.ts, transcript-tail.ts, session.ts, .changeset/session-observer.md all gone; zero test-file edits (harness-testkit hits are src plumbing).
    • Core-purity grep rerun: ZERO domain hits for adopt/attach/presence/terminal/verdict in packages/core/src (only 'attachment' substrings). Banned-vocab grep: only BundlerBridge (pre-exists on main, dev-bundler domain, untouched) — T12 gate whitelist item.
    • Shape review of all six modules: clean; turn registry spans approval continuations, run-end chunk withheld until persistence lands, prepareMessages applied only to the authored user turn (history rides as UIMessages, approvals preserved).
    • Gates rerun: core build PASS, core src typecheck PASS; remaining typecheck reds all in test/ files inside the ruled T8 buckets (missing runId on send, StartOpts.openTerminal).

    Carried forward:

    • T7: Terminal extension per spec 191 #200 (T7): harness test files still import deleted hooks-plugin; @conciv/extension TtyCommandOpts pre-existing red.
    • T8: Test disposition (the only test edits) #201 (T8): 34 core test failures classified into ruled buckets (empirically scratch-verified by the agent, then reverted); db.test.ts pins dead transcript_cwd/attached_pid/attached_at columns — dropping them is T7/T8 follow-up.
    • T9: App recomposition #202 (T9): 3 pre-existing solid(reactivity) lint errors in T1-imported app files; SessionMeta now carries hidden + native (NativeSessionRef) for sessions.open ingress.
    • T12: Gates + PR #205 (T12): whitelist BundlerBridge in banned-vocab gate.
    • Observation: rowByNativeId matches nativeId alone while the unique key is (harnessKind, cwd, nativeId) — benign for UUID native ids; revisit if a duplicate-id harness appears.
    • Open: awaiting-approval continuation path implemented per spec but untested until a harness declares needsApproval tools.
  3. omridevk commented on Aug 3, 2026

    @omridevk
    ContributorAuthor

    Closed: T4 done, audited.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions