Skip to content

docs: audit examples surface#33

Open
flyingrobots wants to merge 13 commits intomainfrom
docs/tr-012-examples-surface-audit
Open

docs: audit examples surface#33
flyingrobots wants to merge 13 commits intomainfrom
docs/tr-012-examples-surface-audit

Conversation

@flyingrobots
Copy link
Copy Markdown
Member

@flyingrobots flyingrobots commented Apr 1, 2026

Summary

  • audit the maintained examples surface and record recommendations in examples/README.md
  • refresh the store/restore example to use the public readManifest() helper instead of service-internal manifest decoding
  • close TR-012 across the Truth planning surface and archive the consumed backlog card

Verification

  • npx prettier --check on touched files
  • git diff --check
  • node examples/store-and-restore.js
  • node examples/encrypted-workflow.js
  • node examples/progress-tracking.js
  • npx eslint .
  • npm test
  • docker compose run --build --rm test-node npx vitest run test/integration
  • docker compose run --build --rm test-bun bunx vitest run test/unit
  • docker compose run --build --rm test-bun bunx vitest run test/integration
  • docker compose run --build --rm test-deno deno run -A npm:vitest run test/unit
  • docker compose run --build --rm test-deno deno run -A npm:vitest run test/integration

Summary by CodeRabbit

  • Documentation
    • Examples updated to use public helpers; examples README added audit status and per-file guidance.
    • README streamlined with a concise overview, quick-start demo, and clearer feature/usage notes.
    • Added a comprehensive Markdown surface audit and related design docs clarifying doc placement and priorities.
    • New backlog/design entries and an HTML preview page for project artwork.

@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Apr 1, 2026

📝 Walkthrough

Walkthrough

This PR lands two Truth-cycle audits (TR-012, TR-014), updates examples to use public APIs, adds a repo-wide Markdown surface guidance file, archives completed backlog items, updates design/backlog indexes and changelog, and makes README/asset/CI/Docker doc adjustments.

Changes

Cohort / File(s) Summary
Truth Cycle Design Docs
docs/design/TR-012-examples-surface-audit.md, docs/design/TR-014-markdown-surface-rationalization.md, docs/legends/TR-truth.md
Added two landed TR docs and updated the Truth legend to include them and reflect new focus areas.
Backlog & Archive
docs/BACKLOG/README.md, docs/archive/BACKLOG/README.md, docs/archive/BACKLOG/TR-012-examples-surface-audit.md, docs/archive/BACKLOG/TR-014-markdown-surface-rationalization.md
Moved TR-012/TR-014 into archive/backlog landing entries and fixed relative hyperlink targets.
Markdown Surface Policy
docs/MARKDOWN_SURFACE.md
New repository-maintainer audit mapping of Markdown files with per-file recommendations (KEEP/CUT/MERGE/MOVE) and placement policy.
Examples & Example Scripts
examples/README.md, examples/store-and-restore.js
Audit table and README updates; example script replaced internal manifest decoding with public cas.readManifest() and minor formatting tweaks.
Repository Top-Level Docs
README.md, docs/git-cas-preview.html, docs/...
README rewritten/streamlined (new overview, docs map, badge); added HTML preview page for SVG assets.
CHANGELOG & CI/Docker Notes
CHANGELOG.md, (CI workflows / Docker test-stage referenced in changelog)
Changelog entries added documenting docs/navigation updates, Markdown guidance, examples audit, links to SECURITY/THREAT_MODEL, CI action upgrades and Docker test-stage runtime/user changes.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~12 minutes

Possibly related PRs

Poem

🐰 Hoppity-hop, the docs align,

Roots moved, README trimmed fine,
Examples now use the public gate,
A markdown map to navigate,
Cheer the truth—clear paths we find!

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately summarizes the primary change: auditing the examples surface and recording recommendations, which aligns with the main objective TR-012.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch docs/tr-012-examples-surface-audit

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧹 Nitpick comments (1)
examples/README.md (1)

91-96: Clarify how EventEmitterObserver is passed to ContentAddressableStore.

Line 94 states "Passes it into ContentAddressableStore" but doesn't specify the mechanism. Based on the public API structure, the observer should be passed via the observability option in the constructor options object. Consider making this explicit to prevent confusion.

📝 Suggested clarification
 1. Creates an `EventEmitterObserver`
-2. Passes it into `ContentAddressableStore`
+2. Passes it into `ContentAddressableStore` via the `observability` option
 3. Attaches event listeners to the observer
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@examples/README.md` around lines 91 - 96, The README is ambiguous about how
EventEmitterObserver is provided to ContentAddressableStore; update the text to
state that you must pass the observer via the constructor options object under
the observability property (i.e., new ContentAddressableStore({ ...,
observability: myEventEmitterObserver })), referencing EventEmitterObserver and
ContentAddressableStore so readers know exactly which API to use.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Nitpick comments:
In `@examples/README.md`:
- Around line 91-96: The README is ambiguous about how EventEmitterObserver is
provided to ContentAddressableStore; update the text to state that you must pass
the observer via the constructor options object under the observability property
(i.e., new ContentAddressableStore({ ..., observability: myEventEmitterObserver
})), referencing EventEmitterObserver and ContentAddressableStore so readers
know exactly which API to use.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 58827ad5-a8cb-4ba2-aa96-86cf8056a72e

📥 Commits

Reviewing files that changed from the base of the PR and between 437ce59 and 10b638a.

📒 Files selected for processing (12)
  • CHANGELOG.md
  • docs/BACKLOG/README.md
  • docs/MARKDOWN_SURFACE.md
  • docs/archive/BACKLOG/README.md
  • docs/archive/BACKLOG/TR-012-examples-surface-audit.md
  • docs/archive/BACKLOG/TR-014-markdown-surface-rationalization.md
  • docs/design/README.md
  • docs/design/TR-012-examples-surface-audit.md
  • docs/design/TR-014-markdown-surface-rationalization.md
  • docs/legends/TR-truth.md
  • examples/README.md
  • examples/store-and-restore.js
💤 Files with no reviewable changes (1)
  • docs/BACKLOG/README.md

Copy link
Copy Markdown

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧹 Nitpick comments (1)
docs/BACKLOG/TR-015-platform-agnostic-cli-plan.md (1)

33-34: Tighten wording for readability.

Line 33 can be shortened by replacing “should follow after” with “should follow once” (or just “should follow”) to remove redundancy without changing meaning.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@docs/BACKLOG/TR-015-platform-agnostic-cli-plan.md` around lines 33 - 34,
Replace the phrase "should follow after the runtime boundary is clean" (found in
the sentence on line 33) with a tighter wording such as "should follow once the
runtime boundary is clean" or simply "should follow the runtime boundary is
clean" to remove redundancy; edit the sentence that contains that exact phrase
to use the chosen replacement while preserving original meaning and punctuation.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Nitpick comments:
In `@docs/BACKLOG/TR-015-platform-agnostic-cli-plan.md`:
- Around line 33-34: Replace the phrase "should follow after the runtime
boundary is clean" (found in the sentence on line 33) with a tighter wording
such as "should follow once the runtime boundary is clean" or simply "should
follow the runtime boundary is clean" to remove redundancy; edit the sentence
that contains that exact phrase to use the chosen replacement while preserving
original meaning and punctuation.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: bbcc8f08-16e7-4a01-a78c-8233e081e71e

📥 Commits

Reviewing files that changed from the base of the PR and between 10b638a and 2b0111b.

⛔ Files ignored due to path filters (10)
  • docs/git-cas-clay-loop.svg is excluded by !**/*.svg
  • docs/git-cas-ember-loop.svg is excluded by !**/*.svg
  • docs/git-cas-honey-loop.svg is excluded by !**/*.svg
  • docs/git-cas-ice-loop.svg is excluded by !**/*.svg
  • docs/git-cas-ivory-loop.svg is excluded by !**/*.svg
  • docs/git-cas-moss-loop.svg is excluded by !**/*.svg
  • docs/git-cas-neon-loop.svg is excluded by !**/*.svg
  • docs/git-cas-plum-loop.svg is excluded by !**/*.svg
  • docs/git-cas-slate-loop.svg is excluded by !**/*.svg
  • docs/git-cas.svg is excluded by !**/*.svg
📒 Files selected for processing (6)
  • CHANGELOG.md
  • README.md
  • docs/BACKLOG/README.md
  • docs/BACKLOG/TR-015-platform-agnostic-cli-plan.md
  • docs/git-cas-preview.html
  • docs/legends/TR-truth.md
✅ Files skipped from review due to trivial changes (3)
  • docs/git-cas-preview.html
  • CHANGELOG.md
  • docs/BACKLOG/README.md

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant