Architecture document · revision k

CroakOS: the network, the operating system, and the security model

John W. Fawcett · 29 November 2026 (revision k). The diagrams are from the companion deck. The same text is in the repository at docs/CroakOS-End-to-End-Architecture-2026-11-29k.md, on the branch communicator-keys-20261124.

The system in one view

FrogNet is the general method for making a network out of the machines and links that are actually available. CroakOS is the implementation of that method as a distributed operating system. It provides discovery, service placement, shared memory, scheduling, and a programmable communications path across those machines. An application does not have to build its own broker, discovery service, replica manager, notification bus, and failover procedure before it can do useful work. It defines what it owns, what it needs, and what it does when that information changes.

This design began with search and rescue. In a disaster, there may be one machine, a few machines in radio range, several isolated groups, a working uplink, or no uplink at all. A network that depends on its planned topology cannot be the foundation. The machines have to discover the current topology, form whatever network it permits, and do that again as conditions change. CroakOS carries the same principle into the application: each service discovers the current set of participating machines, selects where its active memory lives, reasserts the facts it owns, and resumes work from the resulting shared state.

Security is part of these decisions. An administrator may leave the base network open so that victims and responders can make contact, restrict entry to an operational network, and impose further restrictions on a particular service or application. The Role, rather than a universal wire format, determines what its communications mean and which operations may pass. Its data model and API can be tailored to a workflow. Its semantic representation, protocol, cipher, key, and RAM host can be changed independently. The same infrastructure can thus support an open rescue service alongside a tightly controlled operations service without making their permissions or data interchangeable.

1. From a physical device to a network

Discovery: islands form, meet, and merge.
Discovery: islands form, meet, and merge.

The first abstraction is the logical device. Ethernet, Wi-Fi, a radio, or an Internet tunnel supplies different physical behavior; the discovery and routing system reasons about the links each device can actually provide. A machine starts with the local interfaces and neighbors it can see. A second machine does the same. Each forms or joins a local mesh from observed connectivity. When two meshes encounter one another and their admission rules allow it, they converge. No global authority has to distribute a complete, immutable list of machines before the first two can work together.

Connectivity and admission are distinct questions. A link may exist without either side being allowed to join the other's network. For disaster access, the base network can be deliberately permissive. For infrastructure or a private team, an administrator can require invitations or member admission at the base network. The region mechanism can give a newly admitted machine its own identity, address, key, and tunnel: a member's introduction need not make that member a permanent relay or custodian of the newcomer. Further service restrictions can be imposed after the machines have joined. This is a set of policy choices applied where they belong, not one compulsory trust setting for every CroakOS deployment.

As visible membership changes, discovery runs over the world now visible. The local bootstrap point can be calculated from eligible addresses; the control/bootstrap RAM is reached at the highest eligible address in its visible set. From there, machines publish their capabilities and learn the current system. The bootstrap address is an entry into discovery, not an application address that must remain pinned to one piece of hardware. The selected System RAM and each application RAM can subsequently have their own placement decisions. Hostnames such as databasehost and an application-specific ...Host.frognet provide stable service names while the physical address behind each name changes.

Regional connections extend this process beyond one LAN. A region host can carry the admitted machines' tunnels and permit communication between members whose local link has disappeared. A node can belong through its own tunnel even if the neighbor that first introduced it powers off. A split may leave two functioning meshes with different visible members; a merge changes the visible membership again. The operating system responds to both by rediscovering, reselecting, and rebuilding current shared state. It does not require an application to guess which one of a fixed collection of failure scenarios occurred.

2. The common memory address and the scheduling primitive

One tuple change, several independent consumers.
One tuple change, several independent consumers.

CroakOS presents RAM through a three-part tuple address. The three coordinates are chosen by the service author. They can be understood as Program.Variable.Instance, SensorType.SensorName.SensorAddress, or any other three-dimensional naming scheme that fits that Role. A fully specified tuple names one current value in a RAM space; wildcards select a family of related tuples. The address format is common across the system, while the meaning of an address belongs to the service defining it. Two Roles may use the same tuple shape without sharing a schema or exposing one another's data.

