diff --git a/.crumb b/.crumb index 7294864..39023e3 100644 --- a/.crumb +++ b/.crumb @@ -1,12 +1,24 @@ { - "schema_version": "1.0.0", - "name": "synapse-board", - "purpose": "Generated, read-only human view of the agent coordination state: renders BOARD.md and index.html from synapse-claims, synapse-map and synapse-pulse output and serves them on the tailnet only.", - "layer": "coordination", "extensions": { + "generated": { + "children": [], + "children_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "compiled_at": "2026-10-28T22:32:34Z", + "compiler": "crumb-compile/1", + "digest": "sha256:2b0f7efe2cf56c89064ad8103d52f00fbe81442aff8dc8c68611b965d92fb14a", + "evidence_files": 0, + "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "files": 22, + "generated_at_commit": "b6330d052ac8dfa44c62c62492bdd11c1c6cc9fe", + "source_tree": "sha256:f0dddcef4f8e29107ca6ec4e929670cc278af61f6d37b74542c85b627177861b" + }, "map": { "parent": "aien-dev/synapse@099a980fedab8a6797bbf0358b8c5502c8045142", "parent_status": "CONFIRMED" } - } + }, + "layer": "coordination", + "name": "synapse-board", + "purpose": "Generated, read-only human view of the agent coordination state: renders BOARD.md and index.html from synapse-claims, synapse-map and synapse-pulse output and serves them on the tailnet only.", + "schema_version": "1.0.0" } diff --git a/AGENTS.md b/AGENTS.md index 75a93dc..afd1d80 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -1,5 +1,8 @@ # AGENTS.md: synapse-board +Development follows [Human-Directed Agentic Engineering (HDAE)](README.md#human-directed-agentic-engineering). +The README defines the human and agent responsibilities and cites Gregory M. Kurtzer's report. + The board is generated output. `BOARD.md` and `index.html` are rendered from the claims ledger, the repo map and pulse findings, and each render overwrites them. diff --git a/README.md b/README.md index 31b307d..95ce1bd 100644 --- a/README.md +++ b/README.md @@ -87,3 +87,15 @@ CI (`.github/workflows/ci.yml`) runs the same script on `ubuntu-24.04-arm` with ## License Apache-2.0 (copy of the parent's LICENSE), see [LICENSE](LICENSE). + +## Human-Directed Agentic Engineering + +Development follows Human-Directed Agentic Engineering (HDAE): humans define goals, architecture, +constraints, acceptance criteria, and stopping points; agents implement, execute checks, diagnose +failures, and revise within those boundaries. Human review retains responsibility for claims, +acceptance, and release decisions. This development method does not change the board's generated, +read-only role. + +For the documented method and a systems-software case study, see Gregory M. Kurtzer, +[*Ginux: Building an Independent Kernel That Runs Linux Userspace through Human-Directed Agentic +Engineering* (2026)](https://doi.org/10.5281/zenodo.23682548). diff --git a/src/00-util.om b/src/00-util.om index 7a2c88e..f75100a 100644 --- a/src/00-util.om +++ b/src/00-util.om @@ -5,6 +5,9 @@ const SBCAP ulong 4194304 const SBOCAP ulong 8388608 const SBSLOT ulong 4096 const SBLINES ulong 999999 +text tbmd "BOARD.md" +text tidx "index.html" +text emusage "usage: synapse-board render --claims FILE --map FILE [--findings FILE] --out DIR [--now TS] [--head HEX] | serve --dir DIR --bind IP:PORT [--max N]" global gin0 uchar 4194304 global gin1 uchar 4194304 global gin2 uchar 4194304 @@ -287,18 +290,22 @@ if gt n 0 sbesc w sb ulong n end end -note sbiso: Unix seconds as YYYY-MM-DDTHH:MM:SSZ into b[0..20) (days-to-civil, proleptic Gregorian) -fn sbiso b edit uchar 64 secs ulong to ulong -days = div secs 86400 -sod = rem secs 86400 +note Keep the civil-date intermediates within the pinned compiler's register pool. +fn sbyear doe ulong to ulong +v = sub doe div doe 1460 +v = add v div doe 36524 +v = sub v div doe 146096 +ret div v 365 +end +fn sbdate b edit uchar 64 days ulong to void z = add days 719468 era = div z 146097 -doe = sub z mul era 146097 -yoe = div sub add sub doe div doe 1460 div doe 36524 div doe 146096 365 +z = sub z mul era 146097 +yoe = sbyear z y = add yoe mul era 400 -doy = sub doe sub add mul 365 yoe div yoe 4 div yoe 100 -mp = div add mul 5 doy 2 153 -d = add sub doy div add mul 153 mp 2 5 1 +z = sub z sub add mul 365 yoe div yoe 4 div yoe 100 +mp = div add mul 5 z 2 153 +d = add sub z div add mul 153 mp 2 5 1 m = add mp 3 if ge mp 10 m = sub mp 9 @@ -311,6 +318,11 @@ put b 4 45 sbput2 b 5 m put b 7 45 sbput2 b 8 d +end +note sbiso: Unix seconds as YYYY-MM-DDTHH:MM:SSZ into b[0..20) (days-to-civil, proleptic Gregorian) +fn sbiso b edit uchar 64 secs ulong to ulong +sbdate b div secs 86400 +sod = rem secs 86400 put b 10 84 sbput2 b 11 div sod 3600 put b 13 58 diff --git a/src/10-scan.om b/src/10-scan.om index 0671c6a..15527fa 100644 --- a/src/10-scan.om +++ b/src/10-scan.om @@ -397,26 +397,8 @@ end ret true end note ======== map: records indexed, parents resolved within the map -fn sbscanm to long -lb = new uchar 65536 0 -tp = new uint 16400 0 -sb = new uchar 65536 0 -tot = get glen 1 -off = ulong 0 -ln = ulong 0 -for it ulong SBLINES -if ge off tot -ret sbresm -end -ln = add ln 1 -n = sbpl 1 off lb tp -if eq n -1 -ret sberr 1 ln emlong -end -if eq n -2 -ret sberr 1 ln emjs -end -if gt n 0 +note Parse one row separately so stream state does not occupy the row parser's registers. +fn sbmaprow lb view uchar 65536 tp view uint 16400 sb edit uchar 65536 off ulong ln ulong to long k = sbgets lb tp sb krepo if le k 0 ret sberr 1 ln emrepo @@ -469,6 +451,32 @@ end put gmst m st sbinc 8 put gnm 0 add m 1 +ret 0 +end +fn sbscanm to long +lb = new uchar 65536 0 +tp = new uint 16400 0 +sb = new uchar 65536 0 +tot = get glen 1 +off = ulong 0 +ln = ulong 0 +for it ulong SBLINES +if ge off tot +ret sbresm +end +ln = add ln 1 +n = sbpl 1 off lb tp +if eq n -1 +ret sberr 1 ln emlong +end +if eq n -2 +ret sberr 1 ln emjs +end +if gt n 0 +code = sbmaprow lb tp sb off ln +if ne code 0 +ret code +end end off = add add off ulong n 1 end diff --git a/src/20-emit.om b/src/20-emit.om index 93a2276..a90c0e8 100644 --- a/src/20-emit.om +++ b/src/20-emit.om @@ -149,7 +149,9 @@ ret false end for i ulong n c = get sb i -ok = or or and ge c 97 le c 122 and ge c 65 le c 90 and ge c 48 le c 57 +ok = and ge c 97 le c 122 +ok = or ok and ge c 65 le c 90 +ok = or ok and ge c 48 le c 57 if not ok ok = sbsafe c end @@ -397,6 +399,12 @@ end sbraw 1 tbeht end note ======== repo map tree (iterative depth-first, file order among siblings) +fn sbname w ulong m ulong to void +o = get gmno m +for j ulong get gmnl m +sbesc1 w get gpool add o j +end +end fn sbnode m ulong d ulong cyc bool to void lb = new uchar 65536 0 tp = new uint 16400 0 @@ -416,13 +424,8 @@ end sbnum 1 dd sbraw 1 tli2 sbraw 1 tb1 -o = get gmno m -for j ulong get gmnl m -sbesc1 0 get gpool add o j -end -for j2 ulong get gmnl m -sbesc1 1 get gpool add o j2 -end +sbname 0 m +sbname 1 m sbraw 0 tbold sbraw 1 tb2 st = get gmst m @@ -440,12 +443,14 @@ end if eq st 3 sbr2 tnone end -if and gt get gmpl m 0 eq get gmpar m jsnone +if gt get gmpl m 0 +if eq get gmpar m jsnone sbr2 tpout sbfld 0 lb tp sb kpar sbfld 1 lb tp sb kpar sbr2 tclose end +end if sbgetb lb tp karch sbr2 tarch end @@ -480,7 +485,8 @@ if eq get gmvis m 0 sbnode m d and cyc eq it 0 for i ulong nm c = sub sub nm 1 i -if and eq get gmpar c m eq get gmvis c 0 +if eq get gmpar c m +if eq get gmvis c 0 if lt sp SBMAXM put gstk sp c put gsdp sp add d 1 @@ -491,6 +497,7 @@ end end end end +end fn sbmap to void sbraw 0 s5md sbraw 1 s5ht diff --git a/src/30-serve.om b/src/30-serve.om index f7293f3..2941181 100644 --- a/src/30-serve.om +++ b/src/30-serve.om @@ -198,7 +198,7 @@ if eq hnext cs io 0 break end end -r = hclose cs io +r = hclose cs end fn sbsvok to void o = new uchar 128 0 @@ -219,6 +219,9 @@ r = sbout o p end fn sbserve to long fb = new uchar 4194304 0 +ret sbservebuf fb +end +fn sbservebuf fb edit uchar 4194304 to long cs = new ulong 320 0 io = new uchar 131072 0 a = new uchar 16 0 diff --git a/src/90-main.om b/src/90-main.om index 4fe1450..cd4f9e1 100644 --- a/src/90-main.om +++ b/src/90-main.om @@ -1,7 +1,5 @@ note synapse-board src/90-main.om -- arguments, render (atomic writes of BOARD.md and index.html), main. note exit codes (COORD-CONTRACT): 0 ok, 4 input missing, 64 usage, 65 malformed input, 70 internal, 75 temporary -text tbmd "BOARD.md" -text tidx "index.html" text crender "render" text cserve "serve" text fclaims "--claims" @@ -12,8 +10,7 @@ text fnow "--now" text fhead "--head" text fdir "--dir" text fbind "--bind" -text fmax "--max" -text emusage "usage: synapse-board render --claims FILE --map FILE [--findings FILE] --out DIR [--now TS] [--head HEX] | serve --dir DIR --bind IP:PORT [--max N]" +text flagmax "--max" text emnoc "claims file not found" text emnom "map file not found" text embig "input file larger than 4 MiB" @@ -55,7 +52,7 @@ end if sbtmpeq n fbind ret 7 end -if sbtmpeq n fmax +if sbtmpeq n flagmax ret 8 end ret 99 @@ -71,7 +68,7 @@ end if ge add i 1 na ret 64 end -n = argread int i gtmp 0 4096 +n = argread ulong i gtmp 0 4096 if lt n 0 ret 64 end @@ -82,7 +79,7 @@ end if gt get gplen s 0 ret 64 end -m = argread int add i 1 gpath mul s SBSLOT 4095 +m = argread ulong add i 1 gpath mul s SBSLOT 4095 if le m 0 ret 64 end @@ -102,7 +99,11 @@ ok = and ge c 48 le c 57 if hex ok = or ok and ge c 97 le c 102 else -ok = or ok or or eq c 84 eq c 90 or or eq c 58 eq c 46 eq c 45 +ok = or ok eq c 84 +ok = or ok eq c 90 +ok = or ok eq c 58 +ok = or ok eq c 46 +ok = or ok eq c 45 end if not ok ret false @@ -375,9 +376,11 @@ end if eq cmd 1 ret int sbrender end -if or or gt sbslotl 0 0 gt sbslotl 1 0 or or gt sbslotl 2 0 gt sbslotl 3 0 or gt sbslotl 4 0 gt sbslotl 5 0 +for s ulong 6 +if gt sbslotl s 0 sbsay emusage ret 64 end +end ret int sbserve end diff --git a/tests/golden/BOARD.md b/tests/golden/BOARD.md new file mode 100644 index 0000000..5e6228b --- /dev/null +++ b/tests/golden/BOARD.md @@ -0,0 +1,80 @@ +# AIEN coordination board + +> Generated file. Do not edit. Agents write through synapse-claims; this page is rebuilt from the claims ledger, the repo map and pulse findings. + +_Generated by synapse-board from ledger head 0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef at 2026-10-27T02:00:00Z_ + +## Summary + +- active claims: 6 +- active but past expiry (lapsed): 1 +- inactive claims (released or expired): 1 +- repos with active claims: 3 +- conflicts: 1 +- findings, error: 1 +- findings, warn: 1 +- findings, info: 1 +- repos in map: 9 +- INFERRED parents: 2 + +## Conflicts + +| severity | target | agent | id | other agent | other id | detail | +|---|---|---|---|---|---|---| +| error | pr:aien-dev/omega-mv#866 | TlsHarden-2 | b1b2c3d4e5f60718 | OmegaVulkan | a1b2c3d4e5f60718 | both lanes hold omega-mv & push | + + +## Pulse findings + +| kind | severity | repo | target | agent | session | pr | path | detail | +|---|---|---|---|---|---|---|---|---| +| force_push | error | aien-dev/omega-mv | branch:aien-dev/omega-mv#vk/shader-glcompute | OmegaVulkan | s-vk | | | head moved by another committer | +| stale_claim | warn | aien-dev/omega-mv | pr:aien-dev/omega-mv#866 | TlsHarden-2 | s-tls | 866 | om/tls/*.om | lease lapsed | +| unclaimed_pr | info | aien-dev/aienos.com | | | | 150 | | open PR with no claim | + + +## Active claims + + +### aien-dev/aienos.com + +| agent | target | mode | state | intent | expires | evidence | +|---|---|---|---|---|---|---| +| Community | branch:aien-dev/aienos.com#feat/community | excl | PROPOSED | building /community/ | 2026-10-27T06:00:00Z | https://aienos.com/community/?a=1&b="x" | + +### aien-dev/omega-mv + +| agent | target | mode | state | intent | expires | evidence | +|---|---|---|---|---|---|---| +| OmegaVulkan | branch:aien-dev/omega-mv#vk/shader-glcompute | excl | PROPOSED | Vulkan GLCompute \| SPIR-V on lavapipe | 2026-10-27T05:00:00Z | , javascript:alert(1) | +| TlsHarden-2 | pr:aien-dev/omega-mv#866 | excl | IMPLEMENTED | <script>alert(1)</script> integrity test & show-version | 2026-10-27T01:30:00Z LAPSED | | + +### aien-dev/synapse-map + +| agent | target | mode | state | intent | expires | evidence | +|---|---|---|---|---|---|---| +| Map | repo:aien-dev/synapse-map | shared | EXERCISED | map builder \`\[x\]\` | 2026-10-27T03:00:00Z | http://example.org/a b | + +### external + +| agent | target | mode | state | intent | expires | evidence | +|---|---|---|---|---|---|---| +| WideAcademia | ext:email:jane@example.org | excl | PROPOSED | outreach draft | 2026-10-27T04:00:00Z | | + +### (unparsed) + +| agent | target | mode | state | intent | expires | evidence | +|---|---|---|---|---|---|---| +| Odd | weird-target | excl | BLOCKED | no scheme | 2026-10-27T03:00:00Z | | + +## Repo map + +- **aien-dev/synapse** [ROOT] - agent coordination parent + - **aien-dev/synapse-board** - generated board <b> + - **aien-dev/synapse-map** [INFERRED: name-prefix synapse-] - repo map +- **aien-dev/omega-mv** [ROOT] - language & compiler + - **aien-dev/omega-blas** - BLAS +- **aien-dev/BabelStream** [NONE] [archived] [fork] - fork of a benchmark +- **aien-dev/lonely** [INFERRED: readme-link] [parent outside map: aien-dev/elsewhere@main] +- **aien-dev/cyc-a** [cycle] + - **aien-dev/cyc-b** diff --git a/tests/golden/index.html b/tests/golden/index.html new file mode 100644 index 0000000..285bb16 --- /dev/null +++ b/tests/golden/index.html @@ -0,0 +1,103 @@ + + + + + + +AIEN coordination board + + + +

