feat(trace): Trace v2 identity, module-owned events and capacity bounds (B-16)
- bind traces to the logical project identity and the exact emitted Analysis digest; every span-bearing event carries module_id - add host TraceState budgets (100k events / 32 MiB defaults), CLI --trace-max-events/--trace-max-bytes, terminal trace.truncated events, and a final serialized byte cap; budgets never change run.status - disable semantic recording when no trace is requested - cap worker frames at 8 MiB, align request/result/capability wire caps, make clean EOF distinct from protocol errors, and mark/kill a worker after a transport failure instead of reusing it - add trace-v2 spec/schema, independent trace consumer, CI check and tests - record the S2/C state in STATUS
This commit is contained in:
1 parent
55dcb57553
commit
d890686a2b
21 files changed
+732
-84
No files matched your search
@@ -99,10 +99,10 @@
|
||||
* MQ_MAX_EXPORT_NAME_BYTES 256
|
||||
* MQ_MAX_SIGNATURE_WIRE_BYTES 4096
|
||||
* MQ_MAX_METADATA_WIRE_BYTES 65536
|
||||
* MQ_MAX_REQUEST_WIRE_BYTES 16777216 (16 MiB)
|
||||
* MQ_MAX_RESULT_WIRE_BYTES 67108864 (64 MiB)
|
||||
* MQ_MAX_REQUEST_WIRE_BYTES 8384512 (8 MiB - 4096)
|
||||
* MQ_MAX_RESULT_WIRE_BYTES 8384512 (8 MiB - 4096)
|
||||
* MQ_MAX_ERROR_WIRE_BYTES 1048576 (1 MiB)
|
||||
* MQ_MAX_CAPABILITY_REPLY_BYTES 16777216 (16 MiB)
|
||||
* MQ_MAX_CAPABILITY_REPLY_BYTES 8384512 (8 MiB - 4096)
|
||||
* JSON depth is additionally limited to 64 levels. Requests/results that
|
||||
* exceed these limits are rejected with a structured error; they must not
|
||||
* be truncated and reparsed.
|
||||
@@ -245,10 +245,10 @@ extern "C" {
|
||||
#define MQ_MAX_EXPORT_NAME_BYTES 256u
|
||||
#define MQ_MAX_SIGNATURE_WIRE_BYTES 4096u
|
||||
#define MQ_MAX_METADATA_WIRE_BYTES 65536u
|
||||
#define MQ_MAX_REQUEST_WIRE_BYTES (16u * 1024u * 1024u)
|
||||
#define MQ_MAX_RESULT_WIRE_BYTES (64u * 1024u * 1024u)
|
||||
#define MQ_MAX_REQUEST_WIRE_BYTES ((8u * 1024u * 1024u) - 4096u)
|
||||
#define MQ_MAX_RESULT_WIRE_BYTES ((8u * 1024u * 1024u) - 4096u)
|
||||
#define MQ_MAX_ERROR_WIRE_BYTES (1024u * 1024u)
|
||||
#define MQ_MAX_CAPABILITY_REPLY_BYTES (16u * 1024u * 1024u)
|
||||
#define MQ_MAX_CAPABILITY_REPLY_BYTES ((8u * 1024u * 1024u) - 4096u)
|
||||
|
||||
/* ------------------------------------------------------------------ */
|
||||
/* Stable-layout buffer types */
|
||||
|
||||
Reference in new issue
Block a user