Skip to content
Merged
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
1 change: 1 addition & 0 deletions changelog.d/changed-retire-inception-api.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- The inception API, its watcher and the brainstorm agent's inception mode are retired in favour of Inception (spek) sessions. For one release, all 14 `/api/inception/*` routes answer `410 Gone` with a JSON pointer to `/api/sessions` and the docs; nothing is read or changed. The inception engine and its scaffold generator, the brainstorm bead watcher, the inception-approval run admission path and the boot-time brainstorm resume are removed. The dashboard snapshot builder no longer fetches `/api/inception/state`. The `brainstorm` agent is ideation-only and stays on-demand and parked at boot. The `${INCEPTION_*}` template variables always render empty, so custom templates keep rendering. Knowledge facts from past inception runs are kept: nothing deletes them, and Hive still reconnects the `/data/inception-wiki` vault on boot. `/data/inception/` stays on disk.
21 changes: 5 additions & 16 deletions dashboard/build-snapshot.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ async function fetchJson(endpoint, fallback = '{}') {
async function main() {
console.log(`Fetching data from ${dashboardUrl} (mode: ${snapshotMode})...`);

const [statusRaw, historyRaw, trendsRaw, timelineRaw, configRaw, versionRaw, nousStatusRaw, nousLedgerRaw, nousPrinciplesRaw, kbStatsRaw, kbFactsRaw, contributorsRaw, leaderboardRaw, auditRaw, inceptionRaw] = await Promise.all([
const [statusRaw, historyRaw, trendsRaw, timelineRaw, configRaw, versionRaw, nousStatusRaw, nousLedgerRaw, nousPrinciplesRaw, kbStatsRaw, kbFactsRaw, contributorsRaw, leaderboardRaw, auditRaw] = await Promise.all([
fetchJson('/api/status'),
fetchJson('/api/history', '[]'),
fetchJson('/api/trends?range=week', '[]'),
Expand All @@ -93,11 +93,11 @@ async function main() {
fetchJson('/api/knowledge', '{"facts":[]}'),
fetchJson('/api/contributors', '[]'),
fetchJson('/api/leaderboard', '{"leaderboard":[]}'),
// Audit Log and Project Inception load from their own endpoints on the
// live dashboard (via _deferredInit, which the snapshot strips), so bake
// them here or they sit at "Loading…" forever in the read-only preview.
// The Audit Log loads from its own endpoint on the live dashboard (via
// _deferredInit, which the snapshot strips), so bake it here or it sits
// at "Loading…" forever in the read-only preview. (/api/inception/state
// was retired with the inception API and now answers 410.)
fetchJson('/api/audit', '{"entries":[]}'),
fetchJson('/api/inception/state', '{}'),
]);

// Validate status
Expand Down Expand Up @@ -362,17 +362,6 @@ async function main() {
}
} catch (e) {}

// Project Inception — same story: /api/inception/state loads via
// _deferredInit. Bake the state and render the panel once (statically).
try {
var _snapInception = ${inceptionRaw};
// Mirror loadInceptionState(): only an active inception has a state.
if (typeof _inceptionState !== 'undefined') {
_inceptionState = (_snapInception && _snapInception.active) ? _snapInception.state : null;
}
if (typeof renderInception === 'function') renderInception();
} catch (e) {}

// Fix leaderboard link to use snapshot base path
document.querySelectorAll('a[href="/leaderboard"]').forEach(function(a) {
a.href = '${basePath}/leaderboard';
Expand Down
Loading
Loading