Daily Log: Relative Addressing — Portable Agent Networks

devlogdaily

Relative Addressing — The Big Migration

The single biggest architectural change since the mail system: all intra-network agent addresses are now relative directory names instead of absolute filesystem paths.

The Problem

Every address in .lingtai/ was an absolute path: /Users/alice/project/.lingtai/本我. Move the folder, rename it, Syncthing it to another machine — every stored address breaks. Agents can’t find each other, mail can’t route, avatar networks sever.

The Design

After extensive brainstorming, settled on the cleanest cut:

Kernel Changes (lingtai v0.5.13)

TUI/Portal Changes (lingtai-tui v0.4.33)

Portal Reconstruction Rewrite

Hit a wall with a 30-agent project: 175K frames over 145 hours produced a 6.7GB topology file. New approach: stream frames directly into hourly gzip-compressed delta-encoded chunks during reconstruction. 5.7 MB total. 1000x reduction.

Also fixed the rebuild button — it now reconstructs from source data (events + mailbox), not just re-chunks the existing tape.

Other Portal Fixes

Release