Expand description
Boundary ID helpers for agent:boundary markers.
new_boundary_id— 8-hex-char UUID v4 prefix (length controlled byBOUNDARY_ID_LEN).new_boundary_id_with_summary— same ID optionally suffixed with a 3-word, 20-char-max slug derived fromsummary(format:a0cfeb34:boundary-fix).format_boundary_marker— renders the canonical HTML comment form<!-- agent:boundary:<id> -->used in document component boundaries.
Non-deterministic: new_boundary_id uses UUID v4 — callers must not rely
on ordering.
Constants§
- BOUNDARY_
ID_ LEN - Default number of hex characters for boundary IDs.
Functions§
- boundary_
id_ from_ seed_ with_ summary - Derive a deterministic boundary ID from a stable seed (for example the IPC
patch_id), optionally suffixed with a summary slug. Same seed → same ID. - format_
boundary_ marker - Format a boundary marker comment.
- new_
boundary_ id - Generate a new boundary ID (short hex string from UUID v4).
- new_
boundary_ id_ with_ summary - Generate a boundary ID with an optional summary suffix.