Extract two-track personalization engine for survey evals#102
Draft
sw1029 wants to merge 2 commits into
Draft
Conversation
| } | ||
|
|
||
| function createInitialState() { | ||
| const sessionId = compactId(); |
| function buildPayload() { | ||
| return { | ||
| schemaVersion: SCHEMA_VERSION, | ||
| sessionId: state.sessionId, |
| return { | ||
| schemaVersion: SCHEMA_VERSION, | ||
| submissionId: `tinyml_${compactId()}`, | ||
| sessionId: state.apiSession?.sessionId ?? localSessionId(), |
| return { | ||
| schemaVersion: SCHEMA_VERSION, | ||
| submissionId: `tutorial_threshold_${compactId()}`, | ||
| sessionId: state.apiSession?.sessionId ?? localSessionId(), |
13 tasks
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.
Summary
.5bridge PR: move the final two-track personalization policy intosrc/recognizer/two-track-personalization-engine.tswhile keeping survey and magic-circle surfaces as callers or preserved references.tinyml-noisy-evalandtutorial-threshold-evalsurvey routes, Vite entries, API validation, and focused tests.Related Issues
Why Needed
Changed Boundaries
src/recognizer/two-track-personalization-engine.tssurvey/tutorial-threshold-eval/,survey/tinyml-noisy-eval/scripts/survey-api-server.mjs,scripts/survey-api-server.d.mtssrc/recognizer/datacard-shape-lab.ts,scripts/*shape*analysis.py,survey/shape-composition-tracing/Handoff
archive/legacy-survey-magic-circle/README.mdas the path map for retained survey and magic-circle references.Verification
npm run validate:docsnpm testnpm test -- survey-api-server.test.ts datacard-shape-lab.test.ts two-track-personalization-engine.test.ts(33 passed)npm run buildnpm test, docs validation, and Unity tests were left for follow-up because this PR intentionally excludes Unity changes and the focused affected tests plus build passed locally.Notes
survey/a50c3bd7cd0f45359c_shape-composition-survey.jsonis a large analysis input artifact, so reviewers should expect the diff to be data-heavy.Review Checklist
Screenshots / Playtest Notes
No screenshot attached for this PR. Local verification covered compile/build and focused recognizer/API tests; Unity and browser playtest artifacts are intentionally outside this split.