Skip to content

Delegate runtime lifecycle and preserve session-independent runs - #22

Merged
yansfil merged 5 commits into
mainfrom
refactor/runtime-delegation
Oct 7, 2026
Merged

yansfil merged 5 commits into
mainfrom
refactor/runtime-delegation

Conversation

@yansfil

@yansfil yansfil commented Oct 7, 2026 •

Copy link
Copy Markdown
Owner

Summary

Run records no longer duplicate native session, terminal, registration, watch or supervisor ownership.
Dispatch and escalation prepare stable public launch instructions; the Observer executes them and exchanges letters directly through the runtime coordinator.
Caller roles come from the public current-caller endpoint and existing parent relationships.

Closes #13.
Part of #21.

Result

  • The same dispatch or advisor intent preserves its immutable prompt and launch inputs; advisor reservations are limited to three distinct intents.
  • Current parent relationships govern dispatch, escalation and specification gates, including an Observer that itself has a parent.
  • Run discovery uses repository checkouts instead of session bookmarks; starting a run seals the selected checkout without provisioning another one.
  • The supervisor, hidden solver, startup-screen heuristics, direct terminal orchestration and obsolete provisioning code are removed.
  • Version output preserves the build commit and dirty state; doctor compares installed command signatures, response fields and refusal guarantees.
  • The native integration is pinned to the merged caller contract at 3ee278fad115c5f59e5935c5d6610470c8b60709 (prerequisite change).

Screenshots / Demo

No UI code changed.
The private native integration passes the complete lineage, native prompt, watch and direct-letter flow.
Graphical lineage and actual provider compaction remain unrun.
A separate actual private live-handoff probe passed after configuring the derived handoff socket under a short private configuration root.
The server and terminal IDs changed while native sessions, caller/parent identity, run, intent, child and watch stayed the same; post-handoff child-role refusal and block/reply also passed.
This uses a compiled native provider and does not claim real provider compaction.
The two earlier overlong-path setup refusals and successful teardown are retained separately.

Human Review Focus

  • Review the boundary between sealed run contracts and live runtime relationships, including missing registrations and device-scoped parent lookup.
  • Review the incompatible state transition: existing v12 runs must finish with their supported build before installing this change.
  • Review the removal of automatic checkout provisioning and the explicit refusal of nonempty retired setup configuration.

Evidence And Checks

Result Area Outcome Evidence
Build and static checks Pass Clean owned build, TypeScript no-emit and diff checks
Repository tests Pass 110 tests
CLI unit tests Pass 427 tests
CLI end-to-end tests Pass 94 tests, including the complete real private native flow
Native behavior Pass Parent/child lineage, native prompt arguments, repeated intent reuse, child-role refusal, block/reply and confirmed report ending its watch
Command compatibility Pass Actual pinned CLI version and contract queried; older incompatible export refused, published caller export accepted
Runtime isolation Pass Private HOME, daemon, server, providers and verified adjacent binaries; owned process and socket cleanup asserted
Actual private live handoff Pass Server/terminal replacement preserves native session, caller, run, intent, child and watch; role refusal and letters work afterward; owned old/new servers exit
Additional native and visual observation Unrun Real provider compaction, connected-device runtime and graphical lineage

Review And Delivery Evidence

  • Independent Fidelity, Code and Security reviews inspected the initial implementation.
  • Subsequent commits preserve reserved launch inputs and device scope, add explicit state-path guidance, freeze build provenance and adopt the public caller contract.
  • Final independent Fidelity, Code and Security reviews on dae1b6eaed7672bc7b8fc275675df40eaaa32eb2 found no remaining source-level Fix now in this runtime unit.
  • Reviewers checked the current source and supplied evidence; they did not claim unexecuted provider compaction or UI observation.
  • The additional live-handoff observation was performed after those source reviews without changing tracked source.
  • Deterministic implementation report: N/A, this is issue-driven maintenance rather than an approved-PRD run.
  • Current-head CI passes: required test job and security scanning.
  • The remaining observation limits stay explicit under the umbrella work; no operator build or installation is changed by this delivery.
  • Merge requires green CI; no failed native test was skipped or relabeled as a pass.

Risks, Rollback, And Human Review

The supported public caller endpoint is required for managed role checks.
Older incompatible runtime contracts are reported explicitly.
Do not install this incompatible state format while an older run is active.
The prior build remains the supported path for existing runs; no automatic state migration is claimed.
Git baseline calculation, intake validation, log recovery, verification preview, selected-answer sync and CI waiting are separate units under #21.

@yansfil
yansfil marked this pull request as ready for review October 7, 2026 07:44
@yansfil
yansfil merged commit ba58f5d into main Oct 7, 2026
2 checks passed
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.

Herdr live handoff 뒤 terminal id만 바뀐 implementor를 status가 identity mismatch로 표시

1 participant