Skip to content

spec(022): a qualification construction for stage 3, and its binding's public facts (A-68) - #402

Merged
bartekus merged 1 commit into
mainfrom
spec/022-qualification
Oct 30, 2026
Merged

bartekus merged 1 commit into
mainfrom
spec/022-qualification

Conversation

@bartekus

@bartekus bartekus commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

Amends approved spec 022 so stage 3 (qualification) has a construction to run through, and records the public facts its first production binding uses (A-68). No code changes; the implementation follows as impl(022).

Why. JevBackend::new_production refuses until stage 3 is recorded, and new_mechanics reaches only loopback, so stage 3's calls had no path.

3.7.4: JevBackend::new_qualification

  • It builds an adapter from a schema-2 production binding.
  • It refuses before any credential lookup or dispatch unless all of these hold: the facts pass 3.4, the transport is direct, the mapping is stage 2's direct mapping (rustev-jev-mapping/2, impl(022): the direct mapping and stage 2's recorded exchanges #401), the endpoint is the facts' HTTPS endpoint, and the journal is the testing journal.
  • Each record names the production binding's identity and carries qualification: stage 3, so the evidence counts for that binding under 3.6.2.
  • The credential comes only from the host callback, prices come from the facts, and the pin is checked as in production.
  • It grants no production eligibility. Accepting a stage 3 record and enabling new_production is a later change.

Section 5 gains the refusal and record rows, and Acceptance requires stage 3 to run only through 3.7.4.

A-68. The owner's 2026-10-29 authorization and agreement, quoted, plus facts read that day from TypeSafe's public pages only:

  • Price: USD 0.042 per million input tokens, output free (docs, Models).
  • Training and retention: no training on inputs, and retention "as long as reasonably necessary" (Privacy Policy, last updated 2025-11-19).
  • Zero data retention: enterprise only, so the binding requests none and records that none is available.
  • Hosting: the US.
  • Version: jev-latest has pointed to jev-1.14.0 since 2026-10-14, and the owner chose to qualify it. The stage 3 binding pins jev-1.14.0, and a stage 2 smoke at that pin is recorded first (3.6.2). Stage 2's jev-1.13.0 recordings stay as that pin's evidence.
  • Dataset: spec 012's synthetic-provenance set, with that limitation stated, because no spec 023 dataset is admitted.

No contract terms or negotiated prices are recorded.

@github-actions

Copy link
Copy Markdown

AI review (no-findings)

Reviewing the two changed files for bugs, security problems, and inconsistencies.

docs/decisions/00-founding-decisions.md — A-68

A-68 records owner authorization for spec 022 stages 2 and 3, pricing/privacy facts for jev-1.13.0 and jev-1.14.0, and constraints on the stage 3 binding. Key checks:

  • A-66 said stage 2 still needed authorization; A-68 provides it — consistent.
  • The pin stays jev-1.13.0; moving it requires a new stage 2 per 3.6.2 — consistent with the spec's constraints.
  • Zero-retention recorded as unavailable (enterprise-only); this matches 3.7.4.2's "recorded fact that none is available" path.
  • Spend is bounded to R-29's USD 5 cap; no production use, real-user data, or release authorized — consistent with the spec's acceptance criteria and Principle VI.
  • Both jev-1.13.0 and jev-1.14.0 pricing recorded even though only 1.13.0 is pinned; this is informational and not a conflict.

specs/022-jev-production-transport/spec.md — 3.7.4 and surrounding edits

  • new_qualification refusals (journal not testing, non-direct transport, wrong mapping version, non-HTTPS endpoint, facts failing 3.4) are specified in 3.7.4.1 and captured in the invariant table — consistent.
  • 3.7.4.2 requires the exchange record to name the production binding's artifact identity and qualification: stage 3, ensuring stage 3 traffic is never mistaken for production — correct provenance labeling per Principle X.
  • Credential obtained only at dispatch through host callback (3.8.1), not stored or looked up at construction — correct.
  • new_production still refuses until a stage 3 record is accepted AND a later code change — the separation between qualification and production eligibility is maintained, consistent with Principle VI.
  • The acceptance criterion addition ("Stage 3 runs only through 3.7.4's qualification construction") tightens the existing bullet without contradicting it.
  • The implementation note ("Pending implementation") is consistent with A-68's explicit statement that no implementation is marked complete.

No concrete defects found.

{"head": "b22f8b48388afeb9d5c7aeff329e87c2bc7d84c7", "verdict": "no-findings", "findings": []}

Subject: ca81e1e...b22f8b4, diff digest 8aa10e80ae559f848da8a4de04221c6d25d37f37f69e77b5d98ff1d722859761, 1 call(s). An AI comment is not an approval.

@bartekus
bartekus force-pushed the spec/022-qualification branch from b22f8b4 to a1d3add Compare October 30, 2026 02:40
@github-actions

Copy link
Copy Markdown

AI review (no-findings)

Reviewing the two changed files for bugs, security problems, and inconsistencies.

