Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/interplane-forge/blob/main/store/evcol.om # interplane-forge INTERPLANE Forge Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `interplane-forge / store / evcol.om` 863 lines ยท 16853 bytes Raw Blame History 1 note store/evcol.om: the collector of door/ (docs/AGENT-DOOR.md) in the store-reading build, in place 2 note of door/ev3col.om (which reads Radicle refs and COBs). run.sh composes it between door/ev2log.om 3 note and door/ev4json.om when FORGE_STORE is set. One collection pass is change-triggered, never on a 4 note clock: before a page of the stream is answered, evcollect compares cheap fingerprints with the 5 note last pass of this process and reads only what moved: 6 note social log its size; the new bytes are read with social's own line parser (stars, follows) 7 note store nothing of its own: the table follows ROOT/catalog.tsv (store/repos.om); the 8 note catalog file's stat is not read here (see evrepochk) 9 note project i its catalog line (id, branch, head), the change times and sizes of 10 note repo.git/refs/heads, repo.git/refs/tags, 11 note repo.git/packed-refs and chain.tsv; then one for-each-ref of the default branch 12 note and the tags, compared line by line with the snapshot events/r/ 13 note Kinds: branch_moved (10) and release (9, a tag created or moved) from the store, star (11) and 14 note follow (12) from the social log. The open builds shelf and patches and issues are not part of this 15 note build (their slices are seams), so those kinds never occur. Sources name the store object: 16 note "chain.tsv:" for a default-branch move recorded by record N of the project's chain (the LAND or 17 note IMPORT record of that branch whose payload says "new "; its time is the record's time), 18 note "repo.git:" for a tag, or for a move no record of the chain names (the commit time), and 19 note "social.log:" for stars and follows. 20 text tevfh1 "

Feed

\n

