interplane.Get Omega
Read in your language

omega-mcp

aien-dev/omega-mcp

Brought by drakestapleton

branch main Branches Tags History

omega-mcp / maintenance / state.om

111 lines · 4344 bytes Raw Blame History
1note Agent-maintenance shared state. Composed after pinned JSON/SHA units in OM-2 program mode.
2note Only amerror is consumed by the transport. All proposal material is connection-local memory.
3global amerror uint 1
4global amreq ulong 3
5global amwhy int 1
6global amv ulong 16
7global amfd int 5
8global amroot uchar 4096
9global amfile uchar 128
10global ambef uchar 65536
11global amaft uchar 65536
12global ampre uchar 64
13global ampost uchar 64
14global amhash uchar 64
15global amtok uchar 64
16global amstage uchar 128
17global ammeta ulong 11
18global ampmeta ulong 11
19global amnext ulong 11
20
21const amrootn ulong 0
22const amwrite ulong 1
23const amprot ulong 2
24const amstate ulong 3
25const amfilen ulong 4
26const ambefn ulong 5
27const amaftn ulong 6
28const amcurn ulong 7
29const amstgn ulong 8
30const amrenam ulong 9
31const amlocko ulong 10
32const amstageo ulong 11
33const amvalc ulong 12
34const aminvc ulong 13
35const amderr ulong 14
36const ammax ulong 65536
37note fd slots: root=0, target parent=1 (may alias root), current=2, stage=3, lock=4.
38note Proposal states: 0 absent/invalidated, 1 proposed, 2 applied, 3 rolled back.
39note ARM64 flags sourced from asm/fcntl.h, asm-generic/fcntl.h and pinned host fixtures.
40note WolframLanguageEvaluator: FromDigits[#,8]& /@ {040000,0100000,02000000,00004000,00000100,00000200}
41note using string inputs returned {16384,32768,524288,2048,64,128}.
42note BitOr directory/nofollow/cloexec ->573440; read/nofollow/cloexec/nonblock ->559104;
43note rdwr/create/excl/nofollow/cloexec ->557250. No O_TRUNC is ever used.
44const amodir int 573440
45const amord int 559104
46const amonew int 557250
47const amolock int 557249
48const amreg ulong 32768
49const amtyp ulong 61440
50const amxbit ulong 73
51note WolframLanguageEvaluator: FromDigits[#,8]& /@ {"600","7777"} -> {384,4095}.
52const ampriv int 384
53const ampmode ulong 4095
54
55text amslash "/"
56text amargro "--root"
57text amargwr "--allow-write"
58text amkeep "/srv/aien-keep"
59text amrules "RULES.md"
60text amwatch "WATCHDOG.yml"
61text amconfig "config.yml"
62text amagents "agents"
63text amagentp "agents/"
64text ammd ".md"
65text amlock ".agent-maintenance.lock"
66text amstpre ".agent-maintenance-"
67text amstend ".tmp"
68text amhex "0123456789abcdef"
69text 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
71text amkok "ok"
72text amkerr "error"
73text amkfile "file"
74text amkroot "root"
75text amkmode "mode"
76text amkprot "protected_store"
77text amkfiles "files"
78text amkstat "status"
79text amksha "sha256"
80text amksize "size"
81text amkbody "content"
82text amkprop "proposal_id"
83text amkbef "before_content"
84text amkaft "after_content"
85text amkpre "before_sha256"
86text amkpost "after_sha256"
87text amkchng "changed"
88text amkallow "apply_allowed"
89text amklimit "limitations"
90text amkvalid "validation_code"
91text amkstate "state"
92text amkreld "runtime_reloaded"
93text amkpers "rollback_persistent"
94text amkdur "durability_confirmed"
95text amkadir "agents_directory"
96text amrdonly "read-only"
97text amwrmode "write-enabled"
98text ammiss "missing"
99text amexists "existing"
100text amrefuse "refused"
101text amappl "applied"
102text amrolled "rolled_back"
103text amvalid "valid"
104text amkcomm "committed"
105text 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|"
106note Read-only, fixed kernel identity metadata; this is not a caller-selectable maintenance path.
107text amproc "/proc/self/status"
108text amcinh "CapInh:"
109text amcprm "CapPrm:"
110text amceff "CapEff:"
111text amcamb "CapAmb:"