Commit fbe7c98
feat(affinescript): Stage 8 — auto-verify ownership on compile + bridge generators
Wire Tw_verify.verify_from_module into the compilation pipeline:
- compile (WASM 1.0 path): post-codegen ownership check, violations printed
to stderr as warnings; compilation still succeeds (defence-in-depth)
- tea-bridge: ownership verified before binary is written; prints OK/violations
- router-bridge: same
Both bridge modules pass clean: TEA bridge fn_update uses LocalGet 0 once;
router fn_push uses LocalGet 0 in the then-branch only (branch-max=1 → OK).
Add 2 E2E tests:
- E2E TEA Bridge[6]: ownership verify: clean
- E2E TEA Router[8]: ownership verify: clean
159/159 tests passing.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent ec64ca6 commit fbe7c98
2 files changed
Lines changed: 44 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
343 | 343 | | |
344 | 344 | | |
345 | 345 | | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
346 | 352 | | |
347 | 353 | | |
348 | 354 | | |
| |||
365 | 371 | | |
366 | 372 | | |
367 | 373 | | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
368 | 380 | | |
369 | 381 | | |
370 | 382 | | |
| |||
515 | 527 | | |
516 | 528 | | |
517 | 529 | | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
518 | 536 | | |
519 | 537 | | |
520 | 538 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1290 | 1290 | | |
1291 | 1291 | | |
1292 | 1292 | | |
| 1293 | + | |
| 1294 | + | |
| 1295 | + | |
| 1296 | + | |
| 1297 | + | |
| 1298 | + | |
| 1299 | + | |
| 1300 | + | |
| 1301 | + | |
| 1302 | + | |
| 1303 | + | |
| 1304 | + | |
1293 | 1305 | | |
1294 | 1306 | | |
1295 | 1307 | | |
1296 | 1308 | | |
1297 | 1309 | | |
1298 | 1310 | | |
1299 | 1311 | | |
| 1312 | + | |
1300 | 1313 | | |
1301 | 1314 | | |
1302 | 1315 | | |
| |||
1436 | 1449 | | |
1437 | 1450 | | |
1438 | 1451 | | |
| 1452 | + | |
| 1453 | + | |
| 1454 | + | |
| 1455 | + | |
| 1456 | + | |
| 1457 | + | |
| 1458 | + | |
| 1459 | + | |
| 1460 | + | |
| 1461 | + | |
| 1462 | + | |
| 1463 | + | |
1439 | 1464 | | |
1440 | 1465 | | |
1441 | 1466 | | |
| |||
1445 | 1470 | | |
1446 | 1471 | | |
1447 | 1472 | | |
| 1473 | + | |
1448 | 1474 | | |
1449 | 1475 | | |
1450 | 1476 | | |
| |||
0 commit comments