Skip to content

feat: make the console operational with governed inference and editable configuration - #7

Merged
command0r merged 14 commits into
mainfrom
feat/console-v2
Oct 17, 2026
Merged

command0r merged 14 commits into
mainfrom
feat/console-v2

Conversation

@command0r

Copy link
Copy Markdown
Owner

Problem and result

The console exposed mostly read-only configuration, required a separate application key to run requests, and made it difficult to see why a request was routed, refused or charged. This change makes the console an operational workflow: connect once, configure approved models and workload profiles, preview and apply policies/budgets, run as an authorized test application, and inspect the actual trace and evidence.

For example, an explicitly granted Public workload can use an approved cloud route; detection can escalate synthetic sensitive content to PII and constrain it to approved local destinations. Pausing a route skips that target; pausing a policy refuses matching traffic. Neither action silently relaxes policy.

Changes

  • Versioned, persistent configuration with validation, impact previews, rollback, immutable request snapshots and legacy migration.
  • Editable connections, application/profile grants, policies, budgets and settings; single admin connection for console inference, improved navigation, request details and presentation mode.
  • Real request traces, approved transient-failure fallback, isolated exact caching and explicit usage/cost provenance.
  • Durable budget periods and reservations, cancellation-safe settlement, archived audit browsing and evidence export.
  • Isolated Ollama/Hybrid demo profiles, explicit model-bound cloud pricing, a launcher that keeps credentials out of normal output, and a corrected runbook.
  • ADR-0011 through ADR-0014 and one CI test check for both documentation-only and code changes.

Verification

Independently executed on macOS arm64 against source checkpoint 9e71d66; the final commit changes only the launcher/documentation and was separately exercised:

  • Full Release solution build: zero warnings/errors.
  • Embedded-console build/test: 780 passed, zero failed/skipped; 95.59% line / 83.65% branch coverage.
  • Fresh-output SkipConsolePublish=true: 780 passed.
  • Self-contained single-file publishes: osx-arm64 and linux-x64. Mac artifact executed; console, nested route and framework assets returned 200. Linux was cross-published, not executed.
  • Actual Ollama/Qwen requests; browser editing/preview/apply, Public-to-PII escalation, cache provenance, live traces and evidence lookup. Presentation layouts checked at 1280×720 and 1920×1080 in light/dark themes; narrow layout checked for horizontal overflow.
  • Independent probes covered stream errors/timeouts, cancellation, fallback accounting, concurrent budget reservations, cache-key collisions, pagination, audit archive persistence and ledger migration failures.
  • Launcher start/restart and real local inference; credential output/file permissions, exact model matching, spaced JSON catalog, occupied-port and missing cloud setup guards.

See acceptance record, migration notes, and demo runbook. Local verification logs/screenshots are excluded from Git; the acceptance record distinguishes executed checks from limitations. GitHub CI must pass separately.

Limits and rollout

  • NativeAOT remains blocked by Anthropic/Neo4j dependency analysis warnings; the supported artifact is the self-contained single-file publish.
  • Real paid-cloud smoke tests and Linux runtime execution have not been performed.
  • Classification is a narrow demonstration detector, not DLP. Estimated charges are not an invoice ceiling. Audit integrity does not establish answer quality.
  • Console attribution uses the shared admin credential; individual-admin IAM, semantic caching and prompt rewriting are outside this scope.
  • Configuration/accounting persistence changes require reviewing the migration notes. The demo launcher uses isolated port 5210/state; the existing instance on 5201 was left untouched.

This is one integrated PR because UI/backend contracts and subsequent fixes depend on each other; the complete branch, rather than intermediate checkpoints, is the verified merge candidate.

…e, fallback/trace/cache, budgets (ADR-0011..0014)

T01: ADRs, v2 API contract, migration notes, shared configuration model
(Covenant.Core/Configuration.cs), and stale-doc pointers. Clarifies the
'not a gateway' directive: governed routing/fallback/attribution are in
scope; provider breadth is not.
…code, never two results

