constellation-gemini README

The project's README from github.com/brayonpi/constellation-gemini. As one markdown file: README.md.

Constellation

Say the mission. Prove the plan.

Constellation proof carrying mission control

Constellation answers a simple question: when an orbital compute network breaks, can AI create a replacement schedule without quietly breaking another rule?

The demo separates that job into three parts:

  1. Gemini turns the operator's words into a checklist. It identifies required work, deadlines, failed hardware, and the one priority that needs human clarification.
  2. HexStellar Cortex compares complete recovery plans. It searches combinations of schedule pieces while respecting the formal contract.
  3. A separate Python program checks the answer minute by minute. If a job is missed, a station is double-booked, a deadline is late, or failed hardware is used, the plan cannot update the sandbox.

No system grades its own homework. Gemini cannot approve its proposal, Cortex cannot change the mission, and the independent checker only unlocks the exact plan it checked.

Why this matters

An AI-generated plan can sound convincing while hiding a small but serious mistake. One contact can overlap another. A job can finish after its deadline. A failed computer can accidentally reappear. Those mistakes are hard to spot in prose and easy to find when the plan becomes a testable software contract.

Constellation turns a plausible answer into an inspectable answer. A judge can watch the work happen, open the exact failure when a rule is broken, download every input and receipt, and rerun the checker without Gemini, Cortex, or an internet connection.

The 20-second mental model

Think of four separate roles:

  1. Gemini 3.5 Flash is the translator. It turns an operator's sentence into a visible checklist. It does not choose or approve the recovery schedule.
  2. Cortex is the planner. It receives a structured data puzzle made from candidate schedule pieces, required obligations, conflicts, costs, forced choices, and forbidden resources. It does not receive authority to interpret the operator's intent or mutate the mission.
  3. Python is the inspector. Independent source code replays the complete timeline and reports a concrete counterexample when a declared rule fails. It cannot repair a candidate to make it pass.
  4. SHA-256 is the tamper seal. The sandbox update requires the current mission version, canonical input fingerprint, plan fingerprint, and verification fingerprint to match.

The verifier proves that the formalized checklist was obeyed. It cannot know that an operator meant something they never confirmed. That is why Constellation displays the extracted rules, pauses on a material ambiguity, and changes the fingerprint whenever the accepted meaning changes.

What Cortex actually receives and returns

A candidate schedule piece can represent a complete local sequence such as running a job on one satellite, storing its output, and sending that output through a compatible ground station during an allowed window. Cortex selects a set of pieces under the submitted public contract.

The input declares:

The response contains selected identifiers, coverage and violation fields, declared cost fields, the assurance Cortex actually returned, a receipt, and live operational measurements when available. Constellation never promotes that assurance label. A separate checker still recomputes the complete mission properties in the original domain.

Cortex executes supported contracts on HexStellar managed accelerated infrastructure. A live response can report engine time and peak RSS, and the interface displays those fields exactly as returned. One run is operational telemetry, not a comparative benchmark. The project therefore does not claim a speedup multiplier, universal acceleration, or global optimality without the corresponding controlled evidence.

Precision has a narrow, testable meaning here: the request is structured, constraints are explicit, the response is machine-readable, the assurance is preserved, and independent code recomputes the properties required before action.

What is simulated and what actually runs

The satellites, collision, stations, orbital geometry, batteries, storage, and sandbox are a deterministic research scenario. They explain and stress the workflow; they are not real spacecraft telemetry or evidence of physical flight safety.

The compiler, public Cortex adapter, Python checker, fingerprints, artifacts, and apply lock are executable software. In a run labeled live, the backend submits the formal cover contract to the external Cortex HTTPS service and preserves its sanitized response and receipt. A local or fallback run is visibly labeled and is never presented as proof of a live Cortex call.

“Independent checker” means separate from the planner. The verifier does not import the HexStellar client, call Cortex, call Gemini, or change the candidate. It is project-authored inspectable code, not a third-party certification.

Recheck it on the website or offline

The Evidence Room has a Run independent check again button. It sends only the already frozen mission data to the Python verifier. It does not call Gemini or Cortex. The same panel can display and download the exact verifier.py source shipped in the running deployment.

Every new replay ZIP also includes VERIFIER-SOURCE.py, AI-REVIEW-PROMPT.md, all input and result files, and a checksum manifest. The offline command verifies the frozen evidence package. It does not rerun Gemini or Cortex and therefore does not claim those services are deterministic.

The visual story does not wait for an unexplained click. When the live map enters the screen, it briefly shows the healthy network, starts the simulated impact, centers the affected satellite, and then shows the checked recovery when one is available. Replay failure restarts that sequence. Selecting any named view immediately gives control to the visitor and stops the automatic story. The Earth opens on North and South America, the mission panel leaves most of the width to the map, and a lost WebGL context is rebuilt once automatically before a visible retry control appears.

Start with the 60 second judge guide, read how Cortex works, or inspect the public HexStellar CLI/client.

What the demo proves

The primary scenario is a deterministic software simulation with 12 satellites, four ground stations, 24 compute jobs, 36 communication windows, storage and energy limits, required health checks, and a valid starting schedule. A Pub/Sub event removes one ground station and isolates two compute nodes while an urgent job arrives.

The application then:

  1. freezes the operator's meaning as a fingerprinted MissionIntent;
  2. pauses because the missing priority would change which plan wins;
  3. creates deterministic, locally checked schedule pieces;
  4. sends a public cover contract to the HexStellar Cortex HTTPS API;
  5. separately replays every declared scheduling and resource rule;
  6. updates only the sandbox, and only after every rule passes; and
  7. exposes the plan change, Cortex receipt, exact failures, fingerprints, logs, and replay ZIP.

Here, verified has a narrow meaning: the committed Python checker passed its declared rules for this exact simulated input and plan. It does not mean real spacecraft are safe, every sentence is understood perfectly, or the combined plan is globally optimal.

The clarification is not decorative. Choosing the urgent deadline produces the successful golden path. Choosing every lower-priority download changes both the formal rules and the fingerprint, then stops before Cortex because the fixture cannot prove that every previously computed output exists. That explicit abstention prevents the application from inventing missing mission state.

See Cortex for yourself

Cortex is not a language model. Gemini interprets the operator's words. Cortex receives a structured computational contract made from obligations, conflicts, costs, required choices, and forbidden choices. The public service executes supported contracts on HexStellar managed accelerated infrastructure, then returns a structured result, measured execution fields, a receipt, and the assurance it actually earned. In this project, precision means that the request and response are formal and that a separate program checks the complete timeline. It is not a universal speed or global optimality claim.

Quick start

Requirements: Python 3.12+, Node.js 20+, and npm.

cp .env.example .env
python3 -m venv .venv
.venv/bin/python -m pip install -e '.[dev]'
cd apps/web && npm ci && cd ../..
./scripts/dev.sh

Open http://localhost:5173. Local mode is fully usable without cloud credentials and is visibly labeled Local development mode. It uses a bounded local cover fallback and a committed structured intent fixture; it never represents either one as a live Gemini or Cortex result. Scroll to the live map to start the visual incident automatically, or use Replay failure at any time.

Run the tests:

.venv/bin/python -m pytest
cd apps/web && npm run typecheck && npm run test

Verify a downloaded replay independently:

PYTHONPATH=apps/api .venv/bin/python -m constellation.verify_bundle artifacts/mission-replay.zip

If a judge or engineer wants an AI-assisted audit, use AI_REVIEW_GUIDE.md. The same adversarial prompt ships inside every replay ZIP as AI-REVIEW-PROMPT.md; it asks the AI to validate checksums, trace trust boundaries, recompute declared properties, report blockers, and narrow unsupported claims.

Live integration

Set the variables in .env.example:

Production keeps the HexStellar key in Secret Manager and never sends it to the browser. The Cortex adapter posts a stable idempotency key, treats 202 as queued success, follows the returned poll URL, retries only bounded transient failures, and preserves the returned certainty unchanged.

Architecture

Constellation architecture

flowchart LR
    O[Operator / telemetry] --> P[Pub/Sub ingress]
    P --> W[Private Cloud Run worker]
    W --> A[Google ADK coordinator]
    A --> G[Gemini 3.5 Flash on Vertex AI]
    A --> C[Canonical compiler]
    C --> B[Deterministic bundle generator]
    B --> H[HexStellar Cortex public HTTPS API]
    H --> V[Independent Python verifier]
    V -->|verified only| S[Sandbox mission state]
    V --> E[Evidence and replay bundle]
    S --> F[Firestore]
    E --> K[Cloud Storage]
    F --> U[Cloud Run web API + React UI]
    K --> U

See the Judge guide, Architecture, Security, Claims and limitations, Evidence language, Release inventory, Release audit, and Submission checklist.

Data and simulation boundaries

The application is designed to use a small reproducible slice of Google Borg ClusterData 2019, licensed CC BY. The committed CI fixture is currently trace-shaped and explicitly marked fixture_only; it is not represented as an extracted production trace. The repository includes the BigQuery extraction template and provenance manifest that must be completed before the demo claim changes to “Borg-derived.”

Contact windows, ground stations, failures, energy budgets, storage budgets, orbital state, and mission objectives are deterministic project simulations. Constellation does not reproduce the Borg scheduler, benchmark Google infrastructure, or control real spacecraft.

Constellation was inspired by public research about Project Suncatcher, constellation scheduling, and Leaf Space on Google Cloud. It is an independent simulated research prototype and is not affiliated with, endorsed by, or connected to Google or Project Suncatcher.

Pre-existing technology disclosure

Constellation was created during the August 3 through 31, 2026 submission period for the All Things Agentic Hackathon. HexStellar Cortex and its public API/client predate this project and are integrated as an external computational platform. No proprietary HexStellar engine, runtime, internal benchmark, private prompt, activation artifact, or trade-secret implementation is included.

Constellation uses only the public hexstellar==1.0.0 contract or public HTTPS API. HexStellar Cortex and the HexStellar Enterprise Low-Energy Runtime are separate products. The Enterprise Runtime does not execute this application, and no Enterprise energy or acceleration claim applies here.

Assurance vocabulary

If Cortex is configured as live and becomes unavailable, the run stops in CORTEX_UNAVAILABLE. Constellation does not silently replace that live request with local output. The interface then offers two explicit choices: retry the live request, or run the same formal scenario in a transparent deterministic simulation. The simulation is labeled local_deterministic, receives local receipts, leaves Cortex engine metrics empty, and must pass the same independent checker before the sandbox can change.

No combined cover + qap result is described as jointly globally optimal.

Measured run telemetry

The mission view and replay bundle separate measurements that are often incorrectly merged:

These are operational measurements for one identified run, not a cross-system benchmark. Local deterministic mode leaves Cortex engine metrics empty instead of fabricating them. The replay ZIP includes runtime-telemetry.json, receipts, platform scope, and checksums.

The 3D globe packages NASA Blue Marble surface and cloud textures locally. They provide visual context only and are not orbital geometry or mission evidence; exact sources and hashes are recorded in apps/web/public/earth/README.md.

Creator

Constellation was created by Brayon Pieske, founder of HexStellar. TrustCarbon is included only as a professional founder link and is not a technology, sponsor, or dependency of this application. No personal email address or telephone number is published in the project.

License

Application code is Apache-2.0. Third-party datasets and dependencies retain their own licenses; see THIRD_PARTY_NOTICES.md.

BRAYON PIESKE | "Engineering earns trust when every claim is testable and every release is verified."

constellation-gemini (brayonpi/constellation-gemini)

Searching Database…

What is this?Constellation is a demo project where Gemini turns an operator's spoken orbital-mission request into a checklist, HexStellar Cortex searches for a complete recovery schedule for a broken satellite network, and a separate independent Python program checks that schedule rule by rule before it's allowed to update the simulation.
Is this controlling real spacecraft or just a simulation?It's a deterministic software simulation - the satellites, ground stations, orbital geometry, and sandbox are a research scenario, not real spacecraft telemetry. Only the contract compiler, Cortex adapter, Python checker, and fingerprinting pipeline are real executable code.
How do I run the demo?Install Python 3.12+, Node.js 20+, and npm, then start it in Open Local mode, which works without any cloud credentials and shows the live incident automatically when you scroll to the map, or via a 'Replay failure' button.
Do I need Google Cloud or an API key to try it?No for local mode, but the live integration needs GOOGLECLOUDPROJECT, GOOGLECLOUDLOCATION and GOOGLEGENAIUSEVERTEXAI for Gemini via Vertex AI, plus HEXSTELLARAPIURL and HEXSTELLARAPIKEY to reach the real Cortex HTTPS service.
What does 'verified' actually guarantee here?It only means the committed Python checker passed its declared rules for this exact simulated input and plan - it does not mean real spacecraft are safe, that every operator sentence was understood perfectly, or that the plan is globally optimal.
Is the HexStellar API key exposed to the browser?No, production deployments keep the HexStellar key in Secret Manager on the server side and never send it to the browser.
What is HexStellar Cortex exactly?Cortex is not a language model - it's an optimization engine that receives a structured contract of obligations, conflicts, costs, and forbidden resources, then returns a candidate schedule plus a receipt. It never interprets operator intent or edits the mission itself.
Why doesn't Gemini just approve its own plan?The project enforces strict separation of duties: Gemini only translates intent, Cortex only plans, and an independent Python checker is the sole component allowed to unlock a sandbox update - no system grades its own homework.
What happens if the operator's request is ambiguous?The app pauses and surfaces the exact clarification needed. For example, picking the urgent deadline produces the successful golden path, while choosing every lower-priority download changes the formal rules and fingerprint and can stop the run entirely before it reaches Cortex.
Can I re-check a result without calling Gemini or Cortex again?Yes - every replay ZIP ships the exact verifier.py script plus all inputs and a checksum manifest, so you can rerun the independent check completely offline.
Creator
brayonpi
Size
5.2 MB
Stars
679
Updated
CommitAug 31
Age
1mo
Commits · 90 Days