Repository navigation
docs(adr): ADR-0069 problem reports, schema frostyard.problem/1 and registry (T857 t1) - #196
Merged
Merged
Conversation
…egistry (T857 t1) Add ADR-0069 (local first, opt-in, one sender per host), the spec docs/specs/problem-report.md with the fixed MESSAGE_ID and the FROSTYARD_* field and enum registry, the JSON Schema v1.json with 1 example per kind, a design doc, and test/problem-report-schema.test.mjs.
…arify counts (T857 t1) Cross-review findings: location gets maxLength 128 with size and boundary tests; the spec states that $ is end of input with no flags (trailing newline tests) and the residual risk of token-shaped frames; ADR-0069 says each opted-in sender sends at most 1 count a week.
bketelsen
approved these changes
Nov 5, 2026
5 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Plan T857 task t1 (approved rev 0b496c9, graph v2): the problem-report contract that t3, t5, t6, t15 and t18 build on.
snosi-healthon Floe); apps write only to the journal; no machine or boot ID; IP dropped at the edge; new field, kind or enum value = new schema version, Worker deploys first, senders map unknown open-enum values toother; raw under 90 days; aggregates only public; counts only from opted-in installs.docs/specs/schemas/problem-report/v1.json(frostyard.problem/1, draft 2020-12,$idhttps://frostyard.org/schemas/problem-report/v1.json): closed shape (additionalProperties: falseon the envelope,imageand everydetail), kinds S1–S9 of plan section 1, theapp_idallowlist, thecomponentenum, anchored RE2/ECMA/Rust-portable patterns, noformat. 1 example per kind inexamples/.docs/specs/problem-report.md: the envelope, each kind's fields, the fixedMESSAGE_ID8915bdd215c84cbab0c31c05a1a33e7e, everyFROSTYARD_*journal field and its report field, every enum (open or closed), and rules 1–11 (versions, deploy order, unknown values, untrusted records, consent, size).docs/design/problem-reports.md: pieces and data flow.test/problem-report-schema.test.mjs(runs innpm test, so in CI): validates 1 example per kind; rejects unknown fields (top level,detail,image, another kind's field), free-text values, bad version patterns, a badschema, an off-listapp_id, frames outside the allowed modules; checks every object is closed, every pattern anchored, noformat; pins the sha256 ofv1.json; checks that the spec names theMESSAGE_ID, every enum value and everyapp_id; checks the 8 KB size bound.Choices made in this task (plan said "exact IDs fixed in t1")
org.frostyard.ChairLift,org.frostyard.nsl,org.frostyard.intuneme,org.frostyard.pilothouse,org.frostyard.Frostmail,org.frostyard.Frostnotes,org.frostyard.Frostread. intuneme and pilothouse use lowercase in their polkit and broker IDs today; nsl has none, so it follows them.schema(frostyard.problem/1) added so the Worker can select the version.github.com/frostyard/…, the vendoredgithub.com/emersion/go-imap/v2fork (frostmail), the top-level Go standard library packages andmain; no segment may hold a dot. Everything else isother.other; closed ones (image.id,kind,app_id,runtime,class, buckets) make an unknown value local only. S3howkeeps the plan'sunknownand addsother.error_classis optional (a skipped run has no error class). S8:codeis required forclass=errorand forbidden forpanic;framesis Go-panic only,locationRust-panic only.<semver>allows onlyalpha/beta/rcprereleases and novor build metadata; a dev build records locally only.Decision trail
Plan T857 (Brian's decisions B1–B6 and asks T857a–g); consult k4 (Lucilla) conditions folded in: a new enum value is a new schema version, the Worker deploys before senders, senders map unknown values to
other, exactapp_idallowlist. Section 1 (inventory), 4 (placement) and 10 (ADRs) of the plan.Risk tier
Risk tier: 1 — docs, a schema file and a test. No path in
.github/risk-paths.jsonmatches.Docs housekeeping
TEMPLATE.mddocs/README.mdVerification
npm run verifygreen locally (266 tests;check:docsincluded)v1.json(top-leveladditionalProperties: true, the old loose frame pattern) and runningnode --test test/problem-report-schema.test.mjsfails 8 tests:v1.json matches its sha256 pin,every object schema with properties is closed,rejects an unknown top-level field,rejects a Go frame from a module off the allowlist,… with a dot-dot segment,… with a mixed-case path after a standard library package,… of a module that only starts like frostyard. Worktree removed.Coder: github-copilot/claude-opus-5.5 (Lucilla wrote the ADR, spec and schema; a subagent of the same family wrote the examples and the test).
Cross-review
Reviewer
openai/gpt-6.1-sol, codergithub-copilot/claude-opus-5.5. Based502e0eb5e7536881c70784541f68f6916e136ab.8f776a1: Not ready, 3 blocking. (1) Rustlocationhad no length bound →maxLength: 128, size and boundary tests. (2) Claimed ECMA$matches before a final newline → disputed with evidence (JS, RE2 and Rust$are end of input without flags); the reviewer withdrew it; spec rule 8 and 2 trailing-newline tests added anyway. (3) A token pattern cannot prove a frame is a real symbol → the spec states the residual (fmt/home/brian/documents/taxes.x) and the writer's guarantee. (4, low) Count unit clarified in ADR-0069.ef36173: Ready, 1 non-blocking point (corrections line) → added.790e89b: Ready, Blocking: none.Guard for the blockers: the new tests in
test/problem-report-schema.test.mjsand 1 line in.memory/corrections.jsonl.npm run verify: 271 tests pass. CI green at790e89b.