Skip to content

Enhance translation tests and restructure player schema#2684

Open
robgruen wants to merge 13 commits into
mainfrom
dev/robgruen/flakey
Open

Enhance translation tests and restructure player schema#2684
robgruen wants to merge 13 commits into
mainfrom
dev/robgruen/flakey

Conversation

@robgruen

Copy link
Copy Markdown
Collaborator

Schema parser and type resolution improvements:

  • Added resolveUnionMemberWithField utility and updated checkParamSpecs and getPropertyPartType to support property-path navigation into discriminated union members, allowing parameters like target.trackName to be validated and resolved correctly. [1] [2] [3] [4] [5]
  • Added comprehensive tests for union member field handling, including validation of fields present in some or none of the union members.

Refactoring and unification of music actions:

  • Replaced legacy actions (playTrack, playAlbum, playArtist, playGenre) with unified playMusic and findMusic actions using a discriminated union target parameter, and updated all related logic, including parameter validation and completion. [1] [2] [3] [4] [5] F024fdadL12R12, [6]

Schema and grammar updates:

  • Updated playerSchema.json to use the new parameter paths (e.g., target.trackName) for playMusic and findMusic, and removed obsolete parameter specs and emoji completions for old actions. (F024fdadL12R12, ts/packages/agents/player/src/agent/playerSchema.jsonL64-R63)
  • Updated grammar rules in playerSchema.agr to generate the new unified actions and fixed the resume action mapping. [1] [2]

Codebase cleanup:

  • Removed references to deprecated action types and their handling throughout the codebase to ensure consistency with the new unified approach. [1] [2]

Workflow metadata:

  • Added a job name to the docs generation workflow for clarity.

@robgruen

Copy link
Copy Markdown
Collaborator Author

@copilot resolve the merge conflicts in this pull request.. let's take the "Regenerate docs" name change.

@robgruen robgruen marked this pull request as ready for review July 16, 2026 01:06
@robgruen robgruen enabled auto-merge July 16, 2026 01:06

Copilot AI commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

@copilot resolve the merge conflicts in this pull request.. let's take the "Regenerate docs" name change.

Merged main into the branch — no conflicts. The docs-generate.yml rename to docs-refresh.yml and the name: Regenerate docs job name from main are now included.

@robgruen

Copy link
Copy Markdown
Collaborator Author

@copilot resolve the merge conflicts in this pull request, just take the incoming.

# Conflicts:
#	ts/packages/dispatcher/dispatcher/README.AUTOGEN.md

Copilot AI commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

@copilot resolve the merge conflicts in this pull request, just take the incoming.

Merged main into the branch and took the incoming version for all conflicts (the only conflict was in the auto-generated dispatcher/README.AUTOGEN.md).

…actions

The playerSchema.agr renamed two actions in a prior commit but the variant
fixture grammars and benchmark JSONL were left with the old names:
- `resume` → `resumePlayback`
- `playTrack` (flat params) → `playMusic` (target: { kind, ... } params)

This caused `generateAllDeltas()` to produce 466 spurious deltas (vs the 25
committed rows) because every resume and play-by-artist corpus entry created
a delta between HEAD and each variant.

Changes:
- v1-v9 variant .agr files: Resume rules updated to `resumePlayback`;
  PlaySpecificTrack rules updated to `playMusic` with target-nested params
- player.regression-benchmark.jsonl: 3 v1-lost-transport rows updated
  (actionA.actionName `resume` → `resumePlayback`)
- player.utterances.jsonl: corpus expectedAction fields updated to new names
  (resume → resumePlayback, playTrack → playMusic with new parameter structure)
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.

2 participants