Skip to content

test(core): table-test the HTML policy with shared accept/reject fixtures #40

Closed

Description

@allisonmahmood

Effect v4 port requirement — the port carries the HTML policy faithfully; table tests and shared fixtures are what make "faithfully" checkable.

Problem

packages/core/src/html-policy.test.ts is hand-written cases. The blocklists the policy exports are not exercised one-by-one, and the server tests and any seed script have no shared corpus of real-shaped accept/reject pages.

"could be good, let's look into that further before making the call." — t3code 1.7; decided when the backlog was filed.

Do

  • it.each over the exported blocklists so every entry has a case.
  • fixtures/accept/ and fixtures/reject/ real-shaped pages in packages/core, shared by the server tests and the dev seed script.

Done when

Adding a blocklist entry without a fixture fails, and the server and seed use the same fixture corpus.


Filed from the foundation map task File the DX backlog from the decisions doc. Allison's reasoning is quoted from her agent-DX decision log (t3code and omarchy surveys, reviewed 2026-08-26).

Activity

  1. added
    ready-for-agent
    area:core
    port-requirement
    on Aug 26, 2026
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

    area:coreport-requirementready-for-agent

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions