@ai-matrx/records 0.58.2 → 0.58.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,12 +1,73 @@
1
1
  # Changelog — @ai-matrx/records
2
2
 
3
- ## 0.58.2
3
+ ## 0.58.6 (2026-09-24 — published by PUBLISH-SWEEP-5)
4
+
5
+ 0.58.5 (the release run's automatic tag, run 36082256533) never reached npm: the live census found
6
+ the store raising `XX000`, which STORE-TAILS-3 removed at the source (below). This release carries
7
+ S5-PRIME's and S5-PRIME-2's inbox doors, which records-ui 0.85.7 needs, so it publishes first.
8
+
9
+ ### Lane STORE-TAILS-3 (2026-09-25)
10
+
11
+ * **`42P17` is mapped to `refused_by_rule`**: the store refuses, by name, a formula / lookup /
12
+ rollup that would read itself round a circle (on declare and edit), and refuses a circle stored
13
+ before that rule when it is worked out (applied to production 2026-09-25 02:51 UTC).
14
+ * **No door raises `XX000` any more**: `custom._view_key_value` judges `filters` and refuses a
15
+ store-written or unknown view setting as a named `22023` (applied 03:02 UTC). The live census
16
+ clause "maps every refusal class the store actually raises" is green again.
17
+ * **The live suite's no-standing clause reads its stranger organization from the write target**:
18
+ a typed production id that the rehearsal branch does not hold made the FIXTURE answer 23503
19
+ (`knob_override_organization_id_fkey`) before the door ever ran; the door itself answers 42501
20
+ on every target (measured on the branch and read-only on production).
21
+ * `src/store.generated.ts` regenerated against the live store (686 doors; new server-only helpers
22
+ `archive_event_of`, `far_value`, `record_value_one`, `field_cycle`,
23
+ `field_context_policy_floor`, `context_policy_rank`). No consumer action.
24
+
25
+ ### Lane S5-PRIME-2 (2026-09-24)
26
+
27
+ * **Snooze and clear, as one person's own inbox state** (uichamp_s5b + uichamp_s5b2, applied to
28
+ production 2026-09-25 02:13 UTC): `inboxSnooze({ item_id, until })`, `inboxUnsnooze`,
29
+ `inboxClear` (a decision still owed is refused, SQLSTATE 55000, "This one needs a decision"),
30
+ `inboxUnclear`, and `inboxCounts({ everyOrganization })` — waiting / snoozed / cleared / overdue
31
+ per organization, counted by the same predicate the inbox lists with (the shell badge's number).
32
+ Types `WorkInboxView`, `InboxStateChange`, `InboxCounts`.
33
+ * **`workInbox({ view })`**: `"inbox"` (default) hides what this person snoozed or cleared,
34
+ `"snoozed"` lists what they put off (soonest back first), `"done"` what they cleared.
35
+ `WorkInboxItem` gains `snoozed_until`, `cleared_at`, `snoozed_count`, `cleared_count`.
36
+ * **`P0002` is mapped to `not_found`**: the inbox doors answer it for an id that is not in this
37
+ person's inbox (an invented id, somebody else's item and another organization's alike).
38
+ * `src/store.generated.ts` regenerated against the live store (679 doors, knob
39
+ `inbox_reminder_after_days`).
40
+
41
+ ### Lane S5-PRIME (2026-09-24)
42
+
43
+ * **`WorkInboxItem` carries the table and, when closed, who decided it and when**: `table_id`,
44
+ `table_name`, `decided_by`, `decided_by_name`, `decided_at`, `outcome` — the six columns
45
+ `custom.work_inbox` now answers (uichamp_s5, applied to production 2026-09-25 01:07 UTC).
46
+ * **`WorkApprovalState`** = `pending | approved | declined | withdrawn`. `withdrawn` is the store's
47
+ own close: archiving a record or table withdraws the approvals waiting on it, with the reason.
48
+ * **`WorkDecideVerdict` gains `archived`**: `work_decide_many` answers it when the thing an approval
49
+ would change is archived (SQLSTATE 55000 from `work_approval_decide`, sentence names it).
50
+ * `src/store.generated.ts` regenerated against the live store (669 doors).
51
+
52
+ ## 0.58.5
4
53
 
5
54
  Automatic changed-only republish (docs/metadata drift since the last tag — see
6
- `git diff npm/records/v0.58.1..npm/records/v0.58.2 -- apps/shared/records`).
55
+ `git diff npm/records/v0.58.4..npm/records/v0.58.5 -- apps/shared/records`).
7
56
  No source changes intended and no consumer action required.
8
57
 
9
- ## Unreleased — lane SC-1-TAILS (2026-09-24)
58
+ ## 0.58.4 (2026-09-24 — published by PUBLISH-SWEEP-5)
59
+
60
+ **`src/store.generated.ts` is the live main database's catalogue after the 2026-09-24 production
61
+ applies** (666 doors; `a86b902c12`): `table_home` / `table_move`, `portal_form` / `portal_form_submit`,
62
+ `record_aggregate(…, p_compare)`, `pipeline_board`, `plural_of` and the rest now answer instead of
63
+ `door_absent`, and `entity_reference` is a declarable kind. 0.58.3 (the release run's automatic tag,
64
+ run 36079091025) never reached npm: `real-doors` found `portal_form` claimed absent while live, and
65
+ asked for `record_aggregate`'s old eight-argument signature. **`55000` is mapped** to
66
+ `refused_by_rule`: `custom.table_move` raises it when a move the table's present state does not allow
67
+ (a destination that cannot take it, something holding it, contents in a circle) is refused in the
68
+ store's own words and nothing moves.
69
+
70
+ ### Lane SC-1-TAILS (2026-09-24)
10
71
 
