Skip to content

fix: polish demo proxy, MLflow curl, and 5-min narrative - #35

Merged
cmcornejocrespo merged 7 commits into
davidseve:mainfrom
cmcornejocrespo:polishing
Oct 22, 2026
Merged

cmcornejocrespo merged 7 commits into
davidseve:mainfrom
cmcornejocrespo:polishing

Conversation

@cmcornejocrespo

Copy link
Copy Markdown
Collaborator

Summary

  • Harden MLflow API access from scripts (ephemeral curl pod instead of distroless OpenShell gateway) and cache demo /api/health enrichment so the presenter UI does not false-report Proxy offline.
  • Tighten NeMo guardrails refusal assertions and pin Playwright browsers cache path for durable local runs.
  • Add five-minute one-take demo narratives (ES/EN) with index/ROADMAP/AGENTS cross-links, plus an agent rule requiring unsandboxed Shell for oc/openshell.

Details

Live demo polish after cluster/UI friction: OpenShell gateway images are distroless (no shell/curl for MLflow helpers), concurrent log polling was pushing /api/health past the browser AbortSignal, and bare "policy" matches false-positived Test D-before when the model mentioned egress policy. The short-slot narrative keeps the same A–D controls with a tighter talk track for video / DemoJam timing.

Area Change
Scripts common.sh MLflow curl via ephemeral pod; Playwright cache path
Presenter Health enrichment TTL cache + 15s proxy health timeout
Tests Narrower NeMo refusal patterns + unit coverage
Docs demo-narrative-5min.md / .en.md + script table
Agent .cursor/rules/oc-shell-unsandboxed.mdc + skill notes

Key findings during testing:

  • OpenShell gateway pods lack bash/sh/curl — do not use them as MLflow exec targets.
  • Concurrent observability polling can starve /api/health past an 8s UI timeout without enrichment caching.
  • Model replies that mention sandbox “egress policy checks” must not count as NeMo refusals.

Test plan

  • ./scripts/validate-demo-ui.sh (unit tests including new NeMo policy false-positive case)
  • Start presenter (./scripts/demo-presenter-serve.sh with unsandboxed Shell) and confirm /api/health stays healthy under log polling
  • Smoke ensure_mlflow_experiment / MLflow helpers with no sandbox pod (ephemeral curl path)
  • Skim docs/demo-narrative-5min.md + docs/demo-script.md § Five-minute one-take for link consistency

Made with Cursor

cmcornejocrespo and others added 7 commits October 22, 2026 14:35
Avoid exec into distroless OpenShell gateway; parse experiment JSON robustly and handle RESOURCE_ALREADY_EXISTS races.

Co-authored-by: Cursor <cursoragent@cursor.com>
Keep /api/health under the UI AbortSignal budget so concurrent log polling does not false-report Proxy offline.

Co-authored-by: Cursor <cursoragent@cursor.com>
Drop bare "policy" matches that false-positive on sandbox egress policy wording in Test D-before.

Co-authored-by: Cursor <cursoragent@cursor.com>
Override Cursor sandbox PLAYWRIGHT_BROWSERS_PATH so tests reuse the durable OS browser cache.

Co-authored-by: Cursor <cursoragent@cursor.com>
Cursor Agent Shell sandbox false-fails oc whoami; document required_permissions all in rule, skills, and presenter preflight.

Co-authored-by: Cursor <cursoragent@cursor.com>
Same A–D controls as the live script with a tighter talk track for short slots and video; cross-link from index docs and ROADMAP.

Co-authored-by: Cursor <cursoragent@cursor.com>
Keep downloaded demo recordings and other local scratch out of git.

Co-authored-by: Cursor <cursoragent@cursor.com>
@cmcornejocrespo
cmcornejocrespo merged commit d71f07d into davidseve:main Oct 22, 2026
1 check passed
@cmcornejocrespo
cmcornejocrespo deleted the polishing branch October 22, 2026 13:34
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