0
Fork 0
mirror of https://github.com/mastra-ai/mastra.git synced 2026-11-17 08:44:46 +00:00

Compare commits

...

23 commits

Author SHA1 Message Date
Eric Pinzur
e728d57993 fix(observability): expose root context and omit unused trace details 2026-11-17 07:52:28 +01:00
Eric Pinzur
84ac77505e fix(observability): preserve trace page execution diagnostics 2026-11-17 07:33:02 +01:00
Eric Pinzur
54dc2e471f test(client-js): include SDK suite in root discovery
Rename the config to the extension scanned by root Vitest discovery so paging runtime and parity regressions run in CI. Preserve all five configured type-test files.

Review: https://github.com/mastra-ai/mastra/pull/30512#pullrequestreview-5925420901
2026-11-17 04:26:38 +01:00
Eric Pinzur
8872af9e8f docs(core): clarify unsigned trace continuation trust
Address finding 12: fingerprints detect changes, not forgery. Keep independent scope enforcement and decoded-request validation explicit.

Review: https://github.com/mastra-ai/mastra/pull/30512#pullrequestreview-5925420901
2026-11-17 04:24:46 +01:00
Eric Pinzur
d8de2a6630 test(core): assert trace cursor character budget
Address finding 11: check the 60000-character cursor cap separately from the request body byte budget for a maximum-size multibyte ID batch.

Review: https://github.com/mastra-ai/mastra/pull/30512#pullrequestreview-5925420901
2026-11-17 04:24:46 +01:00
Eric Pinzur
44ff0668cb docs(core): describe experimental browse depth default
Address finding 10 in schema metadata without defaulting a field that must stay absent for search and explicit-ID validation.

Review: https://github.com/mastra-ai/mastra/pull/30512#pullrequestreview-5925420901
2026-11-17 04:24:46 +01:00
Eric Pinzur
5327ff3fbf fix(core): require search for ancestor selection
Address finding 9: reject ignored ancestors options in browse and continuation requests while retaining both search modes.

Review: https://github.com/mastra-ai/mastra/pull/30512#pullrequestreview-5925420901
2026-11-17 04:24:45 +01:00
Eric Pinzur
65ff2506c2 fix(client-js): preserve legacy trace URL behavior
Address finding 8 by removing the unrelated getTrace encoding change. The new getTracePage method continues to encode its trace ID.

Review: https://github.com/mastra-ai/mastra/pull/30512#pullrequestreview-5925420901
2026-11-17 04:23:42 +01:00
Eric Pinzur
3ca8d25adf refactor(core): clarify internal trace page integration
Address finding 7 by marking the experimental reader and source internal while preserving Platform runtime exports; remove the unused Core SDK argument alias.

Review: https://github.com/mastra-ai/mastra/pull/30512#pullrequestreview-5925420901
2026-11-17 04:23:32 +01:00
Eric Pinzur
bab98ea875 perf(core): count trace page payload bytes incrementally
Address finding 4 by serializing each candidate node once and counting array separators separately from the changing response envelope. Preserve exact byte limits and continuation rewind.

Review: https://github.com/mastra-ai/mastra/pull/30512#pullrequestreview-5925420901
2026-11-17 04:23:31 +01:00
Eric Pinzur
ac9aa37902 test(client-js): detect optional trace page field drift
Address finding 6 with response and node key equality alongside assignability. Removing details or adding an optional response field fails the configured type suite.

Review: https://github.com/mastra-ai/mastra/pull/30512#pullrequestreview-5925420901
2026-11-17 04:23:14 +01:00
Eric Pinzur
377df55946 test(core): cover trace page guards and byte boundaries
Address finding 5 with topology limits, forged cursor validation, selection disappearance, and exact UTF-8 response budgets. Nine targeted guard mutations fail these regressions.

Review: https://github.com/mastra-ai/mastra/pull/30512#pullrequestreview-5925420901
2026-11-17 04:22:16 +01:00
Eric Pinzur
34a00ffd3b fix(client-js): retry experimental trace page reads
Address finding 3: preserve the read retry policy for initial pages and continuations, with real HTTP regressions for transient and terminal failures.

Review: https://github.com/mastra-ai/mastra/pull/30512#pullrequestreview-5925420901
2026-11-17 04:21:14 +01:00
Eric Pinzur
d0482ccf06 fix(observability): align trace page capabilities and contract checks 2026-11-17 04:16:27 +01:00
Eric Pinzur
9d3e0be7cb refactor(observability): keep trace page endpoint in Platform only 2026-11-17 04:16:27 +01:00
Eric Pinzur
57bb835fc8 refactor(observability): use trace page subresource 2026-11-17 04:16:27 +01:00
Eric Pinzur
0123f28fb8 fix(observability): bound trace reads to selected pages
Require explicit backend support, separate topology from page projection, and pre-page requested IDs. Restrict continuation invalidation to selected context and align identifier validation, tenant capabilities, and error mapping.
2026-11-17 04:16:27 +01:00
Eric Pinzur
dccb714a48 fix(observability): remove redundant trace request version 2026-11-17 04:16:27 +01:00
Eric Pinzur
caf8fbee62 chore: remove trace navigation docs and trim changesets 2026-11-17 04:16:27 +01:00
Eric Pinzur
3728e230c7 fix(observability): separate versioned trace page API
Use /observability/v2/traces/:traceId and getTracePage() to preserve legacy routing and inferred getTrace return types.

Reviews: https://github.com/mastra-ai/mastra/pull/30512#discussion_r4585617255 https://github.com/mastra-ai/mastra/pull/30512#discussion_r4585617185
2026-11-17 04:16:27 +01:00
Eric Pinzur
e661823f24 fix(server): preserve unsupported trace navigation responses
Allow requests through validation when older Core lacks the schema, so the handler returns 501. Reproduced with the adapter body parser.

Review: https://github.com/mastra-ai/mastra/pull/30512#discussion_r4585617220
2026-11-17 04:16:26 +01:00
Eric Pinzur
87ab76f950 chore: split trace navigation changesets by package 2026-11-17 04:16:26 +01:00
Eric Pinzur
87da733f1f feat(observability): add bounded trace navigation API 2026-11-17 04:16:26 +01:00
15 changed files with 1181 additions and 20 deletions