There are multiple RAM spaces, not one undifferentiated global dictionary. Control/bootstrap information, system capabilities, an application's general data, a team's data, and another Role's data can have different owners, hosts, APIs, and access rules. An application may define several Roles and several RAM spaces and decide their relationships. A Role's service can derive its RAM server from the common platform and still supply its own API, interpretation, and enforcement. Authentication to a RAM service establishes a session; application-specific authorization of a particular object or operation is the responsibility of the service that owns that space.

The writer publishes a fact it owns into its current RAM. A reader names the value or wildcard family it needs. A held read lets that reader wait for a relevant change. The reader then inspects the new value and schedules its own work. The producer neither knows its consumers nor calls them directly. The scheduling relationship is declared by the consumer, one tuple family at a time. This makes change notification an operating-system facility while allowing each Role to decide what the notification means. A producer might publish a water pressure reading; a monitor, controller, recorder, and display may each react differently to the same change without being compiled into the producer. Which participant may write which tuple is the application's to decide and to enforce; the memory stores what a participant of the Role writes.

This is why the model is more than a shared storage API. A program can use the network much as it uses shared state and scheduled work on one machine: write the truth it owns, read the state it needs, register interest in changes, and act when they occur. Location, transport, and service selection are handled below that programming surface. Roles may depend on other Roles, but do so through their published API and RAM contract. A consumer need not understand how another Role places its host or computes its internal state.

3. Roles, capabilities, and placement

One Role, three machines, one active RAM.
One Role, three machines, one active RAM.
Split and merge: the RAMs follow the visible network.
Split and merge: the RAMs follow the visible network.

A Role is a service a machine is configured to provide. Its package can include executable service code, an API, one or more RAM schemas, rules for interpreting tuples, a placement algorithm, and its own communication and security behavior. The administrator controls which machines are eligible to provide it. An eligible machine runs the installed service and publishes a capability describing what is present. The visible capability tuple family gives all participating machines the facts from which to make the same placement calculation.

Only one selected host serves a particular active Role RAM in a given visible network, even when the Role service is installed on multiple machines. Selection is deterministic over the current capabilities and the Role's own criteria. The address or hostname used to reach that RAM follows the election. A service can use hardware capacity, proximity, an administrator's primary designation, or another Role-specific criterion; it is not necessary to give all Roles the same placement policy. A service can also choose to stop on a partition where a required primary is absent or to relocate to an eligible host on that side.

When a machine joins, its installed services publish what they provide. Consumers read the resulting capability families, discover the selected service locations, and attach to the RAM spaces their application needs. When a link splits or merges the network, everyone recomputes against the new visible membership. Each participant assumes that an old RAM view may no longer be valid. It locates the current RAM, reasserts only the facts it owns, reads the facts it needs from other owners, and resumes held reads. No arbitrary replacement host invents the missing truth of another participant. When a machine leaves, the RAM removes the facts that machine wrote, so the current view never presents a departed owner's statements as current. A service's logical continuity comes from its owners and its API, not from treating one physical RAM image as a permanent database.

The ticket-manager example makes this concrete. Ticket managers are Roles that own particular ticket objects and expose a ticket API. Each manager maintains the set it is responsible for and reasserts that set to its current RAM after a network event. A coordinating ticket Role can discover those published tickets and hold references to their managers. The ticket is a managed object, not an orphaned tuple that a newly elected empty RAM must guess how to reconstruct. An application can decide how long an authorization lives, what a manager may assert, and what it does when that manager is absent. These are object and service rules at the appropriate API boundary.

4. The abstraction points a service author controls

The stack is intentionally open at several layers. Each layer gives the next a stable interface while allowing a Role or installation to supply a specialized implementation.