AIEN coordination board

+

Generated file. Do not edit. Agents write through synapse-claims; this page is rebuilt from the claims ledger, the repo map and pulse findings.

+

Generated by synapse-board from ledger head 0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef at 2026-10-27T02:00:00Z

+

Summary

+ +

Conflicts

+ + + + + +
severitytargetagentidother agentother iddetail
errorpr:aien-dev/omega-mv#866TlsHarden-2b1b2c3d4e5f60718OmegaVulkana1b2c3d4e5f60718both lanes hold omega-mv & push
+

Pulse findings

+ + + + + + + +
kindseverityrepotargetagentsessionprpathdetail
force_pusherroraien-dev/omega-mvbranch:aien-dev/omega-mv#vk/shader-glcomputeOmegaVulkans-vkhead moved by another committer
stale_claimwarnaien-dev/omega-mvpr:aien-dev/omega-mv#866TlsHarden-2s-tls866om/tls/*.omlease lapsed
unclaimed_prinfoaien-dev/aienos.com150open PR with no claim
+

Active claims

+

aien-dev/aienos.com

+ + + + + +
agenttargetmodestateintentexpiresevidence
Communitybranch:aien-dev/aienos.com#feat/communityexclPROPOSEDbuilding /community/2026-10-27T06:00:00Zhttps://aienos.com/community/?a=1&b="x"
+

aien-dev/omega-mv

+ + + + + + +
agenttargetmodestateintentexpiresevidence
OmegaVulkanbranch:aien-dev/omega-mv#vk/shader-glcomputeexclPROPOSEDVulkan GLCompute | SPIR-V on lavapipe2026-10-27T05:00:00Zhttps://github.com/aien-dev/omega-mv/pull/880
javascript:alert(1)
TlsHarden-2pr:aien-dev/omega-mv#866exclIMPLEMENTED<script>alert(1)</script> integrity test & show-version2026-10-27T01:30:00Z LAPSED
+

aien-dev/synapse-map

+ + + + + +
agenttargetmodestateintentexpiresevidence
Maprepo:aien-dev/synapse-mapsharedEXERCISEDmap builder `[x]`2026-10-27T03:00:00Zhttp://example.org/a b
+

external

+ + + + + +
agenttargetmodestateintentexpiresevidence
WideAcademiaext:email:jane@example.orgexclPROPOSEDoutreach draft2026-10-27T04:00:00Z
+

(unparsed)

+ + + + + +
agenttargetmodestateintentexpiresevidence
Oddweird-targetexclBLOCKEDno scheme2026-10-27T03:00:00Z
+

Repo map

+ + +