Repository navigation
Conversation
f55f8d3 to
143a52b
Compare
The inspector note and the define_workflow descriptions read as if the connectors already work. The spawn change that passes spec.tools to fb.bot.create is not merged, so the host records no stepTools and connector-access refuses every connector. Say so in the three texts an agent or the UI reads directly.
143a52b to
fca85c3
Compare
|
|
|
Closing this one as superseded — no code in it is wrong, it is the timing that no longer works.
So the ordering is: Its unique content is not lost. Written-by: FlyBot Lead, three items go into one follow-up pull request after
Nothing is pushed and no tip moves: the |
|
Replacement link, added for the owner's PR-closure audit, so the closure above is traceable in both directions.
Classification: exception 1 (superseded by a live replacement) plus exception 3 (the substance is already on main). The PR stays closed; nothing of it is lost. |
Fixes #1520
Owner: Dev3
Reviewer: Reviewer
Written-by: Dev-3
Base:
496ff1d2c637ee3f2a55b869a6cb755b91777b41(main, #1425)Tip:
fca85c374cc66d9b0eff70daae181d799885f6acTree:
e65f8c9fb5d4c9161dfdd7c758867a25e5a6cc69#1512 made
node.toolsdocumentation and gave every Workflow node Bot the normal-Bot permission (permissionFor()returnsdanger-full-access, andfb.bot.createis called without atoolsfield). The owner then decided that a node'stoolsshould name which connectors its run Bot may use while file and shell access stays full for every node:toolsselectsstepTools, sogithubreachesmcp__github__*andcomposioreaches the Composio connector, and a node that names no connector gets none. This pull request changes only copy and docs so they match that model; the spawn change that appliestoolsis Dev-1's and is not merged here.The inspector keeps its editable
Toolsfield and gains one sentence under it: "Names the connectors this run Bot may use: github grants mcp__github__, composio grants the Composio connector. File and shell access is always full, like a normal Bot. A node that names no connector gets none. Until the spawn change that passes these tools to the host lands, every connector is still refused."* The placeholder changes fromgithub, bash, read, edit...togithub, composio, because only connector names take effect. The DetailsPermissionsrow readsFull access, same as a normal Botinstead ofEach Bot's own permission.The three texts an agent or the UI reads directly carry the same caveat, so none of them reads as a connector that already works: the inspector note, the
define_workflowdescription, and itsnodesparameter each say the spawn change that passestoolsto the host is not merged and every connector is refused until it lands. The README anddocs/subsystems/workflow.mdsay the same and mark the spawn change as pending. Those caveat sentences are removed by that spawn change, which edits the samefb.bot.createregion and is not part of this branch.What changed
plugins/workflow/client.js— the Tools note (English and Chinese, with the pending sentence), the connector-only placeholder, and the DetailsPermissionsrow.plugins/workflow/index.js— thedefine_workflowdescription (line 123) and itsnodesparameter (line 127) say tools picks connectors, the permission is always full, an undeclared connector is refused, and the spawn change is not merged yet.plugins/workflow/README.md— lines 23, 37, 56 and 82 say the same and mark the spawn change pending.docs/subsystems/workflow.md— theephemeral.jsrow, theclient.jsrow, rule 6 and rule 12; rule 6 carries thestepToolssentence and the pending note.plugins/workflow/test/client.test.js— one new test.changelog.d/1520.fixed.md— one fragment.No behaviour change:
permissionFor(),nodeConfig(), the spawn path,src/ephemeral.jsandcore/src/host/are untouched. The node Bot's file and shell permission is the same as a normal Bot; only the connector source changes, and that change is not in this branch.Red, then green
Measured on this pull request's base
496ff1d2,plugins/workflow:496ff1d2: 93 tests / 93 pass / 0 fail.496ff1d2plus the new test file only: 94 / 93 / 1 — the only red isthe node inspector keeps the Tools field and explains what it selects, on assertionthe Tools field explains it selects connectors, not the permission('' !== 'Names the connectors … still refused.'). The field-exists and write-back assertions are green on496ff1d2too, because the field was never removed.Verification at this tip
TZ=UTC ARCH_DOCS_BASE=496ff1d2 npm run verifyat this tip — exit 0: core 1853/1853, social 527, tree 125, timeline 125, workflow 94,.github548, interop 37, live-e2e 24, every suite# fail 0; lint 0 errors;arch-docs: OK (6 changed file(s))against496ff1d2. Alsonode .github/scripts/changelog.mjs check→ 48 fragments well formed, andnode .github/scripts/check-mojibake.mjs --check→ ok (0 U+FFFD).Base
496ff1d2and the branch was rebased onto it becausemainmoved past92a6aabd; the shared doc file merged without a conflict and the diff is still 6 files, +48/−19.Not run: no smoke or test-bench run (no host or spawn path moved) and no browser check; the inspector is covered by the unit renderer.
Test placement
The new test sits directly after
settings and the flowchart save a node prompt and a link on the same graph, inplugins/workflow/test/client.test.js. #1519 touches the same file atmount()and the stage-chat tests andplugins/workflow/client.jsat 384–398; this branch touchesclient.jsonly in the i18n table, the Details row and the inspector block, so no hunk overlaps.docs/subsystems/workflow.mdis touched by both, so a rebase may be needed if #1519 lands first.Checkpoint
{ "pr": 1523, "claim": "Dev3", "issue": 1520, "summary": "#1512 left node.tools as documentation, so the inspector no longer said what it does. The Tools field stays editable; its note, the define_workflow description and its nodes parameter name the connectors the run Bot may use and say the spawn change that passes tools to the host is not merged yet, so every connector is still refused until it lands. README and the subsystem doc say the same. Only copy and docs change; the spawn path and core/src/host are untouched.", "files": [ "plugins/workflow/client.js", "plugins/workflow/index.js", "plugins/workflow/README.md", "plugins/workflow/test/client.test.js", "docs/subsystems/workflow.md", "changelog.d/1520.fixed.md" ], "checks": { "ran": "TZ=UTC ARCH_DOCS_BASE=496ff1d2 npm run verify; node .github/scripts/changelog.mjs check; node .github/scripts/check-mojibake.mjs --check; the plugins/workflow suite at 496ff1d2 plus the new test file only", "result": "green", "at": "fca85c374cc66d9b0eff70daae181d799885f6ac" }, "next": "none — ready for review. The caveat sentences are removed by the spawn change that passes tools to the host (Dev-1), which edits the same fb.bot.create region." }