Skip to content

Commit bb6b3e5

Browse files
committed
docs(claws): clarify registry artifact storage
1 parent 9924dec commit bb6b3e5

1 file changed

Lines changed: 14 additions & 3 deletions

File tree

‎rfcs/0016/claw-package-v1-spec.md‎

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,12 @@ A conforming registry must validate a publication in this order:
186186
scanning rules.
187187
9. Compute and retain the immutable artifact digest over the exact distributed
188188
artifact bytes.
189-
10. Store the validated full manifest separately from its public safe summary.
189+
10. Store a bounded public safe summary derived from the validated manifest.
190+
191+
The exact artifact remains the authoritative stored declaration. A registry is
192+
not required to duplicate the parsed full manifest into its metadata store; if
193+
it does, that copy must remain private and must fit the registry's documented
194+
storage limits without truncation.
190195

191196
Validation is all-or-nothing. A registry must not publish a partial package or
192197
silently discard unsupported manifest fields or components.
@@ -201,6 +206,10 @@ registry supplies an expected length.
201206
Floating tags and version ranges may be discovery inputs, but they must be
202207
resolved before a managed lifecycle plan is produced.
203208

209+
Artifact metadata must identify the archive format or transport kind. A
210+
consumer must select its bounded safe extractor from that metadata and must not
211+
assume that every registry artifact uses the same archive format.
212+
204213
The registry artifact digest covers the exact distributed artifact bytes. The
205214
trusted registry or signed feed binds that digest to package identity; the
206215
digest alone proves byte equality, not publisher identity, review, or safety.
@@ -513,8 +522,10 @@ A conforming registry must:
513522
- parse and validate the selected manifest strictly;
514523
- verify every referenced source file;
515524
- retain exact artifact length and SHA-256 integrity;
516-
- keep public summaries derived from the artifact while allowing authorized
517-
clients to retrieve the exact artifact for local manifest review;
525+
- retain a bounded public summary derived from the validated artifact without
526+
requiring a second full-manifest copy in registry metadata;
527+
- allow authorized clients to retrieve the exact artifact for local manifest
528+
review;
518529
- never imply that Claw approval bypasses dependency policy.
519530

520531
## Client Conformance

0 commit comments

Comments
 (0)