Skip to content

docs: close week-of doc gaps (os publish removal, RLS current_user, search, authz, SDUI, dataset joins, package-first) - #2338

Merged
os-zhuang merged 1 commit into
mainfrom
docs/week-doc-gaps
Jun 26, 2026
Merged

docs: close week-of doc gaps (os publish removal, RLS current_user, search, authz, SDUI, dataset joins, package-first)#2338
os-zhuang merged 1 commit into
mainfrom
docs/week-doc-gaps

Conversation

@os-zhuang

Copy link
Copy Markdown
Contributor

What & why

A documentation-gap audit of ~1 week of changes (298 commits, 3 breaking, 20 new ADRs) found hand-written docs that were either stale/wrong or missing for shipped features. All shapes were verified against the current spec/CLI before writing.

P1 — docs were actively wrong

  • os publish / os rollback removed (feat(cli)!: remove legacy os publish / os rollback commands #2237). Rewrote publish-and-preview.mdx around os package publish (publish → package version → optional --env --install); fixed cloud-deployment, cloud-artifact-api, protocol/objectos/{index,lifecycle}, protocol/objectql/{index,schema}, README, and the platform skill. Migration os rollback is gone too — os migrate plan|apply, forward-only.
  • RLS current_user (ADR-0068).permission.mdx + core-concepts.mdx dropped the removed singular current_user.role / current_user.region; current_user.roles is a string array ('x' in current_user.roles).
  • sharingModel enum (ADR-0055/0056).metadata/object.mdx adds public_read / public_read_write / controlled_by_parent + documents the legacy aliases.

P2 — shipped but undocumented

ADRDocAdded
0061 record searchdata-modeling.mdxsearchableFields + the $search filter operator
0066 unified authzsecurity.mdxsys_capability registry, object access posture, object requiredPermissions
0065 SDUI stylingmetadata/page.mdxresponsiveStyles (preferred styling channel)
0071 dataset joinsanalytics-datasets.mdxmulti-hop dotted paths, ≤3 hops, to-one only
0070 package-firstconcepts/metadata-lifecycle.mdxwritable-base authoring contract

P3 — minor / polish

  • Built-in identity roles (ADR-0068: platform_admin / org_owner / org_admin / org_member) added to security.mdx.
  • auth-sso.mdx: note the per-env @better-auth/sso external-IdP path + features.sso public-config flag (ADR-0069).
  • Status-header correction on ADR-0061 / ADR-0071 (code shipped; headers said "Proposed / nothing implemented").

Scope notes

Verified not gaps (already covered or not yet shipped): ADR-0062, ADR-0057-erp-authz, ADR-0057-data-lifecycle (P0/internal), ADR-0073 (proposed/M2), ADR-0059/0060/0072 (internal). Builds on #2337 (AI-edition docs).

Docs-only. The Build Docs CI job validates the MDX.

🤖 Generated with Claude Code

…search, authz, SDUI styling, dataset joins, package-first
Audit of ~1 week of changes (298 commits, 3 breaking, 20 new ADRs) surfaced
hand-written docs that were stale or missing. All shapes verified against the
current spec/CLI.
P1 — docs were WRONG:
- os publish / os rollback removed (#2237): rewrite publish-and-preview around
`os package publish`; fix cloud-deployment, cloud-artifact-api, protocol
objectos/objectql docs, README, platform skill (migration `os rollback` is gone
too — migrate is plan/apply, forward-only).
- RLS current_user (ADR-0068): permission.mdx + core-concepts dropped the removed
singular `current_user.role` / `current_user.region`; `roles` is a string array.
- sharingModel enum (ADR-0055/0056): object.mdx adds public_read /
public_read_write / controlled_by_parent + legacy aliases.
P2 — shipped but undocumented:
- Record search (ADR-0061): data-modeling — `searchableFields` + `$search`.
- Unified authz (ADR-0066): security — `sys_capability` registry, object `access`
posture, object `requiredPermissions`.
- SDUI styling (ADR-0065): page.mdx — `responsiveStyles` (preferred channel).
- Dataset multi-hop joins (ADR-0071): analytics-datasets — dotted paths, <=3 hops,
to-one only.
- Package-first authoring (ADR-0070): metadata-lifecycle — writable-base contract.
P3:
- Built-in identity roles (ADR-0068) in security; per-env @better-auth/sso +
`features.sso` note in auth-sso (ADR-0069).
- Status-header correction on ADR-0061 / ADR-0071 (code shipped; headers lagged).
Docs-only. Build Docs CI validates MDX.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@vercel

vercelBot commented Jun 26, 2026

Copy link
Copy Markdown

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

ProjectDeploymentActionsUpdated (UTC)
specReadyReadyPreview, CommentJun 26, 2026 6:14am

Request Review

@github-actionsgithub-actionsBot added documentation Improvements or additions to documentation size/m labels Jun 26, 2026
@os-zhuang
os-zhuang merged commit baf689c into mainJun 26, 2026
15 checks passed
@os-zhuang
os-zhuang deleted the docs/week-doc-gaps branch June 26, 2026 06:22
os-zhuang added a commit that referenced this pull request Jun 26, 2026
…eys, dataset include) (#2340)
Browser/dogfood verification of the features documented in #2338 (booted app-showcase,
exercised at runtime) confirmed $search / searchableFields and multi-hop dataset joins
work as documented, but surfaced two doc inaccuracies in #2338 itself:
- page.mdx: responsiveStyles breakpoint keys are `large` / `medium` / `small` / `xsmall`
(desktop-first — `large` is the unconditional base, the rest are max-width overrides)
per ResponsiveStylesSchema, NOT the `xs/sm/md/lg/xl/2xl` axis (those are BreakpointName,
used by layout columns/visibility/order). Verified against the served
showcase_styling_gallery page metadata (key: `large`).
- analytics-datasets.mdx: multi-hop joins must be DECLARED in the dataset's `include`
(joins are derived from include; only declared paths are joinable). Verified live: an
inline dataset on showcase_invoice_line with include:['invoice.account'] + dotted-path
dimension `invoice.account.industry` returns correctly-joined rows.
Docs-only.
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentationImprovements or additions to documentationsize/m

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@os-zhuang