-
Notifications
You must be signed in to change notification settings - Fork 3
plat 566
github-actions[bot] edited this page Oct 6, 2026
·
3 revisions
| Field | Value |
|---|---|
| State | fixed on main |
| Priority | P3 |
| Product | brain |
| Area | chat |
| Summary | The Brain chat did not know the caller's role and asked an administrator whether they were one |
RTS, 2026-10-06: asked to set up Git backup, the Brain chat answered "I can't tell from here" when the owner (an administrator) asked whether they were one, and wanted their GitHub username before doing anything. The chat prompt was static text ("ask an administrator for ...") and carried nothing about the caller. The server decides every request (configure_backup needs an unrestricted administrator), so this was only the model not knowing.
-
knowledgebaseCallerLine(cmd/server/knowledgebase_runtime.go) states the caller's role; registered as the Brain profile's prompt variableCALLER(server.go) and used inaccess-builder.md. - The backup instruction now asks for the repository URL, the GitHub username and the branch, not "ask an administrator".
- Owner, 2026-10-06 ("why is the agent so limited"): a request that says to set up the backup and push now covers status, commit and push after the setup card is approved, instead of three more asks. Configure-only requests still stop after setup. The approval card stays the consent step; discard, branch changes and anything not asked for are unchanged.
- Owner, 2026-10-06 ("it should all be agentic like other products", "token will store in secrets"): the Brain chat no longer shows an approval card for binding or unbinding a project, setting its Brain access mode, or backup setup; they run when asked and the chat reports what changed. The card stays for grant, revoke and service accounts (note text is untrusted). A Git token never passes through the chat: setup takes
pat_secret, the name of a platform (global) secret the administrator adds under Secrets, and Brain reads it when it runs Git (BACKUP_SECRET_MISSINGif it is gone); a raw token sent through the chat is refused. The oldpatargument and the card's token field still work for the app and MCP paths. - Tests: two card-flow tests replaced by
TestKnowledgebaseChatBackupSetupIsDirectAndTokenIsASecret. - Checked by rendering the real profile prompt; fix 1 is live on RTS (the chat went straight to the repository card), the backup flow change is not deployed.
- Deploy to RTS, then ask the Brain chat to set up backup and confirm it goes straight to the details.
- Not a bug: the Brain tab's empty-looking tree on RTS was
RTS/Latencycollapsed; files load when a folder is expanded (gateway log shows the deeper requests succeed).
Auto-synced from docs/ on main. Edit there, not here.