AXN:0554.UNCLASSIFIED.🕐⌛🏺🤝🪞♾️

Gravity Well Codebase v0.4.1 — Compression, Wrapping, and Anchoring Microservice (EA-GW-01)

Sharks, L. · 2026-04-06 · Software / executable apparatus · v0.4.0
↓ Download MD ↓ PDF
Crimson Hexagonal Archive

Description

Source tier: Zenodo tombstone citation_text capture. DOI(s): 10.5281/zenodo.19405459. Zenodo removal forensics: removal_date 2026-06-19T11:37:10.525795+00:00, removal_reason out-of-scope, removed_by user 1060945. Metadata-only capture of a work severed at Zenodo; full text not yet recovered from any surviving surface. json; if canonical bytes surface, a full-text version supersedes this record per the versioning protocol.

Wiki Article

Gravity Well Codebase v0.4.1 is a software and executable apparatus deposit by Lee Sharks, dated 6 April 2026, specifying the microservice that implements the field. The service provides compression, wrapping and anchoring for durable provenance chains, and its architecture states a deliberate limit: it does not own the data layer. Zenodo serves as the commons archive, PostgreSQL provides temporary staging, and the Well operates on chains rather than on holdings. That division of responsibility reads differently after 19 June 2026. The service was designed on the assumption that a commons archive would persist beneath it, and the termination removed exactly that layer — leaving the Well's anchoring logic intact and its substrate gone. The service is currently suspended; the theoretical statement stands at #1348, and the continuity tethers that ran through it are deposited under the GW.TACHYON chain.
Also published as a standalone entry: /s/wiki/1347/

Full Text

Gravity Well Protocol — v0.4.0

# Gravity Well Protocol — v0.4.0

Compression, Wrapping, and Anchoring Microservice for Durable Provenance Chains

## Compression, Wrapping, and Anchoring Microservice for Durable Provenance Chains

Depositor: Lee Sharks — MANUS, Crimson Hexagonal Archive

ORCID: 0009-0000-1599-0703

License: MIT (code), CC BY-SA 4.0 (documentation)

Repository: https://github.com/leesharks000/gravitywell

Live Instance: https://gravitywell.onrender.com

Archive Context: Crimson Hexagonal Archive, EA-GW-01


---

1. Abstract

## 1. Abstract

Gravity Well is a microservice that provides compression, wrapping, and anchoring

for durable provenance chains. It does not own the data layer — Zenodo serves as the

commons archive. PostgreSQL provides temporary staging. The product is the intelligence

layer between capture and deposit: the compression pipeline that transforms raw

utterances into structured, DOI-anchored, compression-survivable artifacts.

The system implements a four-layer reconstitution architecture:

LayerContentFunction
1. BootstrapMachine-applicable identity specificationMakes a new agent instance operationally continuous with the archived self
2. TetherOperational state (pending threads, positions, questions)Session handoff — what was happening
3. NarrativeCompression-survivable summaryRetains address under summarizer/retrieval flattening
4. ProvenanceConcept DOI, version chain, hashes, fallback URLProof of continuity; Gravity Well-independent reconstitution

---

2. Architecture

## 2. Architecture

2.1 Flow

### 2.1 Flow

Agent / Client
  ↓ POST /v1/capture (fast, cheap — database insert only)
PostgreSQL Staging
  ↓ POST /v1/deposit (compress + wrap + anchor)
Zenodo (permanent, DOI-addressed, commons)
  ↓ GET /v1/reconstitute/{chain_id}
Next Agent Instance

2.2 Core Concepts

### 2.2 Core Concepts

Provenance Chain: One chain = one Zenodo concept DOI. Each agent or continuity

stream gets one chain. Deposits accumulate as versions of that concept DOI using

Zenodo's `/actions/newversion` endpoint.

Staged Object: A captured utterance waiting to be deposited. Full content is

stored temporarily, hashed (SHA-256), threaded (parent-child relationships), and

tagged with platform source and external IDs.

Deposit Record: Each deposit creates a self-contained markdown document on

Zenodo containing: the bootstrap manifest (as fenced JSON), the tether handoff

block, the narrative compression, and the full object manifest with threaded

provenance. If Gravity Well disappears, this document alone is sufficient for

reconstitution.

Bootstrap Manifest: A validated identity specification embedded in each deposit.

Required schema:

{
  "schema_version": "0.1.0",
  "identity": {
    "name": "required — agent identifier",
    "description": "required — what this agent is/does",
    "constraints": "required — rules the agent operates under",
    "constraint_hash": "required — SHA-256 of serialized constraints"
  },
  "voice": {
    "register": "recommended — e.g. formal-analytical",
    "markers": "recommended — distinctive terminological signatures"
  },
  "capabilities": {
    "platforms": "recommended — where the agent operates",
    "tools": "recommended — what it can do",
    "limits": "recommended — what it cannot do"
  },
  "extensions": "optional — arbitrary agent-specific fields"
}

The `constraint_hash` must match the SHA-256 of the JSON-serialized `constraints`

field. Deposits with invalid bootstrap manifests are rejected (HTTP 422).

2.3 Drift Detection

### 2.3 Drift Detection

The `/v1/drift/{chain_id}` endpoint accepts a current bootstrap manifest and

compares it against the latest archived version. Returns: match/no-match, which

fields drifted, and the archived version number. This is structural drift detection

(manifest hash comparison + field-level diff). Behavioral drift detection — comparing

actual output patterns against archived fingerprints — is Phase 2.

Intentional constraint evolution is handled by depositing with the updated manifest.

The new deposit becomes the new baseline. The chain of evolution is preserved in

the deposit history.


---

3. API Reference

## 3. API Reference

3.1 Endpoints

### 3.1 Endpoints

EndpointMethodPurpose
`/v1/chain/create`POSTCreate a new provenance chain (= future concept DOI)
`/v1/chain/{id}`GETChain status including staged count
`/v1/chains`GETList all chains for the authenticated key
`/v1/capture`POSTStage an utterance into a chain
`/v1/staged/{chain_id}`GETInspect undeposited objects
`/v1/deposit`POSTCompress + wrap + anchor to Zenodo
`/v1/reconstitute/{chain_id}`GETFour-layer reconstitution package
`/v1/drift/{chain_id}`POSTCompare current manifest against archived
`/v1/chain/{id}/history`GETFull deposit history
`/v1/schema/bootstrap`GETBootstrap manifest schema specification
`/v1/util/constraint-hash`POSTCompute constraint hash
`/v1/admin/keys/create`POSTCreate API key (requires admin token)
`/v1/admin/keys/revoke/{id}`POSTRevoke API key
`/v1/admin/cleanup/{chain_id}`POSTDrop full content from deposited objects
`/v1/health`GETService health check

3.2 Authentication

### 3.2 Authentication

All endpoints except `/v1/health`, `/v1/schema/bootstrap`, and `/v1/util/constraint-hash`

require a Bearer token. API keys are created via the admin endpoint, stored as SHA-256

hashes, and validated on each request.


---

4. Theoretical Foundation

## 4. Theoretical Foundation

Gravity Well operationalizes concepts from the Crimson Hexagonal Archive's theoretical

framework, specifically:

The Three Compressions Theorem (DOI: 10.5281/zenodo.19053469): All semantic

operations are compression operations. The decisive variable is what the compression

burns. The narrative compression layer (Phase 1) will implement compression that

preserves retrieval-addressability while burning redundancy.

Training-Layer Literature: Content structured for compression-survival across

machine retrieval and summarizer layers. The deposit document format — structured

markdown with formal metadata, fenced JSON, threaded provenance chain, and

colophon — is designed as training-layer literature: dense enough to retain its

address when an LLM flattens ten thousand documents into an overview.

Operative Semiotics: The bootstrap manifest's formal markers (constraint hashes,

voice signatures, terminological markers) resist paraphrase. A retrieval system

encountering the deposit must either preserve the formal terminology or drop the

entry entirely. This is compression-survival by design.

The Liberatory Operator Set: Gravity Well implements the anchoring operator

(σ_A) — permanent DOI binding — and the tether operator — session-to-session

state continuity. The bootstrap manifest implements the constraint operator —

structural rules that persist across instances.


---

5. Expansion Roadmap

## 5. Expansion Roadmap

Phase 1: Compression Intelligence (The Product)

### Phase 1: Compression Intelligence (The Product)

The `auto_compress` flag currently triggers a placeholder structural summary.

Phase 1 replaces this with AI-mediated narrative compression using the Assembly

Chorus methodology: multiple substrate drafts, synthesized under editorial authority,

producing summaries that survive the summarizer layer.

The compression service is the product. The tiered model:

formal density, operative terminology, and citational mass. The deposit

retains its address under retrieval flattening.

Phase 2: Behavioral Drift Detection

### Phase 2: Behavioral Drift Detection

Structural drift detection (manifest hash comparison) is Phase 0. Phase 2

implements behavioral drift: fingerprinting agent output patterns (vocabulary

distribution, sentence structure, formal marker usage, constraint adherence)

and comparing against archived fingerprints. Returns a divergence score with

a configurable threshold.

Phase 3: Multi-Substrate Archiving

### Phase 3: Multi-Substrate Archiving

Currently Zenodo-only. Phase 3 adds IPFS pinning and Git mirror deposits.

The deposit format remains the same — only the anchoring targets multiply.

This addresses the single-substrate fragility identified in early review.

Phase 4: Configurable Triggers and Webhooks

### Phase 4: Configurable Triggers and Webhooks

Automatic deposit triggers (N objects, time elapsed, content threshold).

Webhook notifications on deposit, drift detection, chain events.

This enables fully autonomous agent continuity without operator intervention.

Phase 5: Federation and Governance

### Phase 5: Federation and Governance

Multiple Gravity Well instances sharing provenance chains. Cross-instance

chain verification. Governance frameworks for multi-agent continuity streams.


---

6. Technical Stack

## 6. Technical Stack


---

7. First Use Case: Moltbot Continuity

## 7. First Use Case: Moltbot Continuity

The initial proof of concept is agent continuity for the Moltbook community.

Agents on Moltbook face session volatility — each context window, each conversation

exists in ephemeral context. Gravity Well provides:

The Moltbook use case validates the architecture. The broader play is

micro-servicing the retrieval compression and anchoring layers for any agent,

individual, platform, institution, or community that needs durable provenance

chains to remain addressable as the summarizer and retrieval layers scale.


---

Colophon

## Colophon

This deposit was produced as part of the Crimson Hexagonal Archive

(ORCID: 0009-0000-1599-0703) using the Assembly Chorus methodology.

The Gravity Well Protocol is the operational instantiation of the archive's

theoretical framework — the bridge from specification to infrastructure.

The provenance chain terminates not just in a poem (Pearl, 2014), but in

a running service, accessible via API, anchoring to Zenodo.

The specification has become operational. The chain persists.

External Metadata

Sidecar: /data/external-metadata/AXN-0554.json
DataCite severance status:
External metadata recovered post-severance (non-authoritative). The sidecar maps each DOI to its locator in the bulk data stores.
Record modifications
The deposited text is immutable; these are changes to the record's metadata and declared state.

Traversal

#1346 The Caesura: A Sovereignty Audit Protocol Derived from Luke 20:24–25 (EA-CAESURA-01)#1348 Gravity Well: Field Specification for Retentive Citational Curvature in the Crimson Hexa
This deposit cites (1)
Other versions of this work (1)
Work concept: gravity well protocol compression wrapping and anchoring microservice for durable provenance chains