Correctness- and interoperability-oriented Tangled CLI
camlet docs protocol-notes.md

Protocol notes #

This document records dated protocol evidence and open research. Claims enter a supported protocol contract only after they are tied to current documentation, lexicons, observed fixtures, or upstream source.

Authority inventory #

Capability Authority Evidence Fixture Status
did:plc repository and owner resolution PLC directory repository-read contract repo_read/v1/success/*-did.json verified for managed path
Current repository owner and record key Knot describeRepo repository-read contract repo_read/v1/success/knot-describe-repo.json verified for managed path
Public repository record Owner PDS getRecord repository-read contract repo_read/v1/success/pds-get-record.json verified for managed path
Owner-scoped repository enumeration Owner PDS listRecords repository-list contract repo_list/v1/managed, repo_list/v1/self_hosted verified for managed and selected self-hosted paths
Aggregated repository observations Bobbin repository-list contract repo_list/v1/managed/bobbin-* observed incomplete
Repository-scoped issue aggregation Bobbin listIssues issue-list contract issue_list/v1/managed implemented for managed path; not authoritative for absence
Exact issue base record Issue author PDS getRecord issue-view contract issue_view/v1/managed/pds-issue.json verified for managed path
Issue state and comment relations Bobbin lists plus source-author PDS verification issue-view contract issue_view/v1/managed verified observations; not authoritative for absence
Social record writes Author PDS pending pending unverified
Repository state and ACLs Knot pending pending unverified
Source transport Git/SSH on knot pending pending unverified
CI operations Spindle pending pending unverified

The verified repository-read path and its compatibility and security boundaries are defined in protocol/repository-read-contract.md. The implemented owner-scoped enumeration path is defined in protocol/repository-list-contract.md.

The implemented issue aggregation path and its coverage boundary are defined in protocol/issue-list-contract.md.

The researched issue detail path and its split authority boundary are defined in protocol/issue-view-contract.md.

Repository-index coverage observation #

Observed on 2026-07-26 against the managed Bobbin and the repository owner's PDS:

  • Bobbin's point lookup by the known Camlet AT URI succeeded;
  • sh.tangled.repo.getRepoByRepoDid returned 404 RecordNotFound for Camlet;
  • sh.tangled.repo.listRepos returned no repositories for the owner;
  • sh.tangled.repo.countRepos returned zero;
  • sh.tangled.bobbin.getCoverage reported ready: true;
  • direct owner-PDS com.atproto.repo.listRecords returned Camlet and NixVim.

The cause of the missing indexed observation is unproven. ready: true is not evidence of per-owner or per-repository completeness. Bobbin-backed contracts must preserve this distinction.

A follow-up on 2026-07-28 observed a changed but still incomplete index state:

  • the owner PDS returned Camlet, NixVim, and a newly created NixOS configuration repository;
  • complete Bobbin pagination returned Camlet and NixVim but omitted the new repository;
  • Bobbin simultaneously reported ready: true;
  • Bobbin returned one opaque cursor followed by a terminal cursor: null;
  • owner-PDS pagination with limit=1 returned a cursor on every non-empty page, including the last, followed by an empty page with no cursor.

Bobbin had acquired the two records missing on 2026-07-26, so its per-owner state can converge over time. The remaining omission shows why neither a completed Bobbin cursor traversal nor ready: true proves current owner PDS completeness.

Self-hosted repository-list observations #

Observed on 2026-07-28 against public, unauthenticated endpoints:

  • an owner PDS at blacksky.app returned three sh.tangled.repo records spanning knot1.tangled.sh and knot.biglargeclarke.com;
  • both self-hosted repository DID documents selected knot.biglargeclarke.com, and its describeRepo responses agreed with the PDS owner, repository DID, and record key;
  • the self-hosted knot reported v1.14.1-alpha (f9c85351f3946f585da9401b29ced88c7726265d).

A separate owner-PDS record used a generated record key and the cosmetic name knot. knot.h14h.com returned knot as the describeRepo record key rather than the generated key in the AT URI. That knot reported v1.15.0-alpha (a0d381381751c86d4ed4b8ef46b8b7c6e42d8659). The endpoint is available, but the observation fails Camlet's record-key consistency requirement. Version strings therefore cannot substitute for feature detection and cross-authority validation.

Managed issue-list observations #

Observed on 2026-07-29 against the managed Bobbin and Tangled core commit 0dc54771380cd1bfec25d775fedfb66db7869b74:

  • sh.tangled.repo.listIssues accepted a repository DID and returned hydrated issue values, derived state, optional state-update time, and comment count;
  • each observed embedded issue value repeated $type before and after the record fields with the same value;
  • limit=1 returned an opaque continuation cursor for a repository with multiple issues;
  • a terminal response returned "cursor": null, while the current lexicon defines an optional string;
  • the current implementation derives state only from records authored by the issue author or repository owner;
  • the managed coverage counters advanced between observations while remaining ready: true;
  • the live Camlet repository returned one closed issue, demonstrating the managed read path without proving repository-level completeness.

Issue records can be authored from many AT repositories, so no single owner PDS can enumerate them authoritatively. Complete Bobbin pagination means complete traversal of the index response, not proof that every issue exists in that response. State and comment counts are also derived Bobbin observations rather than exact record proofs returned by the list endpoint.

Managed issue-view observations #

Observed on 2026-07-29 against the managed PLC directory, the issue author's PDS, the managed Bobbin, and Tangled core commit 0dc54771380cd1bfec25d775fedfb66db7869b74. The remote still advertised that commit as master at the observation time.

  • sh.tangled.repo.getIssue returned only the hydrated issue URI, CID, and value; it did not include state, comments, or coverage;
  • the hydrated Bobbin value and direct author-PDS com.atproto.repo.getRecord response agreed on URI, CID, and decoded issue value for the observed record;
  • the author PDS returned 400 RecordNotFound for an absent issue record, while Bobbin getIssue translated the same upstream miss into 502 UpstreamFailed;
  • sh.tangled.repo.issue.listStates and sh.tangled.feed.listComments returned separate hydrated relation records, and each observed record agreed with its current source-author PDS response;
  • a comment traversal with limit=1 returned an opaque cursor followed by another page, including a replyTo strong reference on a reply;
  • terminal state and comment pages returned "cursor": null even though both lexicons declare an optional string; and
  • valid list requests for an absent issue URI returned empty arrays, confirming that empty Bobbin relation traversal is not authoritative issue-absence evidence.

These observations support an authoritative base read from the issue author's PDS and a separately attributed, coverage-bracketed Bobbin traversal for related state and comments. Verifying each emitted relation record against its current author PDS strengthens record-content integrity without turning Bobbin enumeration into an authoritative completeness claim.

Local transport observations #

Observed on 2026-07-25 in the Camlet repository:

Surface Configured Git transport Derived identity Local tracking ref
Tangled git@tangled.org:did:plc:<repository> did:plc:<repository> refs/remotes/tangled/main
Radicle fetch rad://<multibase> rad:<multibase> refs/remotes/rad/main
Radicle push rad://<multibase>/<node-id> rad:<multibase> refs/remotes/rad/main

The Radicle repository identifier and Git transport URL use different punctuation: the RID is rad:z..., while the transport begins rad://z.... The optional push-URL node segment is transport routing data and is not part of the RID. These observations support local URL decoding only; they do not establish network availability or current remote ref state.

Managed Tangled pull integration observation #

Observed on 2026-07-26 while integrating Camlet pull #1 through the managed tangled.org service. The deployed component version was not exposed.

Property Proposed head Accepted result
Commit 8a84a912bb7476336fc5e84c64b4d8bda5eec542 f13b741ac54d5fc79821bf4bb39fb527a60c5e48
Parent 055bce9f3785aba0158eb715c742d2030e9594eb 055bce9f3785aba0158eb715c742d2030e9594eb
Tree 89be1da4020cac386dbf9d9ddde3a238833c3d84 89be1da4020cac386dbf9d9ddde3a238833c3d84

The commits are siblings with the same tree, author, message, DCO trailer, and Jujutsu change ID. Tangled created the accepted result with a different committer identity and timestamp. Local main and Radicle main were then advanced to the exact accepted-result commit, and the non-authoritative Radicle patch was archived with both commit IDs as provenance.

This observation is not a protocol guarantee. Clients must fetch and verify the selected authority's resulting commit after integration rather than assuming that the proposed head became canonical unchanged.

Research rules #

  • Record observation date and deployed component version where available.
  • Preserve sanitized raw fixtures before designing a decoder.
  • Distinguish authoritative success from indexer visibility.
  • Record pagination, coverage, size, timeout, and error behavior.
  • Test managed and self-hosted endpoints before generalizing.

Open protocol evidence #

  • repository rename and alias behavior;
  • did:web and alternate-PLC discovery;
  • Bobbin pagination and cross-page consistency beyond the observed two-item owner;
  • issue-list behavior against a self-hosted Bobbin and during a live coverage lifecycle change;
  • cryptographic AT repository proof verification;
  • authenticated PDS writes and index-visibility receipts.