Repository navigation
Conversation
Pure move: git mv plus import specifier rewrites (source, tests, and the dist path a verifier script loads).
windows no longer imports src/artifacts; process -> artifacts 11 -> 9. The CI lanes that selected src/artifacts/ArtifactReader.ts select its new path, pinned in the change-scope test.
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Contributor
[Low impact] The reviewed changes appear safe to merge. SummaryMoves
Diagram%%{init: {'theme': 'neutral'}}%%
flowchart TD
P["src/process"] --> R["src/resources/ArtifactReader"]
W["src/windows"] --> R
A["Provider readers"] --> R
R --> D["src/domain"]
R -. "cleanup lease type" .-> L["src/resources/AnalysisCleanupLease"]
Reviews (2) · Last reviewed commit: "test(architecture): lower the layer base..." · Reviewed by Greptile |
19 tasks
This was referenced Nov 15, 2026
refactor(resources): add src/resources and move AnalysisCleanupLease and ArtifactReader there
#11259
Merged
mvanhorn
added a commit
to mvanhorn/rea
that referenced
this pull request
Nov 15, 2026
Main replaced the per-tool register files with the service binding table (morluto#11264) and declares standalone availability on contracts (morluto#11262), so inspect_deb_package now binds through serviceToolBindings, declares availability "standalone", and registerDebPackageTool.ts is removed. The default MCP profile no longer lists output schemas (morluto#10693), so the deb MCP test validates the canonical contract output schema instead.
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.
Summary
Second
src/resources/slice (stacked on #11259): movesArtifactReader(the artifact reader contract andArtifactReaderFailure) fromsrc/artifacts/tosrc/resources/.src/windows/no longer imports a provider unit. Part of plan W9 (layer enforcement).Problem and expected behavior
src/process/andsrc/windows/(foundation) importArtifactReaderfromsrc/artifacts/(provider layer), which the layer check counts as upward imports.ArtifactReaderdepends only on domain types and theAnalysisCleanupLeasetype, which #11259 moved tosrc/resources/.Expected: the shared reader contract lives in the foundation
src/resources/unit. Behaviour is unchanged.Change and scope
git mv src/artifacts/ArtifactReader{,.test}.ts src/resources/plus import specifier rewrites (369 files, including thedist/...pathscripts/verify/javascript/runtime-observation.mjsloads). No alias or re-export is left behind.process -> artifacts11 -> 9,windows -> artifacts1 -> 0 (entry removed). The sqlite, binary_layout, evm and web_network CI lanes that namedsrc/artifacts/ArtifactReader.ts(orArtifactReader*.ts) now name the new path;ArtifactReaderAdmission.tsandArtifactReaderLimits.tsstay insrc/artifacts/and keep their glob.Not included:
ArtifactFileOperation,ArtifactResourceScope,readStableArtifact(next slices).Contribution scope: maintainer-approved W9 approach. No new capability.
Contract and boundary impact
Semantic owner and earliest changed stage:
ArtifactReaderkeeps its API; only its path changes.Contribution scope fit and linked maintainer decision: W9 layer enforcement, approved.
CLI and MCP/tool-catalog contract: none.
Provider, bridge, target-format, or platform compatibility: none.
Evidence, artifact, provenance, or reconstruction contract: none.
Target selection, authority, upstream behavior, and cleanup details (if applicable): unchanged.
Generated metadata (
docs/public/product-catalog.json), package, or installation impact: none; the built module moves fromdist/artifacts/todist/resources/(internal).Read existing files or captured data.
Launch or attach to a process.
Inject instrumentation or run scripts/code.
Change process memory, registers, files, or configuration.
Contact network services.
Recover protected code or work around protections.
Documentation or usability only; no target interaction.
Not sure yet; investigation or maintainer guidance needed.
Evidence and regression coverage
tests/boundary/filesystem/ciChangeScope.test.tspinssrc/resources/ArtifactReader.tsfor sqlite, binary_layout, evm and web_network; with the previousscripts/ci/scopes.mjsthey fail (observed: 4 failed, 382 passed). The moved unit tests run unchanged.verify:module-boundariesafter the move reportedprocess -> artifacts: 9, baseline 11andwindows -> artifacts: 0, baseline 1.Validation performed
npm run check:fast(typecheck, lint, module boundaries, architecture guards) — passed.node scripts/verify-module-boundaries.mjs --shrink-layer-baseline— lowered the two entries.npm run test:focused -- tests/boundary/filesystem/ciChangeScope.test.ts— 386 passed (4 failed with the previous scopes).npm run test:local -- src/resources/ArtifactReader.test.ts src/windows/WindowsPrivateRuntime.test.ts— 27 passed.Compatibility, safety, and release
Author readiness
Human owner:
Before merge
type(scope): outcome.