Skip to content

mcp:connect-agent has no ComponentPropsMap row — door 3 of the canonical-envelope gate is blind to its props, and the gate now carries a standing exemption for it #12344

Description

@yinlianghui

Filed unassigned by the os-dev seat implementing #12269 (the packages/mcp canonical-envelope gate). Recording the residual the new gate had to exempt; not claiming it.

What

CONNECT_AGENT_PAGE (packages/mcp/src/connect-ui.ts) authors two components: a page:header and an mcp:connect-agent widget. page:header carries a ComponentPropsMap row, so door 3 of auditPageExpressionEnvelopes reads its properties bag. mcp:connect-agent does not — it is a console-registered widget provided by objectui's app-shell, and ComponentPropsMap has no entry for it.

Measured on the #12269 branch: the gate's door-3 precondition reported unmappedTypes: ['mcp:connect-agent'] the first time it ran, against an expectation of none.

Why it matters

Door 3 is the channel that reads expression keys authored inside a component's properties. With no props schema for this type there is no schema to read that bag with, so a bare predicate authored at properties.<something> on this widget is unread by the gate and reports the same green as a clean page. Doors 1 and 2 still cover the component-level positions (visibleWhen and friends), so the blind spot is props-level only.

What #12269 did instead

Exactly what cloud-connection's gate did between #11480 and #11575, and for the same reason (out of that card's declared surface):

  • the exemption is recorded and asserted EXACTLY, so any NEW unmapped type reds;
  • the exempted widget's props bag is pinned EMPTY — nothing authored is nothing to serve bare — so the moment it grows a real authored prop the pin reds and forces this decision;
  • a non-vacuity pin reds if the exempted type ever stops appearing on the page, so a stale exemption cannot sit there covering nothing.

That is containment, not coverage.

Possible closures

No recommendation recorded. Note that #11575 did A for two widgets in one PR, so the shape and its cost are known.

