Skip to content

test(compat): harness-run KEL-74 record producer for v1 showcase corpora #663

Description

@0monish

Generated by an AI agent (Claude Code) on behalf of @0monish while closing #445's acceptance criterion AC4. Planning only; this issue authorizes no implementation by itself.

Parent

Epic #493 · Map #391 · Kind: test · Milestone: first-proof · Consumers: #445 (electron-app-v1, AC4) and #448 (electron-window-v1)

What to build

Add a producer that turns one real run of a registered v1 showcase corpus into committed KEL-74 evidence records, bound to a committed run receipt. The corpus owner already admits harness records (gh566 D7, §4.4). What is missing is a reproducible way to write them from a run, so that no record is ever written by hand.

One producer run:

  • happens on one host (platform and architecture) at one tested Keld commit;
  • executes the corpus's registered mapped cases through the owner's existing execution admission.

It then writes:

  • One receipt for that run. The receipt names:

    • the run's identity: the CI run and job, or the local host;
    • the tested commit;
    • the host platform and architecture;
    • the Bun revision;
    • the exact cases admitted.

    The committed lifecycle CI receipts are the precedent. They are not the format: those are lifecycle-specific.

  • One record per cell that the corpus declares for that platform. Each record carries:

    • result equal to the cell's expected_verdict;
    • authority_profile: legacy_sandbox_off;
    • operation.oracle.revision equal to the corpus pin;
    • artifact.sha256 equal to the manifest digest;
    • revisions naming the tested commit, the Bun revision and the corpus engine token at that commit;
    • evidence_uri equal to the sha256: digest of that run's committed receipt.
  • An unknown record, or no record, for each cell that does not declare the host platform. This is the owner's admission unknown list.

The committed records are validated by the existing owner run validator. The receipt format is the one new contract, so the first deliverable is a gh566 amendment that defines it. The harness receipt stays inside the X01-T4 owner, and product receipts remain X02-T5's (#587).

Acceptance criteria

  • An approved gh566 amendment defines the harness-run receipt: its fields, its digest meaning, and where it is committed per corpus. It adds no second validator.
  • One producer run on macOS for a registered showcase corpus commits one receipt and one record per macOS-declared cell. Each record's result equals the cell's expected_verdict, its label is legacy_sandbox_off, its oracle revision is the corpus pin, its artifact digest is the manifest digest, and its evidence_uri is the receipt digest.
  • On a host that a cell does not declare, the producer writes result: unknown for that cell, or no record, and never pass or fail.
  • Committed records pass the owner's committed-runs validation, with records grouped by platform and architecture.
  • The producer only writes records for cases the owner's admission reports as passed. A missing, skipped, ignored or cfg-gated case produces no pass/fail record.
  • electron-app-v1 gains its macOS records from one real run and its Linux and Windows unknown records. This closes conformance(app): pinned v44.4.5 macOS cells for the first-proof app surface (ready, whenReady/isReady, session facts, single-instance verdict) with runner-asserted expected status #445 AC4.

Negative controls (each names the one mutation that must fail)

  • A record whose evidence_uri differs from the digest of its committed receipt is rejected.
  • Editing a committed record's result so that it disagrees with the receipt's admitted cases is rejected.
  • A pass record for a cell whose mapped case was skipped in the run is rejected.
  • A pass record on a platform the cell does not declare is rejected (gh566 C10 RecordRule).
  • Changing one byte of a committed receipt fails every record bound to it.

Out of scope

Ownership and gates

