Skip to content

0.2.0 DR3: the driver fetcher: find, check, ask, install #2995

Backlog

Description

@jparker2006

Parent

Ticket DR3 of spec #3027 (0.2.0). Size: L.

What to build

A standard-library command in the kernel's install tools that adds a host that is not core: it resolves the name (pin, then WizMarket listing at one recorded main commit), downloads only the pinned asset over HTTPS from the listed repository's GitHub releases with no redirect off GitHub, checks the archive's SHA-256, every member against the manifest by the strict archive rules, the driver's name and schema.json, then shows the confirmation the contract names and installs into the drivers folder only after the user's yes. A listed driver needs its own explicit yes after the warning. It saves the approval, lists installed drivers, and runs the update rule. Nothing from an archive runs before the yes. Errors follow driver v1's error shape: what went wrong and what to do next. Not wired into setup or the build yet (that is DR7 (#2999)).

Owned paths

  • tools/install/drivers/ (new), and its tests

Relies on: contracts/driver-package.v1.md, contracts/driver-package.v1.schema.json, contracts/install.v1.md

Links

Acceptance criteria

  • Adding a good fixture package installs it, after the yes, as <name>/driver in a test drivers folder
  • Each broken fixture is refused with a plain next step, and nothing is installed or run
  • A listed driver without its own yes is refused
  • Update moves a same-publisher verified driver with a notice and asks again on any other change
  • Tests use a loopback fake GitHub and no network

Proof

P1: the fetcher tests, red first. Review.

Metadata

Metadata

Assignees

No one assigned

    Labels

    ready-for-agent

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions