Prove durable Hello Echo execution - #17
Conversation
|
@coderabbitai review |
|
@codex please review |
✅ Action performedReview finished.
|
Summary by CodeRabbit
WalkthroughAdds a shell-based runtime witness that invokes compiler-produced artifacts through Echo, validates durable recovery and deterministic replay, exercises input boundaries and stress cases, and documents the singleton scheduler scope. ChangesRuntime witness
Estimated code review effort: 4 (Complex) | ~45 minutes Sequence Diagram(s)sequenceDiagram
participant Developer
participant runtime.sh
participant run.sh
participant Echo
participant jq
Developer->>runtime.sh: run runtime witness suite
runtime.sh->>run.sh: provide typed input and isolated WAL path
run.sh->>Echo: invoke run-edict-operation with compiler artifacts
Echo-->>run.sh: return witness JSON or validation error
run.sh-->>runtime.sh: write witness.json
runtime.sh->>jq: validate execution, recovery, replay, and boundary results
Possibly related issues
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@tests/runtime.sh`:
- Around line 72-75: Update the disclosure scan around the golden_witness grep
to canonicalize both EDICT_REPO and ECHO_REPO using cd ... && pwd -P before
building the grep patterns. Use the resolved absolute paths, rather than raw
repository values, so relative checkouts match leaked canonical paths and "."
does not create broad false-positive patterns.
- Around line 26-54: Update assert_common_witness in tests/runtime.sh to
independently compute SHA-256 digests for the package, verification report, and
lawpack manifest files supplied to run-edict-operation, then assert those
digests equal the pinned constants before validating the witness claims. Reuse
the actual input-file variables or arguments from the surrounding runner flow,
and preserve the existing witness-field checks while requiring both independent
hashes and reported artifact digests to match.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: ASSERTIVE
Plan: Pro Plus
Run ID: 23a0e575-86eb-47f0-8fb1-3e145ea923f0
📒 Files selected for processing (6)
CHANGELOG.mdREADME.mddocs/roadmap.mdtests/create-greeting.jsontests/run.shtests/runtime.sh
📜 Review details
🧰 Additional context used
🪛 Shellcheck (0.11.0)
tests/run.sh
[warning] 9-9: Remove space after = if trying to assign a value (for empty string, use var='' ... ).
(SC1007)
🔇 Additional comments (5)
tests/create-greeting.json (1)
1-5: LGTM!tests/runtime.sh (1)
9-24: LGTM!Also applies to: 57-70, 77-175
tests/run.sh (1)
1-49: LGTM!docs/roadmap.md (1)
77-80: LGTM!CHANGELOG.md (1)
15-18: LGTM!
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: a8e2b79bf5
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
@coderabbitai review |
|
@codex please review |
✅ Action performedReview finished.
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: d55a2e8f46
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
AUTHORIZED — one additional Code Lawyer remediation pass for PR #17. This is an operator-approved exception after the configured two-pass budget Authorized finding: Required outcome:
Scope:
Validation:
Closure:
|
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@tests/runtime.sh`:
- Around line 74-85: The runtime test currently verifies only unchanged state
and digests, without exercising duplicate-mutation rejection. Add a negative
generic-runner test near the existing duplicate assertions that mutates
duplicate-path state and verifies the witness fails, then update the related
README and roadmap claims to reflect the tested guarantee.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: ASSERTIVE
Plan: Pro Plus
Run ID: 4f33b94d-f5fa-4459-9b65-d4449c8c2d44
📒 Files selected for processing (5)
CHANGELOG.mdREADME.mddocs/roadmap.mdtests/run.shtests/runtime.sh
📜 Review details
🔇 Additional comments (3)
tests/runtime.sh (1)
15-31: LGTM!Also applies to: 46-63, 107-136, 227-227
tests/run.sh (1)
6-53: LGTM!CHANGELOG.md (1)
15-28: LGTM!
|
Merge gate open at
|
Runs the compiler-produced Hello Echo package through Echo’s generic scheduler-owned runtime and proves WAL ordering, recovery, typed duplicate obstruction, altered-basis refusal, and replay equivalence.
Closes #3.