refactor(heartbeat): flip wire substrate value nemoclaw → ainfera_core#15
Merged
Conversation
Companion PR to ainfera-os refactor(substrate): rename nemoclaw → ainfera_core (Phase 2). [LOCK 11.1] Decision A1a (forward-only flip, no DB backfill). ainfera-os will start sending `"substrate": "ainfera_core"` on the heartbeat POST. This PR flips the api side to match: - `GET /v1/heartbeat/latest?substrate=...` default → "ainfera_core" (was "nemoclaw"). Without this flip, the no-arg endpoint returns 404 once ainfera-os deploys. - Docstrings + OpenAPI summaries updated to reference ainfera_core. - Test fixtures (test_heartbeat, test_install_and_dashboard, test_signup_extended) flipped to "ainfera_core" / "ainfera_core+openclaw". - Migration 20260515_0004 docstring updated. Not touched: - HeartbeatORM.substrate column type / index — opaque String(64), value unchanged (no migration). - Historical `heartbeats.substrate='nemoclaw'` rows preserved as point-in-time audit truth (avoids [LOCK 6.4] Supabase DML gate; queries spanning the rename boundary need to OR both values). - `manwe-substrate` literal in test_heartbeat:117 — Manwe's hermes-side substrate, never was ours. - .claude/CLAUDE.md:18 `NemoClaw + OpenClaw` — NVIDIA stack per LOCK 2.2. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
93543ea to
e68421c
Compare
|
You have used all Bugbot PR reviews included in your free trial for your GitHub account on this workspace. To continue using Bugbot reviews, enable Bugbot for your team in the Cursor dashboard. |
3 tasks
hizrianraz
added a commit
that referenced
this pull request
May 18, 2026
…43) Eliminates the silent-failure billing burn pattern from INC-2026-05-18-004 Bug 5. Stop-gap: - Adds `stream: bool = False` to InferenceRequest (was silently dropped) - Returns 501 with code=streaming_not_supported when stream=true - Eliminates the silent retry pattern: clients fail fast Per v6.2 Discipline #15 + When-stuck #21. Full SSE = AIN-174 Phase B. Co-authored-by: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Companion PR to ainfera-ai/ainfera-os
sprint-v1.7-prep-founder-wip(Phase 2 substrate rename per [LOCK 11.1] · Decision A1a, forward-only flip).Once ainfera-os deploys, the heartbeat shim will start sending
"substrate": "ainfera_core"instead of"nemoclaw". This PR flips the api side to match:GET /v1/heartbeat/latest?substrate=...default →"ainfera_core"(was"nemoclaw"). Without this, the no-arg endpoint returns 404 once ainfera-os deploys.ainfera_core.test_heartbeat,test_install_and_dashboard,test_signup_extended) flipped to"ainfera_core"/"ainfera_core+openclaw".Decision A1a (forward-only, no DB backfill)
HeartbeatORM.substratecolumn type / index unchanged (no schema migration).heartbeats.substrate='nemoclaw'rows preserved as point-in-time audit truth — that's what the substrate WAS named at that time; backfilling rewrites history.ORboth values.Preserved (out of scope)
manwe-substrateliteral intest_heartbeat.py:117— Manwe's hermes-side substrate, was never ours..claude/CLAUDE.md:18NemoClaw + OpenClaw— NVIDIA stack per [LOCK 2.2] Varda framework.Test plan
ruff,ruff format,mypy --strict,pytest -x) — all PASSEDgrep -rIn "nemoclaw\|NemoClaw" --exclude-dir=.claude .→ 0 matches in api/curl https://api.ainfera.ai/v1/heartbeat/latest(no arg) returns 200 once ainfera-os companion deploys, withsubstrate=ainfera_coreCross-repo coupling
Pair with ainfera-ai/ainfera-os PR (Phase 2 rename). Either order works in steady state since
substrateis opaqueString(64); brief transitional 404 window for no-arg/v1/heartbeat/latestuntil both deploys land.Not bundled
tests/integration/test_aamc_invariants.pyhas founder-in-flight changes locally and is intentionally NOT included in this PR (Memory #14 · no bundling with in-flight files).🤖 Generated with Claude Code
Note
Low Risk
Low risk string/default flips, but it can change behavior of no-arg
GET /v1/heartbeat/latestfor deployments still sending/expectingsubstrate=nemoclaw. No schema or auth logic changes.Overview
Updates the heartbeat API to treat
ainfera_coreas the primary substrate name: OpenAPI/docs now referenceainfera_core, andGET /v1/heartbeat/latestdefaults tosubstrate=ainfera_coreinstead ofnemoclaw.Integration tests and fixtures are updated to post/assert
substrate=ainfera_core(andframework=ainfera_core+openclawwhere relevant), and the related Alembic revision docstring is adjusted accordingly.Reviewed by Cursor Bugbot for commit 93543ea. Bugbot is set up for automated code reviews on this repo. Configure here.