11
72
  * **`client.tableHome({ table_id })` and `client.tableMove({ table_id, to_organization_id, expected_version })`** — the
12
73
  store utility for "which organization is this table in, and move it" (`custom.table_home` / `custom.table_move`,
@@ -18,6 +79,18 @@ No source changes intended and no consumer action required.
18
79
  * **Consumer action:** matrx-frontend swaps `features/unified-data/where-it-lives/` for `@ai-matrx/records-ui`'s
19
80
  `WhereItLives` once both are installed. `pnpm records:generate` after the chair applies the doors.
20
81
 
82
+ ## 0.58.3
83
+
84
+ Automatic changed-only republish (docs/metadata drift since the last tag — see
85
+ `git diff npm/records/v0.58.2..npm/records/v0.58.3 -- apps/shared/records`).
86
+ No source changes intended and no consumer action required.
87
+
88
+ ## 0.58.2
89
+
90
+ Automatic changed-only republish (docs/metadata drift since the last tag — see
91
+ `git diff npm/records/v0.58.1..npm/records/v0.58.2 -- apps/shared/records`).
92
+ No source changes intended and no consumer action required.
93
+
21
94
  ## 0.58.1
22
95
 
23
96
  Automatic changed-only republish (docs/metadata drift since the last tag — see
@@ -831,7 +904,6 @@ settings key itself is exempt, since that is where the classification belongs.
831
904
  Both patterns ship in `./use-cases`, so aidream's guard, matrx-frontend's guard and
832
905
  this library's own validator can never disagree about what junk means.
833
906
 
834
-
835
907
  ## 0.28.0
836
908
 
837
909
  **The owner's side of a booking page — the one method that was standing between
@@ -931,7 +1003,6 @@ what `results.ts` says in as many words), a failure with NO code at all is the
931
1003
  network and waits, and everything the door named is a decision that stays.
932
1004
  `isDecided` takes the error, not a code, so either spelling works.
933
1005
 
934
-
935
1006
  ## 0.25.0 — 2026-09-20
936
1007
 
937
1008
  **A crew out in the field, and a phone with no bars (PRODUCTS row 15, P13).**
@@ -953,7 +1024,6 @@ network and waits, and everything the door named is a decision that stays.
953
1024
  until a person fixes it or throws it away. `sync()` answers with per-item
954
1025
  outcomes, never a boolean.
955
1026
 
956
-
957
1027
  ## 0.24.0 — 2026-09-20
958
1028
 
959
1029
  **0.23.0 never reached npm.** Its release run died before any package could be
@@ -966,7 +1036,6 @@ a directory only, which is how a symlink of that name walked past it. This
966
1036
  version is 0.23.0's contents from the repaired tree; a tag is never moved, so
967
1037
  0.23.0 is simply absent from npm.
968
1038
 
969
-
970
1039
  ## 0.23.0
971
1040
 
972
1041
  **A column a model owns — seven doors, and the four states one cell can be in.**
@@ -1048,7 +1117,6 @@ main:
1048
1117
  > while a merge of main was still open, and a tag is never moved. `0.21.0` is
1049
1118
  > the first version that carries both. Nobody should sit on 0.20.0.
1050
1119
 
1051
-
1052
1120
  ## 0.20.0
1053
1121
 
1054
1122
  **"Every new hire gets these twelve steps." — the checklist doors, PRODUCTS row 13.**
@@ -1077,7 +1145,6 @@ THE DEPENDENCY RULE LIVES IN THE STORE, not in these methods: a BEFORE trigger
1077
1145
  on `custom.record` refuses a step reaching Done while a step it waits for is
1078
1146
  open, so `workSetState` meets the same sentence `checklistStepComplete` does.
1079
1147
 
1080
-
1081
1148
  ## 0.19.0
1082
1149
 
1083
1150
  **"Pull my spreadsheet in" — the import doors, and the address a Table can own.**
@@ -1343,7 +1410,6 @@ and the notifier does not: `muted`, and `i_may_mute`.
1343
1410
  client can call. Muting is honoured inside that one reader, so a screen can
1344
1411
  never say a subscription is off while it keeps firing.
1345
1412
 
1346
-
1347
1413
  ## 0.11.0
1348
1414
 
1349
1415
  **The publish gate stops red-lighting on other lanes' migrations.** `the
@@ -1469,7 +1535,6 @@ nothing but the count: the door catalogue is asserted EQUAL to the live store's,
1469
1535
  and other lanes landed a door in the ten minutes between the regeneration and
1470
1536
  the publish. No source change and no consumer action.
1471
1537
 
1472
-
1473
1538
  ## 0.6.1
1474
1539
 
1475
1540
  0.6.0's release gate caught four things the live store had changed since the
@@ -1493,7 +1558,6 @@ contract was generated, and this is all four.
1493
1558
 
1494
1559
  None.
1495
1560
 
1496
-
1497
1561
  ## 0.6.0
1498
1562
 
1499
1563
  **A column can be added.** The store grew the three doors a Field always needed
@@ -1520,7 +1584,6 @@ and this package carries them.
1520
1584
  Nothing breaks. A host that writes Fields with `recordWrite` should move to
1521
1585
  `useFieldMutation().declare` — the old path is the defect, not a deprecation.
1522
1586
 
1523
-
1524
1587
  ## 0.5.2
1525
1588
 
1526
1589
  Automatic changed-only republish (docs/metadata drift since the last tag — see