Skip to content

Enable authenticated Workbench evaluation jobs - #87

Merged
DamianReeves merged 5 commits into
mainfrom
DamianReeves/workbench-job-transport
Oct 15, 2026
Merged

DamianReeves merged 5 commits into
mainfrom
DamianReeves/workbench-job-transport

Conversation

@DamianReeves

@DamianReeves DamianReeves commented Oct 15, 2026 •

Copy link
Copy Markdown
Member

Connected Model Explorer can evaluate public entries through a separately authenticated job offer. Fields, JSON and Ion inputs use one immutable captured model and the existing typed Scheme evaluator. Jobs remain disabled unless MORPHIR_WORKBENCH_JOBS=1 is set alongside the explicit loopback Rust host URL.

The gateway authenticates every job request against the real connected v1 session cookie, delegates admission and receipts to shared MoonBit code, and schedules at most two isolated Node workers. Cancellation acknowledgement stays separate from terminal evidence; workers must exit and cleanup must complete before publication. Requests, outputs and retained jobs have explicit bounds, with duplicate-aware framing and an Ion lexical depth check before recursive parsing.

The shared browser/Proton UI retains admitted state across a failed query, explicitly reauthenticates before resuming the same identity, blocks blind retry of unknown submissions, and displays actual terminal evidence in Output/Diagnostics. The latest host entry retains its editable draft and full result across declaration navigation; a disconnected terminal awaiting release reconciliation also blocks model replacement. Packaged Proton accepts an explicit one-use loopback launch URL. Connected v1 manifests and JSON-RPC methods remain unchanged.

Paired protocol contribution merged: finos/morphir#1047 at d25a180b. Tracks morphir-etg2.13. Native daemon IPC, generated-code browser execution and durable recovery remain separate follow-ups.

Validation:

  • Full mise run check passes on final head 85f57da, including all four target test/build suites, CLI/installed npm, generated compiler acceptance, 60 execution-fault cases and rich execution. Required lint, format and package/configuration validation pass; main test(host): finish signed provider qualification #86 is incorporated.
  • Five transport tests across JS/native/Wasm/Wasm GC; 64 Workbench Node tests.
  • Real Rust/Chromium and packaged Proton: ten authenticated jobs each covering exact Decimal fields/JSON/Ion results, Result.Err, SDK errors, cancellation, query-disconnect/resume without resubmission, stale inputs, retained declaration drafts/results, lost release response blocking replacement, and terminal panels.
  • Jobs-disabled real v1 compile/generate/project opening; full standalone browser and packaged Proton acceptance.
  • Upstream historical schema gate and 71 new profile cases; HTML plans, responsive/print checkboxes and diagram provenance checked locally.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 90459e4eec

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread apps/morphir-workbench/browser/main.mbt
Comment thread apps/morphir-workbench/browser/main.mbt Outdated
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-15T22:08:37.802873Z 90459e4 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

DamianReeves added a commit to finos/morphir that referenced this pull request Oct 15, 2026
Bind existing job receipts and terminal outcomes to per-request connected v1 session authentication. Define closed HTTP submission/query/cancel/release contracts with JSON and Ion inputs, bounded framing, explicit retention and same-session reconciliation. Add 71 independent structural cases to the existing schema gate.

Refs morphir-etg2.13; paired implementation finos/morphir-moonbit#87.
@DamianReeves
DamianReeves merged commit 95f5193 into main Oct 15, 2026
26 checks passed
@DamianReeves
DamianReeves deleted the DamianReeves/workbench-job-transport branch October 15, 2026 23:20
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