You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 80de314
Browse filesBrowse the repository at this point in the historyBrowse files
fix(mcp): align advertised contracts and retain workflow evidence
Use one named input-schema projection for clients and catalog identity, preserve dialect declarations, and bound compact schema depth. Keep canonical SDK output validation when output advertisements are disabled. Release request-owned state on cancellation and carry upstream limitations through composed workflows. Preserve doctor full-output envelopes and validate navigation facts at their owner.
Reviewed fixes: #2088, #2108, #2513, #2684, #2693, #2695, #2836, #2864, #2868, #2877, #2933, #2998, #3002, #3015.
Validation: focused schema, SDK output-validation, context, and workflow tests passed; no schema dialect or canonical output validation was relaxed.
@@ -671,7 +683,13 @@ advertised input schema within a 13,312-byte budget, measured to sit below
671
683
Moonshot's observed cap (community measurements: a 13.7 KB schema is accepted
672
684
while a ~15 KB one is rejected). The setting is read at startup; restart the
673
685
server to apply changes, as with `REA_MCP_MAX_RESPONSE_BYTES`. The default
674
-
value `full` keeps the complete advertisement unchanged.
686
+
value `full` keeps the complete advertisement unchanged. Compact presentation
687
+
also reduces schemas whose expanded JSON tree exceeds ten levels, the limit
688
+
reported by strict-depth MCP clients in [#2813](https://github.com/morluto/rea/issues/2813).
689
+
WorkBuddy/CodeBuddy gateways have also rejected full REA catalogs with an
690
+
opaque `11133` error while accepting the compact profile
691
+
([#2999](https://github.com/morluto/rea/issues/2999)); compatibility depends on
692
+
the selected gateway and model.
675
693
676
694
The compact profile renders the same tool set, output schemas, annotations,
677
695
and canonical server-side validation. It changes only the advertised input
@@ -696,6 +714,9 @@ JSON Schema:
696
714
canonical schema still rejects malformed calls server-side, so callers
697
715
following the reduced advertisement receive the canonical typed error
698
716
instead of silent acceptance.
717
+
- Schemas deeper than ten nodes use the same reduced projection, with
718
+
root-property names, types, guidance, and required fields retained. The
719
+
server continues to enforce the full canonical input contract.
699
720
700
721
Boundary tests pin every advertised compact schema to the budget, keep them
701
722
valid JSON Schema that still accepts every canonical example. Client verification
@@ -711,6 +732,30 @@ identity. Explicit schema IDs and relative external reference bases are
711
732
preserved. This keeps every tool and validation rule in discovery and does not
712
733
change the SDK's catalog invalidation or availability checks.
713
734
735
+
Some stdio hosts reject a complete `tools/list` frame before they load any
736
+
tools. The opt-in `REA_MCP_OUTPUT_SCHEMA_PROFILE=off` setting omits `outputSchema`
737
+
from the advertised catalog for hosts with a small frame limit (the measured
738
+
pi-web-ui failure and catalog breakdown are in [#2512](https://github.com/morluto/rea/issues/2512)).
739
+
The default `full` profile is unchanged. With `off`, REA validates successful
740
+
structured results against the same named canonical tool contract before
741
+
delivery; it still returns complete `structuredContent` and text results.
742
+
Only client-side schema discovery and validation are omitted, so hosts using
743
+
this profile should rely on REA's validation and retain their usual response
744
+
size limits.
745
+
746
+
### Function comparison limitations
747
+
748
+
`compare_functions` compares the `pseudocode` and `assembly` dimensions as
749
+
exact provider text. A `changed` status establishes a textual difference, not a
750
+
behavior change. Addresses and generated names are not normalized, so relocated
751
+
labels can change these dimensions while `cfg` remains unchanged. Both text
752
+
dimensions carry this limitation inline. Numeric constants remain part of the
753
+
exact comparison. Reconstruction verification and static/runtime correlation
754
+
retain limitations from the selected dimension; an overall function claim
755
+
includes all dimension limitations. Equal CFGs establish only equal observed
756
+
block sizes and successor relationships. Text from different provider
757
+
identities remains unknown.
758
+
714
759
### Comparison input shapes
715
760
716
761
`compare_web_captures` accepts exactly one of two input shapes:
0 commit comments