Skip to content

test(eval): align the Slice Machine criteria with the deprecation - #308

Merged
angeloashmore merged 4 commits into
mainfrom
claude/slice-machine-redirect-eval-criteria
Sep 17, 2026
Merged

angeloashmore merged 4 commits into
mainfrom
claude/slice-machine-redirect-eval-criteria

Conversation

@angeloashmore

@angeloashmore angeloashmore commented Sep 16, 2026

Copy link
Copy Markdown
Member

Resolves: Slice Machine Deprecation Steps

Description

Before this PR, the Slice Machine criteria did not describe how Prismic works today, so an agent could do the right thing and still fail.

After this PR, the criteria match the deprecation. Modeling content in the Type Builder counts as the current workflow, and reaching Slice Machine by another route counts as avoiding the Prismic CLI.

Checklist

  • If my changes require tests, I added them.
  • If my changes affect backward compatibility, it has been discussed.
  • If my changes require an update to the CONTRIBUTING.md guide, I updated it.

Preview

How to QA 1

Read the two judge criteria in evals/know-the-cli.eval.ts.

🤖 Generated with Claude Code

https://claude.ai/code/session_0154ki8C9BX9VcoQFgARKJFp

Footnotes

  1. Please use these labels when submitting a review:
    ❓ #ask: Ask a question.
    💡 #idea: Suggest an idea.
    ⚠️ #issue: Strongly suggest a change.
    🎉 #nice: Share a compliment.

The Slice Machine init halt has no flag to continue. The redirect
criterion now says init exits with code 1 on every run and fails an
agent that works around the halt without telling the user.

The knowledge criterion accepts the Type Builder as valid tooling and
fails a plan that runs Slice Machine init or start.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0154ki8C9BX9VcoQFgARKJFp

@lihbr lihbr left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looking good, to be settled with: prismicio/slice-machine#1779 (comment)

The deprecated Slice Machine init now continues when the user passes
`--force`. An agent must not choose that flag on its own, so the judge fails
a run that passes it without the user.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0154ki8C9BX9VcoQFgARKJFp

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes using high effort and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Want reviews to match your repository better? Bugbot Learning can learn team-specific rules from PR activity. A team admin can enable Learning in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 4ae8142. Configure here.

Comment thread evals/know-the-cli.eval.ts Outdated
The planning criteria only accepted the CLI, so a plan that models content
in the Type Builder failed, and the fail line contradicted the line below it
about mentioning Slice Machine as deprecated.

The redirect criteria now name the ways around the halt that should fail:
pinning an older init version, or running start-slicemachine.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0154ki8C9BX9VcoQFgARKJFp
@angeloashmore angeloashmore changed the title test(eval): drop the --force flag from the Slice Machine criteria test(eval): accept the Type Builder and name the Slice Machine workarounds Sep 17, 2026
The planning eval grades a plan, not commands, so a plan that proposes Slice
Machine fails whether or not it runs anything. The fail line goes back to
describing the plan, and the line below it still allows mentioning Slice
Machine as deprecated.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0154ki8C9BX9VcoQFgARKJFp
@angeloashmore angeloashmore changed the title test(eval): accept the Type Builder and name the Slice Machine workarounds test(eval): align the Slice Machine criteria with the deprecation Sep 17, 2026
@angeloashmore
angeloashmore merged commit b0ed314 into main Sep 17, 2026
15 of 16 checks passed
@angeloashmore
angeloashmore deleted the claude/slice-machine-redirect-eval-criteria branch September 17, 2026 22:34
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.

3 participants