chore: add MIT LICENSE file#99
Merged
Merged
Conversation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
chlowell
approved these changes
Mar 5, 2026
chlowell
pushed a commit
to chlowell/waza
that referenced
this pull request
Mar 5, 2026
…rosoft#158) Closes microsoft#99 Adds a `diff` grader type that compares post-execution workspace state against expected file snapshots and diff fragments. **What it does:** - **Snapshot matching**: Compares a workspace file byte-for-byte against a fixture file - **Contains-line checking**: Validates that specific line fragments appear (`+` prefix) or are absent (`-` prefix) in workspace files - **Proportional scoring**: Each check (existence, snapshot, contains) contributes equally to the final score - **Path safety**: Reuses `validatePathInWorkspace` from file grader to prevent path traversal **YAML config format:** ```yaml graders: - type: diff params: expected_files: - path: src/main.go snapshot: fixtures/expected/main.go - path: src/utils.go contains: ["+func NewHelper", "-func oldHelper"] ``` **Files changed:** - `internal/graders/diff_grader.go` — New grader implementation - `internal/graders/grader.go` — Registered in `Create` factory - `internal/models/outcome.go` — Added `GraderKindDiff` constant All existing tests pass. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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.
Adds MIT LICENSE file.
Replaces #71 (closed — had leaked content from other branches).