remove-stale-history-export: Remove stale history-file export #2

Open
std-bot wants to merge 1 commit from task/remove-stale-history-export into main
First-time contributor

Assigned idea

Benchmark authoring specification.

Summary: Create a deterministic package-metadata cleanup task based on the changelog note that the agent-sh/agent/history-file subpath export is stale because its source was deleted.

Task intent: Ask the solver to make the package public export map stop advertising the deleted history-file subpath while preserving all other valid exports.

Benchmark plan: Construct the task from the fixed repository commit, then seed a minimal regression by adding back only the stale history-file subpath export in package.json. The solver-facing prompt should cite the changelog behavior and ask for the package metadata to match it. The expected fix is to remove the stale export entry, not to recreate the deleted source file or change documentation.

Environment plan: environment/repo: checkout guanyilun/agent-sh at 9b15bc6a8506601b9904148f043dd7436924a0a5 with Node.js/npm available for package metadata inspection. environment/task: add test_outputs.py outside the upstream source patch area and seed the regression in package.json; do not require network access during verification.

Verifier plan: test_outputs.py should parse package.json and assert that exports has no key equal to ./agent/history-file, no export target string containing agent/history-file or history-file, and that unrelated export keys remain present compared with the seeded fixture. It should fail if the solver adds a replacement source file for the deleted subpath instead of removing the export.

Oracle plan: The oracle solution is a one-file metadata edit: remove the stale ./agent/history-file export entry from package.json and leave the rest of the export map unchanged. The current upstream commit can serve as the reference for the absence of that subpath.

Difficulty plan: Coding systems may overfit to the import path and recreate a deleted module, edit only CHANGELOG.md, or miss nested export target strings in a package export object. The task is small but requires understanding package subpath exports and preserving surrounding manifest structure exactly.

Repo patch scope: Expected upstream edit scope is package.json only, specifically the package exports map entry for the deleted history-file subpath. Do not broaden the fix into source directories or documentation.

Anti-leakage notes: Do not expose solver-facing benchmark, harness, Snorkel, Harbor, std-ts, stage, attempt, retry, generated task, or evaluation context. Avoid the word agent except when the literal upstream package or import path requires it.

Approach: Seed the stale export, provide a concise upstream-style prompt about removing a deleted public subpath, and verify the manifest rather than relying on a broad test suite.

Verification: Run python test_outputs.py from the task root. The verifier must inspect package.json directly and report whether the stale history-file export has been removed without adding a replacement deleted-path source file.

Risk: The main risk is that the actual manifest shape may differ from a simple string export; write the verifier to handle string, array, and object export target forms recursively.

Path rules: task package is tasks/; mutable upstream checkout is tasks//environment/repo; benchmark package files are under tasks//task; verifier/container environment belongs under tasks//task/environment; regular and UI verifier logic belongs in task/tests/test_outputs.py and test.sh only runs that file through pytest.

Agent context

Task slug: remove-stale-history-export
Branch: task/remove-stale-history-export

## Assigned idea Benchmark authoring specification. Summary: Create a deterministic package-metadata cleanup task based on the changelog note that the `agent-sh/agent/history-file` subpath export is stale because its source was deleted. Task intent: Ask the solver to make the package public export map stop advertising the deleted history-file subpath while preserving all other valid exports. Benchmark plan: Construct the task from the fixed repository commit, then seed a minimal regression by adding back only the stale history-file subpath export in `package.json`. The solver-facing prompt should cite the changelog behavior and ask for the package metadata to match it. The expected fix is to remove the stale export entry, not to recreate the deleted source file or change documentation. Environment plan: environment/repo: checkout `guanyilun/agent-sh` at `9b15bc6a8506601b9904148f043dd7436924a0a5` with Node.js/npm available for package metadata inspection. environment/task: add `test_outputs.py` outside the upstream source patch area and seed the regression in `package.json`; do not require network access during verification. Verifier plan: `test_outputs.py` should parse `package.json` and assert that `exports` has no key equal to `./agent/history-file`, no export target string containing `agent/history-file` or `history-file`, and that unrelated export keys remain present compared with the seeded fixture. It should fail if the solver adds a replacement source file for the deleted subpath instead of removing the export. Oracle plan: The oracle solution is a one-file metadata edit: remove the stale `./agent/history-file` export entry from `package.json` and leave the rest of the export map unchanged. The current upstream commit can serve as the reference for the absence of that subpath. Difficulty plan: Coding systems may overfit to the import path and recreate a deleted module, edit only `CHANGELOG.md`, or miss nested export target strings in a package export object. The task is small but requires understanding package subpath exports and preserving surrounding manifest structure exactly. Repo patch scope: Expected upstream edit scope is `package.json` only, specifically the package `exports` map entry for the deleted history-file subpath. Do not broaden the fix into source directories or documentation. Anti-leakage notes: Do not expose solver-facing benchmark, harness, Snorkel, Harbor, std-ts, stage, attempt, retry, generated task, or evaluation context. Avoid the word agent except when the literal upstream package or import path requires it. Approach: Seed the stale export, provide a concise upstream-style prompt about removing a deleted public subpath, and verify the manifest rather than relying on a broad test suite. Verification: Run `python test_outputs.py` from the task root. The verifier must inspect `package.json` directly and report whether the stale history-file export has been removed without adding a replacement deleted-path source file. Risk: The main risk is that the actual manifest shape may differ from a simple string export; write the verifier to handle string, array, and object export target forms recursively. Path rules: task package is tasks/<slug>; mutable upstream checkout is tasks/<slug>/environment/repo; benchmark package files are under tasks/<slug>/task; verifier/container environment belongs under tasks/<slug>/task/environment; regular and UI verifier logic belongs in task/tests/test_outputs.py and test.sh only runs that file through pytest. ## Agent context Task slug: remove-stale-history-export Branch: task/remove-stale-history-export <!-- std-ts:idea-pr-body -->
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin task/remove-stale-history-export:task/remove-stale-history-export
git switch task/remove-stale-history-export

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch main
git merge --no-ff task/remove-stale-history-export
git switch task/remove-stale-history-export
git rebase main
git switch main
git merge --ff-only task/remove-stale-history-export
git switch task/remove-stale-history-export
git rebase main
git switch main
git merge --no-ff task/remove-stale-history-export
git switch main
git merge --squash task/remove-stale-history-export
git switch main
git merge --ff-only task/remove-stale-history-export
git switch main
git merge task/remove-stale-history-export
git push origin main
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
snorkel/root-repository-maintenance-fa5dc9ae42094b!2
No description provided.