Commit 70fbd6c
committed
feat(toilscript): emit toil.surface / toilstream.catalog / toildaemon.catalog (M1 Phase 0)
Increment 2: custom-section metadata emission, byte-exact to RECONCILIATION-DECISIONS Part 5.
- buildToilSurface / buildToilStreamCatalog / buildToilDaemonCatalog in dbcatalog.ts
(CatWriter gains u64), attached in compiler.ts after the toildb sections in the fixed
order: toildb.catalog -> toildb.types -> toil.surface -> toilstream|toildaemon.
- @scheduled spec parser: interval (30s/5m/1h/1d -> interval_ms, kind 0) and 5-field cron
(-> minute/hour/dom/month/dow bitmasks, kind 1); diagnostics 9010/9011 wired.
- Coherence hashes: data_coherence and pair_coherence computed over shared @DaTa types so a
hot pass and a cold pass produce identical values (verified by test); fingerprint is
mode-distinguishing.
- toil.surface is suppressed only for bare non-Toil AS modules in legacy mode (mirrors how
toildb.catalog behaves), so the stock compiler fixtures stay byte-identical; any real toil
artifact (or explicit --targetMode) emits it.
- build_id/abi_version and the export-name fingerprint component are stubbed pending the
codegen/export increment.
- tests/streams/catalog.mjs: ~80 byte-decode assertions; full compiler suite green.1 parent aa794b4 commit 70fbd6c
3 files changed
Lines changed: 1262 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
25 | 28 | | |
26 | 29 | | |
27 | 30 | | |
| |||
821 | 824 | | |
822 | 825 | | |
823 | 826 | | |
| 827 | + | |
| 828 | + | |
| 829 | + | |
| 830 | + | |
| 831 | + | |
| 832 | + | |
| 833 | + | |
| 834 | + | |
| 835 | + | |
| 836 | + | |
| 837 | + | |
| 838 | + | |
| 839 | + | |
| 840 | + | |
| 841 | + | |
| 842 | + | |
| 843 | + | |
| 844 | + | |
| 845 | + | |
| 846 | + | |
824 | 847 | | |
825 | 848 | | |
826 | 849 | | |
| |||
0 commit comments