Skip to content

chore: stabilize consumer foundations and align trust documentation - #210

Merged
LadyBluenotes merged 7 commits into
mainfrom
chore/stabilize-consumer-foundations
Aug 8, 2026
Merged

chore: stabilize consumer foundations and align trust documentation#210
LadyBluenotes merged 7 commits into
mainfrom
chore/stabilize-consumer-foundations

Conversation

@LadyBluenotes

@LadyBluenotes LadyBluenotes commented Aug 8, 2026

Copy link
Copy Markdown
Member

Summary

Prepare the current consumer foundation for later accepted-state and delivery work by running the existing integration suite in PR validation, removing stale repository and milestone references, fixing deterministic integration-test output, and aligning trust documentation with shipped behavior.

Why

The PR workflow ran unit, type, lint, docs, and build targets but omitted the existing package-manager, filesystem, PnP, load, scanner, and source-policy integration suite. The docs also described merged intent.skills, name-only source matching, and stronger hook and agent guarantees than the current implementation provides. Correcting this base first keeps later product PRs focused and reviewable.

Changes

  • Add the existing test:integration Nx target to pnpm run test:pr.
  • Remove the unused build:core script that targeted the deleted packages/agents workspace.
  • Remove internal lockfile-milestone wording from the unsupported git: source error and add a patch changeset.
  • Make the human-notice integration assertion independent of agent-environment detection.
  • Remove three unnecessary type assertions that blocked the current PR lint suite.
  • Document nearest-declaration intent.skills, accumulated intent.exclude, kind-specific npm/workspace selectors, package-level permission, and notice behavior.
  • Separate Available, Permitted, Loaded, Delivered, Activated, and Applied, and narrow load and hook guarantees to what Intent can observe.

Non-goals

This preparation PR does not introduce accepted state, intent.lock, snapshots, new delivery modes, symlink delivery, hooks or hook behavior changes, activation, agent target selection, new configuration, new APIs, new commands, automatic prepare changes, registries, hosted services, or new consumer workflows.

Follow-ups

The planned accepted-state PR is the next product step. Delivery, maintainer experience, activation, and stable-release hardening remain separate follow-up work.

✅ Checklist

  • I have followed the steps in the Contributing guide.
  • I have tested this code locally with CI=1 pnpm run test:pr.

🚀 Release Impact

  • This change affects published code, and I have generated a changeset.
  • This change is docs/CI/dev-only (no release).

@coderabbitai

coderabbitai Bot commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

Warning

Review limit reached

@LadyBluenotes, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 36 minutes

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 2f3c3535-2899-4262-8835-3555e0056588

📥 Commits

Reviewing files that changed from the base of the PR and between 06843af and 3c0f6fc.

📒 Files selected for processing (13)
  • .changeset/quiet-sources-rest.md
  • docs/cli/intent-hooks.md
  • docs/cli/intent-install.md
  • docs/cli/intent-list.md
  • docs/cli/intent-load.md
  • docs/cli/intent-setup.md
  • docs/cli/intent-stale.md
  • docs/cli/intent-validate.md
  • docs/concepts/configuration.md
  • docs/concepts/trust-model.md
  • docs/getting-started/quick-start-consumers.md
  • docs/getting-started/quick-start-maintainers.md
  • docs/overview.md
📝 Walkthrough

Walkthrough

The changes align documentation with source-aware policies, lifecycle boundaries, and observation-based hooks. They also add integration tests to the PR check and update source errors and type handling.

Changes

Intent policy and lifecycle alignment

Layer / File(s) Summary
Source policy and lifecycle rules
docs/concepts/configuration.md, docs/concepts/trust-model.md, docs/cli/intent-list.md, docs/cli/intent-load.md
Documents source-aware allowlisting, inheritance, excludes, notice behavior, lifecycle states, and load validation boundaries.
Hook and consumer workflow
docs/cli/intent-hooks.md, docs/getting-started/quick-start-consumers.md
Describes catalog exposure, observation-based edit gates, and limits on Intent verification.
Validation and source handling
package.json, packages/intent/tests/integration/source-policy-surfaces.test.ts, packages/intent/src/shared/utils.ts, packages/intent/tests/staleness.test.ts, packages/intent/src/core/skill-sources.ts, packages/intent/tests/skill-sources.test.ts
Adds integration tests to test:pr, removes unnecessary type assertions, and updates Git-source rejection messages and assertions.

Estimated code review effort: 1 (Trivial) | ~10 minutes

Possibly related PRs

  • TanStack/intent#204: Covers related hook lifecycle, source-policy, and catalog-loading changes.
  • TanStack/intent#207: Also modifies packages/intent/src/shared/utils.ts, but adds different package-root discovery utilities.
🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 33.33% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Title check ✅ Passed The title clearly summarizes the PR's foundation-stabilization work and trust-documentation updates.
Description check ✅ Passed The description explains the changes, motivation, scope, testing, contributing checklist, and release impact.
✨ Finishing Touches 💡 1
📝 Generate docstrings 💡
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chore/stabilize-consumer-foundations

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.

@nx-cloud

nx-cloud Bot commented Aug 8, 2026

Copy link
Copy Markdown

View your CI Pipeline Execution ↗ for commit 2f9f526

Command Status Duration Result
nx run-many --targets=build --exclude=examples/** ✅ Succeeded 2s View ↗

☁️ Nx Cloud last updated this comment at 2026-08-08 16:42:02 UTC

@nx-cloud

nx-cloud Bot commented Aug 8, 2026

Copy link
Copy Markdown

View your CI Pipeline Execution ↗ for commit 2f9f526

Command Status Duration Result
nx run-many --targets=build --exclude=examples/** ✅ Succeeded <1s View ↗

☁️ Nx Cloud last updated this comment at 2026-08-08 17:05:30 UTC

@pkg-pr-new

pkg-pr-new Bot commented Aug 8, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/@tanstack/intent@210

commit: 3c0f6fc

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 3

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@docs/cli/intent-hooks.md`:
- Line 6: The hook documentation uses “available” for policy-filtered skills;
update the session-catalog terminology to “permitted” or “surfaced”
consistently. In docs/cli/intent-hooks.md lines 6 and 20-21, revise both
descriptions; in docs/getting-started/quick-start-consumers.md line 59, apply
the same terminology. Preserve the existing lifecycle distinction between
Available and Permitted.

In `@docs/cli/intent-list.md`:
- Line 19: Update the “What you get” bullet in intent-list.md to describe
--no-notices consistently: suppress non-critical notices while keeping the
acknowledged-risk notice for intent.skills: ["*"] visible.

In `@docs/cli/intent-load.md`:
- Around line 25-26: Update the pre-scan guarantee statements in the intent load
documentation to apply only to package-qualified <package>#<skill> inputs, or
explicitly document when policy and exclude checks occur for unqualified short
skill names. Keep the existing behavior description accurate for both input
forms.
🪄 Autofix

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: c16e3060-082c-4021-a4a1-447c65e6f8ef

📥 Commits

Reviewing files that changed from the base of the PR and between 0513f2d and 2f9f526.

📒 Files selected for processing (10)
  • docs/cli/intent-hooks.md
  • docs/cli/intent-list.md
  • docs/cli/intent-load.md
  • docs/concepts/configuration.md
  • docs/concepts/trust-model.md
  • docs/getting-started/quick-start-consumers.md
  • package.json
  • packages/intent/src/shared/utils.ts
  • packages/intent/tests/integration/source-policy-surfaces.test.ts
  • packages/intent/tests/staleness.test.ts

Comment thread docs/cli/intent-hooks.md
---

`intent hooks install` installs lifecycle hooks that surface available Intent skills and enforce loading matching guidance before edits in supported agents.
`intent hooks install` installs lifecycle hooks that surface available Intent skills and gate supported edit tools until they observe an Intent load command.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🔒 Security & Privacy | 🟡 Minor | ⚡ Quick win

Use the formal lifecycle terminology for the hook catalog.

The trust model defines Available as discovered and Permitted as allowed by intent.skills and intent.exclude. The hook catalog is policy-filtered, so calling it “available” can imply that unlisted skills are surfaced.

  • docs/cli/intent-hooks.md#L6-L6: replace “available Intent skills” with “permitted” or “surfaced” skills.
  • docs/cli/intent-hooks.md#L20-L21: describe the session catalog as containing permitted or surfaced entries.
  • docs/getting-started/quick-start-consumers.md#L59-L59: use the same terminology for the session catalog.
📍 Affects 2 files
  • docs/cli/intent-hooks.md#L6-L6 (this comment)
  • docs/cli/intent-hooks.md#L20-L21
  • docs/getting-started/quick-start-consumers.md#L59-L59
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@docs/cli/intent-hooks.md` at line 6, The hook documentation uses “available”
for policy-filtered skills; update the session-catalog terminology to
“permitted” or “surfaced” consistently. In docs/cli/intent-hooks.md lines 6 and
20-21, revise both descriptions; in
docs/getting-started/quick-start-consumers.md line 59, apply the same
terminology. Preserve the existing lifecycle distinction between Available and
Permitted.

Comment thread docs/cli/intent-list.md Outdated
Comment thread docs/cli/intent-load.md
@LadyBluenotes
LadyBluenotes merged commit bb18ee0 into main Aug 8, 2026
9 checks passed
@LadyBluenotes
LadyBluenotes deleted the chore/stabilize-consumer-foundations branch August 8, 2026 17:09
@github-actions github-actions Bot mentioned this pull request Aug 8, 2026
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