docs: the reference class, the detector's dot and longer-run rules, composed text masked (WB-partner-15)
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
1 parent
6f68835c3f
commit
be23321971
3 files changed
+94
-32
No files matched your search
+24
-9
@@ -766,11 +766,20 @@ What the books keep of a call, and what a repeat is told:
|
||||
**No tax id in a tool's text** (BS-partner-2, WB-partner-15). Before a write
|
||||
tool runs (a preview included), every string in its arguments is checked once,
|
||||
from one table of every string each write tool takes (`text_fields.rs`; 423
|
||||
strings in 78 tools): *free text* (memos, notes, reasons, descriptions,
|
||||
references, names of classes, projects and periods, a receipt's description,
|
||||
file name and annotations, a decision's or an item's words) is refused when
|
||||
it looks like a tax id (nine digits standing alone, an SSN's 3-2-4 or an
|
||||
EIN's 2-7 grouping, joined by any dash, dot or space); a *party's own field*
|
||||
strings in 78 tools; 109 free text, 18 reference, 27 party field, 2 for the
|
||||
vault, the rest exempt): *free text* (memos, notes, reasons, descriptions,
|
||||
names of classes, projects and periods, a receipt's description and
|
||||
annotations, a discount's reason, a decision's or an item's words) is refused
|
||||
when it looks like a tax id (nine digits standing alone, an SSN's 3-2-4 or an
|
||||
EIN's 2-7 grouping, joined by any dash or space, or by a dot between all of
|
||||
an SSN's groups; a line break is a space and zero-width characters are not
|
||||
counted); a *reference field*, an identifier by nature (an asset's `tag` and
|
||||
`serial`, a bill's `vendor_ref`, an invoice's `customer_ref`, the `reference`
|
||||
of `pay_bill`, `receive_payment` and `mark_sent`, an account's `code`, a
|
||||
`file_name`, an instrument's `label`, where a W-9 or W-4 is `kept_at`), is
|
||||
refused only for the printed 3-2-4 and 2-7 shapes and may hold a bare nine
|
||||
digits, a serial or a check number (the owner's choice of 2026-11-21 as the
|
||||
lead decided it within it); a *party's own field*
|
||||
(a party's or a customer's or vendor's name, the bill-to details, a
|
||||
recipient, an account name) when it holds any run of nine digits; a string
|
||||
that is a lookup key, an id, an amount, a date, a word from a fixed
|
||||
@@ -779,8 +788,11 @@ vocabulary, the last four digits, a bank pattern or a link is exempt, and
|
||||
setting's value or a convention's structured body is read by the engine's own
|
||||
checks (`company.ein` and the `ach` and `wire` routing lines are the only
|
||||
exceptions). An invoice number, a phone number, a reference of ten digits or
|
||||
more, an amount and a date are no tax id. The refusal is in words, names the
|
||||
field ("the name of books.add_class looks like it holds a tax id ..."), says
|
||||
more, an amount, a decimal (`47.6062095`) and a date, even followed by a
|
||||
reference (`2026-11-21 0001234`), are no tax id. The refusal is in words, names
|
||||
the table's own field ("the name of books.add_class looks like it holds a tax
|
||||
id ..."; a key the caller chose is never quoted, it is "an unrecognised field
|
||||
of" the tool), says
|
||||
tax ids are stored only with `books.set_tin` or a W-9 (`books.set_w9`), never
|
||||
repeats the number, writes nothing, and is recorded as refused `tin_in_text`.
|
||||
The same text meets the same check in the engine, so no other caller can
|
||||
@@ -2365,13 +2377,16 @@ posting.
|
||||
digits standing alone, an SSN's or an EIN's shape) is kept masked to its
|
||||
last four digits (`•••-••-1234`), `masked_count` says how many values were
|
||||
masked, `masked` on which lines of the file (`row`, `column`
|
||||
"Description"), and `masked_note` says so in words (WB-partner-15).
|
||||
"Description"), and `masked_note` says so in words (WB-partner-15). A rule
|
||||
matches the description as the bank wrote it, so a pattern keyed on a
|
||||
nine-digit reference still matches; the draft keeps the masked text.
|
||||
- `books.import_chart_csv { upload_id }` → `{ created,
|
||||
count, warnings? }`: creates accounts from
|
||||
`code,name,type,parent_code[,tax_category]` CSV. All-or-nothing; the
|
||||
name and tax category rules are `books.add_account`'s. A chart is typed by
|
||||
a person: a cell that looks like a tax id (a name with any run of nine
|
||||
digits, another cell with a tax id's shape) refuses the whole file,
|
||||
digits, another cell with a tax id's shape; a code may be nine digits, it
|
||||
is a reference) refuses the whole file,
|
||||
naming its row (the file's line) and column, never the number.
|
||||
- Each takes the CSV only as an upload (`books.begin_upload` purpose
|
||||
`import`; UTF-8; D-46). The CSV itself is not filed: file
|
||||
|
||||
Reference in new issue
Block a user