Skip to content

chore: add MIT LICENSE file#99

Merged
github-actions[bot] merged 1 commit into
mainfrom
chore/add-license
Mar 5, 2026
Merged

chore: add MIT LICENSE file#99
github-actions[bot] merged 1 commit into
mainfrom
chore/add-license

Conversation

@spboyer

@spboyer spboyer commented Mar 5, 2026

Copy link
Copy Markdown
Member

Adds MIT LICENSE file.

Replaces #71 (closed — had leaked content from other branches).

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@spboyer spboyer requested a review from chlowell as a code owner March 5, 2026 15:47
Copilot AI review requested due to automatic review settings March 5, 2026 15:47
@github-actions github-actions Bot enabled auto-merge (squash) March 5, 2026 15:47

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds an MIT LICENSE file at the repository root to clearly define the project’s licensing terms.

Changes:

  • Introduces a new LICENSE file containing the MIT License text.
  • Sets the copyright holder to Microsoft Corporation.

Comment thread LICENSE
@spboyer spboyer added the type:chore Maintenance, refactoring, cleanup label Mar 5, 2026
@github-actions github-actions Bot merged commit a75477e into main Mar 5, 2026
10 checks passed
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type:chore Maintenance, refactoring, cleanup

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants