Skip to content

One publisher interface over the publication lifecycles #333

Done

Description

@lanyue-llk

Part of the convergence on the repository specification (#313). Rules: 3. Size: M.

Problem

Transport is shared, but reporting/publish.py exposes three lifecycles (ReceiptRelease :241, BoundTrack :504 with eleven callables, StagedUpdate :731) and seven track wrappers choose among them; Web Fetch alone uses two (web_fetch/report_publish.py:83, web_fetch/wcxb_publication.py:115). public_webarena/publication.py is 492 lines. Target binding formats differ per track, and web_search/publication.py:142 keeps UPLOAD_NAME = "webfetch".

Direction

One publisher call that takes a package, a publication target (host, site, expected version, visibility, share) and an update mode. Tracks supply only the target and optional hooks. Existing receipts and journals remain readable.

Done when

  • Every track publishes through one function with one target schema.
  • Optional sharing is a field of the target, available to every track.

Paths are relative to src/harness/ unless prefixed; line numbers are from main at 997a228.

Activity

  1. added
    refactor
    on Nov 24, 2026
  2. lanyue-llk commented on Nov 24, 2026

    @lanyue-llk
    ContributorAuthor

    Remaining after #369: validate an explicit PublicationTarget.title / share_url against the authoritative values in the receipt lifecycle (today they are accepted and ignored); unify the receipt, profile-binding and journal recording paths inside publish().

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    refactor

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions