Capture diagnostic identities and rehearsal records
This commit is contained in:
32
docs/integrations/rehearsal-records.md
Normal file
32
docs/integrations/rehearsal-records.md
Normal file
@@ -0,0 +1,32 @@
|
||||
# Rehearsal identity and records
|
||||
|
||||
A diagnostic annotated tag carries the exact source and profile identity for a
|
||||
single rehearsal. Its message begins with `ReleaseKit rehearsal v1`, followed
|
||||
by a newline and one compact JSON object. `schema_version: 1` identifies the
|
||||
manifest. Its fields include the attempt ID, selector, captured commit, profile
|
||||
path and SHA-256, source directory, Go capability and optional module path,
|
||||
publication and version selection, diagnostic version, and full tag. A
|
||||
16-byte random attempt ID is represented by 32 lowercase hexadecimal digits;
|
||||
the tag and injected version include the same ID.
|
||||
|
||||
The manifest is verified against the actual annotated tag target, the event
|
||||
commit, the selected dispatch row, the exact committed profile bytes, and the
|
||||
normalized selection decoded from those bytes. The tag namespace alone is not
|
||||
proof of ownership or permission to delete anything. A profile is read from the
|
||||
captured commit rather than the current working tree.
|
||||
|
||||
Private attempt records use `format_version: 1` and retain the manifest, Git
|
||||
endpoint and remote, forge and Woodpecker destinations, planned page evidence,
|
||||
tag object, observed resource IDs, timestamps, and outcomes. They do not store
|
||||
resolved forge or Woodpecker tokens. Endpoints and paths may themselves contain
|
||||
sensitive information, so treat records as private. By default they are stored
|
||||
under the Git common directory in `releasekit/rehearsals/<attempt-id>.json`.
|
||||
An explicit record-directory override follows the same worktree ignore rules as
|
||||
publication records. The initial record is created exclusively; updates use a
|
||||
private temporary file and rename. Records remain available for explicit
|
||||
recovery and operator retention.
|
||||
|
||||
Manifest and record strings that contain non-UTF-8 bytes are omitted in their
|
||||
lossy JSON form and represented by standard base64 values in `identity_bytes`.
|
||||
A recognized override supplies the exact bytes on decoding; unknown override
|
||||
names are ignored. Supported versions tolerate additive unknown fields.
|
||||
Reference in New Issue
Block a user