This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
# Phase 1.0AC fake-syscall contract
|
||||
|
||||
This contract is executable only against the exact built-in fake facade.
|
||||
|
||||
| Synthetic operation | Accepted result | Rule |
|
||||
|---|---|---|
|
||||
| `CREATE_STREAM` | `OK`, `ERROR` | exactly once after a precommitted receipt |
|
||||
| `SET_NONBLOCKING` | `OK`, `ERROR` | immediately after create |
|
||||
| `START_CONNECT` | `IMMEDIATE`, `PENDING`, `ERROR` | contains no target or address |
|
||||
| `WAIT_WRITE` | `READY`, `INTERRUPTED`, `TIMEOUT`, `ERROR` | remaining fake budget is rechecked |
|
||||
| `GET_SO_ERROR` | `ZERO`, `NONZERO`, `ERROR` | mandatory after pending readiness |
|
||||
| `WRITE_BYTES` | `PROGRESS`, `ZERO`, `ERROR` | positive progress cannot exceed remainder |
|
||||
| `WAIT_READ` | `READY`, `INTERRUPTED`, `TIMEOUT`, `ERROR` | deadline wins a simultaneous readiness event |
|
||||
| `READ_BYTES` | `PROGRESS`, `EOF`, `ERROR` | EOF is failure; total input is bounded |
|
||||
| local close | `OK`, `ERROR` | one call after ownership; none if create failed |
|
||||
|
||||
The facade accepts at most 1,024 scripted steps. One step may advance the fake
|
||||
clock by at most 60 seconds. These are model bounds, not proposed live values.
|
||||
Unused synthetic steps are logically discarded at close; physical memory
|
||||
erasure is not proven.
|
||||
|
||||
There is deliberately no adapter protocol, inheritance hook, address field,
|
||||
network import or live factory. A later phase cannot reinterpret this fake as
|
||||
device authorization.
|
||||
Reference in New Issue
Block a user