Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help


id: wild.registry kind: intent statement: THE wild registry SHALL record revisions in an append-only, signed, auditable log and bind them to host ecosystem artifacts without altering those artifacts.

Wild registry

Purpose

This is a normative design specification; only the prototype and corpus gate scenarios explicitly identified below are implemented. Shared wire formats and decision rules are defined in wild v1 formats and the v1 schema.

The shared memory of the system: a authenticated hash-chained log with full v1 prefix proofs of signed revisions, adapters, advisories, and attestations. Consumers pin hashes from it. Host ecosystems (npm, Cargo, PyPI, Maven, containers) are never modified; a sidecar record ties a host artifact digest to a revision hash.

Constraints

idkindexprtraces_toobserves
registry_append_onlyinvariantthe registry is a authenticated hash-chained log with full v1 prefix proofs; no revision is deleted or mutated after append[[wild.registry]]
consistency_proofsinvariantany two log heads can be checked for consistency by a proof, so a mirror can be audited[[wild.registry]]
signature_requiredinvariantevery submitted revision carries a signature by the lineage owner key[[wild.registry]]
namespace_ownershipinvarianteach authority-qualified lineage name maps to one active owner key at a log sequence; bootstrap requires a trusted namespace authority signature and public names never shadow a configured private authority[[wild.registry]]
key_rotation_signedinvariantnormal key rotation requires outgoing and incoming key signatures; compromise recovery requires the recovery key designated at namespace bootstrap, revokes the compromised key at an explicit sequence, and never rewrites historical entries[[wild.registry]]
lock_pins_hashesinvariantevery contracted v1 lock entry pins authority, lineage, contract hash, and artifact digest; unresolved host entries preserve their locator with Unknown status; tags and aliases are not identities[[wild.registry]]
sidecar_binds_artifact_digestinvarianta signed v1 sidecar binds host ecosystem, artifact locator, artifact digest, contract hash, extractor digest, and registry sequence; fetching bytes with a different artifact digest is rejected even if the contract is unchanged[[wild.registry]]
ecosystem_untouchedinvariantwild never replaces or mutates the host ecosystem's package, tag, or version; it adds a sidecar record[[wild.registry]]
advisories_never_deleteinvariantyanking or flagging a revision appends an advisory edge; the revision stays resolvable by hash[[wild.registry]]
retraction_only_experimentalinvariantexperimental retraction appends a notice and removes the revision from new tip selection; hash lookup retains bytes and notice; stable retraction is refused; no candidate yields Unknown[[wild.registry]]
mirror_equivalenceinvarianta mirror serving the same authenticated snapshot yields the same verdicts and certificates as the origin for identical caller policy, trust roots, and evaluation time[[wild.registry]]
verification_needs_no_writeinvariantreading, resolving, and verifying never require write access to the registry[[wild.registry]]
declared_bump_derivedeffectthe declared bump class is derived from the spec-corpus delta at the requirement level: ADDED-only proposes minor (accretes), any MODIFIED or REMOVED requirement proposes major (revokes), RENAMED is classified as revoking the old id and accreting the new, changes deployed since the base aggregate into one delta classified once, an empty requirement-level delta proposes patch, specodelic-only row additions ride the release without changing the class, and a missing or non-computable base corpus yields Unknown with a named diagnostic and no fabricated class; the derivation is advisory output and never gates[[wild.registry]]
bump_override_upward_onlyinvarianta maintainer override may only raise the proposed class (patch < minor < major) with a recorded reason carried on the declared-claim record; a lowering attempt is refused with the named diagnostic bump_class_lowering_refused and the proposed class stands as the confirmed claim[[wild.registry]][[wild.registry.declared_bump_derived]]

Model

States

  • submitted
  • signed
  • appended
  • advised
  • retracted

Transitions

idfromtoguard
signsubmittedsigned[[wild.registry.signature_required]] ∧ [[wild.registry.namespace_ownership]]
appendsignedappended[[wild.registry.registry_append_only]]
adviseappendedadvised[[wild.registry.advisories_never_delete]]
retractappendedretracted[[wild.registry.retraction_only_experimental]] ∧ per wild-core stability_tiers

Properties

