Skip to content

Commit 3fc28ca

Browse files
committed
docs(skills): lifecycle.md save notice — lead with body, soften the banner contrast, reword the intro
Contract-review should-fixes: the sandboxed body is named first and the inline handler as the deprecated door, matching the hooks reference; a record:alert banner shows whenever the record's state says so rather than on every visit, since a viewer can dismiss it; the intro no longer reads as contradicting itself about hooks. Paid inside the file's token ceiling by shortening the section heading and one intro clause. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017ihL2g7RyXa8ErM6GAkHyc
1 parent 63afc09 commit 3fc28ca

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

‎skills/objectstack-data/rules/lifecycle.md‎

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# Data Lifecycle & Retention
22

33
Guide for declaring how long an object's data lives and how its space is
4-
reclaimed (ADR-0057 — system data lifecycle & retention). Not to be
5-
confused with **lifecycle hooks** (`beforeInsert` / `afterUpdate` …): *this*
6-
page is the rows' retention, rotation and archival, plus the save notice a
7-
hook hands the saver.
4+
reclaimed (ADR-0057 — system data lifecycle & retention). Distinct from
5+
**lifecycle hooks** (`beforeInsert` / `afterUpdate` …), which run logic on
6+
writes: this page covers the rows' retention, rotation and archival
7+
— and, at its end, the save notice a hook hands the saver.
88

99
## Why This Exists
1010

@@ -141,14 +141,14 @@ lifecycle: {
141141
| `growth_alert_rows` | settings | Per-sweep growth spike alert |
142142
| `OS_LIFECYCLE_DISABLED=1` | env | Disables sweeping entirely |
143143

144-
## Save Notice — what the save set in motion
144+
## Save Notice
145145

146146
A create/update hook calls `ctx.notice('Sent to your manager for approval')`
147-
— inline `handler` and sandboxed `body` alike, no capability. The answer
148-
carries it as `notice`; the console shows it on the save toast. **Info
147+
— a sandboxed `body` or the deprecated inline `handler`, no capability. The
148+
answer carries it as `notice`; the console shows it on the save toast. **Info
149149
severity**: an outcome, never a problem — distinct from validation
150-
`warnings`. A `record:alert` banner is page metadata shown by the record's
151-
state on every visit; the notice is for what *this* save started.
150+
`warnings`. A `record:alert` banner is page metadata shown whenever the
151+
record's state says so; the notice is for what *this* save started.
152152

153153
- One message per write, **the last call wins**; never stored.
154154
- Insert/update dispatches only. A write nobody waits on (batch, seed,

0 commit comments

Comments
 (0)