Repository navigation
fix(contracts): align managed example MethodDef scope - #8900
ShuaixinHuang wants to merge 1 commit into
Conversation
Codex Review SummaryThis 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. |
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
[Low impact] The code change appears safe to merge, with no actionable findings. SummaryCorrects the shared managed example’s
ShuaixinHuang acknowledges the existing duplicate-import build blocker tracked by #8884 as outside this repair. Tests were not rerun during review. The description says this PR supersedes #8892; live supersession status could not be checked because GitHub access was not authenticated. Reviews (1) · Last reviewed commit: "fix(contracts): align managed example Me..." · Reviewed by Greptile |
Superseded by #8966 at the author's request.
Supersedes #8892 at the author's request. The branch and code are unchanged; this new PR requires its own CI and initial author readiness confirmation.
Summary
Fixes #8885. The canonical managed graph/reconstruction example contains MethodDef token 0x06000001 but inherits a complete zero-row MethodDef interval from the empty-member fixture. It now declares offset 0, count 1, total 1 for that one-method example.
Problem and expected behavior
A shipped complete one-method example must not claim that its full MethodDef table has zero rows. The graph and reconstruction-import examples share this source Evidence, so the correction belongs to their common producer.
Change and scope
Add the explicit one-row scope in runtimeMembers. The existing createEvidence constructor automatically commits the corrected payload into its Evidence identity. Empty comparison examples retain their own zero-row scopes. Add a canonical-example regression and real compiled CLI/stdio MCP checks for both graph projection and reconstruction import.
This is a synthetic example-data repair within existing functionality. Maintainer scope decision: not applicable. It does not broaden graph admission or claim that an actual PE/CLI inspector emitted the contradictory sample.
Contract and boundary impact
Evidence and regression coverage
Before the fix, the new source regression failed on count/total 0 versus expected 1 (1 failed, 6 passed). After the fix, it checks the row-1 token, complete one-row interval, no selection, intact Evidence commitment and shared reconstruction source. Public tests pass the corrected inline Evidence through both adapters, check the one-method complete graph and source links, and verify reconstruction input identity.
Validation performed
npm.cmd run test:focused -- src/contracts/workflowInputContracts.test.ts tests/composition/analysis-sessions/managedApplicationGraph.test.ts tests/acceptance/managedWorkflowExamples.test.ts: 32 passed in 3 files, 27.86 s, including actual compiled CLI and stdio MCP.npm.cmd run check:fast: typecheck/lint 2 tasks passed, 44.636 s.git diff --check: passed.Compatibility, safety, and release
The corrected synthetic Evidence receives its corresponding identity through the normal constructor. No historical Evidence is rewritten and no caller inputs are repaired. No real-target/provider behavior or performance improvement is claimed.
Local validation used an isolated earlier surrounding tree with both edited existing files byte-identical to upstream; the complete remote integration tree needs its own CI. Upstream currently also has the duplicate-import build blocker tracked by #8884, which this focused example repair does not duplicate.
Author readiness
Human owner: @ShuaixinHuang
Before merge
type(scope): outcome.