Proof Portal
jsonparser
ProbeLabsviewing a historical runWhen GetBoolean addresses a well-formed JSON boolean token, the parser shall return the corresponding Go bool value.
Specification
The requirement exactly as authored — its complete prose text and, where present, the formal FRETish sentence it compiles to.
When GetBoolean addresses a well-formed JSON boolean token, the parser shall return the corresponding Go bool value.
the parser shall always satisfy !addressed_value_is_boolean | !raw_boolean_token_is_well_formed | returns_getboolean_value
Rationale & tags
Why this requirement exists, and how it is categorised.
Rationale & tags
Why this requirement exists, and how it is categorised.
GetBoolean is a public typed helper for callers that expect boolean JSON fields and need explicit error signaling otherwise.
Verification & provenance
How this requirement was checked: the review trail, edit history, and the machine-analysis status terms (each ⓘ explains what it means).
Review
- Status
- approved
- Reviewer
- Buger · lead_engineer
- Reviewed
- Aug 20, 2026, 13:11 UTC
History
- Created
- Apr 13, 2026, 17:10 UTC · Created via CLI
- Modified
- Aug 20, 2026, 13:11 UTC · Buger
Change history
Every recorded revision of this requirement's source file — newest first, each with its commit message and the diff for that change.
Review history
Human and AI-agent approvals of this requirement — the 'why was this approved' lineage, each with the reviewer's justification and the code it cites.
- Claude:spec Conformance · AI agentApprovedSpec conformanceAug 20, 2026 · last monthREVIEW-11
GetBoolean satisfies !addressed_value_is_boolean | !raw_boolean_token_is_well_formed | returns_getboolean_value: it rejects non-Boolean types via the t!=Boolean branch (NullValueError or 'Value is not a boolean' error, no value emitted), grounding the !addressed_value_is_boolean guard, and otherwise returns ParseBoolean(v). Because Get only classifies a token as Boolean type when it starts with a valid boolean literal and the formula is guarded on raw_boolean_token_is_well_formed, the KI-11 ParseBoolean prefix-match defect does not violate this requirement's obligation — a well-formed 'true'/'false' token decodes correctly. TestGetBoolean and the MCDC witness rows confirm the value and the non-boolean error path.
Cited code (3)
Obligations
What this requirement must witness to be considered satisfied — the required evidence, and the tests that discharge each one.
The tests that discharge each obligation aren't available for a historical run
The evidence matrix behind each obligation comes from the live audit index, which can't be rebuilt for a past commit. Nothing here means unknown — not that the requirement has no obligations.
Formula evidence
The formal formula behind this requirement, the variables it is written over, and the tests that exercise it (each term is explained inline).
Formula evidence
The formal formula behind this requirement, the variables it is written over, and the tests that exercise it (each term is explained inline).
FRETish formula
the parser shall always satisfy !addressed_value_is_boolean | !raw_boolean_token_is_well_formed | returns_getboolean_value
Variables
| Name | Type | Direction | Description |
|---|---|---|---|
| addressed_value_is_boolean | — | True when the addressed value is a JSON boolean token. | |
| raw_boolean_token_is_well_formed | — | True when the addressed JSON boolean token is a valid `true` or `false` literal. | |
| returns_getboolean_value | — | True when GetBoolean returns the addressed value as a Go bool. |
Witnesses· 4 scenarios total
- TestMCDC_SYS_REQ_005_Row1_TriggerFalseexercises 1 condition scenario
- TestGetBooleanexercises 3 condition scenarios
MC/DC truth table· 4 rows
Each row assigns the formula's conditions (T/F) and shows the Result— the formula's value for that input row, not a test pass/fail. A row proves a condition when flipping only that condition flips the outcome. The test that covers each row is linked.
mcdc:ignoreNo-actionfalse-result row satisfied by designUncoveredneeds a covering test| # | addressed_value_is_boolean | raw_boolean_token_is_well_formed | returns_getboolean_value | Result | Proves | Covering test |
|---|---|---|---|---|---|---|
| 1 | F | T | F | T | addressed_value_is_boolean | |
| 2 | T | F | F | T | raw_boolean_token_is_well_formed | |
| 3 | T | T | F | F | addressed_value_is_boolean | |
| 4 | T | T | T | T | returns_getboolean_value |
Its place
How this requirement connects — what proves it, what it affects, and what it rests on. Authored links only here; automatically derived links come from the audit index.
Loading graph…
Trace evidence
The concrete artifacts linked to this requirement — implementing code, verifying tests, documents, and the findings raised against it.
No findings affect this requirement
Nothing was flagged against this requirement in the pinned run.
Impact
Blast radius — authored trace links only (automatically derived links come from the audit index and aren't shown here).
Impact
Blast radius — authored trace links only (automatically derived links come from the audit index and aren't shown here).
If you change this
Files to re-check (2)
- fuzz.gofuzz.go
- parser.goparser.go
Tests to re-run (4)
- fuzz_native_test.gofuzz_native_test.go
- mcdc_spec_witnesses_test.gomcdc_spec_witnesses_test.go
- mcdc_supplement_test.gomcdc_supplement_test.go
- parser_test.goparser_test.go
What this rests on
Parent requirements (1)
Discussions
Discuss this with the proof team. Nothing changes in your audit automatically — you open a request and a staff member records any outcome inside the thread.