Phase 15: ground Lite Ring 2 surface#2
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: bed71e693e
ℹ️ 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".
| required_files: [".anchor", "AUTHORITY.md", "RING.md", "package.json", "CMakeLists.txt", "verify.mjs"] | ||
| }; | ||
|
|
||
| const observed_anchor = fs.readFileSync('.anchor', 'utf8').trim(); |
There was a problem hiding this comment.
Guard .anchor read when file is absent
The verifier reads .anchor unconditionally before computing missing_files, so if .anchor is missing (one of the exact failure modes this script is meant to report), Node throws ENOENT and the script exits without producing verify-output.json. This turns a recoverable verification failure into a hard crash and prevents downstream tooling from getting the expected FILES_PRESENT_UNVERIFIED result.
Useful? React with 👍 / 👎.
| status: isVerified ? "VERIFIED" : "FILES_PRESENT_UNVERIFIED", | ||
| observed_anchor, | ||
| anchor_matches: observed_anchor === spec.expected_anchor, | ||
| structural_artifact_present: true, |
There was a problem hiding this comment.
Compute structural_artifact_present from actual checks
structural_artifact_present is hardcoded to true, so the output can claim the structural artifact exists even when required files are missing (for example CMakeLists.txt is absent and listed in missing_files). This creates internally inconsistent verification output and can mislead any consumer that relies on this boolean rather than parsing the full missing-file list.
Useful? React with 👍 / 👎.
Establishes Phase 15 governance for Riverbraid-Lite (embedded-port). Includes .anchor, AUTHORITY.md, RING.md, CMakeLists.txt, and verifier.