Conversation
…matching (#31) Adds a reusable FormattedContent schema for representing a submission's normalized value in multiple, service-defined formats (e.g. latex/sympy for MATH, formatted/ast for CODE), wired into Feedback.response. Also adds Feedback.matchedCase for services with case-based matching. Resolves the response-format ambiguity raised in issue #31. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017yjEAviVJipdWqJ9RgjnSm
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
FormattedContentschema (paths/shared/schemas/FormattedContent.yml) representing a submission's normalized value in multiple, service-defined formats keyed by an arbitrary format id (e.g.latex/sympyfor MATH,formatted/astfor CODE) — resolves the response-format ambiguity raised in Response Definition #31 (Lambda Feedback'sresponseSympy/responseLatexpattern) without hardcoding any specific format names.Feedback.response, and addsFeedback.matchedCase(index into a service-defined case-matching list, e.g. Lambda Feedback'scasesconfig) — both grounded in real example responses from a Lambda-Feedback-compatible service (compareExpressions).mathExampleResponseexample toevaluate.ymldemonstrating both new fields in matched and unmatched states.PreSubmissionFeedback.yml/EvaluateRequest.ymlpointing out that pre-submission preview content comes back viaFeedback.response, not the request-side toggle schema.EvaluateHealthResponse.ymlthat was breaking YAML parsing and blocking lint.Explicitly out of scope (by design): no formal
Cases/Caseschema — case-based matching stays a Lambda-Feedback-specific, informal convention under the free-formconfigurationobject.Closes #31.
Test plan
npm run lintpasses (0 errors; only pre-existing unrelated warnings remain)npm run bundlesucceeds; confirmedFormattedContentand the new fields resolve correctly indist/openapi.yml🤖 Generated with Claude Code
https://claude.ai/code/session_017yjEAviVJipdWqJ9RgjnSm