feat: implement Ace doctrine — core packages, API routes, DB migration, Meridian screens#140
Draft
Copilot wants to merge 3 commits into
Draft
feat: implement Ace doctrine — core packages, API routes, DB migration, Meridian screens#140Copilot wants to merge 3 commits into
Copilot wants to merge 3 commits into
Conversation
…me packages Agent-Logs-Url: https://github.com/Rumblingb/Agentpay/sessions/1e93ec51-3b67-49f2-9267-75d5beffbe02 Co-authored-by: Rumblingb <190477445+Rumblingb@users.noreply.github.com>
Agent-Logs-Url: https://github.com/Rumblingb/Agentpay/sessions/1e93ec51-3b67-49f2-9267-75d5beffbe02 Co-authored-by: Rumblingb <190477445+Rumblingb@users.noreply.github.com>
…IDs in plan.ts Agent-Logs-Url: https://github.com/Rumblingb/Agentpay/sessions/1e93ec51-3b67-49f2-9267-75d5beffbe02 Co-authored-by: Rumblingb <190477445+Rumblingb@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
Rumblingb
April 6, 2026 21:27
View session
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Establishes the canonical Ace architecture: intent → policy → recommendation → approval → execution → live recovery. Lays the full structural foundation across packages, API, DB, and mobile surfaces.
New packages (
packages/)ace-core— canonical TS types:Principal,Operator,TripIntent,TravelPolicy,ApprovalDecision,JourneySessionace-policy— pure policy evaluators:canOperatorAct,getApprovalRequirement,canAutoBook,evaluateOperatorSpendLimit; implements the approval ladder (auto → human_confirm → escalate)ace-delegation— operator registry:createOperatorRecord,isOperatorActive,revokeOperator, typedAllowedActionenumace-events— 15 event type literals with payload shapes +AceEmitterinterface +makeAceEventfactoryace-runtime—BookingAdapter,PaymentAdapterinterfaces +ExecutionRequest/Result,RerouteAction,RollbackActioncontractsDB migration 036 (additive only)
Six new tables:
ace_principals,ace_operators,ace_travel_policies,ace_trip_intents,ace_approvals,ace_journey_sessions— allIF NOT EXISTS, all indexed.API routes at
/ace/(apps/api-edge/src/routes/ace/)Full intent lifecycle mounted at
/ace:Meridian screens (
apps/meridian/app/(main)/)converse/— monolithicconverse.tsx(3494 lines) replaced by a directory:index.tsxpreserves all existing behaviour;_voice-runtime.tsx(mic state machine hook),_session-orchestrator.tsx(turn history + journey continuity),_recommendation-surface.tsx(plan card + approval badge)approval/[intentId].tsx— three visual states:policy_auto/human_confirm/escalatedelegation/index.tsx+delegation/[operatorId].tsx— trusted operator list + per-operator trust config with revokepolicy/index.tsx— travel constitution UI: rail auto-book limit, flight confirmation toggle, class preference, max arrival hour, operator permissions linkjourney/_disruption-card.tsx+journey/_recovery-surface.tsx— live disruption display + reroute options; escalation/support surface