stage-7: demo polish — mesh-aware demo command, current README, run-sheet
psyc demo now closes with cockpit links pointing at the Worker Mesh and reports whether the live model server is up. README rewritten to current state — Worker Mesh, inference server, model-in-operation, the three services, accurate code layout. Adds docs/demo.md, a one-page run-sheet. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -8,6 +8,7 @@ import typer
|
||||
import uvicorn
|
||||
|
||||
from psyc import db, log
|
||||
from psyc.cockpit import inference
|
||||
from psyc.lines import classify, courier, route, scout, seal, train
|
||||
from psyc.lines import map as map_line
|
||||
from psyc.models import Outcome
|
||||
@@ -315,8 +316,15 @@ def demo() -> None:
|
||||
for b in blocked:
|
||||
typer.echo(f" ⊘ {b.destination_name}: {b.reason}")
|
||||
typer.echo("")
|
||||
typer.echo(f"inspect: http://127.0.0.1:8767/cases/{case.case_id}")
|
||||
typer.echo(f"ledger: http://127.0.0.1:8767/ledger")
|
||||
typer.echo("── see it in the cockpit ──")
|
||||
typer.echo(f" Worker Mesh: http://127.0.0.1:8767/cases/{case.case_id}/journey")
|
||||
typer.echo(f" Case detail: http://127.0.0.1:8767/cases/{case.case_id}")
|
||||
typer.echo(f" Ledger: http://127.0.0.1:8767/ledger")
|
||||
adapter = inference.server_adapter()
|
||||
if adapter:
|
||||
typer.echo(f" Live model: up ({adapter}) — the Classifier bot shows its verdict")
|
||||
else:
|
||||
typer.echo(" Live model: inference server offline — Classifier bot falls back to rules")
|
||||
|
||||
|
||||
@app.command("serve")
|
||||
|
||||
Reference in New Issue
Block a user