behavior-contracts 0.11.6 → 0.11.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/behavior.d.ts +25 -5
- package/dist/behavior.d.ts.map +1 -1
- package/dist/behavior.js +59 -16
- package/dist/behavior.js.map +1 -1
- package/dist/builder.d.ts.map +1 -1
- package/dist/builder.js +2 -2
- package/dist/builder.js.map +1 -1
- package/dist/generator/emit-shared-go.d.ts.map +1 -1
- package/dist/generator/emit-shared-go.js +17 -3
- package/dist/generator/emit-shared-go.js.map +1 -1
- package/dist/generator/emit-shared-rust-typed.d.ts +13 -1
- package/dist/generator/emit-shared-rust-typed.d.ts.map +1 -1
- package/dist/generator/emit-shared-rust-typed.js +21 -7
- package/dist/generator/emit-shared-rust-typed.js.map +1 -1
- package/dist/generator/emit-shared-rust.d.ts.map +1 -1
- package/dist/generator/emit-shared-rust.js +22 -6
- package/dist/generator/emit-shared-rust.js.map +1 -1
- package/dist/generator/emit-shared-typescript-typed.d.ts.map +1 -1
- package/dist/generator/emit-shared-typescript-typed.js +11 -1
- package/dist/generator/emit-shared-typescript-typed.js.map +1 -1
- package/dist/generator/emit-shared-typescript.d.ts.map +1 -1
- package/dist/generator/emit-shared-typescript.js +20 -5
- package/dist/generator/emit-shared-typescript.js.map +1 -1
- package/dist/generator/emit-straightline-typed-typescript.d.ts.map +1 -1
- package/dist/generator/emit-straightline-typed-typescript.js +3 -43
- package/dist/generator/emit-straightline-typed-typescript.js.map +1 -1
- package/dist/generator/emit-typed-native-go.d.ts +4 -4
- package/dist/generator/emit-typed-native-go.d.ts.map +1 -1
- package/dist/generator/emit-typed-native-go.js +149 -101
- package/dist/generator/emit-typed-native-go.js.map +1 -1
- package/dist/generator/emit-typed-native-rust.d.ts +2 -2
- package/dist/generator/emit-typed-native-rust.d.ts.map +1 -1
- package/dist/generator/emit-typed-native-rust.js +304 -233
- package/dist/generator/emit-typed-native-rust.js.map +1 -1
- package/dist/generator/straightline.d.ts +4 -2
- package/dist/generator/straightline.d.ts.map +1 -1
- package/dist/generator/straightline.js +4 -0
- package/dist/generator/straightline.js.map +1 -1
- package/dist/guard.js +7 -11
- package/dist/guard.js.map +1 -1
- package/dist/lowering.d.ts.map +1 -1
- package/dist/lowering.js +11 -19
- package/dist/lowering.js.map +1 -1
- package/dist/plan.d.ts +9 -2
- package/dist/plan.d.ts.map +1 -1
- package/dist/plan.js +9 -2
- package/dist/plan.js.map +1 -1
- package/dist/primitives.d.ts +0 -2
- package/dist/primitives.d.ts.map +1 -1
- package/dist/primitives.js +0 -4
- package/dist/primitives.js.map +1 -1
- package/dist/runtime.d.ts +1 -1
- package/dist/runtime.d.ts.map +1 -1
- package/dist/runtime.js +1 -1
- package/dist/runtime.js.map +1 -1
- package/dist/type-gate.d.ts.map +1 -1
- package/dist/type-gate.js +32 -5
- package/dist/type-gate.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"emit-straightline-typed-typescript.js","sourceRoot":"","sources":["../../src/generator/emit-straightline-typed-typescript.ts"],"names":[],"mappings":"AAsCA,OAAO,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAC7C,OAAO,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAC3D,OAAO,EAAE,qBAAqB,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC5F,OAAO,EACL,aAAa,EACb,aAAa,GAId,MAAM,YAAY,CAAC;AAGpB,gFAAgF;AAEhF,8EAA8E;AAC9E,SAAS,aAAa,CAAC,GAAY;IACjC,QAAQ,GAAG,CAAC,IAAI,EAAE,CAAC;QACjB,KAAK,OAAO;YACV,2EAA2E;YAC3E,+DAA+D;YAC/D,OAAO,OAAO,CAAC;QACjB,KAAK,QAAQ;YACX,gEAAgE;YAChE,QAAQ,GAAG,CAAC,MAAM,EAAE,CAAC;gBACnB,KAAK,QAAQ;oBACX,OAAO,QAAQ,C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;IAExD,MAAM,IAAI,GAAG,aAAa,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;IACnC,qFAAqF;IACrF,gBAAgB;IAChB,MAAM,KAAK,GAAG,mBAAmB,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;IACtD,MAAM,KAAK,GAAG,GAAG,CAAC,EAAE,CAAC,UAAU;SAC5B,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,UAAU,KAAK,SAAS,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAE,CAAgC,CAAC,OAAO,KAAK,SAAS,CAAC,CAAC;SACxH,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,eAAe,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC;SACpC,IAAI,CAAC,MAAM,CAAC,CAAC;IAEhB,MAAM,WAAW,GAAG;;;;;;;;;;;;;;;;;;;;EAoBpB,KAAK;;EAEL,KAAK;CACN,CAAC;IACA,OAAO,gBAAgB,GAAG,IAAI,GAAG,WAAW,CAAC;AAC/C,CAAC;AAED;;;;GAIG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAkB;IACnD,QAAQ,EAAE,kBAAkB;IAC5B,cAAc,EAAE,SAAS,EAAE,kFAAkF;IAC7G,aAAa,EAAE,KAAK;IACpB,oBAAoB,EAAE,4BAA4B;IAClD,YAAY,EAAE,8BAA8B;IAC5C,IAAI;CACL,CAAC;AAEF,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,CAAC"}
|
|
1
|
+
{"version":3,"file":"emit-straightline-typed-typescript.js","sourceRoot":"","sources":["../../src/generator/emit-straightline-typed-typescript.ts"],"names":[],"mappings":"AAsCA,OAAO,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAC7C,OAAO,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAC3D,OAAO,EAAE,qBAAqB,EAAE,QAAQ,EAAE,YAAY,EAAE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7 +9,7 @@
|
|
|
9
9
|
* straight into the struct) — but the PORTS stay in the generic *Obj container AND it drives
|
|
10
10
|
* the plan via RunPlan, whose relation-child skip-gate (coderuntime/plan.go preflightOp)
|
|
11
11
|
* reads the PARENT's result *Obj; a struct-native (nil Value) parent makes it skip relation
|
|
12
|
-
* children, so typed
|
|
12
|
+
* children, so typed relation / connection reads DIVERGE from run_behavior (#323/#74).
|
|
13
13
|
*
|
|
14
14
|
* # What THIS emitter combines
|
|
15
15
|
*
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
* TYPED STRUCT local (materialized DIRECTLY from the handler's RawValue via marshal_raw_T*).
|
|
21
21
|
* A relation child reads the parent's REAL struct result inline; the child-present decision
|
|
22
22
|
* (bindField / continue-policy skip) is made inline from the real parent value — so
|
|
23
|
-
*
|
|
23
|
+
* relation / connection converge with run_behavior (the RunPlan skip-gate never runs).
|
|
24
24
|
* 3. Raw struct result de-box (from raw-abi): the handler returns a RawOutcome (native RawValue);
|
|
25
25
|
* marshal_raw_T* materializes each node result DIRECTLY into the node's outType struct. NO
|
|
26
26
|
* boxed Value on the RESULT plane. The final output is assembled as a struct and serialized
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
* # Scope (fail-closed conservative)
|
|
33
33
|
*
|
|
34
34
|
* Covers the sequential componentRef read hot path WITH typed annotations (outType required):
|
|
35
|
-
* point reads +
|
|
35
|
+
* point reads + relation children (a bindField-driven skip) whose ports reference the parent's
|
|
36
36
|
* typed result field (#74), including bindField / continue-policy skip children (connection point
|
|
37
37
|
* child). Every covered read is strictly sequential (no real concurrency), statically-resolvable
|
|
38
38
|
* ports/output, and carries outType on every node + outputType on the component. A covered read
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
* de-box into, and we do NOT silently re-box.
|
|
41
41
|
*
|
|
42
42
|
* map/cond nodes are NOT covered here (they stay on the boxed typed / straight-line paths — the
|
|
43
|
-
* relation READS #323 needs are the componentRef +
|
|
43
|
+
* relation READS #323 needs are the componentRef + relation-child shape, which this covers).
|
|
44
44
|
* A component with a map/cond node is not native-eligible and falls through to the generic body.
|
|
45
45
|
*/
|
|
46
46
|
import type { DeclaredEntryPortOrder, EmitterPlugin, LeafTransportOptions } from "./core.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"emit-typed-native-go.d.ts","sourceRoot":"","sources":["../../src/generator/emit-typed-native-go.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CG;AACH,OAAO,KAAK,EAAE,sBAAsB,EAAe,aAAa,EAAE,oBAAoB,EAAE,MAAM,WAAW,CAAC;AAiC1G;;;;+GAI+G;AAC/G,wBAAgB,wBAAwB,CAAC,iBAAiB,EAAE,MAAM,GAAG,MAAM,CAE1E;
|
|
1
|
+
{"version":3,"file":"emit-typed-native-go.d.ts","sourceRoot":"","sources":["../../src/generator/emit-typed-native-go.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CG;AACH,OAAO,KAAK,EAAE,sBAAsB,EAAe,aAAa,EAAE,oBAAoB,EAAE,MAAM,WAAW,CAAC;AAiC1G;;;;+GAI+G;AAC/G,wBAAgB,wBAAwB,CAAC,iBAAiB,EAAE,MAAM,GAAG,MAAM,CAE1E;AAymGD;;;;;;6GAM6G;AAC7G,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAchE;AAED;;;;;;;;;GASG;AACH,wBAAgB,oBAAoB,CAAC,EAAE,EAAE,OAAO,EAAE,aAAa,CAAC,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,oBAAoB,EAAE,SAAS,CAAC,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,sBAAsB,GAAG,MAAM,CA4TpK;AAED;;;;;GAKG;AACH,eAAO,MAAM,oBAAoB,EAAE,aAOlC,CAAC"}
|
|
@@ -103,10 +103,10 @@ func opFailed(node string, policy string, e error) *BehaviorError {
|
|
|
103
103
|
return &BehaviorError{Code: "OP_FAILED", Message: where + ": " + e.Error()}
|
|
104
104
|
}
|
|
105
105
|
|
|
106
|
-
// deTypeMismatch / deMissingField
|
|
106
|
+
// deTypeMismatch / deMissingField — the de-box mismatch failures the generated decode
|
|
107
107
|
// produces (scp-error.md "The Error Value"). Codes are byte-equal to the runtime outType check
|
|
108
108
|
// (TYPE_MISMATCH / MISSING_PROP) so the covered read stays equivalent to run_behavior; detail.kind
|
|
109
|
-
// distinguishes typeMismatch / missingField
|
|
109
|
+
// distinguishes typeMismatch / missingField. ErrorDetail is built by a POSITIONAL literal so
|
|
110
110
|
// the offending value is carried without naming the field (the covered module stays whole-file free of
|
|
111
111
|
// the boxed result-type token; its only permitted occurrence is the ErrorDetail field declaration).
|
|
112
112
|
func deTypeMismatch(model, field, expected, actualWire, raw string) *BehaviorError {
|
|
@@ -115,10 +115,6 @@ func deTypeMismatch(model, field, expected, actualWire, raw string) *BehaviorErr
|
|
|
115
115
|
|
|
116
116
|
func deMissingField(model, field, expected string) *BehaviorError {
|
|
117
117
|
return &BehaviorError{Code: "MISSING_PROP", Message: "node '" + model + "': " + field + ": required field is absent", Detail: &ErrorDetail{"missingField", model, field, expected, "", "", nil}}
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
func deOverflow(model, field, expected, actualWire, raw string) *BehaviorError {
|
|
121
|
-
return &BehaviorError{Code: "TYPE_MISMATCH", Message: "node '" + model + "': " + field + ": " + raw + " is outside the range of " + expected, Detail: &ErrorDetail{"overflow", model, field, expected, actualWire, raw, nil}}
|
|
122
118
|
}`;
|
|
123
119
|
}
|
|
124
120
|
const { sanitize, emitExpr } = goStraightlineInternals;
|
|
@@ -195,7 +191,7 @@ function renderGoDeBox(plan, target, srcExpr, ctr, indent, fail, idxExpr = "") {
|
|
|
195
191
|
const nl = JSON.stringify(plan.expectedType);
|
|
196
192
|
const opt = plan.optDepth > 0;
|
|
197
193
|
const pv = `p${id}`;
|
|
198
|
-
const kindSuffix = plan.k === "list" ? "List" : plan.k === "scalar" ? (plan.scalar === "string" ? "String" : plan.scalar === "bool" ? "Bool" : "
|
|
194
|
+
const kindSuffix = plan.k === "list" ? "List" : plan.k === "scalar" ? (plan.scalar === "string" ? "String" : plan.scalar === "bool" ? "Bool" : plan.scalar === "int" ? "Int" : "Float") : "Row";
|
|
199
195
|
// the probe call for this node's access (top → As*, field/mapval → Probe*(key), elem → Elem*(i)).
|
|
200
196
|
const probeCall = (() => {
|
|
201
197
|
switch (plan.access.from) {
|
|
@@ -206,7 +202,7 @@ function renderGoDeBox(plan, target, srcExpr, ctr, indent, fail, idxExpr = "") {
|
|
|
206
202
|
case "elem":
|
|
207
203
|
return `${srcExpr}.Elem${kindSuffix}(${idxExpr})`;
|
|
208
204
|
case "mapval":
|
|
209
|
-
return
|
|
205
|
+
return `Probe${kindSuffix}Of(${idxExpr})`;
|
|
210
206
|
}
|
|
211
207
|
})();
|
|
212
208
|
const mismatch = fail(`deTypeMismatch(${ml}, ${fl}, ${nl}, ${pv}.ActualWireType, ${pv}.Raw)`);
|
|
@@ -242,13 +238,8 @@ function renderGoDeBox(plan, target, srcExpr, ctr, indent, fail, idxExpr = "") {
|
|
|
242
238
|
}
|
|
243
239
|
}
|
|
244
240
|
else {
|
|
245
|
-
// int/float:
|
|
246
|
-
const
|
|
247
|
-
lines.push(`${I1}n${id}, nErr${id} := ${parse}`);
|
|
248
|
-
lines.push(`${I1}if nErr${id} != nil {`);
|
|
249
|
-
lines.push(`${I2}${fail(`deOverflow(${ml}, ${fl}, ${nl}, ${pv}.ActualWireType, ${pv}.Got)`)}`);
|
|
250
|
-
lines.push(`${I1}}`);
|
|
251
|
-
for (const l of wrapAssign(`n${id}`))
|
|
241
|
+
// int/float: the wire already carries the declared numeric type — nothing to parse.
|
|
242
|
+
for (const l of wrapAssign(`${pv}.Got`))
|
|
252
243
|
lines.push(l);
|
|
253
244
|
}
|
|
254
245
|
}
|
|
@@ -281,11 +272,12 @@ function renderGoDeBox(plan, target, srcExpr, ctr, indent, fail, idxExpr = "") {
|
|
|
281
272
|
else {
|
|
282
273
|
// map(V): the wire value is a producer map; enumerate its keys, decode each value as V.
|
|
283
274
|
const valGo = goTypeOfPlan(plan.value);
|
|
284
|
-
lines.push(`${I1}
|
|
285
|
-
lines.push(`${I1}
|
|
275
|
+
lines.push(`${I1}ents${id} := ${pv}.Got.Entries()`);
|
|
276
|
+
lines.push(`${I1}m${id} := make(map[string]${valGo}, len(ents${id}))`);
|
|
277
|
+
lines.push(`${I1}for i${id} := range ents${id} {`);
|
|
286
278
|
lines.push(`${I2}var mv${id} ${valGo}`);
|
|
287
|
-
lines.push(renderGoDeBox(plan.value, `mv${id}`, `${pv}.Got`, ctr, I2, fail,
|
|
288
|
-
lines.push(`${I2}m${id}[
|
|
279
|
+
lines.push(renderGoDeBox(plan.value, `mv${id}`, `${pv}.Got`, ctr, I2, fail, `&ents${id}[i${id}].Val`));
|
|
280
|
+
lines.push(`${I2}m${id}[ents${id}[i${id}].Key] = mv${id}`);
|
|
289
281
|
lines.push(`${I1}}`);
|
|
290
282
|
for (const l of wrapAssign(`m${id}`))
|
|
291
283
|
lines.push(l);
|
|
@@ -316,9 +308,9 @@ const returnZeroFail = (zeroOut) => (errValueExpr) => `return ${zeroOut}, ${errV
|
|
|
316
308
|
function renderResultDeBox(ref, target, srcExpr, nodeId, plan, indent, fail, passthrough = false, ctr = { n: 0 }) {
|
|
317
309
|
return renderGoDeBox(buildDeBoxPlan(ref, { from: "top" }, { model: nodeId, field: nodeId, plan }, passthrough), target, srcExpr, ctr, indent, fail);
|
|
318
310
|
}
|
|
319
|
-
/** emitProbeWireTypes — the once-per-module probe kind consts + probe RESULT structs. A
|
|
320
|
-
* Got is the
|
|
321
|
-
* probe carries ActualWireType even on a match so
|
|
311
|
+
/** emitProbeWireTypes — the once-per-module probe kind consts + probe RESULT structs. A numeric probe's
|
|
312
|
+
* Got is the producer's NATIVE number (int64 / float64 — nothing to parse, nothing to range-check); every
|
|
313
|
+
* probe carries ActualWireType even on a match so a mismatch can report the numeric wire tag. Raw is the
|
|
322
314
|
* offending value stringified (NOT named RawValue — that token is reserved for the ErrorDetail field
|
|
323
315
|
* decl). Concrete data structs — no boxed Value on the seam. bc does NOT declare the WireValue/WireRow/
|
|
324
316
|
* WireList seam types (that would own the wire format, and a Go interface is vtable dynamic dispatch); it
|
|
@@ -341,8 +333,8 @@ function emitProbeWireTypes(wire) {
|
|
|
341
333
|
return `// Probe RESULT structs — concrete data the WireValue classifiers hand back; the de-box reads .Kind /
|
|
342
334
|
// .Got / .ActualWireType / .Raw (exported fields).
|
|
343
335
|
|
|
344
|
-
// StringProbe /
|
|
345
|
-
//
|
|
336
|
+
// StringProbe / IntProbe / FloatProbe / BoolProbe — a scalar probe result. Got holds the matched value
|
|
337
|
+
// already in its declared type — the wire carries int and float natively, so nothing is parsed. ActualWireType is the
|
|
346
338
|
// producer's own wire tag (a free string, e.g. a DynamoDB "S"/"N"/"BOOL"); Raw is the offending value
|
|
347
339
|
// stringified. Concrete structs — no boxed Value crosses the seam.
|
|
348
340
|
type StringProbe struct {
|
|
@@ -352,9 +344,16 @@ type StringProbe struct {
|
|
|
352
344
|
Raw string
|
|
353
345
|
}
|
|
354
346
|
|
|
355
|
-
type
|
|
347
|
+
type IntProbe struct {
|
|
356
348
|
Kind uint8
|
|
357
|
-
Got
|
|
349
|
+
Got int64
|
|
350
|
+
ActualWireType string
|
|
351
|
+
Raw string
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
type FloatProbe struct {
|
|
355
|
+
Kind uint8
|
|
356
|
+
Got float64
|
|
358
357
|
ActualWireType string
|
|
359
358
|
Raw string
|
|
360
359
|
}
|
|
@@ -385,20 +384,21 @@ type ListProbe struct {
|
|
|
385
384
|
}
|
|
386
385
|
/** emitGoWireTypes — the BC-OWNED, BC-GENERATED, self-contained (runtime-free) concrete wire types + their
|
|
387
386
|
* classification. bc GENERATES the whole seam: `WireValue` is the generic result the consumer's SINGLE
|
|
388
|
-
* op-agnostic transport builds + returns (implementing NOTHING over it); numbers ride
|
|
389
|
-
*
|
|
387
|
+
* op-agnostic transport builds + returns (implementing NOTHING over it); numbers ride NATIVE (int64 /
|
|
388
|
+
* float64). The generated inline de-box reads it via the As.../Probe.../Elem... methods — static
|
|
390
389
|
* extraction lowers it to the covered plane's typed values immediately (no dynamic value crosses the covered
|
|
391
390
|
* plane). WireRow/WireList probes hand out a value wrapper over a SHARED slice backing (no deep copy). NO
|
|
392
391
|
* consumer classification. */
|
|
393
392
|
function emitGoWireTypes() {
|
|
394
393
|
return `// WireValue — the BC-OWNED generic result the consumer's single op-agnostic transport builds + returns
|
|
395
|
-
// (WireStr/
|
|
396
|
-
// A self-contained tagged union (no untyped box, no bc-runtime Value); numbers
|
|
397
|
-
//
|
|
394
|
+
// (WireStr/WireInt/WireFloat/WireBool/WireNull/WireRowOf/WireListOf) and implements NOTHING over.
|
|
395
|
+
// A self-contained tagged union (no untyped box, no bc-runtime Value); numbers are NATIVE (int64 / float64),
|
|
396
|
+
// so the de-box parses nothing. Composite = nested Entries (row) / Items (list).
|
|
398
397
|
type WireValue struct {
|
|
399
398
|
kind uint8
|
|
400
399
|
str string
|
|
401
|
-
|
|
400
|
+
i64v int64
|
|
401
|
+
f64v float64
|
|
402
402
|
bl bool
|
|
403
403
|
Entries []WireField
|
|
404
404
|
Items []WireValue
|
|
@@ -422,17 +422,17 @@ type WireList struct {
|
|
|
422
422
|
const (
|
|
423
423
|
wireNull uint8 = 0
|
|
424
424
|
wireStr uint8 = 1
|
|
425
|
-
|
|
425
|
+
wireInt uint8 = 2
|
|
426
|
+
wireFloat uint8 = 6
|
|
426
427
|
wireBool uint8 = 3
|
|
427
428
|
wireRow uint8 = 4
|
|
428
429
|
wireList uint8 = 5
|
|
429
430
|
)
|
|
430
431
|
|
|
431
|
-
// constructors the consumer's transport uses to build the result (numbers
|
|
432
|
+
// constructors the consumer's transport uses to build the result (numbers carried natively).
|
|
432
433
|
func WireStr(s string) WireValue { return WireValue{kind: wireStr, str: s} }
|
|
433
|
-
func
|
|
434
|
-
func
|
|
435
|
-
func WireFloat(f float64) WireValue { return WireValue{kind: wireNum, num: strconv.FormatFloat(f, 'g', -1, 64)} }
|
|
434
|
+
func WireInt(n int64) WireValue { return WireValue{kind: wireInt, i64v: n} }
|
|
435
|
+
func WireFloat(f float64) WireValue { return WireValue{kind: wireFloat, f64v: f} }
|
|
436
436
|
func WireBool(b bool) WireValue { return WireValue{kind: wireBool, bl: b} }
|
|
437
437
|
func WireNull() WireValue { return WireValue{kind: wireNull} }
|
|
438
438
|
func WireRowOf(fields []WireField) WireValue { return WireValue{kind: wireRow, Entries: fields} }
|
|
@@ -452,7 +452,7 @@ func (w *WireValue) wireTag() string {
|
|
|
452
452
|
switch w.kind {
|
|
453
453
|
case wireStr:
|
|
454
454
|
return "S"
|
|
455
|
-
case
|
|
455
|
+
case wireInt, wireFloat:
|
|
456
456
|
return "N"
|
|
457
457
|
case wireBool:
|
|
458
458
|
return "BOOL"
|
|
@@ -468,8 +468,10 @@ func (w *WireValue) wireRaw() string {
|
|
|
468
468
|
switch w.kind {
|
|
469
469
|
case wireStr:
|
|
470
470
|
return w.str
|
|
471
|
-
case
|
|
472
|
-
return w.
|
|
471
|
+
case wireInt:
|
|
472
|
+
return strconv.FormatInt(w.i64v, 10)
|
|
473
|
+
case wireFloat:
|
|
474
|
+
return strconv.FormatFloat(w.f64v, 'g', -1, 64)
|
|
473
475
|
case wireBool:
|
|
474
476
|
if w.bl {
|
|
475
477
|
return "true"
|
|
@@ -483,11 +485,14 @@ func (w *WireValue) wireRaw() string {
|
|
|
483
485
|
}
|
|
484
486
|
|
|
485
487
|
// the top result is always present; field/elem probes share the same classifiers over *WireValue (nil = absent).
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
func (w WireValue)
|
|
489
|
-
func (w WireValue)
|
|
490
|
-
func (w WireValue)
|
|
488
|
+
// Value receivers: a hand-written transport reads its payload off values the compiler will not let it
|
|
489
|
+
// address (a function result, a map element), so the probe surface stays callable on a value.
|
|
490
|
+
func (w WireValue) AsString() StringProbe { return ProbeStringOf(&w) }
|
|
491
|
+
func (w WireValue) AsInt() IntProbe { return ProbeIntOf(&w) }
|
|
492
|
+
func (w WireValue) AsFloat() FloatProbe { return ProbeFloatOf(&w) }
|
|
493
|
+
func (w WireValue) AsBool() BoolProbe { return ProbeBoolOf(&w) }
|
|
494
|
+
func (w WireValue) AsRow() RowProbe { return ProbeRowOf(&w) }
|
|
495
|
+
func (w WireValue) AsList() ListProbe { return ProbeListOf(&w) }
|
|
491
496
|
|
|
492
497
|
func (r WireRow) get(field string) *WireValue {
|
|
493
498
|
for i := range r.entries {
|
|
@@ -497,29 +502,28 @@ func (r WireRow) get(field string) *WireValue {
|
|
|
497
502
|
}
|
|
498
503
|
return nil
|
|
499
504
|
}
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
}
|
|
507
|
-
func (r WireRow)
|
|
508
|
-
func (r WireRow)
|
|
509
|
-
func (r WireRow)
|
|
510
|
-
func (r WireRow) ProbeRow(field string) RowProbe { return probeRowOf(r.get(field)) }
|
|
511
|
-
func (r WireRow) ProbeList(field string) ListProbe { return probeListOf(r.get(field)) }
|
|
505
|
+
// Entries — the row's fields as they are. A dynamic-keyed map de-box walks these directly instead of
|
|
506
|
+
// materialising a []string of keys per row and then looking each one up again.
|
|
507
|
+
func (r WireRow) Entries() []WireField { return r.entries }
|
|
508
|
+
|
|
509
|
+
func (r WireRow) ProbeString(field string) StringProbe { return ProbeStringOf(r.get(field)) }
|
|
510
|
+
func (r WireRow) ProbeInt(field string) IntProbe { return ProbeIntOf(r.get(field)) }
|
|
511
|
+
func (r WireRow) ProbeFloat(field string) FloatProbe { return ProbeFloatOf(r.get(field)) }
|
|
512
|
+
func (r WireRow) ProbeBool(field string) BoolProbe { return ProbeBoolOf(r.get(field)) }
|
|
513
|
+
func (r WireRow) ProbeRow(field string) RowProbe { return ProbeRowOf(r.get(field)) }
|
|
514
|
+
func (r WireRow) ProbeList(field string) ListProbe { return ProbeListOf(r.get(field)) }
|
|
512
515
|
|
|
513
516
|
func (l WireList) Len() int { return len(l.items) }
|
|
514
|
-
func (l WireList) ElemString(i int) StringProbe { return
|
|
515
|
-
func (l WireList)
|
|
516
|
-
func (l WireList)
|
|
517
|
-
func (l WireList)
|
|
518
|
-
func (l WireList)
|
|
517
|
+
func (l WireList) ElemString(i int) StringProbe { return ProbeStringOf(&l.items[i]) }
|
|
518
|
+
func (l WireList) ElemInt(i int) IntProbe { return ProbeIntOf(&l.items[i]) }
|
|
519
|
+
func (l WireList) ElemFloat(i int) FloatProbe { return ProbeFloatOf(&l.items[i]) }
|
|
520
|
+
func (l WireList) ElemBool(i int) BoolProbe { return ProbeBoolOf(&l.items[i]) }
|
|
521
|
+
func (l WireList) ElemRow(i int) RowProbe { return ProbeRowOf(&l.items[i]) }
|
|
522
|
+
func (l WireList) ElemList(i int) ListProbe { return ProbeListOf(&l.items[i]) }
|
|
519
523
|
|
|
520
524
|
// the ONE classifier per kind, over *WireValue (nil = absent attribute/element). The BC-owned variant IS
|
|
521
525
|
// the wire tag — no consumer classification.
|
|
522
|
-
func
|
|
526
|
+
func ProbeStringOf(w *WireValue) StringProbe {
|
|
523
527
|
if w == nil {
|
|
524
528
|
return StringProbe{Kind: probeAbsent}
|
|
525
529
|
}
|
|
@@ -532,20 +536,37 @@ func probeStringOf(w *WireValue) StringProbe {
|
|
|
532
536
|
return StringProbe{Kind: probeWrong, ActualWireType: w.wireTag(), Raw: w.wireRaw()}
|
|
533
537
|
}
|
|
534
538
|
}
|
|
535
|
-
func
|
|
539
|
+
func ProbeIntOf(w *WireValue) IntProbe {
|
|
540
|
+
if w == nil {
|
|
541
|
+
return IntProbe{Kind: probeAbsent}
|
|
542
|
+
}
|
|
543
|
+
switch w.kind {
|
|
544
|
+
case wireInt:
|
|
545
|
+
return IntProbe{Kind: probeGot, Got: w.i64v, ActualWireType: "N"}
|
|
546
|
+
case wireNull:
|
|
547
|
+
return IntProbe{Kind: probeNull, ActualWireType: "NULL", Raw: "null"}
|
|
548
|
+
default:
|
|
549
|
+
return IntProbe{Kind: probeWrong, ActualWireType: w.wireTag(), Raw: w.wireRaw()}
|
|
550
|
+
}
|
|
551
|
+
}
|
|
552
|
+
|
|
553
|
+
// a float position accepts an int and widens it — the same widening the interpreter's outType check does.
|
|
554
|
+
func ProbeFloatOf(w *WireValue) FloatProbe {
|
|
536
555
|
if w == nil {
|
|
537
|
-
return
|
|
556
|
+
return FloatProbe{Kind: probeAbsent}
|
|
538
557
|
}
|
|
539
558
|
switch w.kind {
|
|
540
|
-
case
|
|
541
|
-
return
|
|
559
|
+
case wireFloat:
|
|
560
|
+
return FloatProbe{Kind: probeGot, Got: w.f64v, ActualWireType: "N"}
|
|
561
|
+
case wireInt:
|
|
562
|
+
return FloatProbe{Kind: probeGot, Got: float64(w.i64v), ActualWireType: "N"}
|
|
542
563
|
case wireNull:
|
|
543
|
-
return
|
|
564
|
+
return FloatProbe{Kind: probeNull, ActualWireType: "NULL", Raw: "null"}
|
|
544
565
|
default:
|
|
545
|
-
return
|
|
566
|
+
return FloatProbe{Kind: probeWrong, ActualWireType: w.wireTag(), Raw: w.wireRaw()}
|
|
546
567
|
}
|
|
547
568
|
}
|
|
548
|
-
func
|
|
569
|
+
func ProbeBoolOf(w *WireValue) BoolProbe {
|
|
549
570
|
if w == nil {
|
|
550
571
|
return BoolProbe{Kind: probeAbsent}
|
|
551
572
|
}
|
|
@@ -558,7 +579,7 @@ func probeBoolOf(w *WireValue) BoolProbe {
|
|
|
558
579
|
return BoolProbe{Kind: probeWrong, ActualWireType: w.wireTag(), Raw: w.wireRaw()}
|
|
559
580
|
}
|
|
560
581
|
}
|
|
561
|
-
func
|
|
582
|
+
func ProbeRowOf(w *WireValue) RowProbe {
|
|
562
583
|
if w == nil {
|
|
563
584
|
return RowProbe{Kind: probeAbsent}
|
|
564
585
|
}
|
|
@@ -571,7 +592,7 @@ func probeRowOf(w *WireValue) RowProbe {
|
|
|
571
592
|
return RowProbe{Kind: probeWrong, ActualWireType: w.wireTag(), Raw: w.wireRaw()}
|
|
572
593
|
}
|
|
573
594
|
}
|
|
574
|
-
func
|
|
595
|
+
func ProbeListOf(w *WireValue) ListProbe {
|
|
575
596
|
if w == nil {
|
|
576
597
|
return ListProbe{Kind: probeAbsent}
|
|
577
598
|
}
|
|
@@ -674,7 +695,7 @@ function staticArrElems(node) {
|
|
|
674
695
|
* isNativeRawComponent — a component covered by the combined read emitter. Strictly sequential
|
|
675
696
|
* (no real concurrency), body is ALL componentRef (no map/cond), default 'fail'/'continue'
|
|
676
697
|
* policy, relationKind is single/connection or absent, and EVERY node carries outType + the
|
|
677
|
-
* component carries outputType.
|
|
698
|
+
* component carries outputType. the relation bindField ARE the point — inline exec makes
|
|
678
699
|
* the child-present decision from the real parent result. Ports AND the output are evaluated via
|
|
679
700
|
* the primitive SSoT over a Value-space portScope (so a dynamic operator in a port or an
|
|
680
701
|
* obj-assembly output is fine — the SSoT handles fail-closed semantics; only the RESULT plane +
|
|
@@ -777,7 +798,7 @@ function outputIsNativeLowerable(comp) {
|
|
|
777
798
|
if (e.kind === "str" || e.kind === "bool" || e.kind === "null")
|
|
778
799
|
return true;
|
|
779
800
|
// ref OR refOpt to a body node (typed). refOpt is how a produced-aware output reads a skippable
|
|
780
|
-
//
|
|
801
|
+
// relation child: the head node's produced flag gates it, yielding opt-nil when unproduced.
|
|
781
802
|
if (e.kind === "ref")
|
|
782
803
|
return bodyIds.has(e.path[0]); // must ref a body node (typed), not input
|
|
783
804
|
if (e.kind === "concat")
|
|
@@ -831,7 +852,7 @@ function coveredMapNode(n, bodyIds, comp) {
|
|
|
831
852
|
// byte-equal. The skip value below (goZero of the into row type) yields nil / connection-struct-zero.
|
|
832
853
|
if (m.when !== undefined && m.into !== undefined && !guardedMapIntoIsCoverable(n, comp))
|
|
833
854
|
return false;
|
|
834
|
-
if (m.relationKind !== undefined && m.relationKind !== "
|
|
855
|
+
if (m.relationKind !== undefined && m.relationKind !== "connection")
|
|
835
856
|
return false;
|
|
836
857
|
// A map node must carry an outType (its ELEMENT type per the recorder SoT — authoring.ts recordMap
|
|
837
858
|
// holds `node.outType = mapElem`, the PRE-array-wrap element; the emitter synthesizes the produced
|
|
@@ -842,7 +863,13 @@ function coveredMapNode(n, bodyIds, comp) {
|
|
|
842
863
|
// per-op re-box), exactly as the componentRef path treats a passthrough result. Any other non-compound
|
|
843
864
|
// element type stays uncovered (loud), as before.
|
|
844
865
|
const outT = n.outType;
|
|
845
|
-
|
|
866
|
+
// #225: 純式 map(`transform`)の要素は**式から native に組む**(ワイヤも de-box も無い)ので、要素型が
|
|
867
|
+
// スカラでも被覆される — 宣言型 materializer が組めれば良く、組めなければそこで loud に落ちる。
|
|
868
|
+
// Component map は要素 wire を de-box するので従来どおり compound / opaque wire に限る。
|
|
869
|
+
const isTransformMap = mapTransformExpr(m) !== undefined;
|
|
870
|
+
if (outT === undefined)
|
|
871
|
+
return false;
|
|
872
|
+
if (!isTransformMap && typeof outT !== "object" && !mapNodeElemIsOpaqueWire(n))
|
|
846
873
|
return false;
|
|
847
874
|
// `over` element type must be STATICALLY resolvable: a ref to a PRIOR BODY NODE's typed arr field
|
|
848
875
|
// (mapOverElemType) OR a ref to an INPUT array port that carries `elemType` (#108 — the C3 "BC does
|
|
@@ -959,8 +986,13 @@ function coverageRejectReason(comp) {
|
|
|
959
986
|
// cond (#108, has outType, then/else are data branches — the sibling Φ-join). The cond's own
|
|
960
987
|
// validity (a value cond REQUIRES outType; a control gate is exempt) is enforced by the per-node
|
|
961
988
|
// cond check below, so a parallel value cond without outType still loud-rejects there.
|
|
989
|
+
// #225: 純式 map(`map.transform` — Component 呼びなし)も同じ性質を持つ: handler も boxed result も
|
|
990
|
+
// 無い変換なので、昇順 preflight で確定させれば bounded-concurrency の error-precedence 協定
|
|
991
|
+
// (componentRef fan-out メンバを統べる)を乱さない。cond の免除根拠がそのまま当てはまる。
|
|
962
992
|
if ("cond" in n)
|
|
963
993
|
continue;
|
|
994
|
+
if ("map" in n && mapTransformExpr(n.map) !== undefined)
|
|
995
|
+
continue;
|
|
964
996
|
if (!("component" in n))
|
|
965
997
|
return `node '${n.id}' is a non-componentRef member of a parallel stage (not native-covered)`;
|
|
966
998
|
}
|
|
@@ -1005,21 +1037,17 @@ function coverageRejectReason(comp) {
|
|
|
1005
1037
|
// uses) already renders, and `retry` shares `fail`'s control flow with the Kind named in the failure
|
|
1006
1038
|
// (the attempts themselves are Runtime-owned — scp-error.md §Separating Policy Kind and Tuning, which
|
|
1007
1039
|
// in native mode is the per-Component leaf transport). Proven by real go build + run, not by assertion.
|
|
1008
|
-
// #
|
|
1009
|
-
// skip signal, NOT a relation data key — so the relationKind constraint below (which governs a
|
|
1010
|
-
// relation bindField into a single|connection parent) does not apply. Its skip is driven by the
|
|
1011
|
-
// gate's produced_<gate> flag; the child itself can be a plain point read (or a relation read).
|
|
1012
|
-
const childOfGate = cr.parent !== undefined && isControlGate(comp.body.find((b) => b.id === cr.parent));
|
|
1013
|
-
// #86 part 1: a relationKind:single child WITH bindField (relationSingle) IS covered. When the
|
|
1040
|
+
// #86 part 1: a relation child WITH bindField IS covered. When the
|
|
1014
1041
|
// bound parent field is null/absent the child is UNPRODUCED — the produced-aware output lowering
|
|
1015
1042
|
// (emitProducedAwareValue) then yields the unproduced rep (null / opt-nil) for a ref/refOpt into
|
|
1016
1043
|
// it, matching run_behavior's writeUnproduced. #93 shape 1: a bindField on a relationKind:connection
|
|
1017
1044
|
// child is ALSO covered — the connection's unproduced rep is the empty connection {items:[],cursor:null}
|
|
1018
1045
|
// (unproducedValue("connection")), which emitProducedAwareValue emits explicitly for a skipped
|
|
1019
1046
|
// connection node (a ref into it yields {items:[],cursor:null}, matching run_behavior).
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1047
|
+
// relationKind の閉集合は `connection` の 1 値で、**注記の不在**が「未生成は null」を意味する。ゆえに
|
|
1048
|
+
// bindField 由来 skip は 2 形(connection = 空 connection / 不在 = null)とも produced-aware 出力が
|
|
1049
|
+
// 表現でき、被覆条件は無い(かつての「明示的に single と書け」は既定値の重複綴りの要求だった)。
|
|
1050
|
+
if (cr.relationKind !== undefined && cr.relationKind !== "connection")
|
|
1023
1051
|
return `relationKind '${cr.relationKind}' not native-covered (node '${n.id}')`;
|
|
1024
1052
|
// #170: a control-gate child's ports may narrow a gate-proven opt ref to non-null (the (a3) gated read).
|
|
1025
1053
|
const crNarrowed = nodeNarrowedPaths(comp, cr);
|
|
@@ -1498,12 +1526,18 @@ function emitParallelStageArm(comp, stage, atPos, concurrency, metas, typedNodes
|
|
|
1498
1526
|
// them ascending at the head of the stage block is byte-equal to run_behavior (each cond's `if`
|
|
1499
1527
|
// evaluated in preflight). A cond never shares a stage with a node that depends on it (an intra-
|
|
1500
1528
|
// stage parent/child dep is rejected by concurrencyPlan).
|
|
1501
|
-
|
|
1502
|
-
|
|
1529
|
+
// #225: dispatch を持たないメンバ = cond + 純式 map(どちらも handler も boxed result も持たない)。
|
|
1530
|
+
// 昇順に、**逐次パスと同じ arm** で emit する(lowering を分岐させない)。
|
|
1531
|
+
const noDispatch = (i) => "cond" in comp.body[i] || ("map" in comp.body[i] && mapTransformExpr(comp.body[i].map) !== undefined);
|
|
1532
|
+
const condMembers = stage.filter(noDispatch);
|
|
1533
|
+
const refMembers = stage.filter((i) => !noDispatch(i));
|
|
1503
1534
|
for (const i of condMembers) {
|
|
1504
|
-
// emit
|
|
1505
|
-
//
|
|
1506
|
-
|
|
1535
|
+
// emit it EXACTLY as the sequential path does (reused, not forked) — position in `order` is
|
|
1536
|
+
// atPos + slot; emitCondArm dispatches control-gate vs value-cond internally.
|
|
1537
|
+
const n = comp.body[i];
|
|
1538
|
+
lines.push("cond" in n
|
|
1539
|
+
? emitCondArm(comp, n, atPos + stage.indexOf(i), typedNodes, plan, priorNodeAt, zeroOut)
|
|
1540
|
+
: emitMapArm(comp, n, atPos + stage.indexOf(i), typedNodes, plan, priorNodeAt, zeroOut, flags, leaf, wire.selector, metas[i].policy));
|
|
1507
1541
|
}
|
|
1508
1542
|
// A cond-ONLY stage carries no handler fan-out — the conds above ARE the whole stage (each committed
|
|
1509
1543
|
// its produced flag / typed cell in ascending order). Skip the parallel orchestration block entirely
|
|
@@ -1637,7 +1671,7 @@ function emitParallelStageArm(comp, stage, atPos, concurrency, metas, typedNodes
|
|
|
1637
1671
|
* OUT (marshalRaw_* straight into the node's outType struct — no boxed Value on the row plane),
|
|
1638
1672
|
* INLINE sequential (NO RunPlan). Node results are TYPED STRUCT locals; a relation child reads the
|
|
1639
1673
|
* parent's REAL struct result inline (typed field access — no serialize), and the child-present /
|
|
1640
|
-
* bindField / continue-skip decision is made from the real parent value — so
|
|
1674
|
+
* bindField / continue-skip decision is made from the real parent value — so relation /
|
|
1641
1675
|
* connection converge with run_behavior. The output is assembled as a TYPED STRUCT/value (via the
|
|
1642
1676
|
* typed output lowering — struct literal + struct-field access, ZERO NewObj/.Set). For a covered
|
|
1643
1677
|
* read whose ports/output are input-static + cross-node refs, this runner allocates ZERO *Obj: the
|
|
@@ -1670,7 +1704,7 @@ function emitNativeRawRunner(comp, plan, flags, wire, leaf, declared) {
|
|
|
1670
1704
|
lines.push(`// de-plumbed path. Ports are a native struct (direct field assignment); the handler`);
|
|
1671
1705
|
lines.push(`// result is materialized straight into the node's outType struct. Node results are typed`);
|
|
1672
1706
|
lines.push(`// struct locals; a relation child reads the parent's REAL struct result via direct field`);
|
|
1673
|
-
lines.push(`// access (child-present decision from the real parent value —
|
|
1707
|
+
lines.push(`// access (child-present decision from the real parent value — relation / connection`);
|
|
1674
1708
|
lines.push(`// converge). A strictly-sequential plan is a plain statement list (no plan driver); a`);
|
|
1675
1709
|
lines.push(`// real-concurrency stage (bc#87) is EXPLICIT static parallel orchestration — one goroutine`);
|
|
1676
1710
|
lines.push(`// per statically-known parallel op, bounded by the static plan.concurrency via a semaphore`);
|
|
@@ -1815,7 +1849,7 @@ function emitNativeRawRunner(comp, plan, flags, wire, leaf, declared) {
|
|
|
1815
1849
|
// result stays a struct (the consumer keeps it native). An input-param output ref would need the
|
|
1816
1850
|
// Value-scope fallback (scopeNR) — the covered read corpus does not hit it.
|
|
1817
1851
|
//
|
|
1818
|
-
// #86 part 1: for a bindField
|
|
1852
|
+
// #86 part 1: for a bindField relation child that can SKIP at runtime, a ref/refOpt into it
|
|
1819
1853
|
// must yield the UNPRODUCED rep (run_behavior's writeUnproduced: null for a single child) rather
|
|
1820
1854
|
// than the zero-value struct. So when any covered node canSkip, we use the produced-aware lowering
|
|
1821
1855
|
// which gates such a ref on the node's produced_<id> flag.
|
|
@@ -2332,7 +2366,7 @@ function emitCondArm(comp, node, atPos, typedNodes, plan, priorNodeAt, zeroOut)
|
|
|
2332
2366
|
}
|
|
2333
2367
|
/**
|
|
2334
2368
|
* emitProducedAwareValue — the #86 part 1 produced-aware output lowering (go). It mirrors the
|
|
2335
|
-
* boxed-typed emitTypedValue, but a `ref`/`refOpt` whose HEAD is a skippable
|
|
2369
|
+
* boxed-typed emitTypedValue, but a `ref`/`refOpt` whose HEAD is a skippable relation child is
|
|
2336
2370
|
* gated on that node's `produced_<id>` flag: when the child is UNPRODUCED (bound parent field was
|
|
2337
2371
|
* null/absent), run_behavior's writeUnproduced makes the node null, so a refOpt into it yields null
|
|
2338
2372
|
* (the output opt field => nil). We emit that exactly: `if produced_<head> { <typed field access> }
|
|
@@ -2881,7 +2915,22 @@ function emit(ctx) {
|
|
|
2881
2915
|
const structSurface = emitStructSurface(native);
|
|
2882
2916
|
const behaviorErrorType = emitBehaviorErrorType();
|
|
2883
2917
|
// bc#87: a covered component with a real-concurrency stage emits sync.WaitGroup + a semaphore.
|
|
2884
|
-
|
|
2918
|
+
// #225: `sync` は goroutine 並行ブロックを実際に emit したときだけ要る。全メンバが dispatch を持たない
|
|
2919
|
+
// stage(cond / 純式 map だけ)は昇順 preflight で確定し orchestration ブロックを出さないので、
|
|
2920
|
+
// その stage しか無い component では sync を import しない(未使用 import は go でコンパイルエラー)。
|
|
2921
|
+
const hasDispatchingStage = (c) => {
|
|
2922
|
+
const ep = execPlan(c);
|
|
2923
|
+
if (ep === null)
|
|
2924
|
+
return false;
|
|
2925
|
+
for (const [, stage] of ep.parallelStageOf)
|
|
2926
|
+
if (stage.some((i) => {
|
|
2927
|
+
const n = c.body[i];
|
|
2928
|
+
return !("cond" in n) && !("map" in n && mapTransformExpr(n.map) !== undefined);
|
|
2929
|
+
}))
|
|
2930
|
+
return true;
|
|
2931
|
+
return false;
|
|
2932
|
+
};
|
|
2933
|
+
const needSync = native.some((c) => concurrencyPlan(c) !== null && hasDispatchingStage(c));
|
|
2885
2934
|
// bc#90: the ONLY std-lib `fmt.Sprintf` site on the covered plane is the batched-map result-count
|
|
2886
2935
|
// mismatch error — so `fmt` is imported iff a covered component has a batched map node.
|
|
2887
2936
|
const needFmt = native.some((c) => c.body.some((n) => ("map" in n && n.map.batched === true) || "fanout" in n));
|
|
@@ -2918,7 +2967,7 @@ function emit(ctx) {
|
|
|
2918
2967
|
const needSort = runnerCodes.some((c) => c.includes("sort.Strings"));
|
|
2919
2968
|
const header = emitMinimalHeader(ctx, false, needSync, needFmt, needMath, needStrconv, needWireImport ? wire.import : undefined, leaf?.import, needSort);
|
|
2920
2969
|
const banner = `// COMBINED READ layer (bc#90 — the RUNTIME-FREE read de-box; STRUCT-ONLY, FULLY-NATIVE surface). A
|
|
2921
|
-
// covered read is a strictly-sequential typed componentRef chain (point reads +
|
|
2970
|
+
// covered read is a strictly-sequential typed componentRef chain (point reads + relation children
|
|
2922
2971
|
// children), emitted ONLY here: each node builds a native ports struct by direct field assignment (every
|
|
2923
2972
|
// port is a CONCRETE Go value — string / bool / []string projection / int64 limit — NO boxed Value, NO
|
|
2924
2973
|
// PortReader accessor); the runner calls the op-agnostic leaf TRANSPORT symbol (default Leaf_<comp>)
|
|
@@ -2929,7 +2978,7 @@ function emit(ctx) {
|
|
|
2929
2978
|
// carries NO bc-runtime reference at all — failures use the LOCAL *BehaviorError (same codes, byte-equal to
|
|
2930
2979
|
// run_behavior). Exec is INLINE sequential (no plan driver) so a relation child reads the parent's REAL
|
|
2931
2980
|
// struct result via direct field access and the child-present decision is made from the real parent value —
|
|
2932
|
-
//
|
|
2981
|
+
// relation / connection converge with run_behavior (fixes #323/#74). The exposed API is the 1:1
|
|
2933
2982
|
// STRUCT-returning entry <Method>(<positional params>) (the In_<comp> box removed); the consumer supplies
|
|
2934
2983
|
// the leaf transport symbols (default same-package Leaf_<comp>, or a leafTransport import). This module is
|
|
2935
2984
|
// FULLY NATIVE: a naive grep for
|
|
@@ -3028,8 +3077,8 @@ export function goTypedNativeObserve(ir, runtimeImport, leaf, namespace, declare
|
|
|
3028
3077
|
const wireAdapter = anyDeBox
|
|
3029
3078
|
? `// valueToWire (TEST glue): builds the covered module's BC-OWNED concrete WireValue from a scripted bc
|
|
3030
3079
|
// Value — the harness analog of the consumer's real transport (which builds WireValue as it reads the
|
|
3031
|
-
// producer). Numbers ride
|
|
3032
|
-
//
|
|
3080
|
+
// producer). Numbers ride NATIVE (WireInt / WireFloat), so the scripted value reaches the de-box as the
|
|
3081
|
+
// same int64 / float64 run_behavior holds. The wire tags + classification live ONCE in the covered module's
|
|
3033
3082
|
// WireValue (probeStringOf etc.), so this only CONSTRUCTS.
|
|
3034
3083
|
func valueToWire(v ${PKG}.Value) WireValue {
|
|
3035
3084
|
switch t := v.(type) {
|
|
@@ -3040,8 +3089,7 @@ func valueToWire(v ${PKG}.Value) WireValue {
|
|
|
3040
3089
|
case int64:
|
|
3041
3090
|
return WireInt(t)
|
|
3042
3091
|
case float64:
|
|
3043
|
-
|
|
3044
|
-
return WireNum(s)
|
|
3092
|
+
return WireFloat(t)
|
|
3045
3093
|
case string:
|
|
3046
3094
|
return WireStr(t)
|
|
3047
3095
|
case []${PKG}.Value:
|