Skip to content

Hosted teaching agents: resumable sessions and shared Operations

Status: accepted for the personal pilot (2026-10-26); DSH is the first harness to try and may be replaced if the trial exposes problems.

Emergent will host an agent harness and its working environment in Kubernetes, using Chinese hosted model providers, initially DeepSeek. The first user is Anton, with the aim of moving his existing document-processing and marking workflows into the cluster. The pilot uses the full DeepSeek Harness SDK with a controller and native child agents in one pod per root Agent Session. Its existing delegation and checkpoint machinery reduce the coordination Emergent must build; Pi is the fallback if DSH proves a poor fit. This is a selection for the pilot, not a claim that integration or handwriting quality has been demonstrated.

Hosted and workstation agents use the same person-bound Operations API. The hosted agent gets pod-internal file-processing tools and the required API access; Anton retains his separate machine/cluster access. All three main UIs will expose the hosted assistant alongside a local browser pgwasm REPL through a local opt-in preference. That REPL is Anton’s direct access to his own browser database and is separate from the hosted agent’s tools. The preference grants no server authority; Operations retain their normal authentication and permission checks.

An Agent Session outlives its pod. Conversation state, required working files and completed results are retained in the cluster’s S3-compatible storage, allowing a fresh pod to restore the work. Active work can continue with the browser closed; idle pods may stop. Interrupted tools with unknown outcomes must be reconciled before retrying effects. Retaining a root transcript alone is insufficient: child sessions and the files needed for continuation also belong to the recovery state.

Additional tool and library installations are allowed inside the pilot pod. All installations must be recorded so actual use can inform a stable toolkit and possible restrictions before wider deployment. The proposed record includes the requested tool/source, resolved versions, task reason and outcome, with dependency inventories and enough environment information to restore work. This evidence remains durable even when disposable scripts and scratch files are cleaned up. Sessions, original sources, transcriptions, rubric/mark revisions and bundles remain until explicitly deleted; reconstructible scratch may be cleared after checkpointing.

The first workflow produces a Marking Bundle from an original assessment paper and scanned handwritten scripts. Every script and page remains individually inspectable through a report/scans/chat interface. A correction applies to the selected script unless Anton explicitly changes the shared rubric; rubric changes identify affected answers across the cohort and retain earlier marks and explicit human overrides for review. Gradebook integration is deferred. Missing-API feature requests are also later work and stay inside Emergent, with database storage acceptable and no GitHub/Gitee submission in this scope.

The initial bundle contains structured JSON marks, readable per-script reports, a CSV summary and source PDFs/images, with a full download for archiving or adding to Anton’s Git-managed output tree. Its format can evolve after use; modelling all marking contents in the database is deferred.

  • DSH versus Pi: Pi provides simpler direct Bun embedding; DSH supplies native background delegation, messaging and checkpoint behavior. Accept DSH’s separate runtime and preview status for the first trial, while keeping the workflow’s inputs and Marking Bundle independent of the harness.
  • One pod per root session versus one pod per worker: native children within one pod are sufficient for the trusted personal pilot and avoid a separate distributed worker scheduler. Separate worker pods can follow if measured workload needs justify them.
  • Durable work versus a permanently running pod: restoring conversation and files supports long review gaps without retaining live processes. This requires explicit checkpoint/artifact handling; the harness does not supply an S3 backend or process resurrection.
  • Marking Bundle versus immediate native grading: a portable bundle reproduces the useful existing workflow without first solving retrospective paper-script intake and agent grading provenance in the canonical Assessment/Attempt/Score model.

The design record holds the verified integration details and trial criteria. The initial implementation now includes the three-app console, owner-bound session API, Kubernetes pod lifecycle, DSH worker, S3 checkpoints, installation evidence and portable marking exporter. The runbook describes deployment configuration. The feature remains disabled by default; development verification does not establish live provider or handwriting quality.