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…

这是什么?Constellation 是一个演示项目:Gemini 把操作员口述的轨道任务请求转化为一份清单,HexStellar Cortex 为受损的卫星网络搜索一套完整的恢复计划,而一个独立分开的 Python 程序会逐条规则检查该计划,通过后它才被允许更新仿真。
它控制的是真实航天器,还是仅仅一个仿真?它是一个确定性软件仿真——卫星、地面站、轨道几何和沙箱都属于研究场景,不是真实航天器的遥测数据。只有契约编译器、Cortex 适配器、Python 检查器和指纹流水线是真实可执行的代码。
这个演示怎么运行?安装 Python 3.12+、Node.js 20+ 和 npm,然后以 Open Local 模式启动;该模式无需任何云凭据,当你滚动到地图时会自动展示实时事件,也可以通过 'Replay failure' 按钮触发。
试用它需要 Google Cloud 或 API 密钥吗?本地模式不需要;但实时集成需要 GOOGLECLOUDPROJECT、GOOGLECLOUDLOCATION 和 GOOGLEGENAIUSEVERTEXAI(通过 Vertex AI 使用 Gemini),还需要 HEXSTELLARAPIURL 和 HEXSTELLARAPIKEY 来访问真实的 Cortex HTTPS 服务。
这里的“已验证”到底保证了什么?它只表示已提交的 Python 检查器针对这个确切的仿真输入和计划通过了其声明的规则——并不意味着真实航天器是安全的、操作员的每句话都被完美理解,或该计划是全局最优的。
HexStellar API 密钥会暴露给浏览器吗?不会。生产部署把 HexStellar 密钥保存在服务器端的 Secret Manager 中,绝不发送给浏览器。
HexStellar Cortex 到底是什么?Cortex 不是语言模型——它是一个优化引擎,接收包含义务、冲突、成本和禁用资源的结构化契约,然后返回一份候选计划加一张回执。它从不解释操作员的意图,也不修改任务本身。
为什么不让 Gemini 直接批准自己的计划?该项目强制严格的职责分离:Gemini 只负责转译意图,Cortex 只负责规划,而独立的 Python 检查器是唯一被允许解锁沙箱更新的组件——没有任何系统可以给自己的作业打分。
如果操作员的请求含糊不清会怎样?应用会暂停,并明确指出所需的澄清内容。例如,选择紧急期限会得到成功的黄金路径;而选择所有较低优先级的下载会改变正式规则和指纹,甚至可能在到达 Cortex 之前就完全终止运行。
能不能不再调用 Gemini 或 Cortex 就复核结果?可以——每个重放 ZIP 都附带确切的 verifier.py 脚本、全部输入和一份校验和清单,因此你可以完全离线地重新运行独立检查。
Creator
brayonpi
Size
5.2 MB
Stars
679
Updated
CommitAug 31
Age
1mo
Commits · 90 Days