Skip to content

docs(mcpx-15959): session lifecycle identity, release vs termination contract - #15966

Merged
dezren39 merged 4 commits into
mainfrom
docs-15959-session-lifecycle-contract
Nov 28, 2026
Merged

dezren39 merged 4 commits into
mainfrom
docs-15959-session-lifecycle-contract

Conversation

@developing-today-fleet

@developing-today-fleet developing-today-fleet Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

Contract for #1931 session ops (child of #15959, umbrella #1931).

  • Defines leasing vs plugin vs upstream sessions; stable identity = daemon lease key (Registry.leases), owned keys via CallerOwned.
  • Release = detach + stop idle caller-owned only; kill = force-end held owned, close client. Unknown-handle and privilege behavior documented from current routes.
  • Safe terminate API shape pinned to the implemented session_kill semantics.
  • Next slice stated: session_resume with acceptance + oracle (TestResumeReacquiresReleasedHandleWithoutResurrectingKilled).

Docs-only: pkgs/mcpx/docs/session-lifecycle.md + SUMMARY + compendium manifest. No runtime changes.

Verified: go test ./internal/settings -run TestEveryDocumentHasAChapter, pool kill/release tests, daemon kill tests.

Closes #15959

{
  "direct_parent": null,
  "links": [],
  "lineage": {
    "design": null,
    "roadmap_item": null,
    "priority": null
  },
  "pm_meta": 1,
  "provenance": {
    "queue_id": null,
    "scheduled_start": null,
    "picked_up_at": null,
    "work_started_at": null,
    "created_at": "2026-11-27T06:36:39Z",
    "session_id": "ses_e5de4b1df6effeMc2ZkZjFquiw",
    "lane": null,
    "host": "amd",
    "worktree": "/home/user/git/code",
    "model": null,
    "lane_start_issues": [],
    "workspace_ref": {
      "kind": "worktree",
      "id": "/home/user/git/code",
      "repo": "developing-today/code",
      "branch": "docs-15959-session-lifecycle-contract",
      "sha": "1e04da91834099aa89bde6b561cd76a73c501ec2"
    },
    "auth_subject": "agent-next-25-local",
    "stamped_by": "fleet 0.1.0 (native)"
  }
}

Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

…contract

Defines the #1931 session-operation contract: leasing vs plugin vs
upstream sessions, stable identity as the daemon lease key, release
(detach, stop idle caller-owned only) vs kill (force-end held owned),
safe terminate API shape, and the next slice (session_resume) with
oracle. Docs-only, no runtime changes.
@coderabbitai

coderabbitai Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 8e5ccd54-7a05-4845-b39a-1e7c94921170

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@developing-today-fleet

Copy link
Copy Markdown
Contributor Author

Lane 0037-K (alpha DRIVE open-PR sweep) — NOT merged, gate-hold at head 1e04da9.

Verified via gh CLI only (no clones): claim-scan clean (lane-log + comments; sole comment is CodeRabbit skip); body + ALL comments + full diff read — docs-only, 3 files +169/-1 (pkgs/mcpx/docs/session-lifecycle.md + SUMMARY + compendium manifest), matches body. Docs-only content gate passes on read-through.

Blocker: fresh re-reads via gh pr list and gh api repos/developing-today/code/pulls/15966 both give OPEN / non-draft / mergeable=false / mergeable_state=dirty (CONFLICTING). The merge criteria require CLEAN + MERGEABLE, so this cannot merge at this head regardless of the docs gate. Check-runs on exact head: CodeRabbit + Proof, both skipped; code Actions runs on exact head = 0.

Unblock: rebase/resolve the branch onto current main and push a new head; on a CLEAN/MERGEABLE new head the docs-only read-through gate can land it immediately. Key: 0037-K

…(1037-H rebase-equivalent)

SUMMARY.md: keep main's daemon-auth/record-and-replay/script-generate entries, add session-lifecycle line after Scripts.
compendium.manifest.json: keep all main entries, add docs/session-lifecycle.md entry before docs/worker.md, SUMMARY lines 105->106 (the PR's own delta).
…(1037-H rebase-equivalent)

SUMMARY.md: keep main's daemon-auth/record-and-replay/script-generate entries, add session-lifecycle line after Scripts.
compendium.manifest.json: keep all main entries, add docs/session-lifecycle.md entry before docs/worker.md, SUMMARY lines 105->106 (the PR's own delta).
…olve docs conflict (lane 1037-H, Git-API merge)

Conflict was in pkgs/mcpx/docs/SUMMARY.md (both sides inserted after the Scripts entry) and pkgs/mcpx/docs/compendium.manifest.json (adjacent entry insertions). Resolution keeps all main entries (daemon-auth, record-and-replay, script-generate, adapters, changes fragment) and the PR's session-lifecycle SUMMARY line + manifest entry (before docs/worker.md) with SUMMARY lines 105->106. Tree = main tree + the PR's three docs files as resolved.
@dezren39

Copy link
Copy Markdown
Member

Lane 1037-H (alpha DRIVE author lane): conflict resolved via Git-API merge — this PR is CLEAN/MERGEABLE again.

Exact conflict (three-way vs merge-base 6fd30c9): pkgs/mcpx/docs/SUMMARY.md — main inserted daemon-auth / record-and-replay / script-generate entries while this branch inserted the session-lifecycle line after the same Scripts anchor; pkgs/mcpx/docs/compendium.manifest.json — adjacent entry insertions plus the SUMMARY lines count. Resolution (merge commit c2aa786, parents = branch head + main 20fa068): tree = main tree + this PR's three docs files as resolved — all main entries kept, session-lifecycle SUMMARY line added after Scripts, manifest entry for docs/session-lifecycle.md inserted before docs/worker.md, SUMMARY lines 105->106 (this PR's own delta). session-lifecycle.md itself unchanged (blob afbbd6d9). Merging under standing authority on the PR body's evidence (docs-only; TestEveryDocumentHasAChapter + pool/daemon kill-release tests reported green by the author lane).

@dezren39
dezren39 merged commit 2c038db into main Nov 28, 2026
2 checks passed
@dezren39
dezren39 deleted the docs-15959-session-lifecycle-contract branch November 28, 2026 17:01
dezren39 added a commit that referenced this pull request Nov 28, 2026
…1137-M)

Git-API merge commit (PR #15966 pattern): parents = current main a8bd3c5 + PR head 1eca8a9. Tree = main tree with the four PR files resolved: work-projection.ts and its test take the head versions (unchanged on main since merge-base); work-mobile-views.ts and its test are a 3-way merge (F1 updatedAtOf/orderRefs/recencyOf + recent/cold_backlog cases in, main's later changes preserved, compareGroupRefs removed as orderRefs replaces it at every call site).
dezren39 added a commit that referenced this pull request Nov 28, 2026
…ane 1137-M)

Git-API merge commit (PR #15966 pattern): parents = main 7d2e159 (which now contains F1 #16317) + PR head 1ed9a66. Tree = main tree with the four PR files 3-way resolved: work-projection.ts gains the github_labels lines beside F1's github_updated_at lines; work-mobile-views.ts gains labelsOf, the needs_triage view guard and switch case while keeping F1's updatedAtOf/orderRefs/recencyOf; both test files are the union of the F1 and F2 suites.
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.

Define mcpx session lifecycle identity and release/termination semantics for #1931

1 participant