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-mcp/blob/main/maintenance/state.om # omega-mcp aien-dev/omega-mcp Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `omega-mcp / maintenance / state.om` 111 lines ยท 4344 bytes Raw Blame History 1 note Agent-maintenance shared state. Composed after pinned JSON/SHA units in OM-2 program mode. 2 note Only amerror is consumed by the transport. All proposal material is connection-local memory. 3 global amerror uint 1 4 global amreq ulong 3 5 global amwhy int 1 6 global amv ulong 16 7 global amfd int 5 8 global amroot uchar 4096 9 global amfile uchar 128 10 global ambef uchar 65536 11 global amaft uchar 65536 12 global ampre uchar 64 13 global ampost uchar 64 14 global amhash uchar 64 15 global amtok uchar 64 16 global amstage uchar 128 17 global ammeta ulong 11 18 global ampmeta ulong 11 19 global amnext ulong 11 20 21 const amrootn ulong 0 22 const amwrite ulong 1 23 const amprot ulong 2 24 const amstate ulong 3 25 const amfilen ulong 4 26 const ambefn ulong 5 27 const amaftn ulong 6 28 const amcurn ulong 7 29 const amstgn ulong 8 30 const amrenam ulong 9 31 const amlocko ulong 10 32 const amstageo ulong 11 33 const amvalc ulong 12 34 const aminvc ulong 13 35 const amderr ulong 14 36 const ammax ulong 65536 37 note fd slots: root=0, target parent=1 (may alias root), current=2, stage=3, lock=4. 38 note Proposal states: 0 absent/invalidated, 1 proposed, 2 applied, 3 rolled back. 39 note ARM64 flags sourced from asm/fcntl.h, asm-generic/fcntl.h and pinned host fixtures. 40 note WolframLanguageEvaluator: FromDigits[#,8]& /@ {040000,`0100000`,`02000000`,`00004000`,`00000100`,`00000200`} 41 note using string inputs returned {16384,32768,524288,2048,64,128}. 42 note BitOr directory/nofollow/cloexec ->573440; read/nofollow/cloexec/nonblock ->559104; 43 note rdwr/create/excl/nofollow/cloexec ->557250. No O_TRUNC is ever used. 44 const amodir int 573440 45 const amord int 559104 46 const amonew int 557250 47 const amolock int 557249 48 const amreg ulong 32768 49 const amtyp ulong 61440 50 const amxbit ulong 73 51 note WolframLanguageEvaluator: FromDigits[#,8]& /@ {"600","7777"} -> {384,4095}. 52 const ampriv int 384 53 const ampmode ulong 4095 54 55 text amslash "/" 56 text amargro "--root" 57 text amargwr "--allow-write" 58 text amkeep "/srv/aien-keep" 59 text amrules "RULES.md" 60 text amwatch "WATCHDOG.yml" 61 text amconfig "config.yml" 62 text amagents "agents" 63 text amagentp "agents/" 64 text ammd ".md" 65 text amlock ".agent-maintenance.lock" 66 text amstpre ".agent-maintenance-" 67 text amstend ".tmp" 68 text amhex "`0123456789abcdef`" 69 text amlim "Structural syntax checks only; no claim about advisor/model availability, prompt semantics, OMP acceptance or active runtime. Saved files are not reloaded. Proposals and rollback state exist only in this connection; preserve before_content for durable operator-controlled recovery. Cooperative lock does not serialize unrelated writers. Protected /srv/aien-keep stores are never writable here." 70 71 text amkok "ok" 72 text amkerr "error" 73 text amkfile "file" 74 text amkroot "root" 75 text amkmode "mode" 76 text amkprot "protected_store" 77 text amkfiles "files" 78 text amkstat "status" 79 text amksha "sha256" 80 text amksize "size" 81 text amkbody "content" 82 text amkprop "proposal_id" 83 text amkbef "before_content" 84 text amkaft "after_content" 85 text amkpre "before_sha256" 86 text amkpost "after_sha256" 87 text amkchng "changed" 88 text amkallow "apply_allowed" 89 text amklimit "limitations" 90 text amkvalid "validation_code" 91 text amkstate "state" 92 text amkreld "runtime_reloaded" 93 text amkpers "rollback_persistent" 94 text amkdur "durability_confirmed" 95 text amkadir "agents_directory" 96 text amrdonly "read-only" 97 text amwrmode "write-enabled" 98 text ammiss "missing" 99 text amexists "existing" 100 text amrefuse "refused" 101 text amappl "applied" 102 text amrolled "rolled_back" 103 text amvalid "valid" 104 text amkcomm "committed" 105 text amerrs "invalid_file_id|missing_file|open_refused|metadata_unavailable|not_regular_file|hardlinked_file_refused|executable_file_refused|file_too_large|read_failed|invalid_utf8_or_nul|changed_while_reading|read_only_mode|protected_store_write_refused|structural_validation_refused|stale_expected_sha256|random_unavailable|no_outstanding_proposal|wrong_proposal_id|proposal_state_refused|non_owner_refused|lock_unavailable|stage_create_failed|write_failed|file_sync_failed|rename_failed|owned_cleanup_failed|committed_durability_uncertain|root_unavailable|permission_preservation_refused|metadata_changed|inventory_limit|root_directory_refused|writer_capacity_refused|" 106 note Read-only, fixed kernel identity metadata; this is not a caller-selectable maintenance path. 107 text amproc "/proc/self/status" 108 text amcinh "CapInh:" 109 text amcprm "CapPrm:" 110 text amceff "CapEff:" 111 text amcamb "CapAmb:"