interplane.Get Omega
Read in your language

aienux

Aienux, the AienOS kernel: boot, scheduling, IPC and capability boundaries. Pre-alpha; host, emulator and physical evidence are labelled separately.

Brought by drakestapleton

branch main Branches Tags History

aienux / native / argus / argus_core.h

38 lines · 1883 bytes Raw Blame History
1/* SPDX-License-Identifier: Apache-2.0
2 * Copyright 2026 Drake Stapleton (AIEN / aien-dev)
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17/*
18 * argus_core.h -- capacity constants of the ARGUS-0 resident state engine.
19 *
20 * Public entry points live in argus_abi.h. This header only exposes the fixed
21 * table sizes so tests and the integrator can reason about them. The layout of
22 * struct ArgusStateView / struct ArgusCore stays private to argus_core.c.
23 */
24#ifndef ARGUS_CORE_H
25#define ARGUS_CORE_H
26#include "argus_abi.h"
27
28#define ARGUS_CORE_CAPS 256u /* == AIENOS_CAP_MAX; indexed directly by cap_id */
29#define ARGUS_CORE_MACHINES 64u /* includes REMOVED tombstones (never freed); kept sorted by machine_id */
30#define ARGUS_CORE_ARTIFACTS 256u
31#define ARGUS_CORE_LEASES 256u /* lease ids are never reused, so the table only grows */
32#define ARGUS_CORE_PROVIDERS 32u
33#define ARGUS_CORE_PRODUCERS 256u /* sequence streams in total, keyed (machine_id, stream id, consumer bit), sorted */
34#define ARGUS_CORE_WORLDS ARGUS_WORLD_STORES /* per-store World shadows (8), sorted by store_id */
35#define ARGUS_CORE_INCIDENTS 256u /* distinct (principal, finding code) with severity >= HIGH */
36#define ARGUS_CORE_MAX_FINDINGS 32u /* internal scratch per ingest; more are counted then truncated */
37
38#endif /* ARGUS_CORE_H */