Skip to content

feat: sync upstream through CLI 1.0.92-0 - #211

Merged
krukow merged 3 commits into
mainfrom
krukow-upstream-sdk-sync-1fb
Oct 2, 2026
Merged

krukow merged 3 commits into
mainfrom
krukow-upstream-sdk-sync-1fb

Conversation

@krukow

@krukow krukow commented Oct 2, 2026

Copy link
Copy Markdown
Collaborator

Generated via Copilot on behalf of @krukow

Summary

Sync the stable Node SDK surface through github/copilot-sdk@19e9a4b, with CLI compatibility and schema provenance pinned to 1.0.92-0.

  • Add resume/join :allow-transcript-recovery? and facade/session transcript-recovery. Preserve omission versus explicit booleans, reject nil, expose idiomatic repair reports, and retain structured runtime rejection errors.
  • Handle owned-runtime exit independently of surviving pipes or TCP peers. Bound stdio draining, reject pending requests even during stop!, prevent dead-runtime startup, clear caches, and fence cleanup from replacement connections.
  • Document connected MCP provenance and durable completed-tool results; regenerate schemas, API snapshots, and documentation. Installation coordinates point to the validated implementation.

The exact-pin inventory covers 807 package-root exports, 106 interfaces, 40 changed Node test files, and 427 changed paths across seven snapshots. Historical certification is untouched; 69 local artifacts are sealed to the reviewed implementation commit.

Boundaries

New AHP transport selection, Connector-account exports, managed-settings/environment/provider controls, and native FFI changes remain experimental or generated-only and are not exposed. Internal model.call_final_result telemetry remains wire-only.

The library version remains 1.0.14.0. No release, tag, or deployment is included.

Validation

  • COPILOT_UPSTREAM_VALIDATION=true bb ci:full: 1,041 tests / 14,768 assertions, authenticated E2E, all maintained unattended examples, documentation validation, and JAR build passed.
  • Used a checksummed CLI 1.0.92-0, isolated Copilot home, and disabled built-in MCP servers.
  • Final sealed certification, API-surface, and optional-wire-contract gate: 22 tests / 1,883 assertions, all passing.
  • Documentation-link gate: 15 tests / 54 assertions, all passing. Documentation validation retains three existing historical-namespace warnings.
  • Repeated schema/code/API/documentation generation produced identical outputs. Formatting and whitespace checks passed.

Review

Independent review identified a shutdown-time hang when the owned process exited during an unanswered session.detach. A real-process/surviving-peer regression reproduced it before the fix and passed afterward; the reviewer verified the correction and reported no remaining merge blockers.

krukow and others added 3 commits October 2, 2026 09:34
Port transcript recovery and bounded owned-runtime exit handling from github/copilot-sdk@19e9a4b. Preserve experimental exclusions and the library version; do not cut a release.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Validate the full exact-pin surface and bind local evidence to the reviewed implementation without changing historical certification.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings October 2, 2026 07:40

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🔵 Needs a closer look

The broad upstream recertification includes sensitive process-lifecycle concurrency and extensive generated artifacts that warrant final human review.

Review effort: Balanced
Findings: None

What changed in this PR

Syncs the Clojure SDK with upstream commit 19e9a4b and CLI schemas 1.0.92-0, while retaining the existing library version.

Changes:

  • Adds transcript-recovery configuration, reports, specs, facade APIs, and tests.
  • Hardens owned-process exit handling with bounded draining and generation-fenced cleanup.
  • Recertifies upstream parity and regenerates schemas, API snapshots, and documentation.
