Skip to content

Add CAOS surface registry and proactivity policy - #2

Draft
caosos wants to merge 4 commits into
fix/chat-hydration-gates-v1from
fix/surface-registry-v1
Draft

Add CAOS surface registry and proactivity policy#2
caosos wants to merge 4 commits into
fix/chat-hydration-gates-v1from
fix/surface-registry-v1

Conversation

@caosos

@caosos caosos commented Apr 27, 2026

Copy link
Copy Markdown
Owner

Summary

This stacked draft PR adds the first cockpit-awareness layer on top of the hydration-gates branch.

What changed

  • Added backend/app/services/surface_registry.py

    • Static/pure registry of CAOS surfaces Aria should know exist.
    • Includes Memory Console, Support Tickets, Admin Dashboard, Admin Docs, Artifacts, Files/Photos/Links, Engine Selector, Agent Swarm, Voice/Speech, Thread Search, WCW Meter, and Quick Capture.
    • Maps surface wake patterns to departments, display hints, and first actions.
  • Added backend/app/services/proactivity_policy.py

    • Pure frontal-lobe policy classifier.
    • Classifies latency, bug/problem, code/deployment, memory/continuity, retrieval/connector, display/artifact, support ticket, surface navigation, and casual/direct turns.
    • Produces a receipt-friendly decision with primary_intent, wake_departments, matched_surfaces, display_hints, first_action, diagnose_before_ticket, allow_tools, and allow_connectors.
  • Updated backend/app/services/chat_pipeline.py

    • Builds proactivity decision per turn.
    • Lets proactivity policy wake tools/connectors/summaries/seeds/lane workers when the user language indicates the relevant surface or department.
    • Adds proactivity policy into prompt sections and receipts.
    • Keeps admin tool behavior hot.
  • Updated backend/app/services/artifact_builder.py

    • Persists proactivity_policy into receipt records.

Intent

Aria should know the cockpit she lives inside: memory console, support tickets, admin dashboard, docs, artifacts, files/photos/links, engine selector, agent swarm, voice settings, WCW meter, thread search, and quick capture.

This PR does not add new UI. It adds the backend registry/policy layer so later prompt/tool/display planning can use the same source of truth.

Safety

  • Stacked on PR Fix chat hydration gates and standby tool prompt #1 (fix/chat-hydration-gates-v1).
  • No changes to auth, secrets, billing, deployment config, or frontend.
  • No capability removal.
  • Pure policy modules only; no DB/tool/provider side effects in new files.
  • Draft PR for review/preview only.

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