Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .github/workflows/ci-ready.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ jobs:
python -m venv "$RUNNER_TEMP/wheel-env"
wheels=("$RUNNER_TEMP"/dist/*.whl)
"$RUNNER_TEMP/wheel-env/bin/python" -m pip install "${wheels[0]}"
cp tests/check_installed.py "$RUNNER_TEMP/check_installed.py"
cp tests/repository/check_installed.py "$RUNNER_TEMP/check_installed.py"
cd "$RUNNER_TEMP"
env -u PYTHONPATH INFERRSI_CHECKOUT_RESOURCES="$GITHUB_WORKSPACE/src/inferrsi" INFERRSI_SESSION_LOCK_PROBE="$GITHUB_WORKSPACE/tests/session_lock_probe.py" INFERRSI_PRE_CHANGE_SESSIONS="$GITHUB_WORKSPACE/tests/fixtures/optimization-session" "$RUNNER_TEMP/wheel-env/bin/python" -I check_installed.py
env -u PYTHONPATH INFERRSI_CHECKOUT_RESOURCES="$GITHUB_WORKSPACE/src/inferrsi" INFERRSI_SESSION_LOCK_PROBE="$GITHUB_WORKSPACE/tests/harness/session_lock_probe.py" INFERRSI_PRE_CHANGE_SESSIONS="$GITHUB_WORKSPACE/tests/fixtures/optimization-session" "$RUNNER_TEMP/wheel-env/bin/python" -I check_installed.py

full-check:
permissions:
Expand Down Expand Up @@ -220,8 +220,8 @@ jobs:
nodes = [
"tests/skill_eval/test_skill_evaluation.py::test_harness_artifact_primitives_match_apps_bytes_and_semantics",
"tests/skill_eval/test_skill_evaluation.py::test_harness_owned_writes_and_digests_match_apps_bytes",
"tests/apps/test_legacy_run_split.py::test_harness_writer_bytes_equal_the_apps_writer",
"tests/apps/test_legacy_run_split.py::test_harness_writer_rejects_nan_and_leaves_no_file",
"tests/repository/test_artifact_helper_copies.py::test_harness_writer_bytes_equal_the_apps_writer",
"tests/repository/test_artifact_helper_copies.py::test_every_writer_writes_the_same_bytes[atomic_write_json]",
"tests/apps/test_legacy_run_split.py::test_sampling_sha256_matches_the_apps_hasher",
"tests/apps/test_optimization_session.py::test_runtime_identity_covers_migrated_process_domain_and_not_removed_executor",
"tests/harness/test_session_lock_across_processes.py",
Expand Down Expand Up @@ -266,7 +266,7 @@ jobs:
# #498: the installed-wheel check drives a real session lock from this probe, on
# Windows and macOS as well as Linux.
environment["INFERRSI_SESSION_LOCK_PROBE"] = str(
workspace / "tests" / "session_lock_probe.py"
workspace / "tests" / "harness" / "session_lock_probe.py"
)
# #498 slice 5: a session that main planned before infra/artifacts.py left the
# runtime identity must be refused by the installed wheel without any change.
Expand Down Expand Up @@ -301,7 +301,7 @@ jobs:
console = scripts / ("inferrsi.exe" if os.name == "nt" else "inferrsi")
run(python, "-m", "pip", "install", f"{wheels[0]}[skills]")
assert console.is_file(), console
shutil.copyfile(workspace / "tests" / "check_installed.py", work / "check_installed.py")
shutil.copyfile(workspace / "tests" / "repository" / "check_installed.py", work / "check_installed.py")
run(python, "-I", "check_installed.py")
# The package under test is the installed wheel, never the source checkout.
location = Path(
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,9 @@ jobs:
python -m venv "$RUNNER_TEMP/wheel-env"
wheels=("$RUNNER_TEMP"/release-dist/*.whl)
"$RUNNER_TEMP/wheel-env/bin/python" -m pip install "${wheels[0]}[skills]"
cp tests/check_installed.py tools/check_release.py "$RUNNER_TEMP/"
cp tests/repository/check_installed.py tools/check_release.py "$RUNNER_TEMP/"
cd "$RUNNER_TEMP"
env -u PYTHONPATH INFERRSI_CHECKOUT_RESOURCES="$GITHUB_WORKSPACE/src/inferrsi" INFERRSI_SESSION_LOCK_PROBE="$GITHUB_WORKSPACE/tests/session_lock_probe.py" INFERRSI_PRE_CHANGE_SESSIONS="$GITHUB_WORKSPACE/tests/fixtures/optimization-session" "$RUNNER_TEMP/wheel-env/bin/python" -I check_installed.py
env -u PYTHONPATH INFERRSI_CHECKOUT_RESOURCES="$GITHUB_WORKSPACE/src/inferrsi" INFERRSI_SESSION_LOCK_PROBE="$GITHUB_WORKSPACE/tests/harness/session_lock_probe.py" INFERRSI_PRE_CHANGE_SESSIONS="$GITHUB_WORKSPACE/tests/fixtures/optimization-session" "$RUNNER_TEMP/wheel-env/bin/python" -I check_installed.py
env -u PYTHONPATH "$RUNNER_TEMP/wheel-env/bin/python" -I check_release.py \
installed --tag "$RELEASE_TAG"
- name: Build and validate the installable host plugin ZIPs
Expand Down
6 changes: 3 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
either package name, with or without a file behind it.
- `inferrsi.infra.artifacts` is now `inferrsi.apps.artifacts`. Apps owns this copy with
the same function source as the Harness and Benchmark copies, and
`tests/test_artifact_helper_copies.py` keeps the three equal. `apps/delivery/`, the
`tests/repository/test_artifact_helper_copies.py` keeps the three equal. `apps/delivery/`, the
tools, the examples and the tests import it. The Apps copy and `harness/artifact_primitives.py`
use the same `.session.lock` file lock, so a Harness writer and an Apps export exclude
each other across processes.
Expand Down Expand Up @@ -183,7 +183,7 @@
- New `inferrsi.benchmark.artifacts` holds Benchmark's own `sha256`,
`write_json` and `atomic_write_json`. Their code equals the copies in
`inferrsi.infra.artifacts` and Harness, and
`tests/test_artifact_helper_copies.py` keeps the copies equal.
`tests/repository/test_artifact_helper_copies.py` keeps the copies equal.
`inferrsi.infra.artifacts` stays for its other users.
- A new Flare receipt keeps its schema and keys. Its `adapter` digests are those
of `benchmark/validators/flare.py` and `benchmark/artifacts.py`. Existing
Expand Down Expand Up @@ -417,7 +417,7 @@
ninth pair, `infra.inspection` → `inferrsi.resources.repository_packs`, is a
live import that no deletion removes. It is now a permanent exact rule
outside the allowlist: `technical_leaf.permanent_importers` in the manifest
and `LEAF_IMPORTERS` in `tests/_gate_policy_support.py`. That one module
and `LEAF_IMPORTERS` in `tests/repository/_gate_policy_support.py`. That one module
binds only `repository_pack`, with one plain module-level `from` import.
Any other importer, name, alias, import of the leaf as a module object,
nested import, `sys.modules` use or dynamic import fails, and an
Expand Down
57 changes: 28 additions & 29 deletions docs/apps-module-migrations.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"src/inferrsi/apps/views/attempt.py",
"src/inferrsi/apps/workflows/benchmark_compare.py",
"src/inferrsi/apps/workflows/evaluation.py",
"tests/check_installed.py",
"tests/repository/check_installed.py",
"tests/apps/test_apps_assess.py",
"tests/apps/test_apps_evaluate_cli.py",
"tests/apps/test_apps_evidence_capture.py",
Expand Down Expand Up @@ -69,7 +69,7 @@
"src/inferrsi/apps/handoff/production_capture.py",
"src/inferrsi/apps/views/attempt.py",
"src/inferrsi/apps/workflows/evaluation.py",
"tests/check_installed.py",
"tests/repository/check_installed.py",
"tests/apps/test_apps_artifact_reader.py",
"tests/apps/test_apps_assess.py",
"tests/apps/test_apps_evidence_capture.py",
Expand Down Expand Up @@ -107,7 +107,7 @@
"src/inferrsi/apps/storage/artifact_reader.py",
"src/inferrsi/apps/views/attempt.py",
"src/inferrsi/apps/workflows/evaluation.py",
"tests/check_installed.py",
"tests/repository/check_installed.py",
"tests/apps/test_apps_module_migrations.py",
"tests/apps/test_result_delivery.py"
]
Expand All @@ -126,8 +126,8 @@
"docs/operations.md",
"src/inferrsi/apps/evidence_layout.py",
"src/inferrsi/contracts/evidence.py",
"tests/_gate_policy_support.py",
"tests/check_installed.py",
"tests/repository/_gate_policy_support.py",
"tests/repository/check_installed.py",
"tests/apps/test_apps_module_migrations.py",
"tests/contracts/test_evidence_paths.py",
"tests/repository/test_first_wave_isolation_policy.py",
Expand All @@ -153,7 +153,7 @@
"src/inferrsi/apps/handoff/candidate_provider.py",
"src/inferrsi/apps/views/attempt.py",
"src/inferrsi/apps/workflows/evaluation.py",
"tests/check_installed.py",
"tests/repository/check_installed.py",
"tests/apps/test_apps_evidence.py",
"tests/apps/test_apps_execution_binding.py",
"tests/apps/test_apps_generation_plan.py",
Expand All @@ -178,7 +178,7 @@
"docs/module-layout.md",
"docs/operations.md",
"src/inferrsi/apps/context_provider.py",
"tests/check_installed.py",
"tests/repository/check_installed.py",
"tests/apps/test_apps_context_provider.py",
"tests/apps/test_apps_module_migrations.py",
"tests/harness/test_harness_generation_seal.py"
Expand All @@ -197,7 +197,7 @@
"docs/operations.md",
"src/inferrsi/apps/api.py",
"src/inferrsi/apps/candidate_provider.py",
"tests/check_installed.py",
"tests/repository/check_installed.py",
"tests/apps/test_apps_module_migrations.py"
]
},
Expand All @@ -220,7 +220,7 @@
"src/inferrsi/apps/views/capture_delivery.py",
"src/inferrsi/apps/views/optimization_story.py",
"src/inferrsi/harness/optimization_session.py",
"tests/check_installed.py",
"tests/repository/check_installed.py",
"tests/fixtures/dashboard_profile_review.py",
"tests/fixtures/knowledge_retrieval.py",
"tests/apps/test_apps_module_migrations.py",
Expand All @@ -245,8 +245,8 @@
"docs/architecture.md",
"docs/module-layout.md",
"src/inferrsi/apps/cli/__init__.py",
"tests/_gate_policy_support.py",
"tests/check_installed.py",
"tests/repository/_gate_policy_support.py",
"tests/repository/check_installed.py",
"tests/apps/test_apps_module_migrations.py",
"tests/benchmark/test_benchmark_operations.py",
"tests/apps/test_optimization_session.py",
Expand All @@ -269,7 +269,7 @@
"docs/guides/harness-improvement.md",
"docs/module-layout.md",
"src/inferrsi/apps/workflows/search_benchmarks.py",
"tests/check_installed.py",
"tests/repository/check_installed.py",
"tests/apps/test_apps_module_migrations.py",
"tests/harness/test_harness_improvement.py",
"tools/skill_eval_improve.py"
Expand All @@ -287,7 +287,7 @@
"docs/contracts/function-owners.md",
"docs/module-layout.md",
"docs/skill-evaluation/README.md",
"tests/check_installed.py",
"tests/repository/check_installed.py",
"tests/apps/test_anthropic_agent.py",
"tests/apps/test_apps_module_migrations.py",
"tests/skill_eval/test_skill_eval_compare.py",
Expand All @@ -310,7 +310,7 @@
"docs/skill-evaluation/local-skill-evaluation.md",
"docs/module-layout.md",
"src/inferrsi/apps/workflows/skill_evaluation.py",
"tests/check_installed.py",
"tests/repository/check_installed.py",
"tests/apps/test_apps_module_migrations.py",
"tests/skill_eval/test_skill_eval_compare.py",
"tests/skill_eval/test_skill_eval_engineering.py",
Expand Down Expand Up @@ -342,7 +342,7 @@
"docs/architecture.md",
"docs/module-layout.md",
"src/inferrsi/apps/cli/__init__.py",
"tests/check_installed.py",
"tests/repository/check_installed.py",
"tests/apps/test_apps_module_migrations.py",
"tests/benchmark/test_benchmark_compare.py"
]
Expand All @@ -358,7 +358,7 @@
"src/inferrsi/apps/cli/__init__.py",
"src/inferrsi/apps/integrations/cannbot/round_knowledge.py",
"src/inferrsi/apps/integrations/external_channels.py",
"tests/check_installed.py",
"tests/repository/check_installed.py",
"tests/apps/test_apps_module_migrations.py",
"tests/knowledge/test_knowledge_channels.py"
],
Expand Down Expand Up @@ -390,7 +390,7 @@
"src/inferrsi/apps/integrations/cannbot/__init__.py",
"src/inferrsi/apps/integrations/cannbot/round_knowledge.py",
"src/inferrsi/apps/integrations/external_channels.py",
"tests/check_installed.py",
"tests/repository/check_installed.py",
"tests/apps/test_apps_module_migrations.py",
"tests/apps/test_cannbot_boundaries.py",
"tests/apps/test_mindie_runtime.py",
Expand All @@ -411,7 +411,7 @@
"consumers": [
"src/inferrsi/apps/integrations/cannbot/project.py",
"src/inferrsi/apps/integrations/cannbot/round_knowledge.py",
"tests/check_installed.py",
"tests/repository/check_installed.py",
"tests/apps/test_apps_module_migrations.py",
"tests/apps/test_cannbot_boundaries.py",
"tests/apps/test_project_optimization.py"
Expand All @@ -425,7 +425,7 @@
"docs/architecture.md",
"docs/guides/knowledge/external-channels.md",
"docs/module-layout.md",
"tests/check_installed.py",
"tests/repository/check_installed.py",
"tests/apps/test_apps_module_migrations.py"
],
"package": true
Expand All @@ -443,7 +443,7 @@
"src/inferrsi/apps/integrations/mindie/mcp.py",
"src/inferrsi/apps/integrations/mindie/navigation.py",
"src/inferrsi/apps/integrations/mindie/project.py",
"tests/check_installed.py",
"tests/repository/check_installed.py",
"tests/apps/test_apps_module_migrations.py",
"tests/apps/test_mindie_context.py",
"tests/apps/test_mindie_runtime.py"
Expand All @@ -466,7 +466,7 @@
"src/inferrsi/apps/cli/__init__.py",
"src/inferrsi/apps/integrations/mindie/mcp.py",
"src/inferrsi/apps/integrations/mindie/navigation.py",
"tests/check_installed.py",
"tests/repository/check_installed.py",
"tests/apps/test_apps_module_migrations.py",
"tests/apps/test_mindie_project.py",
"tests/apps/test_mindie_runtime.py"
Expand All @@ -481,7 +481,7 @@
"consumers": [
"docs/module-layout.md",
"src/inferrsi/apps/integrations/mindie/project.py",
"tests/check_installed.py",
"tests/repository/check_installed.py",
"tests/apps/test_apps_module_migrations.py",
"tests/apps/test_mindie_project.py"
]
Expand All @@ -494,7 +494,7 @@
],
"consumers": [
"docs/module-layout.md",
"tests/check_installed.py",
"tests/repository/check_installed.py",
"tests/apps/test_apps_module_migrations.py"
]
},
Expand Down Expand Up @@ -550,7 +550,6 @@
"src/inferrsi/harness/artifact_primitives.py",
"src/inferrsi/harness/atomic_json.py",
"src/inferrsi/harness/input_binding.py",
"tests/_gate_policy_support.py",
"tests/apps/test_anthropic_agent.py",
"tests/apps/test_goal_checkpoint.py",
"tests/apps/test_inspection.py",
Expand All @@ -559,14 +558,16 @@
"tests/apps/test_yibuapi_runtime.py",
"tests/benchmark/test_image_modules.py",
"tests/campaigns/test_qwen21_task.py",
"tests/check_installed.py",
"tests/fixtures/harness_improvement_demo.py",
"tests/fixtures/service_reuse.py",
"tests/fixtures/skill_eval_compare_support.py",
"tests/fixtures/skill_eval_pr_support.py",
"tests/harness/session_lock_probe.py",
"tests/harness/test_session_lock_across_processes.py",
"tests/repository/_gate_policy_support.py",
"tests/repository/check_installed.py",
"tests/repository/test_artifact_helper_copies.py",
"tests/repository/test_target_module_import_gate.py",
"tests/session_lock_probe.py",
"tests/skill_eval/test_skill_eval_compare.py",
"tests/skill_eval/test_skill_eval_diagnostic.py",
"tests/skill_eval/test_skill_eval_feedback.py",
Expand All @@ -577,11 +578,9 @@
"tests/skill_eval/test_skill_eval_planned_guidance.py",
"tests/skill_eval/test_skill_eval_planning_boundaries.py",
"tests/skill_eval/test_skill_eval_pr.py",
"tests/skill_eval/test_skill_eval_pr_diagnostic.py",
"tests/skill_eval/test_skill_eval_retention.py",
"tests/skill_eval/test_skill_eval_review_guidance.py",
"tests/skill_eval/test_skill_evaluation.py",
"tests/test_artifact_helper_copies.py",
"tools/goal_checkpoint.py",
"tools/skill_eval_auto.py",
"tools/skill_eval_cloud_export.py",
Expand All @@ -605,7 +604,7 @@
"src/inferrsi/apps/cli/__init__.py",
"src/inferrsi/apps/inspection.py",
"tests/apps/test_inspection.py",
"tests/check_installed.py",
"tests/repository/check_installed.py",
"tests/repository/test_architecture_closed_loop.py",
"tests/repository/test_first_wave_isolation_policy.py"
]
Expand Down
2 changes: 1 addition & 1 deletion docs/contributing.md
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ Keep the existing four lanes:

Ready CI builds the source distribution and wheel, installs the core wheel
without extras in a fresh virtual environment, and runs
`tests/check_installed.py` outside the checkout with `PYTHONPATH` unset and Python
`tests/repository/check_installed.py` outside the checkout with `PYTHONPATH` unset and Python
isolated mode enabled. This checks packaged knowledge, skill bodies, licenses,
helpers and CLI reads without installing any inference engine.
The ready test and installed-package jobs cover the declared minimum Python
Expand Down
2 changes: 1 addition & 1 deletion docs/guides/plugins/workswarm-plugin.md
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ For the native backend lifecycle, use the host's prepared interpreter from a
scratch directory outside either checkout:

```text
python -X utf8 "<INFERRSI_SOURCE>/tests/check_workswarm_installed.py" --host-source "<HOST_SOURCE>" --archive "<BUILT_ZIP>"
python -X utf8 "<INFERRSI_SOURCE>/tests/apps/check_workswarm_installed.py" --host-source "<HOST_SOURCE>" --archive "<BUILT_ZIP>"
```

This check creates its own temporary profile, imports and installs the archive,
Expand Down
2 changes: 1 addition & 1 deletion docs/legacy-knowledge-manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@
}
],
"not_a_compatibility_pair": "The entry is not in compatibility_pairs and is never counted by the allowlist blocker. It does not retire with a shell, because the importer is not a shell.",
"gate": "tests/_gate_policy_support.py LEAF_IMPORTERS holds the same importer and name. tests/knowledge/test_knowledge_compatibility_shells.py requires the two to match exactly.",
"gate": "tests/repository/_gate_policy_support.py LEAF_IMPORTERS holds the same importer and name. tests/knowledge/test_knowledge_compatibility_shells.py requires the two to match exactly.",
"review": "This rule requires formal architecture review. The implementer does not self-approve it, and passing tests are not that review.",
"relocated": {
"stage": "#498 slice 3a",
Expand Down
Loading
Loading