T10 (part): removes ci-docs.yml, whose shared check name could report twice for
mixed changes. Docs/deploy-only diffs pass in seconds; any code change runs the
full build, tests and the 0.80 coverage gate.
- fail-closed for applications missing after the one-time legacy import
- UTF-8 byte bound (not chars/4) for reservations; overruns settled in full and flagged
- ledger accrues by scope + timestamp, so budget id/period/cap edits never reset usage
- no AllowSensitiveCloud: PII/PHI cloud targets are never eligible
- live activation-audit failure: fail-closed halt + boot recovery; activation journal
  defines history (orphans excluded); compile before pointer swap; total validation;
  boundary bound to startup allow-list; disabled import placeholder; SDK retries/redirects off
…e v2, simulator (T02/T03 checkpoint)

Repository + snapshots + validation + impact + legacy import/seeds, application/profile
identity, baseline-escalation classification, policy precedence/eligibility, config and
simulator admin APIs, audit v3 event fields. Includes the reviewer-verified Task<IResult>
lambda typing (CS0825). Known open review items are fixed in follow-up commits.
…trace, safe markdown (T07 checkpoint)

Tests in ConsoleLogicTests still reference removed v1 helpers; fixed in the follow-up.
…ozen snapshots, journal lineage, torn-tail repair

- out-of-range enums / null objects → validation errors (200 valid=false, 422), never 500
- ambiguous bare model override refused; connection/model required
- RuntimeSnapshot deep-copies every collection
- unknown connections never eligible; legacy local placeholder imported as DISABLED
- AllowSensitiveCloud removed: PII/PHI cloud target is a validation error
- Local boundary bound to startup-approved endpoints
- application missing after legacy import → 403 at auth
- console identity cannot be set from /v1
- activation journal defines history; orphans excluded and never reused; compile before durable write
- torn journal tail quarantined + journal rewritten before any append (reviewer reproducer added)
- provider clients: no redirects, SDK retries off, connection timeout enforced
- UI: v2 test assertions, config contract round-trip test, AllowSensitiveCloud removed
… live trace, approved fallback, cache isolation, archive/export (T04/T05/T06 checkpoint)
…e, settlement, cache keys, team, early id, paging, ledger bootstrap/replay, health, bounds

B1 incomplete streams fail (no fallback, never cached, partial kept); provider finish reason relayed;
completed EMPTY streams are a 200 SSE success (no false 403) on both dialects; B2 'mixed' basis;
B3 finite overall deadline; B4 finally-based exactly-once settlement; B5 length-prefixed cache
identity incl. original params + every candidate bound, served provenance; B6 active app team on
/v1; B7 submissions endpoint for early request id; B8 stable cursors + 410 on rotation; B9 atomic
ledger bootstrap with marker; B10 replay validation; B11 runtime connection health; B12 requested
vs effective output bounds; B13 NativeAOT blocker documented (not suppressed). Also qualifies
Covenant.Governance.LedgerReplay.Validate (CS0104 with Host.LedgerReplay).
…missions, policy create/split, presentation focus, health, bounds, paging) + test-only name fixes

Applies the reviewer's two test compile fixes (Covenant.Host.LedgerReplay qualification;
using Covenant.Adapters in ReviewRound2Tests).
…0; final classification facts; 'Evidence recorded' wording; prose to details (UI round 3)
…explicit hybrid seed prices, v2 runbook

- hybrid seed never assumes a cloud price: Pricing:<model>:InPer1M/OutPer1M required (basis/date kept);
  regressions: custom model without prices refused, supplied prices retained, local-only needs none
- launcher: own port (5210) and state dir per profile, Config:Seed, no app key in the console flow,
  FRESH=1 renames old state (never deletes), never touches other instances
- runbook: preflight + A/A'/B/B'/C/D/F/G/H/pause/auth walkthrough with expected trace and cost/evidence
@command0r
command0r merged commit a7d61a9 into main Oct 17, 2026
1 check passed
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