Skip to content

docs: define independent HarnessContext sources (Plan / Interface) - #1814

Merged
JAORMX merged 7 commits into
mainfrom
plan/harness-context
Sep 24, 2026
Merged

JAORMX merged 7 commits into
mainfrom
plan/harness-context

Conversation

@JAORMX

@JAORMX JAORMX commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor

Stage: Plan / Interface (draft)

Defines HarnessContext as deployment-configured instruction and customization sources independent from execution. APIs, host files, and explicitly selected execution files are valid source backends; location does not determine trust or precedence.

Proposed contract

  • Workspace-free prompt assembly, expansion, and listing with source-bound filesystem adapters.
  • Five typed app.Config registration slices and strict operator-only per-kind source ordering, combine/replace, exclusions, and named overrides.
  • Registered provenance cannot be promoted by source content; source-only discovery owner-authorizes without unrelated execution reattachment.
  • Operator-authorized lifecycle clarification: Close retires a binding generation, not a session ID forever. Explicit owner-authorized supported reload uses the consumer-local Activate seam to create a fresh generation under current authorization. Retired generations never reopen; stale borrowers cannot reactivate them; old cleanup cannot affect replacements; Build shutdown permanently closes admission.
  • Existing sessions and schedules rebind current configuration/authorization after restart. No durable context identity or public generation selector.

Delivery

Plan/contract → draft stacked shared implementation → #580 and #1811 sibling integrations.

The operator explicitly authorized draft stacked implementation before plan merge and subsequently authorized the generation-lifecycle clarification. The amended proposed baseline is 0e34def45a89bace7d89e1d8ec2a09d78d54bedd, descending from a5c503b3812dd45bb391150a6ffe96eb0f6991c6. The plan remains proposed and unmerged; neither authorization is approval by merge. Both human merge gates and the contract-drift stop remain. No production implementation is included in this PR.

Verification of the amendment

  • Acceptance-plan checker: PASS, 21 ACs, resolved human decisions.
  • task docs: PASS, including checker fixtures and strict documentation checks.
  • git diff --check: PASS.
  • Domain model unchanged; no implementation status added.

PR remains draft for human review. Relates to #580 and #1811; closes neither.

JAORMX and others added 7 commits September 24, 2026 09:57
Define the proposed HarnessContext boundary and draft the shared interface contract ahead of MicroVM and Redis integration. Permit explicitly configured sources backed by execution files without deriving source authority from execution placement.

Co-Authored-By: OpenAI <[email protected]>
Renumber the proposed harness context decision to 0354 after main assigned 0353 to session-scoped identity. Update contract references and record the draft plan PR.

Co-Authored-By: OpenAI <[email protected]>
Remove delivery labels from HarnessContext definitions, invariants, relationships, and scenarios. Persist the domain-model authoring rule and regenerate the model from YAML.

Co-Authored-By: OpenAI <[email protected]>
Capture helpdesk and hybrid coding contexts, explicit per-kind overrides and contribution resolution, provenance preservation, and source-independent execution. Keep configuration-schema decisions in the draft acceptance contract, not in model definitions.

Co-Authored-By: OpenAI <[email protected]>
@JAORMX
JAORMX force-pushed the plan/harness-context branch from 0e34def to 0355e5e Compare September 24, 2026 07:05
@JAORMX
JAORMX marked this pull request as ready for review September 24, 2026 12:28
@JAORMX
JAORMX merged commit 2329ae9 into main Sep 24, 2026
64 checks passed
@JAORMX
JAORMX deleted the plan/harness-context branch September 24, 2026 12:28
@toolhive-release-app toolhive-release-app Bot mentioned this pull request Sep 25, 2026
2 tasks
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.

1 participant