oficina / fichas Public

Fichas level-up spec, revision 4: Fable's diff check folded in (one data source for drawing and reading numbers in Phase 1; typed filter values never in the URL)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Paul Campbell pushed by paul@keymail.dev 533f0f3d854c0371839d6c82a07e074e3385e1b7 parent 36df131
1 file changed, +35 −19
  • docs/superpowers/specs/2026-11-17-fichas-level-up.md +35 −19
diff --git a/docs/superpowers/specs/2026-11-17-fichas-level-up.md b/docs/superpowers/specs/2026-11-17-fichas-level-up.md
index dbc9cf2..0f13d02 100644
--- a/docs/superpowers/specs/2026-11-17-fichas-level-up.md
+++ b/docs/superpowers/specs/2026-11-17-fichas-level-up.md
@@ -71,7 +71,7 @@ The estilo bar stack, as Mapa uses it (Mapa level-up §3.1). Fichas' slots:
- **R1:** the rail stays. Its rows keep today's grid: a 16px icon column and the label on one centre line (`TestRailIconsSitOnTheTextsCentreLine`).
- **R2, folders:** each type is in at most one folder. A type with no folder sits above the folders. A folder heading is a `<details>`, so it collapses with no script. Which folders are closed is one per-person cookie (`fichas-rail`, the closed folders' opaque keys), as density is. The folder holding the current type is always open.
-- **Cookies stay few:** one for the rail (fold and closed folders), one for the panel, one for density, one for formats (`fichas-formats`, §6.8), and one (`fichas-views`) mapping each type's key to the view last used, capped at 30 types, oldest dropped. Every one holds opaque keys or this app's words only.
+- **Cookies stay few:** one for the rail (fold and closed folders), one for the panel, one for density, one for formats (`fichas-formats`, §6.8), and one (`fichas-views`) mapping each type's key to the view last used, capped at 30 types, oldest dropped. Every one holds opaque keys or this app's words only, except `fichas-formats`, which holds a CLDR locale id: the reader's own choice, never a team's words.
- **Each type has its icon** (§8.1) and its card count, as the mock-ups show.
- **New type** is a quieter row below a rule.
- **⌘\ folds the rail** to icons, and back. The fold is two submit buttons, one per state, and CSS shows the one that fits (Mapa build note 10). `POST /view/rail` sets a cookie, writes no row, logs no event, and returns only to a local path.
@@ -115,7 +115,8 @@ At 1440px with the rail, the table and the panel open, the page has three column
- **For cards:** Layout, Filter, Sort, and **Each card shows**.
- **The foot:** when the state differs from the saved view, a "Changed" mark (a dot and the word), **Reset**, and **Save**. For a team view Save reads "Save for everyone". **Save as new…** opens the switcher's save form (§4.2).
- **Every change applies at once with script.** The panel rewrites the URL (`history.replaceState`) and the work redraws from the server's HTML fragment. Nothing is written until Save.
-- **With scripts off, the panel is a GET form.** "Apply" submits it, and the server renders the same URL a script would have made. "Add a condition", "Then by…" and the column moves are submit buttons that redraw the form with one more row or a moved row. No GET writes anything (gate LU5).
+- **A value a person types into the panel is never put in the URL as typed** (§6.8): what `1.500` means depends on the reader's locale. The panel posts typed values as `tN`, with the page's locale as `tN.locale`, to `POST /t/{type}/apply`, which reads them (§6.8), writes nothing, and answers with the canonical URL: a 303 without script, the URL itself to the script, which puts it in the address. `parse` never reads `tN`, and `xN` is never read through a locale. Picked values (options, people, cards, relative date tokens) and dates from the date input are already canonical and go into the URL directly.
+- **With scripts off, the panel is a form.** "Apply" posts it to `POST /t/{type}/apply`, and the 303 lands on the same URL a script would have made. "Add a condition", "Then by…" and the column moves are submit buttons that redraw the form with one more row or a moved row. No GET writes anything (gate LU5).
### 4.2 The view switcher
@@ -469,7 +470,10 @@ Each kind's settings, a field's help text and whether it is required live in **`
The Find box matches every value that **shows as text**: option labels, person names, linked cards' titles, file names, and dates as they are shown. It never reads a file's contents.
-- **Numbers and money match by value, in the reader's format** (§6.8). What a number looks like depends on who is reading, and the index holds one search text per card, so the index keeps each number and amount in canonical form only (`1200.5`, and money as its canonical decimal, `48000`). A query is read as a number in the reader's locale (R2; each reading, when it is ambiguous) and then matched against those canonical forms as text, so `1.200,5` typed in German and `1,200.5` typed in English both find 1200.5. A query that is not a number matches no number or amount. Built with the grammar, in Phase 2.
+- **Numbers and money match by value, in the reader's format** (§6.8). What a number looks like depends on who is reading, and the index holds one search text per card, so the index keeps each number and amount in canonical form only (`1200.5`; money as its canonical decimal, `48000`). The Find box is a GET and carries no locale echo, so its query is read in **the request's** locale:
+ - as a number, by R2, under every reading when it is ambiguous;
+ - and as money in each Money field's currency, so the field's own symbol or code is allowed (`€48,000`).
+ A reading matches a number or amount **equal** to it by value, never as a substring, so `48` does not find 1480. `1.200,5` typed in German and `1,200.5` in English both find 1200.5. A query that reads as a number still matches text too, as any query does. Built with the grammar, in Phase 2.
### 6.5 Inputs and pickers
@@ -535,8 +539,9 @@ rastrillo separates a page's **language** (its identity: the catalogs and the `/
2. **The browser's `Accept-Language`,** in q order as rastrillo's middleware reads it. The first tag that `locales.Resolve` maps to a linked locale without falling back (not `Malformed`, not `UsedDefault`) wins. **A bare language** (`en`, `de`) that is the team default's language yields the team default: a browser that says only `en` gets `en-IE` on Paul's teams, not CLDR's `en`, which writes dates the American way.
3. **The team default,** `FICHAS_LOCALE`, default `en-IE`. Boot refuses a value `locales.CanonicalIdentity` refuses or `locales.Resolve` cannot map without falling back, as an unknown `FICHAS_TIME_ZONE` refuses boot.
-The result goes into the request's localizer, `ui.NewLocalizer("en", <format>, …)`: English words, the reader's formats. Every template takes `$L` and passes it to every locale function, as rastrillo's strict `ui.Pages` requires. Today's `commas` retires.
+The result is always the resolved locale id (`Resolution.ID`, never the browser's own tag), because that is what rastrillo's echo check accepts. It goes into the request's localizer, `ui.NewLocalizer("en", <id>, t)`, where `t` is rastrillo's base catalog (`rastrillo.BaseCatalog()`) with its `{name}` substitution, so the framework partials' own strings and `form.Money`'s error keys stay English: English words, the reader's formats. **Fichas keeps rendering through `ui.Funcs`,** not `ui.Pages`, whose localizers are fixed per declared identity; so every page's data carries `L`, every locale function in every template is called with it, and a call without it silently formats in English. LU17's template check is what enforces that. Today's `commas` retires.
+- **"Resolves without falling back"** means: not `Malformed`, not `UsedDefault`, no `MissingPack`, and an `ID` other than `root` (with no installed default, an unknown tag resolves to `root` with neither flag set). The `fichas-formats` cookie is checked the same way on every read, and ignored when it fails.
- **Every pack is linked:** `locales/modern` replaces `locales/en`. Measured at `b791bdd`: 420 KB on a 28 MB binary (1.5%).
- **The choice** is one cookie, `fichas-formats`, holding a CLDR locale id or nothing (§3.2's list grows by one). It is set on a **Formats** page under the account menu: one `<select>` whose first option is "Your browser's" (naming what that resolves to), then every linked locale by its id with a sample of a number, an amount in euro and a date written in it, so nobody needs a locale's name to pick one. `POST /settings/formats` writes the cookie, no row and no event, and returns to a local path. Phase 2.
- **The formatting locale is never logged, stored in a row, put in a URL or sent to a sibling.** It is the reader's, like density.
@@ -546,11 +551,12 @@ The result goes into the request's localizer, `ui.NewLocalizer("en", <format>,
| What | Through | Where |
|---|---|---|
| Counts: "7 of 10 customers", "2 of 7", group counts, a file count | `{{number $L n}}` | every count Fichas draws |
-| Number values | `{{number $L v}}` on the canonical string, the field's format (§6.2) as options (R1) | table cells, the card, the narrowed list, board and calendar cards, the caption, the View panel, History, toasts, the conflict message |
+| Number values | until R1: the canonical string with the pack's decimal mark (below); from R1: `{{number $L v}}`, the field's format (§6.2) as options | table cells, the card, the narrowed list, board and calendar cards, the caption, the View panel, History, toasts, the conflict message |
| Money | `{{money $L minor code}}` | the same places |
| Dates and times | words, in the team's zone (below; R3) | the same places, and "Edited 2 days ago" |
-- **Number values need R1.** rastrillo's `number` today formats integers and floats through `x/text`, and returns any other string unchanged, so `1200.5` would show as `1200.5` to a German reader. Until R1, Fichas passes an integer canonical string as it is (rastrillo formats it), and passes a fraction as a `float64` **only when that float writes back as exactly the canonical string** (`strconv.FormatFloat(f, 'f', -1, 64)`), which `x/text`'s shortest form then writes with exactly those digits. Any other value (past about 15 significant digits) shows in canonical form. So a displayed number is always exact: localised, or canonical, never rounded.
+- **Number values need R1, and wait for it.** rastrillo's `number` today formats through `x/text`, whose CLDR data is older than the packs' and disagrees with them on marks in dozens of locales (`en-ES`: `x/text` writes `1,234,567.5`, the pack says `,` is the decimal mark). A value drawn by one and read by the other could come back a thousand times wrong, silently. So **until R1, Fichas draws a number value from the pack's data alone, in the form it reads:** the canonical digits, the pack's ordinary decimal mark (`locales.Locale.Decimal`), no group marks, ASCII digits and an ASCII minus: `1200,5` for a German reader, `1200.5` for an Irish one. That is exact to 30 digits and is today's ungrouped display, so it is also what `plain` (§6.2) means until Phase 4 brings the other formats. From R1, display and reading share the packs, and grouping returns.
+- **Counts stay on `{{number $L n}}`** (`x/text`), which groups them: a count is never read back, so its marks cannot be misread.
- **Dates are words until R3.** rastrillo's packs hold number and money data, not CLDR's date patterns. Until they do, Fichas writes dates as it does today: relative words ("today", "in 3 days") with the absolute date in the `title`, and absolute dates as "20 November 2026" and times as "14:30", for every reader. A date in words with the month spelled out is read the same way in every locale, so the only cost is a day-month order an American reader does not use. **A date is never written in figures** (11/12/2026), which is where locales disagree. Month and day names are interface text, so they stay English after R3; R3 changes the order, the abbreviation and the hour cycle.
#### Input
@@ -561,14 +567,15 @@ Each input is read in **the locale the page was drawn in**, which the form echoe
- **One plausible reading is accepted,** whatever the locale: `1,200.5` and `1200,5` in English, `1.200,5` and `1200,5` in German, `1 200,5` in French, `1’200.5` in Swiss German, `1,20,000` anywhere (Indian grouping).
- **The page's own group mark wins** (decision 23): `1,500` in English is 1500, and `1.500` in German is 1500.
- **Readings that disagree are refused, and both are written out:** exactly when the only separator is one `.` or `,` with one to three digits before it and exactly three after it, and the reader's locale does not group with it: `1.500` in English, `1,500` in German or French. "This could be 1.5 or 1500. Enter the one you mean." (rastrillo's `money_ambiguous`, each choice written so it cannot be misread: no group marks, and a fourth fraction digit where exactly three would remain.) Nothing is written.
- - **The accepted cost,** rastrillo's own: German `1,500` meaning one and a half, pasted into an English page, is 1500. The cell shows the stored value as soon as it saves, and Undo is in the toast.
+ - **The accepted cost,** rastrillo's own: German `1,500` meaning one and a half, pasted into an English page, is 1500. Undo is in the toast.
+ - **Signs:** R2 takes signs as rastrillo's money reading does (a leading `+`, `-` or U+2212, a trailing `-` or U+2212, or parentheses around the whole value). The interim reading takes a leading `-`, U+2212 or the locale's own minus, after bidi marks are removed.
- **Kept from revision 3:** exact decimals (`math/big`, never floats), at most 30 digits, nothing rounded, the canonical form, and refusal of exponents, `NaN`, `Inf`, hex, letters, two decimal marks and malformed groups.
- **Changed from revision 3** (D22): input with one reading is no longer refused for being un-English. `1,5` in an English page is 1.5, its only reading; `1.200,50` is 1200.5; `+5` is 5, as rastrillo's sign rules read it. Money and Number now read input by one rule, so one table never reads `1.500` two ways.
- **The seed** an editor starts from is the value in the reader's format **without group marks** (rastrillo's `currency.InputValue` rule: a group mark is what can make the same digits mean a thousand times more under another reading): `1200,5` for a German reader. **An unchanged seed is no change:** when the posted text equals the seed of `was`, the value is `was`, with no reading at all, as `form.Money`'s `Stored` rule keeps an ambiguous seed. So `1,234` (one point two three four, in German) saves untouched.
-- **Money** is rastrillo's money field end to end: `form.Field{Kind: form.Money, Currency: <the field's code>, LocaleEcho: true}`, `parsed.Minor`, `form.SeedMoney` for the seed, `Stored` set to the card's amount, and the `field-money` partial, in the scriptless form and the cell editor alike. The currency is always the server's; a posted currency that differs is refused (`money_currency_changed`). Decimals past the currency's are `money_precision`.
+- **Money** is rastrillo's money field end to end: `form.Field{Kind: form.Money, Currency: <the field's code>, LocaleEcho: true}`, `parsed.Minor`, `form.SeedMoney` for the seed, `Stored` set to the posted `was` in minor units (nil when `was` is empty), so an unchanged seed of the value the editor saw is kept and the transaction's compare (§5.2) decides the rest, `Negative: true` (revision 3 allowed a minus; a refund is money too), and the `field-money` partial, in the scriptless form and the cell editor alike. The currency is always the server's; a posted currency that differs is refused (`money_currency_changed`). Decimals past the currency's are `money_precision`.
- **Dates and times** need no locale: `<input type="date">` and `type="time"` show the date in the browser's own locale and post ISO, and the picker (§3.4) posts ISO too. `form.Date` and `form.DateTime`, with `Field.Location` the team's zone, read it.
-- **The JSON cell edit** posts the same names as the form (`<key>`, `<key>.locale`, `<key>.seed`, and money's `<key>.currency`), so one reading serves both, and `was` is compared only after the value is read and made canonical (§5.2).
-- **Everywhere else a person types a value** reads it the same way: a filter value in the View panel (then written to the URL canonically, §4.9), a paste (⌘V, §5.6), and the Find box (§6.4).
+- **The cell edit posts a form-encoded body, never JSON,** with the same names as the form (`<key>`, `was.<key>`, `<key>.locale`, and money's `<key>.seed` and `<key>.currency`), because rastrillo's `form.Parse` reads posted form values; it gets JSON back. So one reading serves both, and `was` is compared only after the value is read and made canonical (§5.2). The cell text it returns is drawn in the echoed page locale, not the request's.
+- **Everywhere else a person types a value** reads it the same way: a filter value in the View panel (posted and turned into a canonical URL, §4.1), and a paste (⌘V, §5.6). **The Find box is the exception:** it is a GET, so it carries no echo, and its query is read in the request's locale, under every reading (§6.4).
#### What rastrillo needs
@@ -576,12 +583,16 @@ Checked against the version Fichas pins (`v0.35.1-0.20261116213651-96812beacacc`
| # | What | Why rastrillo, not Fichas | Needed by |
|---|---|---|---|
-| R1 | `{{number $L x}}` reads the packs: a canonical decimal string formatted exactly, with options for grouping, minimum fraction digits and percent. The packs gain the plain-number group mark and the percent pattern | rastrillo's money spec lists "`{{number}}` and dates reading the packs" as its own follow-on (§13, decision 7), with `x/text`'s drift from CLDR recorded (Appendix A.5) | Phase 2, before the grammar. Until then, the float bridge above |
+| R1 | `{{number $L x}}` reads the packs: a canonical decimal string formatted exactly, with options for grouping, minimum fraction digits and percent. The packs gain the plain-number group mark and the percent pattern | rastrillo's money spec lists "`{{number}}` and dates reading the packs" as its own follow-on (§13, decision 7), with `x/text`'s drift from CLDR recorded (Appendix A.5) | Phase 2, before the grammar. Until then, ungrouped values from the pack's decimal mark (above) |
| R2 | A plain number reading: `number.ParseNormalized(locale, s) (string, error)` returning the canonical decimal, a strict `number.Parse`, an `AmbiguousError` with `Choices`, and `form.Number` (`LocaleEcho`, `Strict`, `Stored`) with a `field-number` partial | It is money's §5.1 with no currency and no exponent, so it shares `currency`'s tokenizer, conventions and groupings rather than copying them; a copy in Fichas would drift from money's, and one table would read `1.500` two ways. rastrillo's money spec lists "a plain numeric field kind" as follow-on work too | Phase 2's grammar. Built first, on a rastrillo branch, reviewed there and pinned |
| R3 | CLDR's date and time patterns in the packs (medium date, short time, hour cycle), and `{{date $L t}}` and `{{datetime $L t zone}}`, with month and day names from the identity's catalog | The same packs, the same follow-on | Nothing blocks on it. Until it lands, words (above) |
| R4 | The formatting-locale negotiation above, for a one-language app: `rastrillo.FormatLocaleFor(r, fallback)` | Every Oficina app has one language and readers in several countries | Nothing blocks on it. Fichas carries its own (about 30 lines) and switches when it lands |
-**Phase 1 reads numbers without R2.** Phase 1 edits today's kinds in place, Number among them, before the grammar. Its interim reading is the **strict** one, the reader's own convention only, as rastrillo's `Strict` money fields read: digits, the locale's group mark only at valid group positions, its decimal mark at most once, and a leading minus. One convention means one reading, so it cannot be ambiguous; it never rounds, and it writes the canonical form. It is built on rastrillo's locale data (`locales.Resolve` and `locales.Data`), in one file, and is deleted when R2 lands in Phase 2. Anything it refuses gets "Enter a number, like 1200,5" in the reader's format. A test holds that every number Fichas draws, in every linked locale, reads back through it as the same value.
+**Phase 1 reads numbers without R2.** Phase 1 edits today's kinds in place, Number among them, before the grammar. Its interim reading is the **strict** one, the reader's own convention only, as rastrillo's `Strict` money fields read, on the same pack data Phase 1 draws numbers from:
+- digits (ASCII, or the locale's own ten); the pack's ordinary decimal mark (`Decimal`) at most once; and a leading minus;
+- the pack's group mark (`CurrencyGroup`, the only one the packs carry until R1) only at valid group positions of the pack's grouping, and **not at all** where that mark is also a decimal mark in the locale (`CurrencyGroup` equal to `Decimal`, or `CurrencyDecimal` differing from `Decimal`, as in `fr-CH`). So `1,200` from an English reader is 1200, and no mark is ever read both ways.
+
+One convention means one reading, so it cannot be ambiguous; it never rounds, and it writes the canonical form. Phase 1 draws numbers without group marks, so nothing it draws depends on the group mark being read right. It is built on rastrillo's locale data (`locales.Resolve` and `locales.Data`), in one file, and is deleted when R2 lands in Phase 2. Anything it refuses gets "Enter a number, like 1200,5." in the reader's format. A test holds that every number Fichas draws and every seed, in every linked locale, read back through it as the same value.
---
@@ -818,7 +829,7 @@ The importer's §17 sketches phase 2. This level-up gives it each thing it asks
|---|---|---|
| `title` | the title field | — |
| `rich_text` | Text, or Long text over one line | — |
-| `number` | Number with Notion's format; a currency format becomes **Money** in that currency. If any row holds more decimal places than the currency allows, the field falls back to Number with `decimals`, and the report says so. Notion's API gives a JSON number, written in canonical form: no locale reads it (§6.8) | the sketch left format open |
+| `number` | Number with Notion's format; a currency format becomes **Money** in that currency. If any row holds more decimal places than the currency allows, the field falls back to Number with `decimals`, and the report says so. Notion's API gives a JSON number, decoded as `json.Number` (never through a `float64`, which is inexact past 15 digits), exponents expanded, and written in canonical form: no locale reads it (§6.8) | the sketch left format open |
| `select` | Choice, colours as tones | — |
| `status` | Choice, marked as the type's status | — |
| `multi_select` | **Multi-select** | was Text |
@@ -934,14 +945,14 @@ Each phase after that is its own branch from `main`, with mock-ups checked again
7. The card beside the list, J and K, Next and Previous across pages (§5.4).
8. The value window (Q11): its length, the sweep that erases payloads past it, and History on the card (§5.5).
9. Phones: the list of rows and the edit sheet (§5.8).
-10. **Formats** (§6.8): `locales/modern`, `FICHAS_LOCALE`, the formatting locale from the browser, `$L` in every template, and every count, number and date Phase 1 draws written through it (the float bridge for numbers, words for dates). Number cells read input with the interim strict reading, with the echo and the unchanged-seed rule.
+10. **Formats** (§6.8): `locales/modern`, `FICHAS_LOCALE`, the formatting locale from the browser, `$L` in every template, and every count, number and date Phase 1 draws written through it (counts through `{{number $L}}`, number values ungrouped with the pack's decimal mark, dates in words). Number cells read input with the interim strict reading, with the echo and the unchanged-seed rule.
11. Gates LU3, LU4, LU5, LU9, LU10, LU11 and LU17 for this phase.
**Phase 2: saved views.**
1. `[estilo-float]` in estilo, if it has not landed (§3.4).
2. **Option ids** (§6.2): the boot reconcile from labels to ids, retired options, and filters by id. Views must never be saved holding labels.
3. **The team's zone and numbers,** which views filter and sort on: `FICHAS_TIME_ZONE` with embedded tzdata, the number grammar, its canonical form and its reconcile (card values only), and exact decimal comparison (§6.2).
- - **First, rastrillo's R1 and R2** (§6.8), on a rastrillo branch with its own review, then pinned. The number reading becomes R2's, the interim strict reading is deleted, and number values are drawn by R1 rather than the float bridge.
+ - **First, rastrillo's R1 and R2** (§6.8), on a rastrillo branch with its own review, then pinned. The number reading becomes R2's, the interim strict reading is deleted, and number values are drawn by R1, grouped, rather than ungrouped from the pack's decimal mark.
- The Formats page and its cookie (§6.8), and search by value (§6.4).
4. The `views` table, `SeedViews`, `viewFor` with `scope.Owned`, the `fichas-views` cookie, the columns cookie retired (§4.3, §4.6, §4.8).
5. The URL grammar: sections, per-kind values, `parse` and `href`, the redirect from today's parameters, the 4,000-byte rule and `POST /t/{type}/preview` (§4.9).
@@ -986,7 +997,7 @@ Each phase after that is its own branch from `main`, with mock-ups checked again
- The edit form is all or nothing on a conflict.
- Undo restores only fields that still hold the event's after value, names the ones it left, logs with `trigger_id`, and refuses (404) a `created` event, another person's event, an entry, a reconcile's change and an event whose payload was erased. Undo skips a removed file and an unknown option id, and says so; it may put back a retired option. Redo names an Undo's event, by the same person.
- A view's Undo and Restore follow the same rules.
-- **LU5, a GET writes nothing.** A logical dump of every table is unchanged across every list layout, every panel state, the caption's links, `POST /t/{type}/preview`, the card beside the list, History, Manage views, the designer's GET steps, and file serving (200, 304 and 404).
+- **LU5, a GET writes nothing.** A logical dump of every table is unchanged across every list layout, every panel state, the caption's links, `POST /t/{type}/preview`, `POST /t/{type}/apply`, the card beside the list, History, Manage views, the designer's GET steps, and file serving (200, 304 and 404).
- **LU6, the query engine.** For each kind and operator, a property test compares the index's answer with a naive reference over random cards: filters, all and any, a retired option still matching, a condition naming an unknown option id or a removed field (no cards under "all"), relative dates in the team's zone, "me", sorts with empty values last and stable ties, exact decimal and money order, groups with multi-valued cards in each group. Dates: date-only against timed values on the same day, inclusive ends, "next N days" across midnight, and the two DST changes in Europe/Dublin.
- **LU7, the URL and the log.** `parse(href(s)) = s` over random states. A section present in the URL replaces the view's section whole; `f=none` clears. Unknown keys, unsuited operators and unknown option ids are dropped. Today's parameters redirect to the canonical URL. A state past 4,000 bytes never becomes a URL. **The app's log never contains a query string, a value or a file name:** a test captures the log over a filtered list, a 409 conflict, a 500 (an injected store failure), a 404, a sign-in redirect carrying `return_to`, and an upload, and greps for the canaries.
- **LU8, view scope.** Ana's personal view is invisible to Bo on every view route: the switcher's HTML, Manage views, open (`?v=`, the same status, headers and body as a key that never existed and as a deleted one), save, rename, reorder, delete, history, restore, undo and the scope move. A team view changed by Bo is logged with Bo as actor, and Restore brings back the previous payload. A view made a team view shows no history from before that event to anyone but its owner, and that scope move cannot be undone or restored past. Team to personal is refused. A stale save is refused. The type's last team view cannot be deleted. A name may repeat.
@@ -1010,11 +1021,12 @@ Each phase after that is its own branch from `main`, with mock-ups checked again
- **LU16, links.** A link value is never printed. A linking card shows a target's rename at once, in its cell, its sort, its group and its search, with no write to the linking card. Deleting a target bumps each linking card's revision in the same transaction, with one event each; S2 then answers `STALE` for the old revision and S3's text leaves the target out. Backlinks follow every change to a link value. A link to a card of the wrong type, or to a gone card, is refused. The delete's bump moves neither `updated_at` nor "Edited by".
- **LU17, formats.**
- - **Drawn in the reader's format.** Rendered under `Accept-Language: de-DE`, the table, the card, the narrowed list, History, the toast and the conflict message show a count as `1.234` and 1200.5 as `1.200,5`; under `en-IE`, `1,234` and `1,200.5`. A value past the float bridge shows canonical, never rounded. No template calls a locale function without `$L`, and `commas` is gone.
+ - **Drawn in the reader's format.** Rendered under `Accept-Language: de-DE`, the table, the card, the narrowed list, History, the toast and the conflict message show a count as `1.234` and a Number of 1200.5 (format `plain`, which is every Number until Phase 4) as `1200,5`; under `en-IE`, `1,234` and `1200.5`. From R1 (Phase 2), the same with `grouped`: `1.200,5` and `1,200.5`. A 30-digit value shows every digit. No template calls a locale function without `L`, and `commas` is gone.
- **Never stored in it.** The same edit posted from a German page and from an English page stores the same bytes, logs the same payload, and leaves the URL, `was`, S3's text and memoria's copy identical.
- **Which locale.** Accept-Language's q order is followed; an unlinked or malformed tag is skipped; a bare language matching the team default's yields the team default; nothing usable yields `FICHAS_LOCALE`; an invalid `FICHAS_LOCALE` refuses boot. The chosen cookie wins (Phase 2).
- **Read in the page's locale.** The echoed locale is used, not the request's; a bad echo is refused and writes nothing. Phase 1's interim reading refuses what is not the locale's own convention and is never ambiguous; Phase 2's R2 refuses `1.500` in English and `1,500` in German with both readings named, takes `1,500` in English and `1.500` in German as 1500, and writes nothing on a refusal.
- - **Round trip.** For every linked locale, every number Fichas draws (grouped and ungrouped, negative, with a fraction) reads back as the same value, and so does every seed.
+ - **Round trip.** For every linked locale, every number Fichas draws (negative, with a fraction, and from R1 grouped) reads back as the same value, and so does every seed.
+ - **Formats never reach a URL.** `xN` holds canonical values only; a typed filter value reaches the URL only through `POST /t/{type}/apply` (Phase 2).
---
@@ -1070,12 +1082,16 @@ Paul approved the spec and Q1–Q12 the same day, and asked whether Fichas uses
| The formatting locale: the person's choice, then `Accept-Language`, then `FICHAS_LOCALE` (default `en-IE`); every pack linked; English words with the reader's formats through `ui.Localizer` | §6.8, §3.2, §10.2 |
| Counts, numbers, money and dates drawn through `$L` everywhere a value shows; dates in words until R3 | §6.8, §4.10, §5.5 |
| Number input read by rastrillo's normalising reading (R2), money by `form.Money` with `LocaleEcho`, dates by `form.Date` from the browser's ISO; the echo, the seed without group marks, the unchanged-seed rule | §6.2, §6.5, §6.8, §5.2, §5.6 |
-| Search matches numbers and money by value in the reader's format | §6.4 |
+| Search matches numbers and money by value, read in the request's locale | §6.4 |
+| Phase 1 draws number values ungrouped from the pack's decimal mark until R1, so drawing and reading share one data source (Fable revision 4, H1) | §6.8, LU17 |
+| Typed filter values are posted and turned into a canonical URL by `POST /t/{type}/apply`, never put in the URL as typed (Fable revision 4, M1) | §4.1, §6.8, LU5, LU17 |
| What rastrillo needs, R1 to R4, and which phase needs each; Phase 1 needs no newer rastrillo and carries an interim strict reading | §6.8, §14 |
| The canonical form, the reconcile, S3's text and the Notion mapping stated as locale-free | §6.2, §6.7, §11 |
| Gate LU17; LU4's unchanged-value case restated per locale | §15 |
| D22, D23 | §16 |
+**Fable's diff check of revision 4** (`36df131`): CHANGES REQUIRED, one High (Phase 1 drew numbers through `x/text` and read them with the packs, whose marks disagree in dozens of locales), four Mediums (typed filter values in the URL; money's `Stored`; the cell edit's body; grouping before Phase 4) and eleven Lows. All folded in above.
+
### Round 1: Fable on revision 1 (`00e3ad3`), CHANGES REQUIRED, answered in revision 2
| Finding | Change | Where |