-
Notifications
You must be signed in to change notification settings - Fork 0
feat: show contextual-orchestrator envelope fail-closed (v0.84.0) #228
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| # 0.84.0 — Fail-closed contextual-orchestrator envelope | ||
|
|
||
| ## Added | ||
|
|
||
| - Home Orchestration panel publishes the portable task envelope | ||
| (ADR 0025). After login with the host unset, Demo Analyst sees | ||
| **Orchestration · contextual-orchestrator not available**. When the | ||
| port is configured, the next actions are **Structured work uses auto** | ||
| and **Checked judgment uses verify**. Never invent a completion or a | ||
| theta. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,58 @@ | ||
| # ADR 0025 — Fail-closed contextual-orchestrator task envelope | ||
|
|
||
| **Decision status:** Accepted | ||
| **Date:** 2026-08-17 | ||
|
|
||
| ## Context | ||
|
|
||
| Issue #79 requires a versioned fail-closed REST adapter until reviewed | ||
| upstream `contextual-orchestrator` main exposes the required portable | ||
| task envelope. Structured extraction already requests `auto` (ADR 0013). | ||
| Checked judgment (lineage adjudication, citation-bearing chat) still | ||
| requests `verify`. Deployed upstream `main` accepts | ||
| `auto` / `route` / `conduct`; `verify` can return `invalid_mode` | ||
| until `ContextualWisdomLab/contextual-orchestrator#149` lands. | ||
|
|
||
| A missing host, a missing key, or `invalid_mode` must not become an | ||
| invented completion, a confidence of 0.0, or a TEPP theta. RankWeave | ||
| status stays on ADR 0024. TEPP stays on #214. This slice does not | ||
| bind demo Keycloak to production Keyverse. | ||
|
|
||
| ## Decision | ||
|
|
||
| 1. Consume the orchestrator only through `OrchestratorClient`. The | ||
| default transport raises `OrchestratorNotAvailable`. | ||
| `build_orchestrator_client` publishes the envelope only when both | ||
| `ORCHESTRATOR_BASE_URL` and `ORCHESTRATOR_API_KEY` are set. | ||
| 2. The portable envelope is closed (`additionalProperties` stay out): | ||
| `contract_version`, `task_kind`, `mode`, `reasoning_effort`, | ||
| `prompt_hash`, `access_list`. Structured work uses `auto` / | ||
| `medium`. Checked judgment uses `verify` / `high`. | ||
| 3. `GET /api/orchestration` (`post_read`) returns buyer status. Home | ||
| GET never POSTs `/v1/chat/completions`. An `invalid_mode` transport | ||
| error is `orchestrator_invalid_mode`, never a fabricated score. | ||
| 4. After login, Orchestration sits above Rankings. Unavailable copy is | ||
| **Orchestration · contextual-orchestrator not available**. An | ||
| accepted row names **Structured work uses auto** and | ||
| **Checked judgment uses verify**. | ||
|
|
||
| ## Consequences | ||
|
|
||
| Demo compose without orchestrator credentials fail-closes on home. | ||
| Wiring a live submit transport is additive. Adjudication still owns | ||
| pair-wise `verify` calls; this port does not invent their verdicts. | ||
|
|
||
| ## References | ||
|
|
||
| Omidvar, H., & Akhlaghi, V. (2026). *A communication-theoretic | ||
| framework for LLM agents: Cost-aware adaptive reliability* [Preprint]. | ||
| arXiv. https://doi.org/10.48550/arXiv.2605.09121 | ||
|
|
||
| Tang, Y., Cetin, E., Xu, J., Sun, Q., Nielsen, S., Richard, V., Goda, | ||
| H., Tymchenko, I., Nguyen, N., Lee, H., Ashiga, M., Kotyan, S., | ||
| Kuroki, S., & Clanuwat, T. (2026). *Sakana Fugu technical report* | ||
| [Technical report]. arXiv. https://doi.org/10.48550/arXiv.2606.21228 | ||
|
|
||
| Contextual Wisdom Lab. (2026). *Contextual orchestrator* [Software | ||
| documentation]. | ||
| https://github.com/ContextualWisdomLab/contextual-orchestrator |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win
backend/tests/의 라이브 스택 테스트 규칙을 준수하세요.Line 36의 테스트는
load_settings()를 직접 호출합니다. 이 테스트는make up없이 실행되고 self-skip도 하지 않습니다. 라이브 스택을 사용하는 통합 테스트로 변경하거나, 이 순수 설정 테스트를backend/tests/밖의 적절한 단위 테스트 위치로 이동하세요.As per coding guidelines, "
backend/tests/andtests/test_schema.pyare real-integration tests against a live local stack (make up) and self-skip without one."🤖 Prompt for AI Agents
Source: Coding guidelines