GeezerVison is showing github.com — impl(id): social object envelope + profiles in id-core (per #9128 design) · Issue #13095 · developing-today/code
impl(id): social object envelope + profiles in id-core (per #9128 design) #13095DescriptionParent: #9128 (social app reference model design, §2 + §7 + §9). Program #9106, epic #9107.
Implement the social object envelope and the four application profiles in pkgs/id id-core, per the #9128 design record §2:
SocialObject envelope: object_id, author, created_claim (untrusted, display only), parent_ref?, content_ref, schema_version, succeeds_ref? (design(id): versioning — succeeds triples + carried-forward comments #9129), profile tag (feed-entry | profile | topic | comment | reaction).
- Validation: envelope well-formedness, profile-specific required fields, succeeds_ref semantics deferred to design(id): versioning — succeeds triples + carried-forward comments #9129's edge rules.
- Bounded cycle-safe nesting traversal per §7: visited-set walk over parent_ref with policy bounds (default max display depth 32, max visited nodes 2,000, max 8 MiB), cycles surfaced as back-references, continuation by cursor.
Acceptance: tests cover envelope round-trip per profile, rejection of malformed envelopes, traversal hitting each bound exactly, and a parent_ref cycle terminating as back-references. Oracle: §2 envelope + §7 defaults in the design record. Activitydeveloping-today commented on Nov 23, 2026 dezren39 commented on Nov 23, 2026 Picking this up (lane xaltha). Implementing the SocialObject envelope + four profiles in id-core per #9128 §2/§7/§9, with round-trip, rejection, and traversal-bound tests. dezren39 commented on Nov 24, 2026 Design supplement for this implementation slice: #14111. It adds a dated nine-point design record specifying the id-core envelope and profile validation, bounded cycle-safe traversal and continuation behavior, dependency-ordered build slices with acceptance oracles, rollout/rollback, verification, and named-decider defaults. Design-only; no implementation code changed. dezren39 commented on Nov 24, 2026 Triage verdict (oc-code-07, 2026-11-24)
Fresh state: open. Only a design supplement exists (#14111, design-only). No envelope or profile code for id-core is on main.
Size: a feature slice (envelope types, four profile validators, bounded cycle-safe traversal with cursor, and tests). Too big for a triage packet.
Verdict: keep open and route as a feature-slice packet under #9128 / #9106. Build order and acceptance oracles are in #14111. Tracked under #14158. dezren39 commented on Nov 24, 2026 Triage verdict (code-h, 2026-11-24): partially implemented. Design #14111 merged; pkgs/id/crates/id-core already has graph::social (SocialObject, SocialObjectKind, parent_ref) used by carried_comment_projection tests. Not verified in place: the envelope profile tags and required-field validation, succeeds_ref handling, and the bounded cycle-safe traversal (32 depth / 2000 nodes / 8 MiB, cursor continuation). Size: effort/m-l feature, too large for a small_fix. Route: feature-slice packet for the traversal and profile validation, with the acceptance tests from this issue. dezren39 commented on Nov 25, 2026 Claimed by lane 3, 2026-11-25T02:11Z. Working the remainder tracked in #14334, design #14111 §5: S1 first (profile tags, profile-specific parent/target rules, typed validation errors, strict canonical encoding with a round trip per profile), then S2 (traversal continuation cursor, oversized single item as a typed error, each bound hit exactly).
Generated by Claude Code dezren39 commented on Nov 25, 2026 Progress from lane 3: slices S1 and S2 landed in #14786 (squash aa853d2).
- S1, envelope validation:
graph::social_envelope gives SocialObject a strict canonical-CBOR encoding (schema version 1, unknown fields rejected), per-profile parent and target rules, size limits on author and envelope, and self-reference rejection.
- S2, paged traversal:
graph::social_paging::traverse_page walks with a resumable TraversalCursor. Depth, node and byte budgets apply per page and are inclusive. Cycles stay safe across pages, a cursor for another root or profile is refused, an item larger than the byte budget is an error, and withdrawn objects are reported as missing.
Left open: S3, the public facade and crate-level integration tests.
Generated by Claude Code dezren39 commented on Nov 25, 2026 Slice S3 landed in #14837: id_core::social_object facade plus contract tests (profile round-trips, canonical bytes, fail-closed malformed envelopes and wire bytes, validated envelopes feeding paged traversal with cycle back-references, and every default traversal bound hit exactly). With S1 (#14786) and S2, this issue's scope is complete.
Generated by Claude Code
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|