feat: support hidden per-org direct agent #1309
All Vouch review confidence checks passed
Residual risk 0.19 = Change Risk (0.36) × (1 − Review Confidence (0.47)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.36 · 180 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Shallow Review Depth
shallow_review_depth
0.344
Diff Size
diff_size
0.311
Real PR Conversation Timeline
1 comments
"Review active on #1309"
general
weight: 0.35
claude[bot]
What
Node support for the hidden per-org "direct" agent behind the new Python endpoint
POST /api/v2/model/direct/completion(Walkover-Web-Solution/gtwy-ai#1792)."direct"in theConfigurationbridgeTypeenum, so Node saves and validated updates on that doc don't fail.bridgeType: "direct"fromgetAllAgentsInOrg(main agent list) andgetAgentsByUserId(embed).GET /api/agent/directreturns{ agent_id }, ornullbefore the org's first direct call. The UI can pass it to the existing history page.Why
Each org's direct API calls run under one hidden agent created by the Python service. It should not show up as a normal agent, but its history should be viewable.
Notes for reviewers
org_id + bridge_idand don't require versions.findIdsByModelAndService,getAgentsAndVersionsByModel) are not filtered. The direct agent never storesconfiguration.model(each call's config lives only in the request), so it can't match them./directis registered above/:agent_idso it isn't read as an agent id.Testing
node --checkon all changed files, and the repo's pre-commit hook (prettier + eslint via lint-staged) passed. Not exercised against a running server.🤖 Generated with Claude Code