Skip to content

0.1.2 MK9: openwiz.dev/market, generated from the registry #2500

Closed
openwizdev/WizSite
#149

Description

@jparker2006

Parent

Ticket MK9 of spec #2476 (0.1.2): openwiz.dev/market, generated from the registry. Size: M.

What to build

In openwizdev/WizSite:

  • market/registry.json: a pinned snapshot of WizMarket's check/check.py index output (the contract's index shape in openwizdev/WizMarket contracts/listing.v1.md). Until WizMarket's check merges, use the contract's own synthetic example; MK11 refreshes it.
  • scripts/market-sync.mjs <WizMarket checkout>: runs that checkout's python3 -I check/check.py index and writes market/registry.json.
  • scripts/market.mjs: reads and validates the snapshot (refuses a malformed one, failing the build), and renders the market's cards. Export the loader so the Drivers page (MK10) can reuse it.
  • market/index.html: the page shell, in the site's design (tokens.css, site.css, the same header and footer slots), filled by build.mjs at build time: each listing's name, summary, tags, status (verified with a link to its proof, or listed), stage (being built, with its link) and URL. Browsable by tag with plain links or anchors, working without JavaScript. One "Publish your own" paragraph linking WizMarket and its pull-request template.
  • build.mjs: add the page and its generation (your lines only).
  • footer.html: one Market link (your line only).
  • tests/market.test.mjs and tests/market-fixtures/: build from a fixture snapshot and prove every listing renders with its status, tags and links, a malformed snapshot fails the build, and a non-verified listing never shows verified. Red first. Add it to package.json's test:functions line.

No server, no network at build, no accounts. Every statement on the page true against the contract. A merge deploys openwiz.dev: the lead asks the planner before merging.