idkindderives_fromgeneratorpredicate
rewrite_of_appended_rejectedunit[[wild.registry.registry_append_only]]log_with_attempted_rewrite()append(log, rewrite) == rejected
inconsistent_heads_detectedunit[[wild.registry.consistency_proofs]]two_heads_from_forked_logs()consistency_check == failed
unsigned_revision_rejectedunit[[wild.registry.signature_required]]submission_without_signature()sign == rejected
foreign_owner_rejectedunit[[wild.registry.namespace_ownership]]publish_to_lineage_with_different_key()sign == rejected
rotation_needs_outgoing_keyunit[[wild.registry.key_rotation_signed]]rotation_signed_with_new_key_only()rotation == rejected
alias_in_lock_rejectedunit[[wild.registry.lock_pins_hashes]]lockfile_entry_using_tag("latest")check(lock) == failed
digest_mismatch_rejectedunit[[wild.registry.sidecar_binds_artifact_digest]]sidecar_pointing_at_a_different_artifact()check(sidecar) == rejected
host_artifact_unchangedunit[[wild.registry.ecosystem_untouched]]publish_with_wild_enabled()host_artifact(before) == host_artifact(after)
yanked_revision_still_resolvesunit[[wild.registry.advisories_never_delete]]yanked_revision()resolve_by_hash == found ∧ advisory attached
stable_retraction_rejectedunit[[wild.registry.retraction_only_experimental]]retract_request_on_stable_lineage()retract == rejected
mirror_matches_originunit[[wild.registry.mirror_equivalence]]same_log_served_by_origin_and_mirror()verdicts(origin) == verdicts(mirror)
read_only_credentials_sufficeunit[[wild.registry.verification_needs_no_write]]resolve_and_verify_with_read_only_access()completes
declared_bump_added_only_minorunit[[wild.registry.declared_bump_derived]]corpus_delta_with_added_requirements_only()proposed == minor ∧ reason == accretes ∧ no requirement modified or removed
declared_bump_revocation_majorunit[[wild.registry.declared_bump_derived]]corpus_delta_with_modified_or_removed_requirement()proposed == major ∧ reason == revokes
declared_bump_rename_majorunit[[wild.registry.declared_bump_derived]]corpus_delta_with_renamed_requirement()proposed == major ∧ rename revokes the old id and accretes the new
declared_bump_aggregates_changesunit[[wild.registry.declared_bump_derived]]two_changes_deployed_since_base()the aggregated delta classifies once as major with reason revokes
declared_bump_row_only_patchunit[[wild.registry.declared_bump_derived]]corpus_delta_with_property_rows_only()proposed == patch ∧ no accretion or revocation reason claimed
declared_bump_empty_delta_patchunit[[wild.registry.declared_bump_derived]]corpus_unchanged_since_base()proposed == patch ∧ no accretion or revocation reason claimed
declared_bump_missing_base_unknownunit[[wild.registry.declared_bump_derived]]candidate_without_computable_base_corpus()outcome == Unknown ∧ a diagnostic is named ∧ no bump class proposed
bump_override_raise_records_reasonunit[[wild.registry.bump_override_upward_only]]override_raising_proposed_class()confirmed == the raised class ∧ the reason is carried on the declared-claim record
bump_override_lowering_refusedunit[[wild.registry.bump_override_upward_only]]override_lowering_proposed_major()refused with bump_class_lowering_refused ∧ the proposed class stands as the confirmed claim

Notes

Failure cases behind this spec: left-pad (an unpublished artifact broke builds), mutable tags (a repointed action tag), dependency confusion (public names shadowing internal ones), and signing-key rotation breaking installs. Registry ownership of names is a governance problem the tool can enforce but not solve (typosquatting remains out of scope).

Design acceptance cases

These cases define future runtime behavior. They are not claims that the current prototypes implement the v1 protocol. Executable document and prototype gates are under Requirements.

Rule: Registry append only

The system SHALL satisfy registry_append_only as defined in the Constraints table and the v1 format reference.

Acceptance case: Rewrite of appended rejected

  • GIVEN the fixture domain log_with_attempted_rewrite()
  • WHEN the registry_append_only check runs
  • THEN append(log, rewrite) == rejected

Rule: Consistency proofs

The system SHALL satisfy consistency_proofs as defined in the Constraints table and the v1 format reference.

Acceptance case: Inconsistent heads detected

  • GIVEN the fixture domain two_heads_from_forked_logs()
  • WHEN the consistency_proofs check runs
  • THEN consistency_check == failed

Rule: Signature required

The system SHALL satisfy signature_required as defined in the Constraints table and the v1 format reference.

Acceptance case: Unsigned revision rejected

  • GIVEN the fixture domain submission_without_signature()
  • WHEN the signature_required check runs
  • THEN sign == rejected

Rule: Namespace ownership

The system SHALL satisfy namespace_ownership as defined in the Constraints table and the v1 format reference.

Acceptance case: Foreign owner rejected

  • GIVEN the fixture domain publish_to_lineage_with_different_key()
  • WHEN the namespace_ownership check runs
  • THEN sign == rejected

Rule: Key rotation signed

The system SHALL satisfy key_rotation_signed as defined in the Constraints table and the v1 format reference.

Acceptance case: Rotation needs outgoing key

  • GIVEN the fixture domain rotation_signed_with_new_key_only()
  • WHEN the key_rotation_signed check runs
  • THEN rotation == rejected

Rule: Lock pins hashes

The system SHALL satisfy lock_pins_hashes as defined in the Constraints table and the v1 format reference.

Acceptance case: Alias in lock rejected

  • GIVEN the fixture domain lockfile_entry_using_tag("latest")
  • WHEN the lock_pins_hashes check runs
  • THEN check(lock) == failed

Rule: Sidecar binds artifact digest

The system SHALL satisfy sidecar_binds_artifact_digest as defined in the Constraints table and the v1 format reference.

Acceptance case: Digest mismatch rejected

  • GIVEN the fixture domain sidecar_pointing_at_a_different_artifact()
  • WHEN the sidecar_binds_artifact_digest check runs
  • THEN check(sidecar) == rejected

Rule: Ecosystem untouched

The system SHALL satisfy ecosystem_untouched as defined in the Constraints table and the v1 format reference.

Acceptance case: Host artifact unchanged

  • GIVEN the fixture domain publish_with_wild_enabled()
  • WHEN the ecosystem_untouched check runs
  • THEN host_artifact(before) == host_artifact(after)

Rule: Advisories never delete

The system SHALL satisfy advisories_never_delete as defined in the Constraints table and the v1 format reference.

Acceptance case: Yanked revision still resolves

  • GIVEN the fixture domain yanked_revision()
  • WHEN the advisories_never_delete check runs
  • THEN resolve_by_hash == found ∧ advisory attached

Rule: Retraction only experimental

The system SHALL satisfy retraction_only_experimental as defined in the Constraints table and the v1 format reference.

Acceptance case: Stable retraction rejected

  • GIVEN the fixture domain retract_request_on_stable_lineage()
  • WHEN the retraction_only_experimental check runs
  • THEN retract == rejected

Rule: Mirror equivalence

The system SHALL satisfy mirror_equivalence as defined in the Constraints table and the v1 format reference.

Acceptance case: Mirror matches origin

  • GIVEN the fixture domain same_log_served_by_origin_and_mirror()
  • WHEN the mirror_equivalence check runs
  • THEN verdicts(origin) == verdicts(mirror)

Rule: Verification needs no write

The system SHALL satisfy verification_needs_no_write as defined in the Constraints table and the v1 format reference.

Acceptance case: Read only credentials suffice

  • GIVEN the fixture domain resolve_and_verify_with_read_only_access()
  • WHEN the verification_needs_no_write check runs
  • THEN completes

Acceptance case: Private namespace cannot be shadowed

  • GIVEN a lock pins authority private.example and lineage acme.billing
  • WHEN a public registry publishes the same lineage spelling
  • THEN resolution retains the pinned authority and refuses public substitution

Acceptance case: Recovery follows the predesignated key

  • GIVEN the owner key is compromised and a recovery key was designated at bootstrap
  • WHEN a replacement key is submitted without outgoing-owner authorization
  • THEN it is accepted only through the authenticated recovery entry; forged recovery refuses

Acceptance case: Retraction preserves pinned bytes

  • GIVEN an experimental tip is retracted
  • WHEN a pinned hash is read and a new unconstrained lookup runs
  • THEN hash lookup returns bytes and notice; new lookup excludes the retracted tip and returns Unknown if no candidate exists

Rule: Declared bump class is derived from the corpus delta

The system SHALL satisfy declared_bump_derived as defined in the Constraints table and the v1 format reference.

Acceptance case: Added only delta proposes minor

  • GIVEN the fixture domain corpus_delta_with_added_requirements_only()
  • WHEN the declared_bump_derived check runs
  • THEN proposed == minor ∧ reason == accretes ∧ no requirement modified or removed

Acceptance case: Revocation proposes major

  • GIVEN the fixture domain corpus_delta_with_modified_or_removed_requirement()
  • WHEN the declared_bump_derived check runs
  • THEN proposed == major ∧ reason == revokes

Acceptance case: Renamed requirement classifies as revocation

  • GIVEN the fixture domain corpus_delta_with_renamed_requirement()
  • WHEN the declared_bump_derived check runs
  • THEN proposed == major ∧ rename revokes the old id and accretes the new

Acceptance case: Multiple deployed changes aggregate into one classification

  • GIVEN the fixture domain two_changes_deployed_since_base()
  • WHEN the declared_bump_derived check runs
  • THEN the aggregated delta classifies once as major with reason revokes

Acceptance case: Row only additions do not change the class

  • GIVEN the fixture domain corpus_delta_with_property_rows_only()
  • WHEN the declared_bump_derived check runs
  • THEN proposed == patch ∧ no accretion or revocation reason claimed

Acceptance case: Empty corpus delta proposes patch

  • GIVEN the fixture domain corpus_unchanged_since_base()
  • WHEN the declared_bump_derived check runs
  • THEN proposed == patch ∧ no accretion or revocation reason claimed

Acceptance case: Missing base corpus is Unknown, never fabricated

  • GIVEN the fixture domain candidate_without_computable_base_corpus()
  • WHEN the declared_bump_derived check runs
  • THEN outcome == Unknown ∧ a diagnostic is named ∧ no bump class proposed

Rule: Bump override is upward-only

The system SHALL satisfy bump_override_upward_only as defined in the Constraints table and the v1 format reference.

Acceptance case: Raising the class records a reason

  • GIVEN the fixture domain override_raising_proposed_class()
  • WHEN the bump_override_upward_only check runs
  • THEN confirmed == the raised class ∧ the reason is carried on the declared-claim record

Acceptance case: Lowering is refused and the proposal stands

  • GIVEN the fixture domain override_lowering_proposed_major()
  • WHEN the bump_override_upward_only check runs
  • THEN refused with bump_class_lowering_refused ∧ the proposed class stands as the confirmed claim

Requirements

Requirement: Declared bump class is derived from the corpus delta

The system SHALL satisfy declared_bump_derived as defined in the Constraints table and the v1 format reference.

Scenario: Declared bump added only minor

  • GIVEN a computable base release corpus and a candidate tree whose corpus delta contains only ADDED requirements
  • WHEN the declared-bump derivation runs
  • THEN the proposed class is minor with reason accretes and no requirement was modified or removed

Scenario: Declared bump revocation major

  • GIVEN a corpus delta containing at least one MODIFIED or REMOVED requirement
  • WHEN the declared-bump derivation runs
  • THEN the proposed class is major with reason revokes

Scenario: Declared bump rename major

  • GIVEN a corpus delta containing a RENAMED requirement and no other changes
  • WHEN the declared-bump derivation runs
  • THEN the proposed class is major, classified as revoking the old id and accreting the new

Scenario: Declared bump aggregates changes

  • GIVEN two changes deployed since the base, one adding requirements only and one modifying a requirement
  • WHEN the declared-bump derivation runs
  • THEN the aggregated delta classifies once as major with reason revokes

Scenario: Declared bump row only patch

  • GIVEN a corpus delta whose requirement-level sections are empty while new property and advisory rows were added
  • WHEN the declared-bump derivation runs
  • THEN the proposed class is patch and no accretion or revocation reason is claimed

Scenario: Declared bump empty delta patch

  • GIVEN a computable base and a candidate whose corpus delta changes no requirement
  • WHEN the declared-bump derivation runs
  • THEN the proposed class is patch and no accretion or revocation reason is claimed

Scenario: Declared bump missing base unknown

  • GIVEN no computable base corpus for the candidate tree
  • WHEN the declared-bump derivation runs
  • THEN the outcome is Unknown with a named diagnostic and no bump class is proposed

Requirement: Bump override is upward-only

The system SHALL satisfy bump_override_upward_only as defined in the Constraints table and the v1 format reference.

Scenario: Bump override raise records reason

  • GIVEN a proposed class lower than major
  • WHEN the maintainer confirms an override to a higher class with a recorded reason
  • THEN the confirmed class is the higher class and the reason is carried on the declared-claim record

Scenario: Bump override lowering refused

  • GIVEN a proposed major class
  • WHEN the maintainer attempts to confirm a lower class
  • THEN the confirmation is refused with the named diagnostic bump_class_lowering_refused and the proposed class stands as the confirmed claim

Requirement: Wild registry design contract

The design corpus SHALL expose this capability’s constraints as normative, self-contained rules with acceptance cases, and SHALL link to a structurally valid shared v1 schema without claiming future runtime behavior is implemented.

Scenario: Wild registry design is self-contained

  • GIVEN this spec, docs/wild-formats-v1.md, and schemas/wild-v1.schema.json
  • WHEN the design contract gate checks normative rule coverage, local references, and the shared schema
  • THEN every constraint has a corresponding rule and acceptance case
  • AND both referenced files exist and the schema is valid JSON Schema draft 2020-12
  • AND this capability is discoverable by strict OpenSpec validation