Skip to content

docs+skills: document the ADR-0057 data-lifecycle surface (#2786 follow-up) - #2818

Merged
os-zhuang merged 1 commit into
mainfrom
claude/adr-0057-data-lifecycle-azuf45
Jul 11, 2026
Merged

docs+skills: document the ADR-0057 data-lifecycle surface (#2786 follow-up)#2818
os-zhuang merged 1 commit into
mainfrom
claude/adr-0057-data-lifecycle-azuf45

Conversation

@os-zhuang

Copy link
Copy Markdown
Contributor

Follow-up to #2791: the ADR-0057 lifecycle contract shipped with no hand-written docs or skill coverage — anyone modeling an append-only object through the docs or the objectstack-data skill would still build the unbounded-growth bug the ADR exists to prevent. This closes the four real gaps (the docs-drift bot's 104-file list is otherwise indirect references whose content did not become false).

Docs (content/docs/)

  • data-modeling/objects.mdx — new Data Lifecycle (Retention & Rotation) subsection under Enterprise Features (the softDelete/versioning sibling slot): the five classes, three policy examples, per-key table, enforcement rules (non-record must declare a bounding policy; archive.after === retention.maxAge; archive-safety), telemetry-datasource separation, and the governance knobs (lifecycle settings namespace, OS_LIFECYCLE_DISABLED).
  • kernel/services.mdxlifecycle row in the Standard Services table (registered by ObjectQLPlugin, sweep() for on-demand passes).
  • data-modeling/drivers.mdx — SQLite space reclamation (auto_vacuum=INCREMENTAL + reclaimSpace()) and physical table rotation under the SQLite section, with PG/MySQL fallback semantics.
  • deployment/production-readiness.mdx — go-live checklist item: review the default retention windows (activity 14d, job runs 30d, notifications 90d, audit 90d-hot), set tenant retention_overrides, and register an archive datasource if compliance requires cold storage.

Skills (skills/objectstack-data, published)

  • New rules/lifecycle.md — the "append-only objects MUST declare lifecycle" rule, class decision tree, ✅/❌ examples, safety semantics, ops table. Explicitly disambiguated from lifecycle hooks (rules/hooks.md), which the skill already used the word "lifecycle" for.
  • SKILL.mdlifecycle row in the object-properties table + Quick Reference link.

Verification

Docs/skills only — no runtime change; skip-changeset applies.

Refs #2786.

🤖 Generated with Claude Code

https://claude.ai/code/session_01BNBzMWmSECrbiEDdVzwBt3


Generated by Claude Code

…ow-up)
The lifecycle contract shipped in #2791 with no hand-written docs or skill
coverage — anyone modeling an append-only object through the docs or the
objectstack-data skill would still build the unbounded-growth bug the ADR
exists to prevent. Four gaps closed:
- data-modeling/objects.mdx: "Data Lifecycle (Retention & Rotation)" under
Enterprise Features — classes, three valid policy examples (each verified
against the real LifecycleSchema parse), enforcement rules, archive
safety, telemetry-datasource separation, and the governance knobs.
- kernel/services.mdx: `lifecycle` row in the Standard Services table.
- data-modeling/drivers.mdx: SQLite space reclamation (auto_vacuum +
reclaimSpace) and physical table rotation; PG/MySQL fallback semantics.
- deployment/production-readiness.mdx: go-live checklist item — review the
default retention windows / tenant overrides / archive datasource before
launch.
- skills/objectstack-data: new rules/lifecycle.md (decision tree,
correct/incorrect examples, ops table) + SKILL.md property-table row and
Quick Reference link, explicitly disambiguated from lifecycle *hooks*.
Docs/skills only — no runtime change, no changeset (skip-changeset).
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BNBzMWmSECrbiEDdVzwBt3
@vercel

vercelBot commented Jul 11, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

ProjectDeploymentActionsUpdated (UTC)
specReadyReadyPreview, CommentJul 11, 2026 2:21am

Request Review

@github-actionsgithub-actionsBot added documentation Improvements or additions to documentation size/m labels Jul 11, 2026
@os-zhuangos-zhuang added the skip-changeset PR has no user-facing published change; bypasses the changeset gate label Jul 11, 2026 — with Claude
@os-zhuang
os-zhuang marked this pull request as ready for review July 11, 2026 02:47
@os-zhuang
os-zhuang merged commit adabe80 into mainJul 11, 2026
18 checks passed
@os-zhuang
os-zhuang deleted the claude/adr-0057-data-lifecycle-azuf45 branch July 11, 2026 02:47
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentationImprovements or additions to documentationsize/mskip-changesetPR has no user-facing published change; bypasses the changeset gate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@os-zhuang@claude