Owned paths

  • market/ in openwizdev/WizSite (new)
  • scripts/market.mjs in openwizdev/WizSite (new)
  • scripts/market-sync.mjs in openwizdev/WizSite (new)
  • tests/market.test.mjs in openwizdev/WizSite (new)
  • tests/market-fixtures/ in openwizdev/WizSite (new)
  • build.mjs in openwizdev/WizSite (shared: the market page's lines)
  • footer.html in openwizdev/WizSite (shared: the Market link)
  • package.json in openwizdev/WizSite (shared: the market test on the test:functions line)

Relies on: nothing

Links

Acceptance criteria

  • tests/market.test.mjs red first, then green in WizSite CI with npm run build, npm run check and every test
  • The page works without JavaScript and passes the site's link, privacy and contrast checks
  • A preview link in the PR for the owner's late look

Proof

P4 (market): the page's test and the preview.

Activity

  1. added this to the 0.1.2 milestone on Nov 22, 2026
  2. added
    ready-for-agent
    on Nov 22, 2026
  3. jparker2006 commented on Nov 23, 2026

    @jparker2006
    MemberAuthor

    launch-fleet: started

    Hand checks by the spec's lead (2026-11-23): open; only ready-for-agent; no claim, builder or pull request; blocker #2485 merged (openwizdev/WizMarket@0149c2d); no owned-path clash with running work. Plan approval: #2476 revision 1 (comment 7087275832).

  4. jparker2006 commented on Nov 23, 2026

    @jparker2006
    MemberAuthor

    agent: builder
    state: working
    harness: claude-code
    model: claude-opus-5-5
    skills: build-ticket@0.2.2
    step: Granted check.py lines in; full suite green locally; pull request openwizdev/WizSite#149 open, waiting on CI.
    time: 2026-11-23T01:04:53Z

  5. jparker2006 commented on Nov 23, 2026

    @jparker2006
    MemberAuthor

    Builder question (MK9): scripts/check.py needs the market page's lines, and it isn't an owned path.

    What I found: WizSite's npm run check (scripts/check.py) pins the exact build output and the footer's links. With the market page built (branch mk9-market, head 6da0d70), check_site refuses at assert files == STATIC | set(names.values()), 'unexpected or missing build output', and check_footer would refuse the new Market link (FOOTER_LINKS is a fixed tuple). The page also can't get the site's link and privacy checks (acceptance criterion 2) unless it's in PAGES. Its external links are listing URLs (any https host, some with a query) and WizMarket links, and check_ref allows neither today. So CI can't go green inside the owned paths. scripts/check.py is a protected guard and isn't covered by the standing supporting-edit rule.

    Options:

    • (a) Approve a supporting edit to scripts/check.py, covering the market page's lines only (about 21 added lines, 3 changed), plus a test for them in scripts/test_check.py:

      • add market/index.html to STATIC and PAGES, so it gets every per-page check: links, fragments, footer, nav, privacy and copy;
      • add ('/market/', 'Market') to FOOTER_LINKS;
      • strip the generated section before the exact-export comparison, as it already does for the Changelog's releases;
      • on the market page only, allow an external link only when it is exactly a URL in market/registry.json (already checked against listing.v1's URL grammar by scripts/market.mjs) or under https://github.com/openwizdev/WizMarket. Every other page keeps today's allowlist.

      I ran exactly this on a scratch copy: npm run build and npm run check pass. The new test would show that a market-page link outside the registry, or the same URL on another page, is still refused.

    • (b) A separate ticket owns that check.py change, and this PR waits for it to merge.

    • (c) Leave the page out of check.py. That isn't viable: the exact-output assertion refuses any new built file.

    My pick: (a). It's the smallest change that keeps every existing guard and puts the new page under them.

    Two gaps I'll name in the PR, both following the ticket's own instructions, with no change asked:

    1. Until MK11, the snapshot is WizMarket's synthetic fixtures/index.json, so its proof links point at the synthetic commit dddd… and lead nowhere.
    2. The "Publish your own" paragraph links .github/pull_request_template.md on WizMarket main, which exists only once MK3 (0.1.2 MK3: publish your own, WizMarket's pull-request template and README #2487) merges.

    The lead's planner check before merge covers both.

  6. added
    needs-info
    on Nov 23, 2026
  7. jparker2006 commented on Nov 23, 2026

    @jparker2006
    MemberAuthor

    launch-fleet: started

    Started at 2026-11-23 00:43:42Z, record delayed by GitHub's content block.
    Fresh builder continuing branch mk9-market at 6da0d7024515dacc0c157e2dcad55aa870e9ab38 (the first builder was archived under a credits throttle). Hand checks by the spec's lead (2026-11-23): open; only ready-for-agent; no pull request; blocker #2485 merged; no owned-path clash with running work. Plan approval: #2476 revision 2 (comment 7088242970).

  8. jparker2006 commented on Nov 23, 2026

    @jparker2006
    MemberAuthor

    F4 supporting edit granted (planner), for #2500:

    scripts/check.py
    scripts/test_check.py
    scripts/landing-check.mjs

    Only these lines: register market/index.html in STATIC and PAGES, add the Market footer link to FOOTER_LINKS, strip the generated market section before the exact-export comparison, and allow on the market page only external links that are exactly registry URLs or under WizMarket; the matching edit_built page list entry and one allowlist test; and the landing check's link count from 9 to 10. Granted by the spec's lead.

  9. removed
    needs-info
    on Nov 23, 2026
  10. jparker2006 commented on Nov 23, 2026

    @jparker2006
    MemberAuthor

    launch-fleet: look: no thread matches builder:2500, and no private run map was restored; more than one builder is recorded as started

    From a webhook tick on openwizdev/WizSite#149 (2026-11-23 01:37Z). The routing for this ticket is missing from the private record, so the fleet cannot reach its builder. Delivery to the orchestrator was refused; this record stands in for it.

  11. jparker2006 commented on Nov 23, 2026

    @jparker2006
    MemberAuthor

    launch-fleet: look: WizSite#149 webhook routing found no matching builder and more than one builder recorded as started. Orchestrator delivery was refused by the host; assignment reconciliation is needed.

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

    ready-for-agent

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions