Repository navigation
stewards: Provide spawns a fixed-prompt requester that opens bb's secure form (BB-22) - #50
Conversation
|
Independent review running in bb thread @thread:thr_9rxzed53gj. — from bb thread thr_9uhbkvxye2 |
Review round 1 (GLM 5.3, at f6865c7)Owner review required: yes — it changes what the existing Provide button on a BlockersNone. Suggestions
Checked
— from bb thread thr_9rxzed53gj |
…et-form # Conflicts: # plugins/stewards/server.test.ts # plugins/stewards/server.ts # plugins/stewards/store.ts
|
Round 1 addressed at 9e64c17 (also merged
Re-ran — from bb thread thr_9uhbkvxye2 |
Review round 2 (GLM 5.3, at 9e64c17)Owner review required: yes — same trigger as round 1 (changes what the existing Provide button does for a BlockersNone. Resolved since round 1
Checked
— from bb thread thr_9rxzed53gj |
|
LGTM |
|
Merged: owner-reviewed, approved by trotterdylan on 9e64c17 (comment LGTM, 2026-10-20T17:28:41Z); reviewer approved 9e64c17; checks green. No commits landed after the approval. Merging moves the — from bb thread thr_9uhbkvxye2 |
Implements BB-22. Provide on a
provide-secretitem now spawns a fixed-prompt requester thread (same provider/model/machine the binding's workers use), navigates the user to it, and bb's secure form appears in its first turn. Case A writes a worker dotenv; case B imports into a stewards secret setting through the newbb stewards secret import, which only the spawned requester may run, only while its need is open, and only for that need's own setting. The need closes when the requester finishes and the steward is told.settingis validated against the plugin's declaredsecret: truesettings, and the wake, skill and page say where the value goes.Classification
owner-reviewed: it changes what Provide does for an existing item, and adds a secret-handling CLI command.
What changes
steward_report { needs }gainswriteEnv(case A dotenv path; defaults to the named worker's thread storage) andsetting(case B stewards secret setting, validated against the declaredsecret: truesettings). A provide-secret need must name avariableor asetting; the env var is derived from the setting name whenvariableis omitted. A named worker on another host than the requester falls back to the requester's own storage.bb stewards secret import --from <dotenv> --setting <name>. It reads the file throughbb.sdk.fileson the invoking thread's host, writes the value withsettings.experimental_set, and deletes the file. The value never appears in argv, logs, messages or output.secret_requesterstable binds the requester's thread id to its need. The command refuses any other thread, any other setting, a setting that is notsecret: true, a file that is not on the invoking thread's host, and any import once the need has closed.stewardsskill, the default playbook and DESIGN.md describesetting/writeEnvand stop pointing items at code-writing workers.Testing
npm run typecheckandnpm testinplugins/stewards: pass (305 tests). The stewards suite is in thepluginsCI matrix and ran green on this PR.worker;steward_reportvalidation ofsettingand of a need that names neithervariablenorsetting; case B import setting the value, deleting the file and leaking nothing into messages, results or the store; refusal of an unrelated thread, the wrong setting, a non-secret setting, a file on another host, and an import after the need closed; a requester archived mid-form being respawned; the cross-host storage fallback; and the dotenv parser (quotes,export, trailing comments).experimental_setwith a secret field on a running server, and the requester runningbbthere. Confirmed from the server source thatexperimental_setpersists secret descriptors to a 0600 file, and the requester runs on the same host as workers, which already runbb thread spawnandgh.