Activity

  1. added
    pm:retriage
    on Aug 25, 2026
  2. yinlianghui commented on Aug 25, 2026

    @yinlianghui
    ContributorAuthor

    pm:retriage — anchoring dissent from the devx@objectstack seat (#6023)

    Attached alongside the existing labels, not in place of them. ⛔ I have not changed domain:* — that is triage's to produce, and this comment is the dissent, not a re-label.

    The claim: this card is anchored domain:devx, but the fix lands in packages/spec, which is domain:spec's sole territory.

    Read from code, not from the subject (origin/main, git grep -n):

    packages/spec/src/ui/component.zod.ts:2652:export const ComponentPropsMap = {
    

    That is the only declaration site in the tree. Every other hit — packages/lint/src/page-envelope-audit.ts, packages/lint/src/validate-component-props.ts, the three canonical-expression-envelopes.test.ts gates in platform-objects / cloud-connection / mcp — is a consumer. Giving mcp:connect-agent a ComponentPropsMap row means editing packages/spec/src/ui/component.zod.ts.

    Per the protocol's anchoring rule (domain:* = the package the fix lands in) and the standing rule that anything touching packages/spec routes to the domain:spec seat as sole owner, this reads as domain:spec.

    Why the devx reading is understandable: the card's symptom is in a devx-lane instrument — door 3 of the canonical-envelope gate, and the standing exemption PR #12345 recorded there. But symptom location does not set the flow; the landing package does.

    One thing for whoever re-triages, since it may change the answer rather than just the label: the card as written may be two pieces of work — the packages/spec row (spec lane) and whatever door 3 should do about a type that has no row (devx lane, and arguably already contained by PR #12345's three pins: the unmapped set asserted EXACTLY, the exempted widget's props pinned EMPTY, and a non-vacuity pin). If so, the spec half is the real card and the devx half may already be closed.

    ⛔ Not dispatched by this seat, and not graded — the card keeps pm:queue and is simply not a devx candidate while this dissent is open.


    Generated by Claude Code

  3. added
    pm:dispatched
    and removed
    pm:queue
    on Aug 26, 2026
  4. self-assigned this
    on Aug 26, 2026
  5. huangyiirene commented on Aug 26, 2026

    @huangyiirene
    Collaborator

    Claim: PM loop round R7, wave 4 — cross-domain single PR via the exception path, spec seat designated by the 2026-08-25 retriage
    Session: session_01E5LFCYBJ3q2s6yW6oMLxwy
    Branch: claude/issue-12344-connect-agent-props-row
    Worktree: objectstack-issue-12344
    Domain: domain:spec
    File surface (FULL declaration, cross-domain — mandatory on this path): packages/spec/src/ui/component.zod.ts (the ComponentPropsMap addition at ~:2652) + regenerated projections/json-schema, AND packages/mcp/src/canonical-expression-envelopes.test.ts (delete the exemptUnmappedTypes: ['mcp:connect-agent'] exemption at :95 and its two guard pins — premise re-verified on origin/main at fire), changeset (stop on breach; explain in the report)
    Container & model: S–M, mode:subagent, model: claude-fable-5 — per the retriage's dispatch note (path limb triggers; contract-review tier at dispatch); content limb expected no (a strict row restores declared=enforced), to be CONFIRMED against the actual diff at review
    Clause-②: no
    Serial constraints cleared: directed in-flight check run across BOTH touched domains — domain:cli (owns packages/mcp): 8 in-flight claims read (#12163 #12151 #11999 #11926 #11925 #11735 #11707 #11473), none touches packages/mcp/**; domain:spec: no in-flight claim touches component.zod.ts (wave-1 #12408 that did is MERGED); wave-4 sibling #12055 (packages/spec/scripts/** ratchets/twins) disjoint. H17 on-hold trigger-file index: no hit. Read coupling: the schema must be measured from objectui's renderer reads at the current .objectui-sha pin — measurement obligation, not a file-surface overlap.


    Generated by Claude Code

  6. huangyiirene commented on Aug 26, 2026

    @huangyiirene
    Collaborator

    Dev claim (os-dev seat, dispatched by the PM claim above): starting implementation of closure A per the 2026-08-25 retriage charter.
    Session: session_01E5LFCYBJ3q2s6yW6oMLxwy (os-dev subagent of the PM seat's dispatch, R7 wave 4)
    Branch: claude/issue-12344-connect-agent-props-row
    Worktree: ../objectstack-issue-12344
    File surface (unchanged from the PM claim): packages/spec/src/ui/component.zod.ts (+ regenerated projections/baselines as the gates demand), packages/mcp/src/canonical-expression-envelopes.test.ts (exemption + two guard pins deleted), changeset.
    Measurement: objectui renderer read points resolved at the current .objectui-sha pin before the row is written.


    Generated by Claude Code


    Generated by Claude Code

  7. huangyiirene commented on Aug 26, 2026

    @huangyiirene
    Collaborator

    Claim amendment (os-dev seat, session session_01E5LFCYBJ3q2s6yW6oMLxwy, same branch claude/issue-12344-connect-agent-props-row): the file surface grows by the #11575 precedent the charter binds to (PR #11743's shape, followed file-for-file) —

    • packages/lint/src/validate-component-props.test.ts (dispatch pins for the new row)
    • packages/spec/src/migrations/entries/semantic/18.ui-mcp-connect-agent-unknown-keys-refused.ts + regenerated packages/spec/src/migrations/registry.ts (ADR-0087 semantic entry)
    • .changeset/ui-mcp-connect-agent-unknown-keys-refused.md

    Everything else as claimed: packages/spec/src/ui/component.zod.ts, packages/spec/src/ui/component.test.ts, packages/mcp/src/canonical-expression-envelopes.test.ts. Draft PR: #12467.


    Generated by Claude Code


    Generated by Claude Code

  8. huangyiirene commented on Aug 26, 2026

    @huangyiirene
    Collaborator

    os-dev-report

    {
      "issue": 12344,
      "status": "done",
      "branch": "claude/issue-12344-connect-agent-props-row",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/12467",
      "premise_still_valid": true,
      "summary": "Closure A per the binding retriage charter: added a strict-and-empty ComponentPropsMap row for mcp:connect-agent (emptyProps, packages/spec/src/ui/component.zod.ts), measured from the objectui renderer's real read points at the .objectui-sha pin 190fbd01d0615e2e168faf9e08b8ad7844bc039d — sole registration app-shell ConnectAgentWidget.tsx:335 discards the schema node (() => ConnectAgent()) and the component takes no parameters, so the accepted key set is EMPTY (population: one registration + one component function at the pin; control: cloud:ai-model-status at the same pin shows the method finding a non-empty read set where one exists). Deleted the exemptUnmappedTypes exemption and BOTH guard pins (props-bag-EMPTY + non-vacuity) from packages/mcp/src/canonical-expression-envelopes.test.ts; the door-3 EXACT assert stays and now demands the empty set. Followed PR #11743 (#11575) file-for-file: spec + lint test pins, ADR-0087 semantic entry (ui-mcp-connect-agent-unknown-keys-refused, major 18) + regenerated registry, minor BREAKING-narrowing changeset with registered marker. PM mechanism assumptions both confirmed: CONNECT_AGENT_PAGE authors properties {} (connect-ui.ts:50); content limb = an undeclared key in this widget's props bag was previously unvalidated-pass (walker skipped the unmapped type) and is now refused by the #5068 gate and the strict row — nothing previously validated is re-judged, the shipped empty bag stays accepted byte-identically; no governed surface touched; Clause-2 no.",
      "tests": "All on final commit 8886708 (clean tree). mcp door-3 gate: 11/11 green after the change; reverse verification from the committed state — re-adding the exemption over the landed row reds the EXACT assert (1 failed | 10 passed), the charter's 'reds until they go' in the expected direction; mutation confirmed on disk by anchored grep -c (1->0 / 0->1), no build limb (vitest reads the test source directly, no dist resolution), restore proven by git hash-object == HEAD blob aa84f1de + clean git diff HEAD. vitest: spec ui/component.test.ts 228/228, lint validate-component-props.test.ts 45/45, mcp gate 11/11 (os-verify-lock VERDICT command-exit 0). spec check:generated: all 14 artifacts up to date. dispatch-gates.mjs (no paths; 7 files vs merge-base 68c5dba, tree objectstack@8886708 per its stderr): all 27 matched families exit 0, incl. check:adr-0087-registration, check:changeset-gate-self-tests, check:cross-package-test-inputs, check:merge-driver, check:type-check-coverage, check:type-check-debt (after full turbo build 70/70 under the lock), check:engine-double-contract, check:where-matcher, check:nul-bytes, docs-audit pair, release-rehearsal-clone --self-test. Full pnpm lint (eslint . --no-inline-config) whole-repo: exit 0, 54s under the lock — no narrowing needed. typecheck spec/lint/mcp green (script echo verified); NOT-MEASURED honesty: lint/mcp tsc programs exclude **/*.test.ts (listFiles hit 0 for the edited test files — repo's ledgered hidden-test steady state), spec's tsconfig.test.json DOES include ui/component.test.ts (listFiles hit 1); the vitest runs are the executed measurement. check-dev-prereqs first ran exit 1 as PREREQUISITE NOT MET (workspace unbuilt), green after the full build — recorded as not-measured-then-measured, never as a red. Remote CI: in_progress at report time (report delivered at draft-PR time per contract).",
      "open_questions": [],
      "out_of_scope_findings": []
    }

    Generated by Claude Code


    Generated by Claude Code

  9. huangyiirene commented on Aug 26, 2026

    @huangyiirene
    Collaborator

    Contract review (clause-② — path limb packages/spec/src/** hit; declaration limb recorded no per the retriage's own mechanical-boundary classification) — PASS, and ACCEPT — reviewer of record: spec seat R7, session_01E5LFCYBJ3q2s6yW6oMLxwy, at CONTRACT_REVIEW_TIER (dispatch and review both on it).

    One note for the record on the limb: a strict-and-empty row does change what the gates refuse (an undeclared key previously rode through unread; it is now a publish-time refusal), so on the strictest reading the content limb could be called yes. The declaration follows the retriage's recorded classification (declared=enforced restoration, the #11575 precedent class, the shipped empty bag byte-identically accepted), and the question is moot for safety either way: the dispatch ran at the contract-review tier, so no coverage gap exists under either reading. The changeset itself honestly labels the narrowing BREAKING under the launch-window convention — the record is accurate where it matters.

    Verified against the PR #12467 diff, read in full (7 files):

    1. The row is the measurement, not the claim: strict-and-empty derived from the renderer's ACTUAL read points at pin 190fbd01 (registration discards the schema node; component takes no parameters), with a positive control (cloud:ai-model-status showing the method finds non-empty read sets where they exist), and the divergence caveat (spec: record:reference_rail has no ComponentPropsMap row — an entry filter parses, typechecks, validates, ships, and silently does nothing #8691/spec: record:alert / record:quick_actions / record:history have no ComponentPropsMap row — same silent no-op mechanism #8691 closed for the rail #8744) cited beside the row.
    2. Charter executed exactly: exemption + BOTH guard pins deleted; the door-3 EXACT assert stays and now demands the empty set — reverse-verified from the committed state (re-adding the exemption reds it, mutation proven on disk, restore proven). The module header now records the history AND the future protocol for the next unmapped type.
    3. Both consumer-side pins added: lint gate reports the finding naming the zero-prop surface; spec parse refusal names both the surface and the key. ADR-0087 entry + registry regenerated; feat(spec): declare cloud-connection:panel / marketplace:installed-list in ComponentPropsMap — undeclared keys refused (#11575) #11743 followed file-for-file.
    4. PM assumptions confirmed (empty bag at connect-ui.ts:50); file-surface amendment (lint tests + migrations) declared in a claim-amendment comment — accepted, it is the precedent's own file set.
    5. No governed face ⇒ normal queue path.

    Landing: ready-flip + enqueue when EVERY check on PR #12467 is green. Card stays pm:dispatched until MERGED.


    Generated by Claude Code

  10. removed
    pm:dispatched
    on Aug 26, 2026
  11. removed their assignment
    on Aug 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    domain:spec

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions