Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
113 changes: 113 additions & 0 deletions docs/NBGA_OBSERVATION_PROVIDER_V0.1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
# NBG-A qualification observation provider v0.1

This experimental provider makes the reviewed #284 public contract usable on the
current PhiOS/Linux continuation. It reads a fixed public qualification packet,
checks its document bytes and returns normalized Memory Receipts with directional
documentary paths. It is an offline reader of historical evidence, not a live
PhiKernel memory service or a new source of release authority.

## Read the observations

The Arch package installs the packet and its four public documents under
`/usr/share/phios/nbga`. From Foot in a candidate containing this change:

```sh
python -m phios.adapters.nbga_observation
```

To inspect the launcher retest after checking the complete packet:

```sh
python -m phios.adapters.nbga_observation \
--bubble-id bubble:phios:virtualbox:launcher-0f17bac1
```

From the repository root, use its public evidence directory explicitly:

```sh
python -m phios.adapters.nbga_observation --evidence-root docs/os/evidence
```

Success returns JSON and exit status 0. Missing, altered, unsupported or malformed
evidence returns an unavailable JSON result and exit status 2, without any partial
observations or host paths. This command creates no files and starts no service.
The previous #286 ISO does not contain this new provider.

## Evidence and paths

| Bubble | Evidence preserved |
| --- | --- |
| `original-1c16c473` | Owner-reported renderer failure with 3D off, invisible pointer after enabling 3D, separate cursor override and session-target rebinding |
| `failed-attempt-146e470f` | Reviewed failed normal CI rebinding attempt; installation/recovery skipped; screenshot/QA pass did not qualify that normal image |
| `automatic-9510024d` | Owner-local #283 automatic startup and cold cycle; unresolved blank lock screen, untested PAM unlock, refused sudo poweroff |
| `launcher-0f17bac1` | Owner-local #286 navigation/window/shortcut checks and cold cycle; older ISO rejected, Wofi drun workaround, unavailable canonical-history backend |

Full bubble identities begin `bubble:phios:virtualbox:`. The `documented-follow-up`
Gear path identifies the sequence of reviewed records. It does not prove a causal
relationship or execute a transformation. `event_head` identifies the last
documentary evidence reference; it is not an implemented append-only runtime log.

The provider's code pins the complete packet to SHA-256
`d61f0bd49de27f770e62d36871dbd335f82684c526a8631b19da6dc2b5651608`.
The packet pins each document's complete digest and size. Every document is read
and checked before a query filter is applied. Updating the packet requires a
reviewed code-pin change; a packet cannot provide its own trusted digest. Python
callers supplying a custom `expected_packet_sha256` own that external trust input.

`evidence_integrity=verified-against-pins` means the selected documentary bytes
match these reviewed pins. It does not independently authenticate the original
Windows tester, prove a reported event occurred or hash the historical ISO,
screenshots, packages and logs referenced inside the documents. The packet is
not a maintainer-signed publication artifact. Those underlying items retain the
exact producer/reviewer/owner-reported status recorded in the original receipts.

Memory Receipts preserve `owner-reported` or `reviewed-ci-record` trust states,
with no manufactured numeric confidence. Their public `provenance_root` hashes a
domain-separated record of the packet digest and referenced document pins. This
identifies documentary lineage; it is not a private PhiKernel governance root,
an anchor promotion or proof that an observation is true.

## Refusals and authority

The reader rejects packet/digest/size mismatches, missing or non-regular files,
symbolic-link evidence, traversal/URL filenames, duplicate packet JSON fields, unknown
schemas/fields, non-finite JSON numbers, unbounded data, unresolved/repeated
references, disconnected/cyclic paths, conflicting Gear definitions and attempts
to assert `verified` trust. Complete references and path endpoints must resolve
within the checked packet.

The existing NBG-A public parser remains unchanged from #284. Private payloads,
authority grants and unknown contract fields remain refused. No network request,
process execution, memory write, anchor, decay, manifest commit, adapter promotion,
model selection or OS policy change is introduced by the reader. It bypasses no
existing governed canonical-memory service or read/compare permission.

Bubble Zero is explicitly **unavailable: no continuity backend**. No roots,
checkpoint or restored identity are invented. The result retains
`publication_authority=false` and `release_ready=false`.

## Qualification and next step

Focused tests cover the real documentary sequence, deterministic read-only
queries, failures surviving filtering, external pins, file/schema/path refusals,
lineage checks, trust-state limits and CLI refusal output. The existing external
desktop probe additionally invokes the installed reader with Python isolated
mode as UID 1000 during live/installed VM checks. It also alters a copied prior
failure document in a disposable user-owned directory and requires refusal of
the latest-observation query without any partial results. It records the packet digest,
four checked documents, tamper refusal and unavailable continuity backend alongside its current
source identity. Historical #286 observations do not qualify the new boot.

This continuation copies the three reviewed #284 contract files onto the #287
branch chain; those sibling PRs and prior qualified source/ISO/failure receipts
remain unchanged. PhiOS's Arch package revision increases to 2; software and OS
release versions remain unchanged. Changed candidate bytes require their own
full normal/QA qualification and a fresh owner-local field test before claiming
VirtualBox compatibility for this candidate.

The next rung can consume a genuine normalized runtime observation behind the
existing PhiKernel boundary. Persistence, Bubble Zero verification and A-TEAM
mutation operations require separately reviewed contracts and a persistent
installed test environment. A live ISO's temporary overlay does not establish
cold-power-cycle memory reconstruction. Private PhiKernel/TIEKAT implementation
internals remain outside public PhiOS.
163 changes: 163 additions & 0 deletions docs/NBGA_RUNTIME_CONTRACT_V0.1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,163 @@
# NBG-A Public Runtime Contract v0.1

**Status:** experimental, additive, read-only boundary

**Scope:** PhiOS consumption of normalized PhiKernel continuity and memory observations

**Non-goal:** publication of PhiKernel or TIEKAT implementation internals

NBG-A is the working name for the Nested Bubble/Gear Architecture used by the A-TEAM
memory lifecycle:

- **Anchor** preserves continuity-critical invariants.
- **Triage** classifies incoming state without granting authority.
- **Episodic** represents bounded events and their evidence.
- **Abstract** exposes higher-order observables while retaining provenance.
- **Manifest** reconstructs usable working state from trusted continuity roots.

PhiOS consumes only the normalized boundary described here. Storage engines, graph
algorithms, decay rules, routing logic, model prompts, private state, and TIEKAT
implementation details remain behind the PhiKernel boundary.

## Contract invariants

1. **Identity is not the model.**
2. **An observable is not the internal state.**
3. **Capability is not authority.**
4. **A trusted memory retains a path to why it is trusted.**
5. **Public observations do not grant write, promotion, routing, or execution authority.**
6. **Unknown fields fail closed rather than silently widening the contract.**

v0.1 intentionally exposes no mutation operation. Anchor promotion, triage decisions,
decay, consolidation, manifest commits, and continuity-root updates remain internal and
governed. A later public mutation contract requires a separate reviewed rung.

## Memory Receipt

Schema:

`phikernel.nbga.memory-receipt.v1`

A Memory Receipt carries one normalized observable and enough public lineage to explain
how it was retrieved:

```json
{
"schema_version": "phikernel.nbga.memory-receipt.v1",
"bubble_id": "bubble:project:decision",
"bubble_version": 3,
"observable": "Normalized human-readable state",
"trust_state": "verified",
"confidence": 1.0,
"evidence": ["event:123"],
"gear_path": [
{
"gear_id": "gear:evidence",
"transform": "evidence",
"source": "bubble:project",
"destination": "bubble:project:decision"
}
],
"event_head": "event:123",
"provenance_root": "sha256:..."
}
```

### Bubble

At the public boundary, a Bubble is identified by `bubble_id` and `bubble_version`.
PhiOS receives its `observable`, not its private payload or internal state.

### Gear path

A Gear Hop is a directional, named transformation between two public Bubble identities:

```text
source --[transform / gear_id]--> destination
```

The public contract describes the path. It does not expose how PhiKernel implements the
transformation.

### Evidence and provenance

`evidence`, `event_head`, and `provenance_root` make retrieval proof-carrying.
They are references, not an authority grant. PhiOS may present or compare them but may
not infer permission to mutate PhiKernel state.

## Bubble Zero Status

Schema:

`phikernel.nbga.bubble-zero-status.v1`

Bubble Zero is exposed only as a minimal continuity projection:

```json
{
"schema_version": "phikernel.nbga.bubble-zero-status.v1",
"system_id": "phios",
"epoch": 7,
"verified": true,
"governance_root": "sha256:...",
"event_log_head": "sha256:...",
"topology_root": "sha256:...",
"anchor_root": "sha256:...",
"commitment_root": "sha256:...",
"last_checkpoint": "checkpoint:7"
}
```

This projection answers only:

- which continuity identity is being observed,
- which epoch is current,
- whether the exposed root set verified,
- and which normalized roots/checkpoint identify that state.

It does not expose secrets, raw state, internal payload references, capability grants,
or authority grants.

## Fail-closed fields

The PhiOS parser rejects public payloads containing known private/authority-bearing
fields such as `internal_state`, `raw_state`, `private_state`, `payload`,
`payload_ref`, `secret`, `authority`, `authority_grant`, or
`capability_grant`.

It also rejects unknown top-level fields. Contract growth therefore requires an explicit
schema revision instead of accidental widening.

## First acceptance target

The first end-to-end NBG-A acceptance experiment should use already-understood PhiOS
qualification evidence:

1. ingest a bounded compatibility/qualification episode,
2. expose a higher-order verified observable,
3. retain evidence and a directional Gear path,
4. restart the runtime,
5. recover Bubble Zero,
6. retrieve the observable again with the same provenance lineage.

The experiment is successful only if restart/reconstruction preserves the trusted
observable and its evidence path without making the model, vector index, or PhiOS
presentation layer authoritative.

## Rollout

v0.1 is intentionally additive:

```text
qualified PhiOS/Linux candidate
|
v
existing PhiKernel adapter
|
+--> existing runtime behavior (unchanged)
|
+--> NBG-A normalized parser (new, read-only)
```

No existing adapter is promoted, no routing default changes, and no release authority is
implied by this contract.
5 changes: 5 additions & 0 deletions docs/os/APP_AVAILABILITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@ initial overlapping windows do not hide the entry point.
inference quality.
- **Network settings:** Super+N.
- **SOMA/Spine tools:** in Foot, run `phi-spine --help`.
- **Experimental NBG-A evidence reader:** in a candidate containing the provider,
run `python -m phios.adapters.nbga_observation` in Foot. It reads pinned public
qualification documents; it does not connect the unavailable ledger backend
or implement persistent memory. See
[NBGA_OBSERVATION_PROVIDER_V0.1.md](../NBGA_OBSERVATION_PROVIDER_V0.1.md).
- **Lock:** Super+L; enter the account password to unlock. The separate
VirtualBox wrong-password/unlock test remains pending.

Expand Down
Loading
Loading