Repository navigation
test: drop the assertion for the removed ambiguous-means-task example - #3030
Merged
Merged
Conversation
#3028 removed the 'treat ambiguous requests as tasks' rule and its 'locate the method in the code' example from the default system prompt. The profile test pinned that example verbatim, so it now fails on main. The removal was intentional; update the test to the new contract.
|
commit: |
5 tasks done
7Sageer
added a commit
that referenced
this pull request
Aug 18, 2026
…suites Sweep of the class identified in #3030: assertions pinning the exact English wording of product model-facing text (system prompt, reminder and injection .md files, tool descriptions, shipped profile/skill bodies). They break on any intentional rewording yet only catch regressions that reuse the same words. Across 35 files (~60 test cases, net -1131 lines): - deleted dedicated wording tests: 'exposes current metadata and schema' description pins, goal/plan/todo reminder content tests, tower skill-body prose pins, goal-outcome.test.ts; - trimmed wording assertions from behavioral tests that otherwise stand alone; kept identifiers (tool names, XML tags, section markers), structural properties (wrapping/escaping/gating/cadence), fixture data, tool outputs and error messages; - re-anchored a few gating tests on exported constants (WINDOWS_PATH_HINT, DEFAULT_REPLY_STYLE_GUIDE) instead of prose literals. Deferred for a follow-up decision: ~15 tests whose prose pin is the only discriminator of which reminder/budget-band fired (constants not exported). Wire baselines and snapshot machinery untouched.
7Sageer
added a commit
that referenced
this pull request
Aug 18, 2026
…suites (#3031) * test: replace prose-pinning system-prompt tests with a structural sharing check The two removed tests pinned exact sentences of the default system prompt ('reversibility and blast radius', 'premature abstraction', optional-tool phrasings that must not appear, ...). They broke on any intentional wording change while only catching regressions that reused the same words. The one real contract underneath — shared, ungated sections must render byte-identically in the root agent and every subagent profile — is now checked structurally by slicing the section out of the root prompt and asserting the other profiles contain it, regardless of its wording. * test: remove wording-pinning tests of model-facing prose across both suites Sweep of the class identified in #3030: assertions pinning the exact English wording of product model-facing text (system prompt, reminder and injection .md files, tool descriptions, shipped profile/skill bodies). They break on any intentional rewording yet only catch regressions that reuse the same words. Across 35 files (~60 test cases, net -1131 lines): - deleted dedicated wording tests: 'exposes current metadata and schema' description pins, goal/plan/todo reminder content tests, tower skill-body prose pins, goal-outcome.test.ts; - trimmed wording assertions from behavioral tests that otherwise stand alone; kept identifiers (tool names, XML tags, section markers), structural properties (wrapping/escaping/gating/cadence), fixture data, tool outputs and error messages; - re-anchored a few gating tests on exported constants (WINDOWS_PATH_HINT, DEFAULT_REPLY_STYLE_GUIDE) instead of prose literals. Deferred for a follow-up decision: ~15 tests whose prose pin is the only discriminator of which reminder/budget-band fired (constants not exported). Wire baselines and snapshot machinery untouched.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related Issue
Follow-up to #3028.
Problem
#3028 removed the "treat ambiguous requests as tasks" rule and its
locate the method in the codeexample from the default system prompt.test/profile/default-agent-profiles.test.tspinned that example verbatim (expect(prompt).toContain('locate the method in the code')), so the shard coveringkimi-coreprofile tests fails on main.What changed
Drops the single stale assertion. The removal was intentional product behavior, so the test is updated to the new contract; the remaining example pins (
update the related tests,premature abstraction) still hold. Verified locally:default-agent-profiles+prompt-placeholders+prompt-servicesuites pass (74 tests).No changeset: test-only change.
Checklist
gen-changesetsskill, or this PR needs no changeset.gen-docsskill, or this PR needs no doc update.