Skip to content

feat: carry blackboard reads/writes in the protocol crate (lockstep) - #37

Merged
saucam merged 1 commit into
mainfrom
feat/collab-blackboard-io-lockstep
Jul 27, 2026
Merged

feat: carry blackboard reads/writes in the protocol crate (lockstep)#37
saucam merged 1 commit into
mainfrom
feat/collab-blackboard-io-lockstep

Conversation

@saucam

@saucam saucam commented Jul 27, 2026

Copy link
Copy Markdown
Collaborator

Lockstep half of highflame-ai/codeoid#260 (goal blackboard, slice 1). CONTRIBUTING requires this crate to move with the daemon's packages/protocol/.

What changed

reads / writes on CollaborationRole — the artifact kinds a role may read and write on the goal blackboard (spec, research, adr, task-list, diff, findings, or extra/<key>).

Two choices worth noting:

  • Option<Vec<String>>, not defaulted to an empty vec. None means "use the daemon's default profile for this role name", which is not the same as an empty list ("read/write nothing"). The daemon distinguishes them; collapsing the two here would silently strip every default profile.
  • Plain strings, not an enum. The artifact vocabulary is a fixed core plus an extra/<key> escape hatch, so an enum would reject a valid kind that a newer daemon accepts.

Verification

  • cargo build, cargo clippy --all-targets, cargo test --workspace green — 354 tests.
  • Clippy warnings unchanged: 7 before, 7 after on codeoid-protocol (verified by stashing the change, not by eyeballing).
  • The wire_format review role now carries populated lists rather than None, so the recursive camelCase walker actually visits them and a future rename of either field fails the wire test.

Follow-up (not here)

Still nothing renders any of this. Combined with #36, the TUI now receives role, ordinal, write authority, and artifact scoping for every collaboration child and displays none of it — a fleet still looks like N unrelated sessions. Worth a dedicated PR against the session list and title once the daemon side settles.

🤖 Generated with Claude Code

Lockstep half of the daemon's goal-blackboard slice 1. CONTRIBUTING requires
this crate to move with the daemon's packages/protocol.

- `reads` / `writes` on CollaborationRole: the artifact kinds a role may read
  and write on the goal blackboard (`spec`, `research`, `adr`, `task-list`,
  `diff`, `findings`, or `extra/<key>`).

`None` means "use the daemon's default profile for this role name", which is
NOT the same as an empty list ("read/write nothing") — the daemon distinguishes
them, so these stay Option<Vec<String>> rather than defaulting to an empty vec
here. Collapsing the two would silently strip every default profile.

Kept as plain strings, not an enum: the artifact vocabulary has a fixed core
plus an `extra/<key>` escape hatch, so an enum here would reject a valid kind a
newer daemon accepts.

The wire_format review role now carries populated lists rather than None, so
the recursive camelCase walker actually visits them and a future rename of
either field fails the wire test.

cargo build + clippy + test green: 354 tests; clippy warnings unchanged
(7 before, 7 after on codeoid-protocol, verified by stashing).
@gemini-code-assist

Copy link
Copy Markdown

Caution

The consumer version of Gemini Code Assist on GitHub has been sunset. All code review activity has officially ceased.

@saucam
saucam merged commit 0234eb7 into main Jul 27, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants