# Method, limits and maintenance

## Decision and provenance

This method compares two retained, explicitly synthetic normalized JSON representations of the same fictional source and variant. It produces an inspectable candidate receipt upstream of the existing API Change Impact Register. It neither discovers a provider event nor determines the impact on a deployed client.

The scenario takes place on 1 December 2026 only as a teaching convention. Before collection is labelled 09:00:01 UTC, after collection 10:00:01 UTC, and the one supplied comparison review 10:05:00 UTC. These are authored inputs. The actual local executions on 3 December are recorded separately in the result files. `source_published_at` and `effective_at` are null throughout; file collection does not establish either event.

## Comparison policy

1. Validate the declared pair identity, variant, JSON media type and chronology. The available bytes must exist beneath the pack's `representations/` directory and match their declared SHA-256 hashes. A missing file marked available is an invalid retained record, not a successful unchanged collection.
2. Parse complete UTF-8 JSON with duplicate member names, malformed documents, nonfinite constants and unpaired Unicode surrogates rejected. This bounded application accepts integer JSON numbers only; fractional amounts must be declared decimal strings. Fractional/exponent numbers are valid JSON generally but unsupported by this version's contract.
3. Compare the actual bytes. Separately compare full parsed values using a local, typed encoding: object keys are sorted, array order is retained, and strings and booleans keep their types. Escaped and literal encodings of the same string value compare equally. No Unicode normalization or coercion of numbers, strings, booleans and null is performed. This encoding is not presented as RFC 8785 canonicalization or a signing format.
4. Evaluate the selected JSON Pointer strings. Use `~0` for a literal tilde and `~1` for a literal slash. Array indices are zero-based without leading zeros; the append token is unsupported. Missing paths return an explicit absent state. Added, removed and changed selected fields retain both their presence flags and values.
5. Classify bytes unchanged, representation-only, tracked-field change, untracked-content change or unavailable. A malformed or inconsistent input instead produces an invalid result. The whole-document comparison prevents an unselected content change from being dismissed as formatting. A tracked change can coexist with unselected changes; the selected-field report is not advertised as a complete semantic diff.
6. Attach a semantic-review record only if one is supplied and its exact pair hashes, selected-field-list hash, changed-field references and time order pass validation. The review remains an unauthenticated, synthetic declaration. No collection or comparison automatically generates a review date or an effective date.

RFC 8259 provides the JSON basis: object member order does not define an ordered sequence, arrays retain order, and duplicate member names create interoperability problems. RFC 6901 supplies field-address syntax. RFC 9110 distinguishes a conditional HTTP result from a transferred representation; this pack performs no HTTP requests and does not extend or reimplement DN's earlier loopback 304 fixture. The separation between collection and semantic review is the declared DN evidence policy, not a claim that an HTTP standard performs editorial review.

## Explicit bounds

- Python 3.9 or newer; standard library only.
- Each retained representation: at most 65,536 bytes; normalized object root.
- Manifest: at most 524,288 bytes and 30 cases with distinct IDs.
- Parsed input: at most 16 nesting levels, 20,000 visited nodes and 8,000 characters per string.
- JSON integer range: −9,007,199,254,740,991 through +9,007,199,254,740,991. Decimal-string values are preserved as text; the comparator performs no unit conversion or financial calculation.
- Selected fields: 1–16 unique non-root JSON Pointers of at most 240 characters.
- Timestamps: valid UTC calendar values with seconds and `Z`, years 2000–2099. Their chronology is checked; their historical authenticity is not.
- Available snapshots require byte files and hashes. Explicitly unavailable snapshots must have null collection time, file path and digest plus a reason.
- This version deliberately rejects non-null publication/effective dates and non-synthetic source identities. Supporting real documents requires an explicitly reviewed extension rather than changing an evidence label.

## Worked result

The original authored limit is the decimal string `120` requests per minute; the changed version is `90`. Their difference is −30 requests per minute, or −25% of the invented original allowance. This exact arithmetic is independently reproduced with Python `Decimal`; the comparator itself simply reports the changed strings. It does not calculate a safe polling rate, account for bursts, establish a provider policy, or select an effective date.

## Verification and independence

`expected-results.json` contains authored outcomes that are checked against the actual comparator. Additional checks exercise wrong hashes, missing files, inconsistent unavailable records, source/variant mismatches, chronology, duplicate keys, invalid numbers, null-versus-absence, boolean-versus-number, array order, pointer escaping and review binding. The CLI's refusal to overwrite an existing receipt is also exercised. See the saved execution record for the actual count and results.

The retained six representation hashes were separately checked using the system `sha256sum` executable against Python `hashlib`. This is a second hash implementation check, not an independent source-authenticity audit. Execution timestamps measure the run, not the dates represented by the fixture. No external provider or model trial is included.

## Maintenance and corrections

Publish a new version if the parsing bounds, equality policy, pointer resolution, review contract or evidence class changes. Keep the old files and receipts. Recheck the current article body and any overlapping prepared drafts before adding a new capability. A future real-source adapter must document source rights, extraction and variant selection, complete retained bytes, collection errors and a separately reviewable meaning assessment.

Report a correction with the canonical article URL, case ID, exact input file hashes, expected outcome and reproduction command through the [DN contact page](https://decentralised.news/contact). This pack contains no affiliate recommendation, paid dependency, account collection, alert signup or promise of compatibility. The optional DN Research Desk remains separate from the free method and its results.