File Description
.copilot-schema-version Advances schema pin.
.github/​workflows/​ci.yml Updates upstream validation pin.
CHANGELOG.md Records the sync.
README.md Updates installation SHA.
doc/​adr/​2026-10-02-transcript-recovery-and-owned-exit.md Records design decisions.
doc/​api/​2026-08-08-query-seq-scoped-lifecycle.html Refreshes generated navigation.
doc/​api/​2026-08-10-host-owned-inference-boundary.html Refreshes generated navigation.
doc/​api/​2026-09-27-dynamic-workflow-migration.html Refreshes generated navigation.
doc/​api/​2026-09-30-model-policy-and-lifecycle-sync.html Refreshes generated navigation.
doc/​api/​2026-10-02-transcript-recovery-and-owned-exit.html Adds generated ADR.
doc/​api/​API.html Regenerates API reference.
doc/​api/​azure-managed-identity.html Refreshes generated navigation.
doc/​api/​byok.html Refreshes generated navigation.
doc/​api/​codegen.html Refreshes generated navigation.
doc/​api/​custom-agents.html Refreshes generated navigation.
doc/​api/​debugging.html Regenerates MCP guidance.
doc/​api/​doc-auth-index.html Refreshes generated navigation.
doc/​api/​doc-index.html Regenerates documentation index.
doc/​api/​dynamic-workflows.html Refreshes generated navigation.
doc/​api/​getting-started.html Regenerates installation guidance.
doc/​api/​github.copilot-sdk.client.html Regenerates client API docs.
doc/​api/​github.copilot-sdk.generated.coerce.html Refreshes generated navigation.
doc/​api/​github.copilot-sdk.generated.event-metadata.html Refreshes generated navigation.
doc/​api/​github.copilot-sdk.generated.event-specs.html Regenerates wire-spec docs.
doc/​api/​github.copilot-sdk.helpers.html Refreshes generated navigation.
doc/​api/​github.copilot-sdk.html Adds facade API documentation.
doc/​api/​github.copilot-sdk.instrument.html Regenerates fdef documentation.
doc/​api/​github.copilot-sdk.logging.html Refreshes generated navigation.
doc/​api/​github.copilot-sdk.process.html Refreshes generated navigation.
doc/​api/​github.copilot-sdk.protocol.html Regenerates protocol documentation.
doc/​api/​github.copilot-sdk.session.html Adds recovery accessor documentation.
doc/​api/​github.copilot-sdk.specs.html Adds recovery spec documentation.
doc/​api/​github.copilot-sdk.teardown.html Refreshes generated navigation.
doc/​api/​github.copilot-sdk.tool-set.html Refreshes generated navigation.
doc/​api/​github.copilot-sdk.tools.html Refreshes generated navigation.
doc/​api/​github.copilot-sdk.util.html Refreshes generated navigation.
doc/​api/​github.copilot-sdk.workflow.html Refreshes generated navigation.
doc/​api/​index.html Refreshes generated index.
doc/​api/​overview.html Refreshes generated MCP topic.
doc/​api/​style.html Refreshes generated navigation.
doc/​api/​topic-manifest.edn Registers the new ADR.
doc/​api/​upstream-doc-gap-matrix.html Regenerates gap matrix.
doc/​getting-started.md Updates installation SHA.
doc/​index.md Links the new ADR.
doc/​mcp/​debugging.md Clarifies connected-server provenance.
doc/​reference/​API.md Documents recovery and process-exit behavior.
doc/​upstream-doc-gap-matrix.md Records supported and excluded surfaces.
examples/​session_resume.clj Demonstrates recovery policy and report checks.
resources/​github/​copilot_sdk/​api_surface.edn Updates public API snapshot.
schemas/​README.md Records schema provenance.
schemas/​api.schema.json Refreshes pinned API schema.
schemas/​session-events.schema.json Adds updated and internal wire declarations.
src/​github/​copilot_sdk.clj Exposes recovery through the facade.
src/​github/​copilot_sdk/​client.clj Implements recovery mapping and exit cleanup.
src/​github/​copilot_sdk/​generated/​event_specs.clj Regenerates wire event specs.
src/​github/​copilot_sdk/​instrument.clj Registers recovery fdefs.
src/​github/​copilot_sdk/​protocol.clj Adds fenced input termination and draining.
src/​github/​copilot_sdk/​session.clj Adds the recovery report accessor.
src/​github/​copilot_sdk/​specs.clj Defines recovery contracts.
test/​github/​copilot_sdk/​e2e_test.clj Exercises real transcript repair.
test/​github/​copilot_sdk/​integration/​client_test.clj Removes obsolete exit behavior coverage.
test/​github/​copilot_sdk/​integration/​stable_sync_19e9a4b_test.clj Certifies exact-pin parity.
test/​github/​copilot_sdk/​integration/​upstream_1_0_92_0_test.clj Tests new upstream contracts.
test/​github/​copilot_sdk/​optional_wire_contract_test.clj Enrolls the resume-only option.
test/​github/​copilot_sdk/​owned_process_exit_fixture.clj Provides process-exit fixtures.
test/​github/​copilot_sdk/​owned_process_exit_test.clj Covers TCP, stdio, startup, and shutdown exits.
test/​resources/​stable_upstream_delta_19e9a4b.edn Stores classified parity evidence.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@krukow
krukow merged commit 872e837 into main Oct 2, 2026
3 checks passed
@krukow
krukow deleted the krukow-upstream-sdk-sync-1fb branch October 2, 2026 07:50
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.

2 participants