Skip to content

Commit ebd068c

Browse files
chore: include all pending refoundation and runtime changes
1 parent 7dc4e28 commit ebd068c

487 files changed

Lines changed: 12331 additions & 4544 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Documentation/formal/tla/yai_enforcement.tla

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
EXTENDS Naturals
33

44
EnforcementStatus == {"ok", "error"}
5-
EnforcementCode == {"OK", "AUTHORITY_BLOCK", "POLICY_BLOCK", "WORKSPACE_BIND_MISMATCH"}
5+
EnforcementCode == {"OK", "AUTHORITY_BLOCK", "POLICY_BLOCK", "SCOPE_BIND_MISMATCH"}
66
ReviewStates == {"clear", "blocked", "review_required"}
77

88
EnforcementInvariant(status, code, reviewState) ==
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
--------------------- MODULE yai_scope_state ---------------------
2+
EXTENDS Naturals
3+
4+
ScopeStates == {"created", "active", "attached", "suspended", "destroyed", "error"}
5+
6+
ScopeInvariant(state, runtimeAttached, wsId) ==
7+
/\ state \in ScopeStates
8+
/\ runtimeAttached \in BOOLEAN
9+
/\ wsId \in STRING
10+
/\ state = "attached" => runtimeAttached
11+
12+
=============================================================================

Documentation/formal/tla/yai_system.tla

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ INSTANCE yai_ids
55
INSTANCE yai_authority
66
INSTANCE yai_resolution
77
INSTANCE yai_runtime_state
8-
INSTANCE yai_workspace_state
8+
INSTANCE yai_scope_state
99
INSTANCE yai_enforcement
1010
INSTANCE yai_protocol_control
1111
INSTANCE yai_traceability
@@ -20,7 +20,7 @@ CONSTANTS
2020

2121
VARIABLES
2222
runtimeState,
23-
workspaceState,
23+
scopeState,
2424
authorityLevel,
2525
policyMode,
2626
grantValidity,
@@ -31,7 +31,7 @@ VARIABLES
3131

3232
TypeInvariant ==
3333
/\ yai_runtime_state!RuntimeTypeInvariant(runtimeState, MaxEnergy, TRUE)
34-
/\ yai_workspace_state!WorkspaceInvariant(workspaceState, TRUE, "ws")
34+
/\ yai_scope_state!ScopeInvariant(scopeState, TRUE, "ws")
3535
/\ yai_authority!AuthorityTypeInvariant(authorityLevel, "allow")
3636
/\ yai_policy_application!PolicyApplicationInvariant(policyMode, 1, 1, "snapshot")
3737
/\ yai_grants!GrantInvariant(grantValidity, 1, 2, 3)
@@ -45,7 +45,7 @@ TypeInvariant ==
4545

4646
Init ==
4747
/\ runtimeState = "ready"
48-
/\ workspaceState = "attached"
48+
/\ scopeState = "attached"
4949
/\ authorityLevel = "operator"
5050
/\ policyMode = "active"
5151
/\ grantValidity = "valid"
@@ -56,7 +56,7 @@ Init ==
5656

5757
Next ==
5858
/\ runtimeState' \in {"ready", "running", "suspend"}
59-
/\ workspaceState' \in {"attached", "active", "suspended"}
59+
/\ scopeState' \in {"attached", "active", "suspended"}
6060
/\ authorityLevel' \in {"none", "operator", "system"}
6161
/\ policyMode' \in {"pending", "active"}
6262
/\ grantValidity' \in {"valid", "refresh_required", "expired", "revoked"}
@@ -65,7 +65,7 @@ Next ==
6565
/\ reviewState' \in {"clear", "review_required", "blocked", "escalated"}
6666
/\ traceId' \in Nat
6767

68-
Spec == Init /\ [][Next]_<<runtimeState, workspaceState, authorityLevel, policyMode, grantValidity, containmentMode, enforcementStatus, reviewState, traceId>>
68+
Spec == Init /\ [][Next]_<<runtimeState, scopeState, authorityLevel, policyMode, grantValidity, containmentMode, enforcementStatus, reviewState, traceId>>
6969

7070
THEOREM Spec => []TypeInvariant
7171
=============================================================================

Documentation/formal/tla/yai_workspace_state.tla

Lines changed: 0 additions & 12 deletions
This file was deleted.

Documentation/formal/traceability/invariant-linkage.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@
2727
},
2828
{
2929
"id": "F-005-scope-binding",
30-
"modules": ["yai_workspace_state", "yai_runtime_state"],
30+
"modules": ["yai_scope_state", "yai_runtime_state"],
3131
"configs": ["yai_system.deep.cfg"],
32-
"runtime_surfaces": ["runtime_capabilities_bind_workspace"]
32+
"runtime_surfaces": ["runtime_capabilities_bind_scope"]
3333
}
3434
]
3535
}

Documentation/formal/traceability/model.map.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"yai_authority": ["runtime/authority", "runtime/enforcement", "governance/authority"],
77
"yai_resolution": ["governance/resolution", "governance/manifests"],
88
"yai_runtime_state": ["runtime/lifecycle", "runtime/session"],
9-
"yai_workspace_state": ["runtime/scope", "data/binding"],
9+
"yai_scope_state": ["runtime/scope", "data/binding"],
1010
"yai_policy_application": ["runtime/policy", "governance/policy_effects"],
1111
"yai_grants": ["runtime/grants", "runtime/containment", "edge"],
1212
"yai_containment": ["runtime/containment", "runtime/enforcement"],

Documentation/yai/YAI_OS_TOPOLOGY.md

Lines changed: 2 additions & 2 deletions

Documentation/yai/system_shm_bootstrap.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ int yai_init_system_shm(void)
6868
}
6969

7070
memset(vault, 0, sizeof(yai_vault_t));
71-
strncpy(vault->workspace_id, SYSTEM_WS, MAX_WS_ID - 1);
72-
vault->workspace_id[MAX_WS_ID - 1] = '\0';
71+
strncpy(vault->scope_id, SYSTEM_WS, MAX_WS_ID - 1);
72+
vault->scope_id[MAX_WS_ID - 1] = '\0';
7373

7474
if (munmap(vault, sizeof(yai_vault_t)) != 0) {
7575
perror("[YAI-RUNTIME] munmap failed");

Documentation/yai/topology/DUAL-EXECUTION-CONVERGENCE-SUPERVISOR-BOUNDARY.md

Lines changed: 1 addition & 1 deletion

arch/alpha/boot/bootpz.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ extern char _end;
233233

234234
/* KSEG addresses for the uncompressed kernel.
235235
236-
Note that the end address includes workspace for the decompression.
236+
Note that the end address includes scope for the decompression.
237237
Note also that the DATA_START address is ZERO_PGE, to which we write
238238
just before jumping to the kernel image at START_ADDR.
239239
*/

0 commit comments

Comments
 (0)