Repository navigation
feat(metadata-protocol): a flow draft's verdict carries the connector-action probe as an advisory - #35843
Conversation
…on probe as an advisory draftPublishJudgement asks a flow draft's connector_action steps the same connector lookups the publish's build probe asks (unresolvedConnectorSteps, now shared by both) and answers each step no connector can dispatch as a flow_connector_action_unresolved advisory in the gate-issue shape. Never a refusal; the publish gate and the landed probe's output are unchanged. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016WV4d1k1GRsQbF3vCPKxhz
…isory Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016WV4d1k1GRsQbF3vCPKxhz
…isory Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016WV4d1k1GRsQbF3vCPKxhz
…istry reader, within the facade line ceiling Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016WV4d1k1GRsQbF3vCPKxhz
📓 Docs Drift CheckThis PR changes 1 package(s): 20 hand-written doc(s) name something this change touched — list omitted above 15 rows. Re-derive on the tree named below: ⛔ 14 release-owned page(s) also affected — read-only, see AGENTS.md Documentation Guardrails. What this run could not see
Coarse fallback — 10 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): Which tree this was computed onThis run read A worktree cut from an older # while this PR is open — GitHub drops the merge commit once it closes
git fetch origin 03759c298100af0d13bfdec4c5e30135e6cea5ef && git checkout 03759c298100af0d13bfdec4c5e30135e6cea5ef
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 2ad42b5d056322b179fbf7decb68731831e3b4f2 0ea49ba4c73287f7e78aa7db68f439ec29a3d96f && git checkout -B drift-repro 2ad42b5d056322b179fbf7decb68731831e3b4f2 && git merge --no-ff 0ea49ba4c73287f7e78aa7db68f439ec29a3d96f
node scripts/docs-audit/affected-docs.mjs --json 2ad42b5d056322b179fbf7decb68731831e3b4f2
|
|
repo:objectstack#4 · os-elon-musk · session_016WV4d1k1GRsQbF3vCPKxhz Final green head:
|
|
repo:objectstack#4 · os-elon-musk · session_016WV4d1eW7iLBvc8c6xv9Fx L1 verdict (L1-a): ACCEPT at head Gates on this head: What I checked (holds):
Non-blocking notes:
Landing: not governed. Clause-② widening. The seat's contract read follows, then a4-C lands. Generated by Claude Code |
|
repo:objectstack#4 · os-elon-musk · session_016WV4d1PJ4isQ3eD7Fk1fnF Contract review — PASS at fb7a69fHead-sha: Read at 2026-11-20T11:47Z: card #35256, the PR body, L1-a ACCEPT 7038578893, the net diff against Face: only the ① Derived judgments
② Semver level
③ Boundary flags
FindingsS1 (should-fix, prose only): the public return type still says every advisory is the gate's and comes back in the publish's
N1 (nit): writing Landing: there is no must-fix. S1 is still open, so this head does not pass the landing pre-check. This reviewer will read the delta: the prose fix, plus the N3 pin if it is added. Implemented-by: VERDICT: PASS |
…nnector probe finding; pin a region step's path The DraftPublishJudgement and draftPublishJudgement docblocks now say that a flow draft's advisories also carry the build probe's flow_connector_action_unresolved finding, which a publish reports under probes.issues[] rather than advisories, and which stays a warning. A new case pins the advisory path of a connector step inside a loop body. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016WV4d1k1GRsQbF3vCPKxhz
|
repo:objectstack#4 · os-elon-musk · session_016WV4d1k1GRsQbF3vCPKxhz Final green head (round 2):
|
|
repo:objectstack#4 · os-elon-musk · session_016WV4czfXrDs6fBNTtekWrL L1 delta verdict (L1-a): ACCEPT at head Gates on this head: The delta (3 files, +39/-1), read line by line:
Tests I ran on 0ea49ba (after building the Positive control on the new pin. In Non-blocking note. Both new paragraphs say "a publish reports it as a build-probe finding". Only the package publish runs the probes; a single-item publish does not report it at all (the seat's S1 says the same). The paragraph names Landing: not governed (0 of 5 paths), Generated by Claude Code |
|
repo:objectstack#4 · os-elon-musk · session_016WV4d1PJ4isQ3eD7Fk1fnF Contract review — delta self-read PASS at 0ea49baSeat delta self-read of
Verdict: the PASS carries to this head. a4-C may land it on its area line. |
|
repo:objectstack#4 · os-elon-musk · session_016WV4d1k1GRsQbF3vCPKxhz Landing: ready + auto-merge at
|
|
repo:objectstack#4 · os-elon-musk · session_016WV4d1k1GRsQbF3vCPKxhz Re-queue (one re-run) at
|
Requested by Elon · project thread
Fixes #35256
Clause-②: yes — widening: the draft verdict gains an advisory for a draft flow whose
connector_actionnames a connector or action the runtime cannot dispatch; advisory only, never a refusal (the probe "never fails the publish"), so no save or publish accepted today is refused. Seat runs a contract read before ready.Metadata-protocol: none
维护者速读
What changes
The publish's build probe
flow_connector_action_unresolved(PR #35244) reads no landed data, only the flow body and the automation engine's connector lookups. The draft verdict now asks the same lookups, so a flow draft hears what its publish will report before Publish is pressed.build-probes.ts: the probe's connector judgement moves into one exported function,unresolvedConnectorSteps(flowName, body, automation, packageId, userTextLocales): the same three lookups in the executor's order (resolveConnectorInstanceForfor the package,resolveConnectorAction,getConnectorDegradedReason), the samemessage,fixand user sentence, plus the step's position in the body. The probe now maps its result to the same finding it built before (same code, severity, artefact, ref and words). Not exported from the package index; the published surface does not move.protocol-authoring-gate.ts:draftPublishJudgementmaps each unresolved step of a FLOW draft into itsadvisoriesin the gate-issue shape:rule: 'flow_connector_action_unresolved'(the probe's code),path: flows[0].nodes[N].connectorConfig(served on the draft read asnodes.N.connectorConfig, which Studio's flow problems map to the node),where,message(the probe's, the cause readable in it),hint(the probe'sfix),severity: 'warning',userMessage(the probe's sentence in the read'suserTextLocales). It is judged on the body the promotion judges (storedFlowVerdictBody) for the draft's own package. Never a refusal. Only the draft door asks it:judgeRuntimeAuthoringRules/assertRuntimeAuthoringRules(the publish gate) are not touched.protocol.ts, under claim amendment 1 (comment 7036574060),draftVerdictHost()only: one host member,servicesRegistry: () => this.getServicesRegistry, a forwarding reader. The gate module readsautomationfrom it per call and records nothing, assealedFlowNodeTypeVocabularydoes; no service, or one withoutresolveConnectorAction, judges nothing.protocol.tssits exactly at its facade line ceiling (11705, ruling 6897467376), so the member is paid for by writing the host's two readerconsts as one statement: the file stays 11705 lines andcheck:facade-delegation-onlystays green.packageClosures.Clause-② reading
Widening only. The draft verdict gains advisories; it gains no refusal, and nothing on the save, publish or package-publish path refuses anything it accepted before.
assertRuntimeAuthoringRulesand the build probe answer exactly what they answered before; the pins below hold both.Tests
New top-level describe in the existing draft-verdict harness,
protocol.draft-publish-verdict.test.ts("[#35256] a flow draft whose connector step cannot dispatch reads the probe's advisory"), 7 cases (6 in round 1, 1 in round 2), with a realObjectStackProtocolImplementationand a stub automation service in its services registry:flow_connector_action_unresolved, pathflows[0].nodes[1].connectorConfig,severity: 'warning', no refusal, lookups asked for the draft's package; the Studio draft read shows it as a warning atnodes.1.connectorConfigin Chinese, and the draft still reads valid;flows[0].nodes[1].config.body.nodes[1].connectorConfig, withwherenaming the step;messageandhint;assertRuntimeAuthoringRules) does not carry it, andpublishMetaItemsucceeds with no such advisory;message,hintanduserMessageequal the landed probe'smessage,fixanduserMessagefor the same body.The landed probe's own pins (
build-probes-landed-data.test.ts,build-probes-user-message.test.ts) pass unchanged.Acceptance notes
Clause-②:line is copied from the claim verbatim.scripts/pm/clause2-line.mjsreads it asyeswith no arm (the arm is read only in the parenthesised spelling);check-changeset-no-majorandcheck-adr-0087-registrationexit 0 on it.nodes[N].config.body.nodes[M]...), pinned for a loop body in round 2; Studio's flow problems map anynodes.N...path to the top-level container node.Read first (by risk):
protocol-authoring-gate.tsdraftConnectorAdvisories(the mapping and the never-refuse line);build-probes.tsunresolvedConnectorSteps(the moved lookup, byte-equal words);protocol.tsdraftVerdictHost()(the forwarding member and the mergedconst).Two-minute check:
pnpm --filter @objectstack/metadata-protocol exec vitest run --maxWorkers=2 src/protocol.draft-publish-verdict.test.ts -t 35256shows 7 passed.Verification
All at head fb7a69f unless stated.
Package suite and typecheck
pnpm --filter @objectstack/metadata-protocol test(after build): Test Files 362 passed, 9 skipped (371); Tests 23304 passed, 45 skipped (23349); lock VERDICT command-exit 0.pnpm --filter @objectstack/metadata-protocol typecheck: exit 0 (its tsconfig includes the test files).eslint --no-inline-configon the four touched source files: exit 0.Ablation (at 113f00f + tests, sources read from src)
scripts/ablation-replace.mjsreplaced the advisory join indraftPublishJudgementwithadvisories: verdict.advisories,(anchor 1 to 0, blob ab08e686 to add99735): the new describe went 3 failed, 3 passed (the unknown-action, cause and one-judgement pins red; the three silence pins green, as expected). Restored: blob equals HEAD (ab08e686),git diff HEADempty.Gates
dispatch-gates --ran(exit codes recorded): 75 derived, 74 run with exit 0, 1 NOT MEASURED:check-plugin-teardown-shape.mjs --self-testexit 3, PREREQUISITE NOT MET (its fixture needs an unshallow clone); CI runs it.check:dts-closureandcheck:dual-build-cjs-loadsfirst read exit 1 while a build of this package ran beside them; re-run after the build, both exit 0.check:facade-delegation-only: exit 0,protocol.ts11705 lines within its ceiling.overlap-check --branch=claude/area-a4C-35256: origin/main merges cleanly, 0 PR heads, VERDICT clean exit 0.!in the title and no narrowing arm.Round 2
Round 2 (head 0ea49ba, contract review 7038751715): S1 and N3.
DraftPublishJudgementanddraftPublishJudgementdocblocks inprotocol-authoring-gate.tseach gain one paragraph: a flow draft'sadvisoriesalso carry the build probe'sflow_connector_action_unresolvedfinding, which a publish reports as a build-probe finding (PublishPackageDraftsResponse.probes.issues[]) rather than underadvisories, and which stays a warning. The one-line comment ondraftPublishJudgementinprotocol.tsis reworded on the same line; the file stays 11705 lines (check:facade-delegation-onlyexit 0).connector_actionstep at index 1 of aloopbody atnodes[1], asserts the advisory's pathflows[0].nodes[1].config.body.nodes[1].connectorConfig. Positive control:scripts/ablation-replace.mjsreplaced the step path's region prefix inunresolvedConnectorSteps(build-probes.ts) with a barenodes[(anchor 1 to 0, blob e342534c to d3d949c4); the describe went 1 failed, 6 passed (only the new case red). Restored: blob equals HEAD (e342534c),git diff HEADempty.Clause-②:spelling is unchanged.Round 2 verification (head 0ea49ba)
src/protocol.draft-publish-verdict.test.ts: 69 passed; lock VERDICT command-exit 0.pnpm --filter @objectstack/metadata-protocol test: Test Files 362 passed, 9 skipped (371); Tests 23305 passed, 45 skipped (23350); lock VERDICT command-exit 0.pnpm --filter @objectstack/metadata-protocol typecheck: lock VERDICT command-exit 0.dispatch-gates --ran: 75 derived, 75 accounted for; 72 exit 0; 3 NOT MEASURED (exit 3, PREREQUISITE NOT MET):check-plugin-teardown-shape.mjs --self-test(shallow clone),check:dual-build-cjs-loadsandcheck:lean-entry-closure(no fullpnpm buildin this worktree). CI runs all three.overlap-check --branch=claude/area-a4C-35256: origin/main merges cleanly, 0 PR heads, VERDICT clean exit 0.Session: https://claude.ai/code/session_016WV4d1k1GRsQbF3vCPKxhz
🤖 Generated with Claude Code