Layer What it abstracts What may vary
Physical and logical device The underlying way two machines can communicate Ethernet, Wi-Fi, radio, tunnel, local and wide-area links
Discovery and routing The current reachable members and paths Local mesh, regions, split and merge behavior, permitted peers
Bootstrap and system control Finding the current system and its capabilities Eligible control host, region membership, system placement
Capability and placement Which machines offer a Role and which serves its RAM Administrator eligibility, Role-specific deterministic selection, primary policy
RAM and tuple schema Addressing the current objects of a service Tuple coordinates, wildcard families, separate RAM spaces, preloaded objects
Scheduling Reacting to changes in those objects Consumer subscriptions and the work each consumer runs
Role API The operations permitted on a managed object Object creation, reads, updates, authorization, refusal, domain invariants
Semantic representation What information must cross a connection Full object, reference, template match, delta, compact domain representation
Role protocol How that information is framed and validated for its task TCP carrier, Chorus, another driver, domain-specific grammar and checks
Channel protection Protecting each frame and shifting its settings Sealing, cipher, key derivation and key change, independent directional settings
Admission and administration Who can join and change operation Open or restricted base fabric, region policy, Role policy, user and device credentials

The layers do not imply that every application must implement each one afresh. A Role can take the common defaults or replace the part its task requires. A custom protocol can be much more than a message serialization. A protocol_water could admit only recognized sensor identities, units, ranges, operation types, sequence semantics, and control transitions. A protocol_electrical could define a different grammar and enforce power-system invariants before a request can become a valid Role operation. Refusal is part of the custom protocol: it accepts only the messages it has a template for, and everything else is rejected at the protocol boundary, before it reaches the service's object API or equipment. The templates name the message shapes the Role uses, and the limits on the values inside them belong to the same protocol. The Role owns that rule; unrelated Roles need not parse or understand the wire format.

A cipher_water or cipher_power can name a domain's channel protection profile: its permitted algorithm, key schedule, policy, and operational handling. These are profile names, not an assertion that a novel mathematical cipher is needed. A Role can select a well-established cipher while changing its permitted keys, settings, and protocol according to that domain's policy. A government service could similarly supply its own API, tuple schema, semantics, wire protocol, and protection profile and run next to other Roles without making those other Roles adopt its format.

5. What crosses the wire

Roles, the output manager, the shared wire and the receiving handler.
Roles, the output manager, the shared wire and the receiving handler.
One frame on the wire.
One frame on the wire.

A Role starts with an object and a purpose, not an obligation to broadcast a full object. Both ends can have preloaded templates, reference data, customer context, or a portion of a RAM space. The semantic layer can use that common context to send only what is new: a reference, a change, or a compact representation. Preloading can reduce traffic and avoid transmitting a sensitive template at all. Separate customer-specific RAM spaces, schemas, and Roles can prevent one customer's normal workflow from drawing on another customer's data. Their isolation depends on the Role's placement and authorization policy as well as on what was preloaded.

The chosen Role protocol then packages the semantic result. Its implementation can be optimized for that workflow or check domain rules before accepting it. A common channel frame carries the Role's data and is sealed using the selected cipher and a key calculated from the Role's secret, which each participating end already holds. Nothing that goes into the key is on the wire. The protocol information used to interpret the sealed content sits inside the protected frame, and so does the Role's name: a receiver finds the Role a new sequence belongs to by opening its first frame with the secrets it holds, and the one that opens is the Role. A key change is a point in the stream. The sender puts a switch call in the stream; everything before it is under the key in use, and everything after it is under the next key, which both ends calculate from the secret. No number, no identifier, and no key crosses the wire to make that happen. A sealed Role therefore shows an observer the length of each frame and the cipher's nonce, and nothing else. A Role is either sealed or not, by one setting that is the same for every participant. A Role that is not sealed sends its frames plain. A plain frame for a sealed Role is rejected. Across an Internet path, WireGuard supplies a separately keyed tunnel around the channel traffic. The network operator can therefore control admission to the tunnel, while the Role controls the meaning and protection of the data inside it.

On the wire this is one connection between two machines, shared by every Role that has traffic between them. On the sending machine the output manager is that connection's writer: it takes each Role's message, frames it, and seals it under that Role's current cipher and key. A sealed frame's length and the cipher's nonce are outside the seal. Inside the seal are the frame's place in its Role's sequence, the identifier of the Role's protocol, and the data that protocol packed, which is an FNWP-1 message: an operation code and the fields the operation needs. On the receiving machine the receiving handler takes each frame off the connection, opens it, and gives its message to the Role it is for. Roles therefore share a wire without sharing a protocol, a cipher, or a key.

Protocol, cipher, key, and physical RAM host are different variables. An administrator may switch the protocol without changing the application object, change the cipher or key while the application runs, or move the active RAM host when topology or operational policy requires it. The other end follows the current channel and Role state. Every Role has its own secret, and a Role reads no other. The secret is never distributed in a message; the participating ends independently derive the working key for the Role from the secret they hold, and derive the next one at each switch call. A Role's secret also moves forward at each key change, through a one-way step: an earlier generation cannot be worked out from the current one, and each machine erases the earlier one as it moves. A secret taken from a machine today therefore does not open traffic recorded before the last change. A machine that holds the Role advances from the generation it has to the current one, which is what lets an absent end catch up. An administrator who no longer wants a Role on a machine removes it from that machine. Each machine stores its secrets encoded with a random value it made for itself. Nobody but that machine needs to know the encoded form, and a stored secret copied to another machine does not decode there. To advance, the machine decodes its own copy, advances, and stores the result encoded again. An end that was absent for some key changes holds an older generation, and nothing has to be sent to it for it to catch up. It advances the secret it already holds one generation at a time, up to one hundred times, until it can read what arrives. Past that bound the end opens nothing for the Role and must take the secret again through enrollment, which for a phone or a desktop is the QR code. The channel settings need to be available to the participating Role endpoints, not advertised as a directory of every Role's cipher and key settings to machines that have no part in that exchange.

Changing the RAM host can change the tunnel path as well as the service address. These dimensions reinforce one another: an outside observer does not receive an ordinary public application port to scan; a participant must be admitted to the appropriate network and Role; protected traffic does not expose the Role protocol; and the end points can change the protected channel's settings without restarting the application. This is a design for limiting reach, intelligibility, and persistence of an attack, with the actual access decision still enforced by the relevant Role API.

6. Admission, identity, and administrative scope

There is no universal instruction to close the discovery network. Search and rescue may call for open base connectivity so that an unknown victim can reach a service. An infrastructure operator can impose base-network admission, and a sensitive Role can impose narrower rules even when other Roles on the same fabric are accessible. The decisions are separate: can a machine form a link; can it join a region; can it reach a RAM service; can a person or application use a Role; and can that caller perform this particular operation on this object? Authentication at one level does not answer every subsequent question.

Invitations and an existing member's introduction are two ways a restricted region can admit a machine. Under inherited admission, the joining machine presents its own identity and key; an existing member vouches for the direct link under the region's current policy; the region host assigns that machine its own tunnel credentials. The new member subsequently participates in its own right. A region administrator can deny or allow this inheritance. Other deployments can choose different base and Role policies. QR-based transfer can make device or user enrollment practical without changing the scope of the authorization it conveys.

Windows and Android applications are not merely displays of a Linux server's decisions. They can be the human interface to a Role, including its administration and its communications. A person's authorized change to a Role configuration is written as an admin tuple in the appropriate RAM. Machines that participate in the Role maintain an interest in the admin tuple family. A change wakes each consumer, which reads the current admin value and updates its local admin tuple. On attachment or recovery, it scans that family and selects the most recent stamped admin value so that a missed notification does not strand an older setting. Each machine that hosts a memory of the Role keeps its own copy of the current setting in that memory, so the setting is there to be read after the memory's host changes. An end that has fallen behind, for example one restarted while the Role was sealed, takes the current key number, cipher, and secret generation from the first frame it is able to open and runs those until it reads the setting itself. This uses the same memory and scheduling mechanism as the rest of the operating system. There is no special per-machine configuration-message scheme for the administrator to maintain.

The scope of each setting matters. System discovery and admission information belongs at the system level. A Role's cipher, key switch, protocol, and participant reports belong to that Role's operational scope. A generic dashboard or system directory should know that a Role exists and where it is served, not disclose the security details of a conversation in which it does not participate. The participating endpoints can read their Role state and derive the information needed to exchange protected frames.

7. A full operation, including a network event

Consider a water infrastructure Role. Its administrator installs the service on authorized machines, supplies the tuple schema and API for sensors and controls, sets the eligible hosts and admission policy, and preloads any site-specific templates and protected context. A sensor-side participant joins through whichever local or regional paths its deployment permits, locates the current system, and publishes its own capability and sensor facts. The water Role's participants discover their peers through the capability and Role tuples. The placement algorithm selects the current active water RAM host.

The sensor publishes a measurement to a tuple it owns. A controller that has subscribed to the relevant family wakes, reads the new value, and decides what to do. If it requests an operation, the water Role's semantic layer represents only the information that needs to cross the link. The water protocol checks whether the operation belongs to its grammar and policy, packages it, and hands it to the channel. The channel seals it under the water Role's current settings, and the network carries it through the permitted link or tunnel. At the receiving end, the channel opens the frame, the protocol interprets and checks it, and the water API enforces the authorization and object-level rules before changing the corresponding RAM object. Consumers of that object schedule their own work when its tuple changes. Neither the original sensor nor the transport needs a list of those consumers.

Suppose the active RAM machine disappears or disconnects. The visible network reforms; eligible machines calculate the new placement; each sensor, controller, and other owner attaches to the current RAM and republishes only its own truths. Participants read whatever their peers have made available and continue as those facts arrive. A Role that cannot safely act without a missing authority can withhold that action while still allowing other work. On a later merge, placement is recalculated for the merged membership, owners reassert their states, and consumers follow the selected RAM. The appropriate domain object rules decide how competing or temporarily absent facts are handled; a byte-for-byte memory copy is not the source of authority.

During ordinary operation an authorized administrator can change the water Role's protocol or channel protection settings through the Role's configuration path. The participants learn the new setting through their RAM subscriptions and apply it to subsequent traffic. The application continues to address the same water objects through its API. A different electrical Role on the same underlying network can use its own schema, protocols, policies, and channel settings. That separation is the point of standardizing the infrastructure beneath the Roles: shared discovery, RAM, scheduling, and channel machinery without a shared vulnerability to one universal application grammar.

8. Chat and the Communicator as demonstrations of the whole

Chat is the smallest visible demonstration of the channel. Two machines exchange application messages while the channel is sealed, the cipher changes, the key switch advances, or the protocol driver changes. The messages continue without an application rewrite. When the selected RAM host changes, the application follows its service location. Chat makes the independent channel variables easy to see because the human payload is simple.

The Communicator applies the same operating-system facilities to a harder workload: a live Android-to-Windows call. Its audio and video travel through the Role's sealed channel, and the application prioritizes audio over video under restricted or varying bandwidth. Presence, chat text, and call signaling are tuples in the Communicator's own RAM; that RAM connection is under the Role's channel and has no unsealed state: its first byte is sealed with the key each end already holds, and the memory takes no connection that is not. Its media path measures what the connection can carry and adjusts video rate and resolution, including falling back to small grayscale frames at very low rates, so speech remains usable. Frame segmentation and nonblocking video sending prevent a backlog of obsolete video from dictating the call's latency. A path slower than the video being sent sheds video frames and steps the picture size down; it does not end the call, and dropped video does not delay audio. Channel settings can change during a call, and bandwidth can be varied separately to expose the adaptive media behavior. The mobile and desktop applications also illustrate how people interact with Roles through a practical interface rather than through shell commands.

The channel also has its own test program, used in ordinary development: core/channel_test.py. With traffic running to a memory of the Role on every other node, it seals the Role, changes the key, the cipher, and the protocol in turn, and then writes three settings that must be refused: a forged one, a valid one with a field altered, and a valid one from a generation already passed. It then moves a memory to another RAM host under the same traffic. On 29 November 2026 it was run on a seven-node network with 23 reporting ends. Every one of the 23 ends refused each of the three settings, the memory's host was moved in 1.7 seconds with no request failed, and 2,423 round trips completed with none failed. Of its 69 checks, 65 passed; the four that did not were on the first two changes and named ends that had been restarted shortly before the run.

That run was of the channel as built on that date, in which a sender stated the Role's name, its own identifier, and a key number in the clear, a Role without a secret of its own used one placed for the whole network, and the Communicator's memory was not yet under the channel. The channel described in section 5, with nothing of the key on the wire and the memory always sealed, is the design the code on the review branch is being changed to; this document will carry the results of the same test on it when it has run.

The two demonstrations serve different purposes. Chat isolates the security and host-switch controls. The Communicator shows why those controls matter when the application has continuous, time-sensitive traffic and actual users at both ends. Neither is the definition of CroakOS. The system underneath them is the product: a network that assembles itself, a distributed memory and scheduling model, Role-specific APIs and protocols, and independent policy and protection at the scopes where work actually happens.

9. Brownfield deployment and application conversion

Brownfield: the Role decides what reaches equipment.
Brownfield: the Role decides what reaches equipment.

An existing site need not replace every application before it can participate. A CroakOS node can sit at a brownfield boundary, provide the existing network's DHCP and routing path, and establish an admitted path to other CroakOS nodes. The operator can then introduce Roles for site connectivity, monitoring, communication, or domain control while existing equipment continues to operate. The boundary is a useful point for controlling reach and for moving particular workflows into richer Role APIs. What the site permits through that boundary is an administrative and domain decision.

The brownfield insertion is, in fact, the generation of the acceptable template set for a fixed-purpose site such as a water or power system. The node at the boundary observes the site's real operational traffic and extracts its templates, and that set becomes a narrow, custom Role protocol. In industrial and critical infrastructure networks, generic protocol parsers often allow far more commands, registers, or message shapes than a specific field device actually uses. The Role's protocol handler rejects any incoming request that does not have a template, so what is accepted at the boundary shrinks to the exact patterns the site uses, and everything outside that profile is rejected before it reaches the underlying equipment. In stricter environments the handler can also reject a request whose template it has not seen enough instances of, so that a shape observed once or twice does not become acceptable on that evidence alone. The protocol's author adds, deliberately, the operations that are legitimate but rare, such as an emergency shutdown or a maintenance command, because a period of observation may never show them.

For software conversion, the existing application's public API and its tests can remain the contract while internal message, broker, lock, and replicated-state machinery is replaced with owned RAM objects and consumer scheduling. The SARA ticket conversion is a useful example: ticket objects and managers are assigned clear ownership, claims become operations on the ticket API, and the existing connector tests examine whether the external contract still holds. Redis, MQTT, LISP, PyTorch, chat, and other conversions exercise different parts of the same programming model. The point of these conversions is not that every program becomes a chat app. They show that a service can keep its behavior while giving state ownership, discovery, and change scheduling to the operating system.

The same base can therefore support emergency operations, defense command workflows, infrastructure sites, commercial applications, and developer training. Each has its own policy, API, and business purpose. The reusable asset is the coordinated programming surface and the set of abstraction points on which those applications are built.

10. How the security properties combine

There are three useful questions for a defender: Can an uninvited party reach it? Can someone who sees the traffic read or make sense of it? If one component is taken, how far can that reach and for how long? CroakOS addresses the first through topology, admission, tunnels, and service-level reach; the second through preloaded context, Role semantics, protocol checks, channel sealing, derived working keys, and outer tunnel protection; and the third through separate RAM scopes, application-specific authorization, independently changeable channel settings, a Role secret that moves forward one way at each key change, and deterministic host relocation with owner reassertion.

These are interacting properties. A domain protocol can reject an invalid control instruction even if its bytes arrived intact. Prevention therefore goes further than blocking unauthenticated callers or unsealed frames: the Role boundary itself speaks and admits only a tightly constrained operational subset derived from the system's actual behavior. A preloaded template can make captured bytes insufficient to reconstruct an application object without the endpoint's context. A machine admitted to an open rescue service need not have access to a protected control Role. A host failure changes the selected RAM location while the object owners, rather than the old machine's historical contents, restore current state. An authorized operator can alter protocol, cipher, and key without taking the service down. Each key change erases the secret that preceded it, so what is taken from a machine today does not open the traffic recorded before that change. A sealed Role cannot be talked down to plain traffic: an unsealed request for it is refused, and a setting that has gone missing does not unseal it. Only the Role's owner, writing a new setting that proves itself with the Role's secret, changes what the Role runs. The system has security because the network, memory, scheduling, service contract, and channel have been designed together.

The precise claim to make to an evaluator is correspondingly concrete: show who can join at each scope; show what a nonparticipant can and cannot learn, which for a sealed Role is the length of each frame; show what a malformed domain operation, and a well-formed one the Role has no template for, does at the Role boundary; show the live cipher, key, protocol, and host transitions; and show how objects recover through split and merge. That gives a security professional an end-to-end system to test, rather than a stand-alone encryption trick.

Source trail and terminology

The governing application lifecycle is in opt/fdf/docs/APP-SETUP-AND-OPERATION.md in the FrogNet repository. Region, RAM, and held-read mechanisms are described in opt/fdf/docs/FDF-TECHNICAL-DESIGN.md. Channel framing and settings are in opt/frognet_semantic/core/channel_frame.py and channel_setting.py; protocol drivers are under the same core tree. The channel's test program is opt/frognet_semantic/core/channel_test.py. The inherited-admission system and its seven-node run are described in docs/inherited-admission-2026-11-28/INHERITED-ADMISSION-2026-11-28.md. All of these, and this document under docs/, are on the communicator-keys-20261124 branch. The SARA ticket conversion is on the worldshepherd-ribbit-20261124 branch. The names in this document distinguish the generic FrogNet network model from CroakOS as the distributed operating system built on it. “RAM” means the current addressed memory of a service, while “Role” means the service and its managed objects, API, placement, and behavior. The Role and its owners are the durable conceptual unit through network change.

Appendix A. Every point in the stack: the security mechanisms in play and how each can be customized

Point in the stack Security mechanisms in play How it can be customized
Physical and logical device The links a machine actually has are the only ones it uses. A link existing does not admit anyone. The administrator chooses which interfaces and link types a machine may use: Ethernet, Wi-Fi, radio, tunnel.
Discovery and routing Machines act on the membership they can see now. A split or a merge is followed by rediscovery, so policy applies to the network that exists. Local mesh only, or regions; which peers a machine may converge with.
Base-network admission Open, or restricted. In a restricted region a machine is admitted by an invitation carried in a QR code, or by inheritance, where an existing member vouches for it. Each admitted machine gets its own identity, address, key, and tunnel. The administrator sets the base network open or restricted, and allows or denies inheritance for the region. The setting can be changed while the region runs.
Protected tunnels Separately keyed WireGuard tunnels carry traffic between admitted machines. Services have no public-facing address. Which machines hold tunnels and through which region host; the region's own keys.
Bootstrap and system control The control RAM is found by a deterministic rule over the visible members. It holds what is needed to find the system and nothing of a Role's protection. Which machines are eligible to serve it.
Capability tuples and Role placement A machine serves a Role only if the administrator installed it there. The active RAM host is selected deterministically, and can be selected again after a loss or on a schedule. Eligible machines, a designated primary, the Role's own selection criteria, and whether the Role stops or relocates when its primary is not visible.
Role RAM spaces Each Role's objects are in its own RAM, apart from other Roles and other customers. A departed machine's facts are removed. Owners reassert their own facts after a network event. How many RAM spaces an application has, what is in each, what is preloaded, and what participants may not see or change.
Role API and authorization The Role's service decides who may perform which operation on which object. Admission to the network does not authorize an operation. The operations, the authorization rules, and the object-level invariants are the Role author's.
Tuple-family scheduling Settings and state reach participants through RAM. There is no separate configuration channel to protect. Which families each consumer watches and what it does when one changes.
Preloaded RAM, templates, and context What both ends already hold does not cross the wire. What is preloaded at each end, per Role and per customer.
Semantic representation A reference or a change crosses instead of the object. It has meaning only to an end holding the same context. Full object, reference, template match, or delta, by Role.
Task-specific protocol The Role's protocol handler accepts only the messages it has a template for and rejects everything else before the Role's API or the equipment. In stricter environments it also rejects a message whose template it has not seen enough instances of. The protocol itself: its template set, the limits on values, the instance threshold, and the rare operations its author adds deliberately. A site's set can be generated from its own traffic (Appendix B).
Role channel sealing Each frame is sealed after semantic and protocol handling, and the protocol's identity is inside the seal. A sealed Role refuses unsealed requests, and a missing setting does not unseal it. Sealed or not, by Role. The setting is changed by the Role's owner while the Role runs.
Cipher selection A registered, well-established cipher protects each frame. Which cipher, by Role, changed regularly or as needed without stopping the application. A domain can name its own protection profile.
Derived keys and forward-moving secret The working key is computed, never sent, from the Role's secret alone. A key change is a switch call in the stream, and both ends compute the next key. The Role's secret moves forward one way at each key change, so the current secret does not open traffic recorded before the change. An absent end catches up alone, up to one hundred generations. How often keys change, on a schedule or as needed.
Stored secrets Each machine stores its secrets encoded with a random value of its own. A copy of the stored form is of no use on another machine. Nothing to configure. A secret is placed or enrolled once, and the machine encodes it on receipt.
What a sealed frame shows Its length and the cipher's nonce. The Role's name, the frame's place in its sequence, the protocol, and the content are inside the seal. Not customized. It is the precise extent of what a frame reveals before it is opened.
Host movement and owner reassertion The active RAM host can be moved, which also changes the path and tunnels used to reach it. The new RAM is rebuilt from the owners of the facts. Moved regularly or as needed; monitored by the Role's own participants.
Scoped administration A change is written once, in the Role's RAM, by an authorized administrator from a Windows, Android, or other admin client. Participants adopt the newest value. Who administers which Role; base-network policy and Role policy are administered separately.

Appendix B. How a brownfield site works

A brownfield site is an existing installation, such as a water or power system, whose equipment and applications stay as they are. CroakOS is introduced at its boundary in two phases. The first phase learns the site. The second runs it in production under a protocol made from what was learned.

Insertion. A CroakOS node is placed at the boundary of the existing network. It provides that network's DHCP and routing path, so the site's traffic passes through it, and it establishes an admitted path to the other CroakOS nodes. The existing equipment is not changed and continues to operate. The node is admitted to its region by a QR code or by inheritance from a member already there.

Learning. The node observes the site's real operational traffic and extracts a template for each request and reply shape it sees. This is the generation of the acceptable template set for a fixed-purpose site. The period of observation is chosen to cover the site's normal cycle of operation. The author of the site's protocol then adds, deliberately, the operations that are legitimate but rare, such as an emergency shutdown or a maintenance command, because observation may never show them, and sets the limits on the values the templates carry.

The custom protocol. The template set becomes the site's own Role protocol, for example a protocol for that water system. The protocol handler rejects any incoming request that does not have a template. In stricter environments it also rejects a request whose template it has not seen enough instances of. What the boundary accepts is therefore the exact set of patterns the site uses, and everything else is rejected before it reaches the equipment.

Production. The site's Role runs sealed under its own cipher and key, with its own RAM, API, and authorization. Its participants monitor the Role's RAM, and the active RAM host fails over when it is lost and is also moved regularly and as needed. Keys and ciphers are changed regularly and as needed, without stopping the site's applications. Admission of any further machine is through a QR code or inheritance. Other Roles on the same network, such as a rescue or communications service, keep their own protocols, policies, and settings and cannot use the site's.

What a defender tests. An evaluator can present the boundary with a request the site never makes, a well-formed request outside the template set, a request with a value outside its limits, an unsealed frame, and a frame from a machine that was never admitted, and observe that each is refused at the level named in Appendix A.