Skip to content

fix: scoped Wyrm compiler, CLI, tooling and CI repairs (non-reserved) - #1

Merged
neofilisoft merged 5 commits into
mainfrom
fix/scoped-audit-nonreserved
Nov 19, 2026
Merged

neofilisoft merged 5 commits into
mainfrom
fix/scoped-audit-nonreserved

Conversation

@Nai9n

@Nai9n Nai9n commented Nov 18, 2026

Copy link
Copy Markdown
Collaborator

Scope

This Draft PR publishes the already-completed scoped repairs for review. It covers 11 audit findings only:

WYRM-01, 04, 07, 08, 09, 10, 11, 13, 15, 16, 17

Local branch: fix/scoped-audit-nonreserved → base neofilisoft/wyrm:main.
Baseline a000a55a2f71d2ef4f46555b48767806589f9030 → final HEAD 299b368ecacdc577f6a96f82b371297ef7b18949.
Five local commits, 18 changed files, +2755 / -151.

Result summary

  • 8 findings FIXED + VERIFIED under the local test environment: WYRM-01, 04, 07, 08, 09, 10, 11, 13
  • 2 findings PARTIAL: WYRM-15, WYRM-16 — the remaining portions are blocked by reserved-scope overlap (WYRM-12)
  • 1 finding FIXED but Windows-runtime UNVERIFIED: WYRM-17 (PowerShell is unavailable on the Android host)

What changed

  • WYRM-08: C and LLVM backends now emit real short-circuit control flow for and/or, preserving operand-result semantics.
  • WYRM-10: round-trip-safe double literals via std::to_chars(max_digits10).
  • WYRM-04: wyrpkg add / wyrpkg lock integrated into command dispatch.
  • WYRM-16: versioned lockfile with remote identity + immutable Git revision, strict parsing, stable serialization and drift rejection. Pinned checkout for fresh remote installs remains blocked.
  • WYRM-09: lexical-state-aware fmt that preserves strings/comments and refuses to overwrite malformed input.
  • WYRM-11: Stage 0 vs self-hosted CLI gap documented truthfully in help/README; check is explicitly syntax-only.
  • WYRM-15: C++ clean restricted to Wyrm-owned artifacts; self-hosted shell-based clean left untouched.
  • WYRM-07: removed hard-coded Windows x86-64 LLVM triple/data layout; clang now derives the host target.
  • WYRM-13: installers build/link the full runtime object set and explicitly require clang for the LLVM stage.
  • WYRM-17: removed global name-based process killing; installer-owned PID tracking and actionable file-lock diagnostics.
  • WYRM-01: preserved Linguist policy checks and added working build/unit/CLI/smoke CI gates via .github/workflows/ci.yml + scripts/ci-tests.sh.

Reserved findings — untouched

Six findings are reserved for other contributors and were not modified: WYRM-02, 03, 05, 06, 12, 14.
Verification: the remove/uninstall branch and all shell-invocation surfaces (system(), cmd.exe/powershell command strings, clone/pull/build command strings) are byte-identical to the baseline; no interpreter/ast/runtime/thread files were changed. No opportunistic refactoring was performed.

Test evidence

Important: the counts below were recorded in the preceding agent report. The Main Agent independently re-ran the full CI driver on the final HEAD (scratch overlay) and confirmed: lexer/parser/interpreter PASS, transpiler 23 passed, 0 failed, wyrpkg 146/146 checks passed, CLI 45 passed, 0 failed, and the run smoke test PASS (exit 0). Installer static tests (72/72) and LLVM target-inference tests (8/8) were also re-run and passed locally.

Suite Reported result
Transpiler (C + LLVM structural) 23/23, LLVM structural 0 failures
Package manager (wyrpkg) 146/146 checks passed
wyrmc Stage 0 CLI / fmt / clean 45 passed, 0 failed
Installer static checks 72 passed, 0 failed
LLVM target inference 8 passed, 0 failed
Lexer / parser / interpreter all passed
Smoke (wyrmc_stage0 run) passed

