-
Notifications
You must be signed in to change notification settings - Fork 0
Feat/phase20 memory speak trust #9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 8 commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
5760280
test(20-02): add failing SOLO-01 nickname recall merge tests
moyunzero 2b90608
feat(20-01): extract engageDialogue and overlay speak benchmark
moyunzero 4ec638d
feat(20-02): nickname recall merge + social memory prompt nudge
moyunzero 3807f18
feat(20-03): add verify-phase20 E2E memory helpers and gate script
moyunzero 34c73d6
chore(20-03): register verify:phase20 and agent golden flow GF-10
moyunzero 67ec6fe
fix(20-03): harden phase20 E2E engage, drawer, and B4 benchmark
moyunzero 3c8f86e
fix(game-server): ignore malformed ambient zoneId instead of crashing
moyunzero 2d35183
fix(phase20): harden recall merge and add Agnes/NVIDIA GSD review
moyunzero ee7ab4d
fix(phase20): speak SLA, relay move inject, overlay streaming, and be…
moyunzero 7cfd787
fix(phase20): food recall, relay summon move, and recall overlay flicker
moyunzero f76c7fa
fix(phase20): refresh hot snapshot after apply-actions and harden pas…
moyunzero File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,44 @@ | ||
| /** | ||
| * Compare JS REFUSAL_MARKERS (e2e-memory-helpers) vs Python recall_merge._REFUSAL_MARKERS. | ||
| * Exit 1 on mismatch — run in CI / before verify:phase20. | ||
| */ | ||
| import { readFileSync } from "node:fs"; | ||
| import { dirname, resolve } from "node:path"; | ||
| import { fileURLToPath } from "node:url"; | ||
| import { REFUSAL_MARKERS } from "./lib/e2e-memory-helpers.mjs"; | ||
|
|
||
| const root = resolve(dirname(fileURLToPath(import.meta.url)), ".."); | ||
| const pyPath = resolve(root, "workers/agent-worker/src/graph/recall_merge.py"); | ||
|
|
||
| function parsePythonRefusalMarkers(source) { | ||
| const match = source.match(/_REFUSAL_MARKERS\s*=\s*\(([^)]*)\)/s); | ||
| if (!match) { | ||
| throw new Error(`could not parse _REFUSAL_MARKERS from ${pyPath}`); | ||
| } | ||
| const inner = match[1]; | ||
| const markers = []; | ||
| for (const m of inner.matchAll(/"([^"]+)"/g)) { | ||
| markers.push(m[1]); | ||
| } | ||
| if (!markers.length) { | ||
| throw new Error("_REFUSAL_MARKERS tuple empty or unparseable"); | ||
| } | ||
| return markers; | ||
| } | ||
|
|
||
| function sortedKey(list) { | ||
| return [...list].sort().join("|"); | ||
| } | ||
|
|
||
| const pySource = readFileSync(pyPath, "utf8"); | ||
| const pyMarkers = parsePythonRefusalMarkers(pySource); | ||
| const jsMarkers = [...REFUSAL_MARKERS]; | ||
|
|
||
| if (sortedKey(pyMarkers) !== sortedKey(jsMarkers)) { | ||
| console.error("REFUSAL_MARKERS parity FAILED"); | ||
| console.error("Python:", pyMarkers); | ||
| console.error("JS: ", jsMarkers); | ||
| process.exit(1); | ||
| } | ||
|
|
||
| console.log(`assert-refusal-markers-parity OK (${jsMarkers.length} markers)`); | ||
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.