Repository navigation
fix(tier3): hash authored repository context files for baseline reuse #726
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
rng1995
merged 15 commits into
NVIDIA:main
from
Afloat16:fix/hash-authored-repo-context-files
Nov 23, 2026
Merged
Changes from 6 commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
ca35cc1
fix(tier3): hash authored repository context files for baseline reuse
Afloat16 a6a8443
Merge branch 'main' into fix/hash-authored-repo-context-files
chrisknvidia 7dfc831
Merge main to resolve release note conflict in PR #726
Afloat16 2a732ab
Merge latest main to resolve release note conflict in PR #726
Afloat16 4fccdc7
fix(tier3): reserve native repository context metadata
Afloat16 899facc
Merge main and resolve Unreleased changelog conflict
Afloat16 440ee81
Merge main into fix/hash-authored-repo-context-files
Afloat16 65ad5f1
chore: integrate main and retain unreleased fixes
Afloat16 f866a44
chore: integrate latest SkillSpector diagnostics from main
Afloat16 a0f6e65
chore: merge main and preserve the PR release note
Afloat16 8ab320a
Merge main into fix/hash-authored-repo-context-files
rng1995 4840e48
fix(tier3): name the native case in the repo-context.json rejection a…
rng1995 671e00b
Merge main into afloat/pr-726
rng1995 e857f43
Merge main into afloat/pr-726
rng1995 0c24682
Merge branch 'main' into fix/hash-authored-repo-context-files
rng1995 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,38 @@ | ||
| # SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| """Only the generated repository-context metadata is excluded from task identity.""" | ||
|
|
||
| from pathlib import Path | ||
|
|
||
| import pytest | ||
|
|
||
| from skillevaluator.tier3.baseline_store import baseline_task_tree_digest | ||
|
|
||
|
|
||
| @pytest.mark.parametrize( | ||
| "relative", | ||
| ["repo-context.json", "repo/repo-context.json", "environment/files/repo-context.json", "tests/repo-context.json"], | ||
| ) | ||
| def test_authored_context_filename_changes_baseline_task_identity(tmp_path: Path, relative: str) -> None: | ||
| task = tmp_path / "case-001" | ||
| fixture = task / relative | ||
| fixture.parent.mkdir(parents=True) | ||
| fixture.write_text('{"expected": "first"}', encoding="utf-8") | ||
| original = baseline_task_tree_digest({"codex": [task]}) | ||
|
|
||
| fixture.write_text('{"expected": "second"}', encoding="utf-8") | ||
|
|
||
| assert baseline_task_tree_digest({"codex": [task]}) != original | ||
|
|
||
|
|
||
| def test_generated_context_metadata_remains_outside_baseline_task_identity(tmp_path: Path) -> None: | ||
| task = tmp_path / "case-001" | ||
| metadata = task / "environment" / "repo-context.json" | ||
| metadata.parent.mkdir(parents=True) | ||
| metadata.write_text('{"staged_path": "first-run"}', encoding="utf-8") | ||
| original = baseline_task_tree_digest({"codex": [task]}) | ||
|
|
||
| metadata.write_text('{"staged_path": "second-run"}', encoding="utf-8") | ||
|
|
||
| assert baseline_task_tree_digest({"codex": [task]}) == original |
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.