Skip to content

feat(plugin-activity-guard): add activity entry guards#728

Draft
ENvironmentSet wants to merge 3 commits into
mainfrom
feature/fep-2521
Draft

feat(plugin-activity-guard): add activity entry guards#728
ENvironmentSet wants to merge 3 commits into
mainfrom
feature/fep-2521

Conversation

@ENvironmentSet

Copy link
Copy Markdown
Collaborator

Summary

  • define the Activity Guard contract and architectural decisions for guarding new Activity entries
  • add @stackflow/plugin-activity-guard with typed redirects and ordered and / or combinators
  • preserve push, replace, and fresh initial-entry semantics while re-guarding redirect destinations and leaving reactivation, snapshot load, and step navigation unchanged
  • add strict type/runtime/React integration coverage, package documentation, and a changeset

Verification

  • yarn build
  • yarn typecheck
  • yarn lint
  • yarn workspace @stackflow/plugin-activity-guard typecheck
  • yarn workspace @stackflow/plugin-activity-guard build
  • yarn workspace @stackflow/plugin-activity-guard test --runInBand
  • yarn workspace @stackflow/plugin-activity-guard verify:contract-map
  • yarn workspace @stackflow/plugin-activity-guard verify:type-teeth

ENvironmentSet and others added 3 commits July 12, 2026 20:26
Add typed entry policies that can allow an Activity or replace its target
with a guarded redirect while preserving push, replace, and initial-entry
semantics. Include ordered combinators, package documentation, executable
contract coverage, and release metadata.

Co-authored-by: Codex <noreply@openai.com>
@changeset-bot

changeset-bot Bot commented Jul 13, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: d3f39c0

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@stackflow/plugin-activity-guard Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@coderabbitai

coderabbitai Bot commented Jul 13, 2026

Copy link
Copy Markdown

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: e92935e2-2a20-486c-9488-2289314c7be8

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feature/fep-2521

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.

@pkg-pr-new

pkg-pr-new Bot commented Jul 13, 2026

Copy link
Copy Markdown
  • @stackflow/demo

    yarn add https://pkg.pr.new/daangn/stackflow/@stackflow/plugin-activity-guard@728.tgz
    

commit: d3f39c0

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying stackflow-demo with  Cloudflare Pages  Cloudflare Pages

Latest commit: d3f39c0
Status: ✅  Deploy successful!
Preview URL: https://3ef6accd.stackflow-demo.pages.dev
Branch Preview URL: https://feature-fep-2521.stackflow-demo.pages.dev

View logs

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
stackflow-docs d3f39c0 Commit Preview URL Jul 13 2026, 12:24 AM

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