Skip to content

Support a labeled manual rewrite switch (not a fake dark light) #1

Open

Description

@fitzyracing1

Users have asked about forcing a rewrite when a package's CI light is green (lit) but a real fix is waiting upstream (e.g. a PR that fixes a runtime bug CI doesn't cover).

Today the only way to get the fork served is for the light to be dark. Faking a dark light to trigger that would be dishonest, and it's exactly what this project should never do.

Proposal

Add a clearly labeled per-package override, manual: fix available, in mapping.json (or a separate overrides file):

  • When set, the registry serves the fork for that package without pretending the CI light is dark. The light keeps showing its real CI conclusion.
  • /status (JSON and HTML) and the landing page show the override distinctly from lit/dark: its own state/label (e.g. manual: fix available), plus the reason and the upstream PR/issue link.
  • Responses served under the override carry their own x-patch-cloud value and _patchCloud.source (e.g. manual), so clients and download counts can tell it apart from a dark-light rewrite.
  • Still opt-in only: nothing changes for anyone not pointing npm at this registry.

Out of scope

  • Faking CI status, or making a lit light look dark (or vice versa).
  • Driving downloads by lying about lights.

Related: light-computer, which reads the same CI lights as bits (active-low: lit = 0, dark = 1).

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions