GitWorkshop's software release implementation follows the vendored NIP-82 Software Applications, including its release asset clarifications.
Uses NIP-78 (Arbitrary Custom App Data) to persist notification read/archived state across devices.
Notification state uses two addressable events. The user's primary account only creates and decrypts a key envelope; routine state updates use the dedicated keypair stored in that envelope.
The key envelope is authored by the user's primary account and NIP-44 encrypted to the same account:
{
"kind": 30078,
"tags": [["d", "git-notifications-nsec"]],
"content": "<NIP-44 encrypted JSON>"
}When decrypted, its content contains the hex-encoded private key for a dedicated notification keypair:
{
"nsec-for-notification-state": "<hex private key>"
}The field contains the raw private key encoded as hexadecimal, not a Bech32 nsec1... string. Readers MUST also accept the legacy { "nsec": "<hex private key>" } content schema, but writers MUST use nsec-for-notification-state for newly created envelopes.
The state event is authored by the dedicated notification keypair and NIP-44 encrypted to that keypair's own pubkey:
{
"kind": 30078,
"tags": [["d", "git-notifications-state"]],
"content": "<NIP-44 encrypted JSON>"
}When decrypted with the dedicated notification keypair, the state event contains a JSON object with the following fields:
| Field | Type | Description |
|---|---|---|
rb |
number |
Unix timestamp (seconds). All notification events with created_at <= rb are considered read. |
ri |
string[] |
Event IDs individually marked as read that have created_at > rb (exceptions after the cutoff). |
ab |
number |
Unix timestamp (seconds). All notification events with created_at <= ab are considered archived. |
ai |
string[] |
Event IDs individually marked as archived that have created_at > ab (exceptions after the cutoff). |
{
"rb": 1711900000,
"ri": ["aabb...", "ccdd..."],
"ab": 1711800000,
"ai": ["eeff..."]
}Separating the key envelope from the state event avoids repeatedly invoking the user's primary signer. The primary signer is needed when creating the envelope and when decrypting a newer envelope received from another device. The decrypted dedicated key is cached locally, and all subsequent state encryption, decryption, and signing use that keypair.
The high-water-mark model keeps the payload compact:
- The timestamp cutoff (
rb/ab) marks everything older as read/archived without storing individual IDs. - The ID arrays (
ri/ai) only hold exceptions — events newer than the cutoff that have been individually acted on. - Periodically the cutoff is advanced and the arrays are pruned, keeping the payload bounded.
This is the same model used by gitworkshop.dev for notification state, adapted from localStorage to NIP-78 for cross-device sync.
Dashboard usage is stored separately from notification read/archive state as
NIP-78 application data. The d tag is gitworkshop-repo-selections-v1.
The author is the existing notification keypair recovered from
git-notifications-nsec; content is NIP-44 encrypted to that same pubkey.
The notification envelope and git-notifications-state schema are unchanged.
Repository coordinates and writer identifiers appear only inside ciphertext.
The compact version-3 payload stores each repository coordinate once:
{
"v": 3,
"r": {
"30617:<64-character-hex-pubkey>:<identifier>": {
"0123456789abcdef01234567": [1240, 1790000000]
}
}
}The inner key is a random 96-bit device identifier, persisted per account in
localStorage. Each tuple is [scoreHundredths, lastClickUnixSeconds]: 1240
means 12.40 credits. A device's last-click time only moves forward, so clients
merge contributions by repository and device, keeping the later time; the same
second keeps the higher score, which already includes the earlier click's
credit. Repository and device keys are sorted for deterministic serialization.
Repeated snapshots are idempotent: clients never add a received whole-state
total to their local score.
Repository coordinates retain the full identifier, including empty identifiers and line breaks. Writers reject malformed kind/pubkey prefixes before recording a visit. Unreadable local caches, including unknown schema versions, are left intact rather than replaced with empty state; unknown remote versions still pause publication so older clients cannot overwrite a newer client's schema.
Frequent visits raise a repository's rank. Rapid repeat visits count less, and
older usage gradually fades. A first visit earns 100 hundredths. Later visits
on the same device earn round(10 + 90 * min(1, elapsedMilliseconds / 300000)),
where elapsed time since the previous click is clamped to zero. An immediate
repeat earns 10 hundredths, a visit after one minute earns 28, and a visit after
five minutes earns 100. The tuple's own second-resolution time is the previous
click, so no separate click history is kept.
Before adding a credit, decay that device's previous contribution to the new click time, retaining 90% per seven elapsed days, and round to the nearest hundredth. This is smooth elapsed-time decay, with no calendar-week switch. Clamp negative elapsed time to zero. Reads apply the same decay without rounding or writing; contributions below 0.01 credits are ignored and pruned. Sum surviving device contributions to rank repositories. Equal scores use the user's existing pin order, then recent repository activity. Public pins are never modified by usage.
Tabs in one browser profile share the device identifier and one merged state in localStorage. Every merge that changes state rewrites that cache, and the storage event carries it to the other tabs, so a click in one tab is the previous click for the next tab. Two tabs that click the same repository within the same second before either has merged the other keep only one credit. Without persistent storage, or once a cache write fails, a session-only identifier is used so tabs never build on an unshared copy of one device. That fallback cannot preserve unpublished clicks or repeat-visit timing across reloads. New sessions contribute separate entries, which remain until they decay below the cutoff; clients do not cap them by silently deleting live scores.
The merged local state stays after publication. Start a three-minute batch window with the first pending change; subsequent clicks join that batch without restarting the timer. When coverage is ready, publish only if live local contributions differ from the remote winner. Expiry alone never triggers an event. Offline updates survive reloads; restarting the owner starts a new batch window. The durable outbox retries the same signed event, and explicit sync retry can bypass the batch wait. Remote events remain continuously subscribed. Each tab owns its publisher, so tabs may publish equivalent snapshots before receiving each other's relay events. Merging them never doubles the score.
Unknown schemas and malformed relay payloads pause publication rather than replacing the event with empty state.
Recording a visit never creates the notification key. Accounts without a key keep ordering on each device until the user explicitly enables sync, which creates the key under the same relay-coverage evidence as a first notification action.
This is eventual reconciliation, not compare-and-swap. A device whose concurrent relay replacement loses must reconnect with its local state to restore unseen contributions. Expired contributions are pruned before merging; a new click always carries a later time than anything it replaced. Payload size scales with repositories and devices; unusually large histories can still exceed encryption/relay limits and pause sync instead of silently discarding live contributions.
A NIP-51 standard replaceable list that stores a user's curated, ordered set of their own repositories to highlight on their profile page.
{
"kind": 10617,
"tags": [
["a", "30617:<pubkey>:<dtag>"],
["a", "30617:<pubkey>:<dtag>"]
],
"content": ""
}| Tag | Description |
|---|---|
a |
Address pointer to a kind:30617 repository announcement. One tag per pinned repo. |
The order of a tags in the event is significant — it defines the display order of pinned repositories on the user's profile page. Clients SHOULD preserve tag order when modifying the list and SHOULD append new pins to the end.
Follows the same NIP-51 standard list pattern as:
- kind:10017 — Git authors follow list
- kind:10018 — Git repositories follow list
Uses a tags (address pointers to kind:30617 announcements) consistent with kind:10018. The list is intended for a user's own repositories only, acting as a curated showcase rather than a general-purpose follow list.
Inline comments on NIP-34 patches and pull requests follow NIP-22 with additional tags for code location context.
The NIP-22 root (E/K/P) is always the original PR (kind:1618) or patch (kind:1617). The parent (e/k/p) is either that same event or a PR update (kind:1619) when commenting on a specific revision.
Replies to an inline comment are standard NIP-22 replies: E/K/P remain the original PR/patch; e/k/p point to the inline comment (kind:1111).
A reviewer can propose a specific replacement for the lines referenced by the line tag by including a fenced code block with the language identifier suggestion in the comment content. The fence contains the exact replacement lines (without indentation changes relative to the original). The line tag on the same event defines the range being replaced.
```suggestion
let result = compute(x, y);
result
```Clients that understand suggestions SHOULD render an "Apply suggestion" button that constructs a patch replacing the referenced lines with the suggestion content and presents it to the PR author. Clients that do not understand suggestions display the fenced block as a normal code block, so the suggestion remains human-readable.
Rules:
- A suggestion MUST have a
linetag specifying the range to replace. - A suggestion MUST have an
ftag specifying the file. - A suggestion MUST have a
ctag specifying the commit the suggestion applies to. - The suggestion content replaces the referenced lines verbatim; reviewers SHOULD preserve surrounding indentation.
- A comment MAY contain prose outside the suggestion fence.
Any sub-thread (an inline comment or any NIP-22 comment thread) can be resolved by posting a kind:1111 reply with a l tag of "resolved". Clients that don't support resolution see it as a normal comment. The thread is considered resolved if such an event exists and has not been deleted.
{
"kind": 1111,
"content": "marked as resolved",
"tags": [
// NIP-22 root — unchanged from the rest of the thread
["E", "<pr-or-patch-event-id>", "<relay>", "<author-pubkey>"],
["K", "<1618-or-1617>"],
["P", "<author-pubkey>", "<relay>"],
// NIP-22 parent — the sub-thread root being resolved
["e", "<thread-root-comment-id>", "<relay>", "<author-pubkey>"],
["k", "1111"],
["p", "<author-pubkey>"],
// resolution state
["l", "resolved"],
],
}To check whether a specific comment thread is resolved without fetching the whole PR thread:
{ "kinds": [1111], "#e": ["<thread-root-comment-id>"], "#l": ["resolved"] }// all inline comments on a repository
{ "kinds": [1111], "#q": ["30617:<pubkey>:<repo-id>"] }
// all inline comments on a specific file
{ "kinds": [1111], "#q": ["30617:<pubkey>:<repo-id>"], "#f": ["src/parser/mod.rs"] }
// all inline comments on a PR (all revisions)
{ "kinds": [1111], "#E": ["<pr-event-id>"] }
// all inline comments targeting a specific commit
{ "kinds": [1111], "#c": ["<commit-id>"] }A PR review groups one or more inline comments (kind:1111) under a single verdict event. Any user can submit a review; the verdict is not authoritative over the PR's open/merged/closed state (that remains with NIP-34 kinds 1630–1633).
| Value | Meaning |
|---|---|
ACK |
Reviewer has tested or carefully read the code and approves it as-is. |
NACK |
Reviewer objects to the change; the PR should not be merged in its current form. |
Concept ACK |
Reviewer agrees with the goal/approach but has not fully reviewed the implementation. |
Concept NACK |
Reviewer disagrees with the goal or approach regardless of implementation quality. |
Changes Required |
Reviewer has identified specific changes that must be made before the PR can be merged; typically accompanied by inline comments detailing what needs to change. |
{
"kind": 7321,
"content": "<optional overall review summary / prose>",
"tags": [
// NIP-34 PR or patch being reviewed (required)
["e", "<pr-or-patch-event-id>", "<relay>", "root"],
["p", "<pr-or-patch-author-pubkey>"],
// verdict (required)
["s", "<ACK|NACK|Concept ACK|Concept NACK|Changes Required>"],
// inline comments included in this review (zero or more)
// each q tag references a kind:1111 comment event published by the same author
["q", "<comment-event-id>", "<relay>"],
["q", "<comment-event-id>", "<relay>"],
// NIP-31 alt tag for clients that don't understand kind:7321
[
"alt",
"Pull request review: <ACK|NACK|Concept ACK|Concept NACK|Changes Required>",
],
],
}- The review event MUST be authored by the reviewer (not the PR author or a maintainer acting on their behalf).
- Each
qtag referencing a comment MUST point to a kind:1111 event authored by the same pubkey as the review event. - The
stag value MUST be one of the five verdict strings above (case-sensitive). contentis optional but SHOULD be used for an overall summary when the verdict alone is insufficient.- A review is immutable once published. To change a verdict, publish a new kind:7321 event; the most recent event by
created_atfrom a given pubkey for a given PR is considered the current verdict.
// all reviews on a PR or patch
{ "kinds": [7321], "#e": ["<pr-or-patch-event-id>"] }
// all ACK reviews on a PR
{ "kinds": [7321], "#e": ["<pr-event-id>"], "#s": ["ACK"] }
// all reviews by a specific reviewer
{ "kinds": [7321], "authors": ["<reviewer-pubkey>"] }- Regular (not replaceable) kind: review history is preserved. Clients display the most recent verdict per reviewer by sorting on
created_at. stag for verdict: single-letter tag, relay-indexed, enabling efficient filtering by verdict without fetching event content.qtags for comments: comments are explicitly enumerated so clients can reconstruct the exact set of comments belonging to a review without scanning all PR comments.- Separate from 1630–1633 status kinds: those are authoritative state changes by maintainers; a review is a reviewer's opinion and carries no merge authority.
The following features apply uniformly to all three NIP-34 root item kinds — issues (kind:1621), patches (kind:1617), and pull requests (kind:1618). They let an item be re-tagged, re-titled, or annotated after the fact, without modifying (or being able to modify — these are regular, immutable events) the original root event.
All three features share the same authorisation rule: an event is only authoritative if its author is either
- the root item author (the pubkey that published the issue/patch/PR), or
- a confirmed member at the event's
created_at: either a reciprocally confirmed maintainer or a reciprocally acknowledged moderator during that resolved historical interval (see the "Repository authorization model" inAGENTS.md).
Events from any other pubkey are ignored when deriving the item's effective state. A directional role assignment is only an invitation and grants no authority. Historical M/m/o records use NIP-34 precedence and past reciprocity at publication time; malformed, disputed, or open-ended defer history fails closed. Because the confirmed member set is only known once repository announcements resolve, clients MAY treat the root author as authorised before membership resolves to avoid a flash of missing metadata.
For a given repository identifier, clients MUST partition the latest kind:30617 announcement from each author into reciprocal confirmed components before presenting repository identity. One active announcement coordinate belongs to at most one active component. Search or discovery hits for any confirmed member resolve to that component, while unilateral invitation edges remain relationships between components and MUST NOT merge repository cards or trusted metadata.
Within a confirmed component, ordinary metadata (name, description, web, u, and t) is taken together from the NIP-01-latest confirmed-member announcement. clone, relays, and blossoms are unioned across current confirmed members, and the component is private when any confirmed-member announcement carries ["private", "true"] or buzz-channel. Clients MUST settle the recursively referenced announcement graph before presenting a repository component; exact coordinate references must not be resolved from an arbitrary bounded same-identifier page.
Labels are attached to an item with a NIP-32 label event. The label namespace is #t (the same convention NIP-34 root items use for inline t tags), declared with an L tag and carried in one or more l tags.
{
"kind": 1985,
"content": "",
"tags": [
// root item being labelled (NIP-10 root pointer)
["e", "<issue-patch-or-pr-event-id>", "<relay>", "root"],
// namespace declaration
["L", "#t"],
// one l tag per label, all in the #t namespace
["l", "bug", "#t"],
["l", "needs-triage", "#t"],
],
}An item's effective label set is the union of:
- the root event's own inline
ttags, and - every
ltag (namespace#t) from authorised kind:1985 events referencing it,
deduplicated and sorted. Labels are additive across multiple label events; a label event is itself a regular event and can be removed with a NIP-09 deletion (kind:5) by its author. Label events are fetched as part of the per-item "essentials" loader (#e fan-out).
A subject (title) edit reuses the same kind:1985 label event but with the dedicated namespace #subject. The label value is the new subject string.
{
"kind": 1985,
"content": "",
"tags": [
// root item being re-titled (NIP-10 root pointer)
["e", "<issue-patch-or-pr-event-id>", "<relay>", "root"],
// subject-rename namespace
["L", "#subject"],
// the new subject/title
["l", "Fix race condition in the merge queue", "#subject"],
],
}The item's effective subject is the value of the latest authorised #subject rename event by created_at (ties broken by event ID); if no authorised rename exists, the subject falls back to the root event's original subject tag. Clients SHOULD render renames as timeline entries distinct from #t labels so the edit history is visible.
A cover note is a pinned, editable note posted by the item author or a maintainer that renders above the item's first description card — useful for status banners, summaries, or "blocked on X" context. Unlike the root event, a cover note can be superseded at any time by publishing a newer one.
{
"kind": 1624,
"content": "<markdown body>",
"tags": [
// root item being annotated (NIP-10 #e with "root" marker)
["e", "<issue-patch-or-pr-event-id>", "<relay>", "root"],
["p", "<root-item-author-pubkey>"],
["k", "<1621-1617-or-1618>"],
// optional NIP-94 imeta tags for embedded Blossom uploads
["imeta", "url https://...", "..."],
// NIP-31 alt tag for clients that don't understand kind:1624
["alt", "Cover note for a git issue or PR"],
],
}Resolution rules:
- Only authorised cover notes (root author or maintainer) are considered.
- The latest authorised cover note by
created_at(ties broken by event ID, descending) is the one displayed. - All authorised cover notes are retained so clients MAY surface edit history; older notes by other authorised authors remain queryable.
Cover notes reference the root via lowercase NIP-10 #e (not the uppercase NIP-22 #E), so they thread alongside legacy NIP-34 replies and are fetched by the repo-level cover-note loader.
// all labels and subject renames on an item (both are kind:1985)
{ "kinds": [1985], "#e": ["<item-event-id>"] }
// cover notes on an item
{ "kinds": [1624], "#e": ["<item-event-id>"] }- Regular, immutable events: the root issue/patch/PR is never mutated. Labels, renames, and cover notes are separate events whose authority is decided by the author + maintainer rule, so anyone can propose but only authorised pubkeys affect state.
- NIP-32 for labels and subjects: reuses a standard kind rather than minting a custom one; the
#subjectnamespace cleanly separates renames from#tcategorisation while sharing the same event shape and loader. #tnamespace alignment: matches the inlinettags on root items so the union of both sources is the natural label set.- Cover note as kind:1624 with lowercase
#e: mirrors gitworkshop's CoverNote feature and keeps cover notes inside the NIP-10 thread the repo loader already fetches.
gitworkshop implements the experimental CI protocol published by ngit-ci. That working NIP is authoritative; this section records the client behavior and trust boundaries.
| Kind | Event | Client behavior |
|---|---|---|
| 19843 | Coordinator Advertisement | Consumed from Git index relays as the short-lived coordinator liveness, capability, admission, execution, billing, and secret-recipient signal. |
| 19844 | Request-Readiness List | Consumed from Git index relays for exact repository a items and maintainer-rooted p items. It is a discovery hint, never authority. |
| 19845 | Nix Provider Advertisement | Understood as the capability and allocation-inbox event quoted by native Nix allocations. It does not confer provider trust. |
| 39844 | Coordinator Repository Status | Consumed from repository relays to show effective workflow paths, runner capabilities, and a value-free secret inventory for coordinators currently acting on the repository. |
| 9843 | Service Request | Emitted by a confirmed maintainer to request standing service from one coordinator for the selected repository perspective. |
| 9844 | Service Stop | Emitted by a confirmed maintainer to stop earlier standing requests for the selected perspective. |
| 9845 | Nix Job Allocation | Understood through the allocation quote on a provider-signed Job Result, preserving coordinator-versus-provider provenance. |
| 29846 | Repository Secret Update | Emitted ephemerally to the exact inbox relays and NIP-44 recipient from a live Coordinator Advertisement. |
| 9840 | Manual Trigger | Emitted by a confirmed maintainer to replay an exact workflow/commit combination. |
| 9841 | Job Result | Consumed as the compute provider's direct execution claim, including logs, artifacts, public outputs, and omitted outputs. |
| 9842 | Workflow Result | Consumed as the coordinator's combined conclusion and acceptance of its quoted Job Results. |
| 39842 | Workflow Progress | Consumed as an expiring, replaceable queued/in-progress/recently-concluded marker. |
A kind:19843 Advertisement is actionable only while its NIP-40 expiry is live. gitworkshop validates the required W, R, M, X, and expiration shape and never interprets an unknown policy as open, automatic, or free service. Runner selectors use <family>:<selector>; runs_on remains result-only metadata.
The Actions page separates coordinators into:
- Watching — a live Advertisement plus a matching, unexpired kind:39844 status on a repository relay.
- Ready for this repo — a live Advertisement plus a matching
aor maintainer-rootedpentry in the coordinator's kind:19844 list. - Available coordinator — a live Advertisement which may be selected or requested according to its published admission policy.
All live coordinators remain visible because independent service discovery is intentionally open. The signing identity, policy, software version, families, and selectors are shown; a discovery event is not presented as repository authority.
For request-required execution, a confirmed maintainer can publish kind:9843 or kind:9844 with exactly the selected repository a coordinate and coordinator p tag. These events are sent to the maintainer outbox, repository relays, and the coordinator's NIP-65 inbox. Reads are filtered by the repository's current confirmed maintainer authors. Controls are ordered by created_at, with the lexicographically lower event ID later at equal timestamps.
Secret controls appear only for confirmed maintainers and coordinators whose live Advertisement contains a valid secrets-key tag. gitworkshop:
- creates a fresh secp256k1 sender key for each submission;
- binds the plaintext
authorandcreated_atto the outer maintainer-signed event; - encrypts the atomic
set/removemutation using NIP-44 v2 and the exact advertised recipient; - erases the temporary sender and conversation keys after encryption;
- signs kind:29846 with exactly the protocol tags, without a client or
alttag; - publishes directly to every advertised secret-inbox relay and requires at least one relay acknowledgement.
The signed update is deliberately not added to the general EventStore or durable outbox. Secret names and values are encrypted together. Relay acknowledgement proves delivery to an inbox, not coordinator acceptance or storage, so every submitted name remains pending in the UI until a newer kind:39844 status reports the matching set or removal. That status may disclose only effective names, source maintainer pubkeys, update timestamps, and the optional sealed marker; the UI never expects or displays a value from public repository status.
The reserved name WORKFLOW_SECRETS_DECRYPTION_BUNKER is managed through a dedicated control. Its value may be either a fresh NIP-46 bunker:// pairing URL or an established connection encoded as nbunksec, and it is never injected into jobs. It lets a compatible coordinator choose to store values sealed against a maintainer-controlled remote signer, which is asked to unlock them once per workflow at job time. The client keeps the connection credential in a protected input, validates it with the corresponding Applesauce NIP-46 parser, and submits or removes it through the ordinary atomic kind:29846 mutation. An nbunksec embeds its client secret key and must be handled as a private key. Replacing or removing the binding warns that values sealed to the previous bunker may need to be resubmitted.
Secret updates use the active maintainer's own 30617:<author>:<repo-id> perspective. This preserves the NIP's job-time authorization boundary: stored values remain usable only while that perspective is in the current confirmed maintainership.
The client also rejects the coordinator/runner-owned names PATH, HOME, CI, DOCKER_HOST, XDG_CONFIG_HOME, and XDG_CACHE_HOME, plus the GITHUB_, NGIT_CI_, RUNNER_, and ACTIONS_ namespaces, before encryption. The bunker binding name is rejected from generic secret fields and accepted only through its dedicated control.
For Nostr-provisioned inventory entries, gitworkshop accepts the optional fifth literal field in ["secret","<name>","<maintainer>","<created-at>","sealed"] and labels that value as bunker-sealed. The reserved bunker binding is shown as at-rest configuration rather than as a workflow secret.
Workflow events share repository a, commit c, workflow w, and normalized trigger o tags. Push contexts use a Git-ref r; pull-request contexts use uppercase E/K/P root tags and lowercase e/k/p parent tags.
Every Workflow Result includes its workflow-run ID as the non-Git-ref r value matching Workflow Progress d. gitworkshop uses this exact pair to retire the pending marker. For older publishers without the result run ID, the conservative compatibility fallback remains coordinator + queued_at + complete shared trigger context; ambiguous fallbacks never hide a pending attempt.
A queued request-gated Progress event intentionally has no Service Request quote. From the first in_progress replacement onward, the frozen provenance is:
[
"q",
"<9843-request-id>",
"<relay-url>",
"<requester-pubkey>",
"service-request",
]Manual replays analogously use the manual-trigger marker. gitworkshop fetches the exact signed request from its quoted relay, labels the run Maintainer requested, and shows the requester as the first timeline phase. Runs without either quote are not given that treatment.
Job Results are rendered only inside a Workflow Result or Progress event which quotes them. The provider signer is always shown separately from the coordinator. A marked job-allocation quote identifies directed native Nix execution and its coordinator. Artifact tags retain both the per-file path and artifact group name. Public output values and output-omitted reasons (missing, oversized, or unresolved) are displayed distinctly; an omitted output is never treated as an empty value.
// Live coordinator discovery and repo-specific readiness, on Git index relays
{ "kinds": [19843] }
{ "kinds": [19844], "#a": ["30617:<pubkey>:<repo-id>"] }
{ "kinds": [19844], "#p": ["<confirmed-maintainer-pubkey>"] }
// Acting coordinator state, on repository relays
{ "kinds": [39844], "#a": ["30617:<pubkey>:<repo-id>", "..."] }
// Coordinator profile discovery, followed by author-filtered acting state
// from its own outbox and the relays of readiness-targeted repositories
{ "kinds": [10002, 19843, 19844], "authors": ["<coordinator-pubkey>"] }
{ "kinds": [39844], "authors": ["<coordinator-pubkey>"] }
{ "kinds": [39844], "authors": ["<coordinator-pubkey>"], "#a": ["<target-repository-coordinate>", "..."] }
// Trust-bearing standing controls, author-filtered on repository relays
{ "kinds": [9843, 9844], "authors": ["<confirmed-maintainer>", "..."], "#a": ["30617:<selected-maintainer>:<repo-id>"] }
// PR activity through the pre-wired #E fan-out
{ "kinds": [9841, 9842, 39842], "#E": ["<pr-event-id>"] }
// Commit ticks and Actions history
{ "kinds": [9841, 9842, 39842], "#c": ["<commit-id>", "..."] }
{ "kinds": [9841, 9842, 39842], "#a": ["30617:<pubkey>:<repo-id>", "..."] }All relay reads use the resilient subscription/request layer. PR events continue to ride the pre-wired NIP-22 loaders; commit queries use the singleton batched #c loader; repo-wide result/log history loads only on the Actions page. A live Coordinator Advertisement also makes the Actions tab visible before the repository's first run.
The coordinator profile discovers kind:10002, Advertisement, and Request-Readiness events on Git index and lookup relays. It fetches Repository Status from the coordinator's declared NIP-65 write relays and from the relays declared by every readiness-targeted repository, with an author filter fixed to the coordinator. A status is included only when EventStore provenance confirms it was observed on an outbox or on a matching target repository relay. This repository-relay path preserves acting-state discovery before a coordinator publishes NIP-65 metadata. Unexpired status with a live Advertisement is shown as current activity; expired status is retained separately as history. Exact readiness a entries and pubkey-wide p entries are resolved to repositories before querying their relay sets; all maintainer coordinates are treated as the same repository when excluding active repositories from the readiness-only list.
When the coordinator publishes a NIP-05 identity, the profile resolves it back to the coordinator pubkey before requesting the domain's NIP-11 document. The page reports advertised GRASP capabilities and whether the NIP-11 operator pubkey matches the coordinator signer. This is identity and infrastructure evidence, not repository authority.
- Repository service controls are accepted into the UI state only from current confirmed maintainers.
- Coordinator Advertisements, Readiness Lists, and Repository Status are independent signed service claims. Matching a repository does not make their author a maintainer or trusted runner.
- A Job Result is the provider's execution claim. A Workflow Result is the coordinator's claim that it scheduled or accepted those quoted results. gitworkshop shows both identities instead of collapsing them.
- Repository coordinate matching uses the full multi-maintainer coordinate set, while mutations retain the exact selected or author-rooted perspective required by the CI NIP.
NIP-78 stores account-wide GitWorkshop preferences at 30078:<account-pubkey>:gitworkshop-preferences.
The account signs the event and publishes it to its NIP-65 outboxes and the
configured fallback relays. The d tag is gitworkshop-preferences and content
is a JSON object, currently { "listSort": "created-desc" }. This non-sensitive
sorting preference is unencrypted; it contains no repository identifiers or
search/filter history. It does not use or bootstrap the notification key.
listSort accepts activity-desc (the default), activity-asc, created-desc,
created-asc, replies-desc, or replies-asc. Missing or unknown values display
the default. Readers fall back to the legacy issueSort field when listSort is
missing or unrecognized. The sort menu changes the repository's temporary selection until refresh; it
does not publish an event. Choices are kept in memory per repository component
and account, separately for issues and PRs, alongside the list filters. Reset restores the saved default. The
explicit Set default menu action saves the selected value
for all repositories and devices. Saving activity-desc explicitly restores
recent activity as the account default. Newest NIP-01 addressable-event
replacement wins, including its event-ID tiebreaker for simultaneous writes.
Writers preserve unknown JSON fields and tags and refuse to replace malformed
JSON. Readers apply the shared preference across repository issue and PR lists;
text searches continue to rank by relevance. Repository-specific filters are
outside this schema.
{ "kind": 1111, "content": "<comment>", "tags": [ // NIP-22 root — the PR or patch ["E", "<pr-or-patch-event-id>", "<relay>", "<author-pubkey>"], ["K", "<1618-or-1617>"], ["P", "<author-pubkey>", "<relay>"], // NIP-22 parent — same as root, or a PR update (1619) for revision-specific comments ["e", "<pr-patch-or-update-event-id>", "<relay>", "<author-pubkey>"], ["k", "<1618-or-1617-or-1619>"], ["p", "<author-pubkey>"], // repository reference — one per maintainer ["q", "30617:<maintainer-pubkey>:<repo-id>", "<relay>"], ["q", "30617:<co-maintainer-pubkey>:<repo-id>", "<relay>"], // repeat for each maintainer // file path ["f", "<path/to/file.rs>"], // the commit for which the comment applies, typically where the lines in question were added/removed ["c", "<commit-id>"], // line or range within the file at the specified commit (optional), e.g. "42" or "42-48" // to refer to pre-commit removed lines use `["line", "3-6", "del"]` instead ["line", "<line-or-range>"], ], }