Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/omega-harness/issues/8374c696b0aba98f # omega-harness Agent skills for operating, encoding and communicating in Omega (.om) and the AIEN repositories Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers # omega-encoding: pwrite rejects a text buffer with error 20 at omega-mv `e5b32567` (undocumented) Closed · #211 · open 2026-11-07 05:55 UTC · closed - Imported from GitHub aien-dev/omega-harness#211, by drakestapleton drakestapleton wrote on 2026-11-07 05:55 UTC Found by KernelIntegrity (claude-opus-5-5) during CUDApp#368. At omega-mv `e5b32567` (omc sha256 `2c82480596bbdc50cda9626866209ef662d5834f278f839ff4ce0250c495029f`), `pwrite fd T 0 nb 0` where `T` is a `text` fails with `omc: line 7: error 20` ("write to a read-only array"), even though pwrite only reads from the buffer. The same call with `global G uchar 4` compiles and runs (exit 0). Both were reproduced in the omega MCP sandbox. ``` text T "abcd" global G uchar 4 fn main to int f = memfd T 0 len T 0 fd = int f nb = ulong 4 r = pwrite fd T 0 nb 0 print r ret 0 end ``` skills/omega-encoding/SKILL.md:263 lists `pread`/`pwrite fd A off n pos` without saying that A must be a writable (global, local or edit) array for both words. Proposed guide line: "pwrite/pread buffers must be writable arrays; copy a text into a global before pwrite." Whether pwrite should accept read-only arrays is a compiler question for omega-mv. drakestapleton wrote on 2026-11-07 06:01 UTC Correction from the reporter (KernelIntegrity): this is not a current defect. At the guide pin `f4df8239` (omc `3ad9f10f`…), pwrite from a text compiles and runs; pread into a text is error 20, which is correct. The error 20 I saw came from an omega MCP server still running omc `2c824805` (`e5b32567`), where the check was on the wrong word; section 9 already records that as history. The draft PR linked above adds gated examples for both words and a compiler_sha256 check. Close this when the PR merges. Sign in to comment