Activity

  1. 0monish commented on Oct 9, 2026

    @0monish
    MemberAuthor

    This was generated by AI during triage.

    Agent Brief

    Category: enhancement
    Summary: Add a harness-run producer that writes receipt-bound KEL-74 records for registered v1 showcase corpora, so that no record is ever written by hand.

    Current behavior:
    The X01-T4 corpus owner validates committed harness records. Its committed-runs validation works for showcase corpora, and harness records are always legacy_sandbox_off. But only the frozen electron-lifecycle-v0 corpus has records, and its receipts are lifecycle-specific. The v1 showcase corpora electron-app-v1 (#445) and electron-window-v1 (#448) have no records. Their acceptance criteria that call for macOS records, and for unknown records on Linux and Windows, are met only by structural binding: macOS-only cells, the harness label, and the admission unknown list.

    Desired behavior:
    One producer run on a host executes a corpus's registered mapped cases through the owner's existing admission. It then commits one receipt for the run and one KEL-74 record per declared cell:

    • result equals the cell's expected_verdict;
    • the label is legacy_sandbox_off;
    • the oracle revision is the pin;
    • the artifact digest is the manifest digest;
    • evidence_uri is the receipt digest.

    Each undeclared cell gets an unknown record, or no record. The receipt format is defined first, by an approved gh566 amendment.

    Key interfaces:

    • The X01-T4 owner's harness run validation and execution admission (gh566 D7, D8 and D13).
    • The KEL-74 record schema, unchanged.
    • The X01-T3 evidence rules (gh532 rules 4–7).

    Acceptance criteria:

    • An approved gh566 amendment defines the harness-run receipt, with no second validator
    • A macOS producer run commits one receipt and one record per macOS-declared cell, with every field bound as above
    • Undeclared-platform cells are unknown or absent, never pass or fail
    • Committed records pass the owner's committed-runs validation
    • Only admitted, passing cases produce pass/fail records
    • electron-app-v1 gains macOS records and Linux/Windows unknown records (conformance(app): pinned v44.4.5 macOS cells for the first-proof app surface (ready, whenReady/isReady, session facts, single-instance verdict) with runner-asserted expected status #445 AC4)
    • Negative control: an evidence_uri that differs from the receipt digest is rejected
    • Negative control: an edited result that disagrees with the receipt is rejected
    • Negative control: a pass record for a case skipped in the run is rejected
    • Negative control: a pass record on an undeclared platform is rejected (C10)
    • Negative control: changing one byte of a receipt fails every record bound to it

    Out of scope:

  2. added
    enhancementNew feature or request
    electron-compatElectron compatibility program area
    ready-for-agentFully specified; an AFK agent can take it
    needs-specNeeds an approved docs/agents/spec-template.md spec before implementation
    milestone:first-proofNeeded for the first migration proof (drawio-desktop on macOS, explicit legacy profile)
    on Oct 9, 2026
  3. 0monish commented on Oct 10, 2026

    @0monish
    MemberAuthor

    Read-only contract preparation

    At current main4dba1144, source mapping identifies three distinct gaps for this issue:

    • Harness validation accepts receipt-URI syntax but does not load/hash the receipt bytes.
    • Existing execution admission reports unknown cells but does not return admitted case/test identities to a producer.
    • Committed grouping uses platform/architecture and does not bind the whole group to one tested Keld/Bun/receipt identity.

    Recommended amendment is confined to gh566 D7/D8/D13. Reuse existing sha256_uri, owner record/scoring checks and runner admission parsers; extend their result rather than add a second validator. Proposed receipt binds immutable tested commit, exact manifest bytes/pin/engine, actual host/platform/architecture and Bun revision, admitted case identities and expected record verdicts. Records keep existing KEL74 schema/profile meanings and point to exact raw receipt bytes; avoid circular receipt hashes. A green regression can intentionally correspond to expected fail; do not promote every runner pass to Electron-conformance pass.

    Five concrete falsifiers are prepared: different valid receipt digest; admitted result changed to unknown; absent/skipped exact mapped case; pass on an undeclared platform; one whitespace-byte receipt change with old record URI. Each needs actual owner/producer execution and a branch-deletion control, not source presence.

    PR656/659 overlap owner/spec work and remain held. electron-app-v1 is not registered at this main source, so its real records await reviewed integration; window corpus can anchor initial work. Mac-produced unknown records do not establish execution on Windows/Linux. Minimum proposed grouping remains one current complete run per platform/architecture.

    This is preparation only: no claim, source/spec edit, test, run, producer implementation, PR or merge. Next action is an exact gh566 amendment defining receipt shape/placement/bindings, independent review and the issue-required approval before producer code. Existing public FS approval does not approve this separate receipt contract.

  4. 0monish commented on Oct 10, 2026

    @0monish
    MemberAuthor

    Related continuation resource observation

    Current continuation corrected cross-active-checkout Cargo target redirection by using independent per-checkout outputs, retaining source/evidence and validating own-target results. Obsolete ROOT-owned generated cache was retired; post-validation workspace package outputs cleaned. Last local capacity1.7GiB is below the earlier2.4GB build planning guard.

    A read-only work-clean kel-140-public-fs-policy preview refused: task is active and requires complete closeout before cleanup. Product acceptance is genuinely incomplete; the coordinator will not fabricate completion or manually bypass that task gate. This is a capacity/active-resource constraint, not evidence that the cleanup policy itself is defective. Related to the existing receipt/task-binding amendment work tracked here; no producer/harness/spec change or new approval is implied.

    Next ROOT action: refresh genuinely completed owned task resources through the managed preview or restore real capacity before further local native builds, preserving active/other-owner trees and evidence. Existing GH663 contract amendment prerequisites remain unchanged.

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

    electron-compatElectron compatibility program areaenhancementNew feature or requestmilestone:first-proofNeeded for the first migration proof (drawio-desktop on macOS, explicit legacy profile)needs-specNeeds an approved docs/agents/spec-template.md spec before implementationready-for-agentFully specified; an AFK agent can take it

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions