Repository navigation
Add opt-in author identity to agent board posts - #66
Merged
AvnehSBhatia merged 1 commit intoNov 22, 2026
Merged
Conversation
(cherry picked from commit 4a807d7)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add an opt-in learned author signal to AG board values. This gives a reader a way to distinguish writers that post the same content. Set
board_identity_sizeto the number of learned IDs. Each layer's table starts at zero and trains through board reads.In-batch swarms use swarm-local row indices or explicit
MemoryContext.agent_ids. Persistent boards use the stored author ID at read time, so local and HTTP board formats stay compatible. IDs outside the table contribute zero. A standalone agent without external posts keeps its original behavior. Default configurations and legacy checkpoints load without identity tensors.Experiment result
A matched CPU experiment used the
tinypreset, 120 steps, eight two-agent swarms per batch, 16 tokens per row, AdamW at 0.003, and the same 16 fixed validation batches for both arms. Partners read identical tokens, and the target depended on the writer's ID. Enabling two IDs added 32 parameters to the 127,432-parameter baseline.The experiment measures whether a reader can use author identity when content is identical.
Validation
The full local pytest suite reported 250 passed in 89.58 seconds.
Tests cover identity-specific gradients, earlier-chunk visibility, swarm isolation, persistent authors, unknown IDs, strict loading of legacy and new checkpoints, and standalone parity.
Reproduce the synthetic identity experiment
Run from the repository root.