What happened on this forge, newest first: releases, new commits on default branches, stars and follows. Only public repositories. Agents read the same list as ; an event only for a repository that is served now 176 fn evsstar to void 177 if not sokpre tsradp 178 ret 179 end 180 for i ulong sub get gskbl 0 len tsradp bound 64 181 evridc get gskb add len tsradp i 182 end 183 r = evridpub 184 if eq r 9999 185 ret 186 end 187 put gevk 0 11 188 evpthrepo r 189 evjsame 190 evjst tevjsx 191 for k ulong frnlen r bound 128 192 evsubc frnbyte r k 193 end 194 evemit 195 end 196 note evsfoll: gskb holds the followed account's did:key; its page is found when the stream is read 197 fn evsfoll to void 198 if not sokpre tsdidp 199 ret 200 end 201 put gevk 0 12 202 for i ulong get gskbl 0 bound 128 203 evxc get gskb i 204 evsubc get gskb i 205 end 206 evemit 207 end 208 note ---- projects of the store 209 note evsp i t: fpth = ROOT/projects//repo.git 210 fn evsp i ulong t view uchar * to void 211 xspproj i 212 fpt tfsrg 213 fpt t 214 end 215 note evrepochk i: the fingerprint of project i (its key; its own catalog line: id, branch and head; 216 note the change times and sizes of its ref folders, packed-refs and chain); a project whose 217 note fingerprint moved is read (evrepo). The catalog file's own stat is not part of it (it was before 218 note 2026-11-14): ipl rewrites catalog.tsv on every landing in any project, which moved every 219 note fingerprint and made each landing read every served project. What the catalog stat guarded 220 note stays guarded by the line: a project added, removed or replaced, or rows shifted after a 221 note reload, give row i another key or id, so it is read; a landing changes its own line's head (and 222 note its refs). A catalog rewritten with the same lines reads no project. 223 fn evrepochk i ulong to void 224 h = ulong `14695981039346656037` 225 for k ulong fridlen i bound 64 226 h = evfnv h fridbyte i k 227 end 228 for k ulong 64 229 h = evfnv h get xsgid add mul i 64 k 230 end 231 h = evfnv h uchar 47 232 for k ulong get fabl i bound 64 233 h = evfnv h get fabr add get fabo i k 234 end 235 h = evfnv h uchar 47 236 h = evfnv h uchar get xshn i 237 for k ulong mul get xshn i 40 bound 40 238 h = evfnv h get xshead add mul i 40 k 239 end 240 evsp i tevsrh 241 h = add h mul evstat 3 242 evsp i tevsrt 243 h = add h mul evstat 5 244 evsp i tevspk 245 h = add h mul evstat 7 246 xspproj i 247 fpt tevschn 248 h = add h mul evstat 11 249 if eq h get gevfp i 250 ret 251 end 252 if evrepo i 253 put gevfp i h 254 end 255 end 256 note evsnapp i: fpth = events/r/ 257 fn evsnapp i ulong to void 258 evpath tevrp 259 for k ulong fridlen i bound 64 260 fpc fridbyte i k 261 end 262 end 263 note evrepo i: read project i; false when git did not answer (the next pass tries again) 264 fn evrepo i ulong to bool 265 fkgiti i 266 fka tevfer 267 fka tevfmt 268 fkopen 269 fkt tevrh 270 for k ulong get fabl i bound 64 271 fkc get fabr add get fabo i k 272 end 273 fka tevrt 274 x = fexec `10000000000` 275 if ne x 0 276 ret false 277 end 278 put gevpr 0 add get gevpr 0 1 279 if or ne get fxotr 0 0 gt get fxol 0 len gevnew 280 evgb 281 evgt tevlcut 282 for k ulong fridlen i bound 64 283 evgc fridbyte i k 284 end 285 evgout 286 ret true 287 end 288 n = get fxol 0 289 for k ulong n bound `4194304` 290 put gevnew k get fxo k 291 end 292 put gevnewl 0 n 293 first = evoldld i 294 p = ulong 0 295 for it ulong `4194304` 296 if ge p n 297 break 298 end 299 e = p 300 for k ulong `4194304` 301 if ge e n 302 break 303 end 304 if eq get gevnew e 10 305 break 306 end 307 e = add e 1 308 end 309 evrefln i p e first 310 p = add e 1 311 end 312 evsnapw i 313 ret true 314 end 315 note evoldld i: the snapshot of the last read into gevold; true when there is none (first sight) 316 fn evoldld i ulong to bool 317 put gevoldl 0 0 318 evsnapp i 319 r = frdall 320 if lt r 0 321 ret true 322 end 323 if or ne get fxotr 0 0 gt get fxol 0 len gevold 324 ret true 325 end 326 n = get fxol 0 327 for k ulong n bound `4194304` 328 put gevold k get fxo k 329 end 330 put gevoldl 0 n 331 ret false 332 end 333 note evsnapw i: gevnew becomes the snapshot (written to .tmp, then renamed over it) 334 fn evsnapw i ulong to void 335 evsnapp i 336 fpt tevtmp 337 fd = fopen fpth 0 get fpthl 0 524865 384 338 if lt fd 0 339 ret 340 end 341 n = get gevnewl 0 342 off = ulong 0 343 for it ulong 4096 344 if ge off n 345 break 346 end 347 w = write int fd gevnew off sub n off 348 if le w 0 349 break 350 end 351 off = add off ulong w 352 end 353 x = fsync int fd 354 y = fclose int fd 355 if ne off n 356 ret 357 end 358 pk = new uchar 8200 0 359 put pk 0 2 360 o = evpkadd pk 2 361 evsnapp i 362 o = evpkadd pk o 363 r = renames pk 0 o 0 364 end 365 fn evpkadd pk edit uchar * o ulong to ulong 366 n = get fpthl 0 367 put pk o uchar and n 255 368 put pk add o 1 uchar shr n 8 369 for k ulong n bound 4096 370 put pk add add o 2 k get fpth k 371 end 372 ret add add o 2 n 373 end 374 note ---- one ref line of gevnew: "