These were executed on aarch64 / clang in an Android Termux environment. A scratch, out-of-repo shim was used for the pre-existing x86 inline asm in wyrm/lib/stdlib/wyrm_std_random.c; that source file was not modified.

Known gaps and limitations

  • Ubuntu x86_64 / GNU gcc CI is unverified locally until this PR's checks run.
  • No Windows or PowerShell runtime test was possible; WYRM-17 is therefore UNVERIFIED at runtime.
  • WYRM-15 / WYRM-16 retain the blocked portions described above (reserved WYRM-12 overlap).
  • The self-hosted compiler's clang discovery/command construction still lists only 9 runtime C sources and uses > nul; user programs calling os/fs/path/io/http may still fail to link on that route. This is inside a reserved region and was deliberately left untouched.
  • WYRM-08 emitted C relies on GNU statement expressions (({ ... })), which gcc/clang accept under -std=c11 but are not strict ISO C11.
  • No root cause is asserted for the historical CI Run #131 failure; no supporting log evidence exists in the repository.

Review status

This is a Draft PR for review only. It is not approved for merge. No GitHub issues are being closed by this PR.

Wyrm Scoped Repair Orchestrator added 5 commits November 18, 2026 23:34
…ic literals

Worker A (backend semantics) handoff accepted by Main Agent.
- C backend emits conditional control flow for and/or with single LHS eval
  and operand-value semantics matching the interpreter.
- LLVM backend emits br/phi-style short-circuit blocks and operand copy.
- Number literals use round-trip-safe std::to_chars(max_digits10).
- Added focused transpiler and LLVM structural regression tests.
…sion lockfile

Worker B (package CLI) handoff accepted by Main Agent.
- add/lock integrated into dispatch; unknown-command fallback corrected.
- Versioned JSON lockfile with remote identity + immutable git revision,
  strict parsing, stable serialization, drift rejection, rollback on failure.
- Full pinned checkout for fresh remote installs remains BLOCKED by reserved
  WYRM-12 shell-invocation scope; fail-fast drift semantics implemented.
- Added wyrpkg regression suite (146 checks).
…ped clean

Worker C (CLI formatting/cleanup) handoff accepted by Main Agent.
- fmt is lexical-state-aware: strings/comments preserved, malformed input
  rejected with no overwrite; backup contract retained.
- help/README now state self-hosted vs Stage 0 command gap and that check
  is syntax-only (no semantic type checking).
- C++ clean restricted to Wyrm-owned artifacts; self-hosted clean remains
  BLOCKED by reserved WYRM-12 shell-invocation scope.
- Added CLI formatting/cleanup regression suite (45 cases).
…aller toolchain, safe Windows process handling

Worker D (portability/installation) handoff accepted by Main Agent.
- Removed hard-coded Windows triple/data layout; clang derives host target.
- Installers now build/link the full 14-object runtime set and require clang
  for the LLVM self-hosting stage.
- Removed global name-based process kill; installer-owned PID tracking and
  actionable file-lock diagnostics instead (runtime-unverified: no pwsh host).
- Added installer static and LLVM target-inference tests.
Worker E (CI gates) handoff accepted by Main Agent.
- Preserved existing Linguist policy checks; added ubuntu-latest build-and-test job.
- Added reproducible scripts/ci-tests.sh driver covering lexer/parser/interpreter,
  C runtime, transpiler, wyrpkg, wyrmc Stage 0 CLI and a tiny run smoke test.
- No always-failing jobs; LLVM structural test intentionally excluded (no
  reproducible .ll fixture in-repo).
- CI Run #131 root cause not asserted: no log evidence exists in the repository.
@coderabbitai

coderabbitai Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: a6f6c847-475a-4fd1-82b3-055d15f36344
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

Share

@neofilisoft
neofilisoft marked this pull request as ready for review November 19, 2026 04:23
@neofilisoft

Copy link
Copy Markdown
Owner

OK

@neofilisoft
neofilisoft merged commit 612c4be into main Nov 19, 2026
1 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants