Skip to content
SpaceghostPublic

About

No description, website, or topics provided.

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

847 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Writ

Data carries its terms.

Project website · Contribution guide

Writ is a Bend 2 library for information-flow control, capability-bound operations, and multiparty transformation approval. Data keeps its origin restrictions through copies, summaries, and transformations. Every admitted read is paired with an approved destination write.

GPU-directed solvers propose results. An independent Bend verifier checks the original constraints, and the commit path rechecks current authority before producing a scoped write intent.

Try it

Linux and Windows public preview installers and portable packages are published on GitHub Releases. Windows includes a tray applet, desktop activity/settings and S3 folder syncing. The local single-file previews share a Bend save monitor; directory reconciliation also runs in Bend. Both platforms must pass native tests before a desktop release. See Linux packaging and the Windows release pathway for reproducible builds, checksums and the native test gates.

Use Bend 2.0.39. The installation guide includes the pinned download, checksum, and native build instructions.

git clone https://github.com/Spaceghost/writ.git
cd writ
bend version
bend examples/Flow.bend

The examples follow one story: a restricted incident report becomes an approved internal summary. Each example explains its decisions and exits unsuccessfully if an expected result changes.

Run from the repository root What it demonstrates
bend examples/Flow.bend A summary inherits its source's restrictions; a forged candidate fails verification
bend examples/Transfer.bend Source and destination approvals must match, and provenance survives the transfer
bend Example.bend Negotiation, a live capability, and the final commit; revocation blocks release
bend GpuExample.bend All three device-requesting paths, with host verification and a denied batch member

Start with the walkthrough, or compare your run with the example outputs. Examples construct their own clearly marked synthetic authority records; they do not depend on test modules.

How a write is authorized

A solver proposes a type, label, and effect assignment. Core.verify checks it against the original graph. Transfer admission requires matching read/write grants and retains every origin's restrictions. Negotiation adds current origin approvals and a reader-funded reservation.

The combined release entry point is DataOS.commit_from_capability. It resolves the live descriptor and repeats the final authority checks before returning an updated session, ledger, and scoped write intent. The enforcing monitor owns that state and performs the actual effects. A candidate or ticket alone cannot authorize publication.

For signatures, trust assumptions, and failure behavior, see the library reference. The source comments explain the invariants at the functions that enforce them.

Inside

Modules Responsibility
Core, Gpu, GpuLibrary Type/effect constraints, parallel solving, independent verification
Dlm, DlmGpu, Transfer, TransferGpu Owner-sensitive labels, paired grants, inherited origin rules and payments
Negotiation, Ledger Candidate challenges, origin approvals, reader-funded reservations and replay checks
Frontend, Backplane, DataOS Capability mount protocol, live authorization and final commit
Guard, LAWS, PROOF Selected guard and state-preservation laws

Platforms

Windows is the first product target; Genode is the reference capability platform. Writ adds data-flow and operation policy above native capability/session enforcement. The same Bend decision core is intended for direct Linux, native Windows, and a later kernel using Drift for portable drivers.

Start with the platform architecture: it maps native authority, delegation, worker isolation, sealed artifacts, and publication to one host contract. The native filesystem contributions now provide one immutable public-canary view through WinFsp, Linux FUSE and native Genode File_system/VFS. Bend owns admission, exact identity, handles and revocation; OS bindings retain native requester evidence. Their execution record separates mounted behavior from complete confinement and product qualification.

Windows mounted reads, caller denial and revocation pass, including its LPAC reader. Its strict confinement gate still fails because direct network, clipboard and COM probes cannot initialize in that byte-worker profile. Separate no-data diagnostics pass but do not replace that missing qualification. The Windows record preserves both.

The native filesystem product plan prioritizes Windows. Complete protected hosts, arbitrary applications, external issuance and durable audit/publication remain pending. Native storage below has a separate boundary.

Native storage

WritFS adds native Btrfs subvolume snapshots, ZFS filesystem clones, and ZFS zvol block-volume clones. Bend authorizes the exact operation through the existing capability-to-commit gate, checks full native identities, and retains the complete output policy in a verified private-stage receipt. The filesystem performs the payload operation; there is no file-by-file copy or FUSE data proxy.

The initial backend creates private, read-only stages under a trusted administrative monitor. It includes an inspection/public-fixture CLI and disposable native filesystem tests. Whole-dataset presentation, device export, durable logical publication and complete worker confinement remain separate host work. The canary frontends do not yet expose whole staged datasets. See the backend guide and its verification record.

Status

The core implementation, tests, examples, and proofs are Bend 2. The historical core record covers 1942 checks on each of the JavaScript and native CPU backends. The 2,896-check suite includes 52 synthetic typed-edge observation checks, 35 bounded POSIX mount-frame description checks, 111 bounded synthetic binding-snapshot checks, 25 synthetic wide-word reserve checks, 39 bounded synthetic cleanup-reserve checks, 126 bounded synthetic legacy conversion checks, 36 descriptive frontend revision V2 primitive checks, 24 rendezvous allocation-boundary checks, 35 issuance allocation-boundary checks, 32 frontend allocation-boundary checks, 25 ledger numeric-boundary checks and 38 synthetic stage-graph structural checks and 37 synthetic locality conjunction checks, eight independent planner order checks and ten synthetic duplicate-binding checks, alongside 118 synthetic Linux monitor checks, five HostWire bounds and error-order checks, 39 synthetic handoff checks, 60 synthetic planner-envelope codec checks, one additional N48 boundary regression, 61 plan-comparison checks, two byte-range checks and 35 synthetic frontend-composition checks. The stage-graph checks describe only the supplied graph, not stage admission or completeness. The composition does not authenticate a planner request or implement an adapter. The codec produces untrusted descriptions; it does not implement a planner endpoint or admission. The POSIX frame codec likewise parses one untrusted mount description and does not authenticate a caller or implement a native device. The handoff model does not establish a native Windows handoff or protected-host confinement; see the verification record for backend-specific results. Physical GPU execution was observed for specific workloads on one RTX 4090 host; the GPU evidence does not establish device isolation, and the loaded-host timings are not representative. A Lean-built BendTT kernel verdict checked the 36 named laws at source be649f6; it does not prove the whole system.

This is an executable security library and protocol model. Real POSIX devices, worker confinement, authenticated grant issuance, durable authorized publication, payment settlement, and hosted-language execution remain integration work. S3 follows the POSIX adapter. The current DLM supports up to 30 named principals plus top/bottom.

The optional rclone remote lives under contrib/rclone/. Its bounded, memory-only Bend service supports private uploads, policy-preserving managed copies, and metadata inspection through a minimal Go rclone adapter. It is an independent contribution with its own build and tests; the core library does not depend on it.

Read further

About

No description, website, or topics provided.

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages