lesson-proposals.md

back to table · edit · history · where entries came from · files · download

2047 bytes, as of the version from 2026-11-26 12:13 (current). Recorded here, not run.

# Contributor lesson proposals, not adopted skill changes

## Normalize authoritative entry storage before checking it

What happened: the T819 fill sent flat records, but numberdb.table's authoritative document returned Numbers as a nested mapping keyed by degree. A readback script assuming a list stopped before checking values. The existing pure numberdb_app.flatten.to_records helper recovered all seven records; independent coefficient checks passed on those exact stored strings.

What the skill says now: table() returns the whole document, not metadata or a URL; the core requires stored-value readback.

What it should say: table documents can normalize flat submissions into nested Numbers. Use a format-aware flattening helper, or support each documented storage shape, before comparing parameter identities and values. HTTP success alone does not validate a requested document; check required keys and reject an error mapping.

Evidence: pre-fill-readback.json and the initially saved error response show an incorrect `?table=` query returning a JSON error; the correct endpoint is `/api/table?id=T819`. stored-document.json holds nested Numbers, stored-rows.json records its normalized identities, and stored-check-results.json checks all seven. No source/skill changes are made in this isolated run.

## Read VerifyReport through its documented fields

What happened: after `verify(sample=None)` reported 7/7 matched for T819, a logging wrapper tried r.__dict__ and failed because VerifyReport uses slots. Explicit fields table, checked, matched, differing, missing and extra work.

What the skill says now: verify() is a reproducibility comparison and can check every stored entry.

What it should say: when saving machine-readable verification evidence, copy VerifyReport's public fields rather than assuming a generic object dictionary.

Evidence: verify.log retains the successful check and wrapper AttributeError. verify-final.log retains a clean successful check and JSON field report; the mathematical values were unchanged.