docs/decisions/00-founding-decisions.md — A-68

  • Correctly cross-references A-66 (which left stage 2 pending owner authorization) and supplies that authorization.
  • Records public facts (pricing, training, retention, hosting, version history) with source citations; explicitly disclaims that no contract terms or negotiated prices are included and that no production use is authorized.
  • Zero-data-retention availability: correctly records that it is enterprise-only and therefore unavailable to this binding; 3.7.4.2 carries the same recording. Consistent.
  • States "this act amends text only; it marks no implementation complete and authorizes no live call or spend" — consistent with the spec's own "Pending implementation" annotation.

specs/022-jev-production-transport/spec.md — 3.7.4 and surrounding changes

  • Section 3.7.4.1 lists five independent preconditions (daily facts check, direct transport, direct mapping version, HTTPS endpoint, testing journal) all evaluated at construction before any credential lookup. The new invariant row in the table faithfully enumerates the same five cases. Consistent.
  • 3.7.4.2 requires qualification: stage 3 in every exchange record and records the production binding identity, preventing stage 3 traffic from being mistaken for production evidence. Consistent with A-68's statement that evidence "is never mistaken for production traffic."
  • 3.7.4.4 explicitly preserves the new_production gate: it still refuses until a stage 3 record is accepted, and accepting one "is a later change." This matches A-68's "authorizes no production use."
  • Acceptance section addition ("Stage 3 runs only through 3.7.4's qualification construction") tightens the existing criteria correctly.
  • Implementation record note ("Pending implementation") correctly reflects that 3.7.4 is specified but the code has not been written.
  • Cross-references to 3.4, 3.6.2, 3.8.1, 3.8.7, R-29 are all pre-existing sections; no missing reference can be confirmed absent the surrounding text.

No concrete defects found.

{"head": "a1d3addbd458f63838971f662b95a3651afc57df", "verdict": "no-findings", "findings": []}

Subject: ca81e1e...a1d3add, diff digest 3a2de59abd7f2ab4f1dcb379e89586699e7c3defc275392333aa2de164bb85c9, 1 call(s). An AI comment is not an approval.

@bartekus
bartekus added this pull request to the merge queue Oct 30, 2026
@bartekus
bartekus removed this pull request from the merge queue due to a manual request Oct 30, 2026
@bartekus
bartekus force-pushed the spec/022-qualification branch from a1d3add to 894e2cf Compare October 30, 2026 03:23
@github-actions

Copy link
Copy Markdown

AI review (no-findings)

Reviewing the two changed files for bugs, security problems, and inconsistencies.

docs/decisions/00-founding-decisions.md — A-68

A-68 records owner authorization for stages 2 and 3 of spec 022. I checked cross-references:

  • A-66 (immediately above) notes "spec 022 3.7 stage 2 still needs the owner's authorization, inside R-29's testing cap." A-68 then supplies that authorization. No contradiction.
  • A-68 references "R-29's USD 5 testing cap" consistently with A-66 and the dataset note ("no spec 023 dataset is admitted (3.8.7)") matches 3.7.4's omission of any dataset constraint — the dataset limit is governed by 3.8.7 which is not changed.
  • The pin-change-triggers-new-smoke reasoning ("because a pin change is a new identity (3.6.2)") is internally consistent: jev-1.13.0 evidence stays for that pin; jev-1.14.0 gets its own stage 2 smoke before stage 3.
  • "Pending implementation" in the spec's implementation record is not contradicted by A-68 — the decision records what facts were read (prices, retention, training policy), not that code is done.

specs/022-jev-production-transport/spec.md — 3.7.4 and related

Safety constraints in 3.7.4.1 are consistent with the new invariant table rows: production journal → refused, Gateway transport → refused, mapping other than rustev-jev-mapping/2 → refused, non-HTTPS endpoint → refused, facts failing 3.4 → refused. These five refusal conditions listed in the invariant table map 1-to-1 to 3.7.4.1's enumerated checks.

3.7.4.2: "requested privacy carries … the recorded fact that none is available" — A-68 records "Zero data retention: offered to enterprise customers only, so the binding requests none and records that none is available." Consistent.

3.7.4.4: "new_production still refuses until a stage 3 record is accepted. Accepting one… is a later change." — A-68 says "This authorizes no production use." Consistent.

The acceptance criteria addition ("Stage 3 runs only through 3.7.4's qualification construction") is additive and tightens, not contradicts, the existing acceptance bullet.

No concrete defects found.

{"head": "894e2cfc17c2dcb2c1ae2783b1455942ff156798", "verdict": "no-findings", "findings": []}

Subject: 54cbcea...894e2cf, diff digest 19838dec2309883e02431009b4d2d521be100debeeaff0a9d324434a9ec4dab5, 1 call(s). An AI comment is not an approval.

@bartekus
bartekus added this pull request to the merge queue Oct 30, 2026
Merged via the queue into main with commit f19cffe Oct 30, 2026
30 checks passed
@bartekus
bartekus deleted the spec/022-qualification branch October 30, 2026 04:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant