singularity-forge/src
Mikael Hugo 00c13bc5a1 feat(sf): persist escalation resolutions as durable memories
When an escalation is resolved (auto-mode accept or user override), write
the choice + rationale into the memories table with category="architecture".
The "[escalation:<task>] <question>. Chose: <option>. Rationale: ..."
prefix mirrors the decisions->memories backfill format so search and
de-duplication work the same way.

Why: getActiveMemoriesRanked auto-injects top memories into every
execute-task prompt, so a resolved escalation now travels forward as
implicit context across the whole project — not just the immediate
carry-forward into the next task. The artifact JSON stays as the audit
trail; the memory is the discoverable, semantically-ranked surface.

Best-effort write — never blocks resolution.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-02 21:53:56 +02:00
..
resources feat(sf): persist escalation resolutions as durable memories 2026-05-02 21:53:56 +02:00
tests fix: inline-fix for high/critical self-feedback entries 2026-05-02 19:57:41 +02:00
web chore: clean up remaining sf-2 stale-name code comments 2026-05-02 18:14:22 +02:00
app-paths.ts feat: introduce repo-vcs skill and add JSDoc annotations across core modules 2026-05-01 21:36:32 +02:00
bundled-extension-paths.ts feat: introduce repo-vcs skill and add JSDoc annotations across core modules 2026-05-01 21:36:32 +02:00
bundled-resource-path.ts batch: snapshot of in-flight v2 work 2026-04-29 12:42:31 +02:00
claude-cli-check.ts batch: snapshot of in-flight v2 work 2026-04-29 12:42:31 +02:00
cli-logs.ts batch: snapshot of in-flight v2 work 2026-04-29 12:42:31 +02:00
cli-stats.ts refactor: migrate from better-sqlite3 to node:sqlite, npm glob to node:fs 2026-05-02 06:13:57 +02:00
cli-status.ts batch: snapshot of in-flight v2 work 2026-04-29 12:42:31 +02:00
cli-web-branch.ts feat: stabilize autonomous workflow system 2026-05-01 20:18:50 +02:00
cli.ts fix(sf): stabilize headless auto flow 2026-05-02 11:34:41 +02:00
errors.ts feat: introduce repo-vcs skill and add JSDoc annotations across core modules 2026-05-01 21:36:32 +02:00
extension-discovery.ts feat: introduce repo-vcs skill and add JSDoc annotations across core modules 2026-05-01 21:36:32 +02:00
extension-registry.ts feat: introduce repo-vcs skill and add JSDoc annotations across core modules 2026-05-01 21:36:32 +02:00
headless-answers.ts batch: snapshot of in-flight v2 work 2026-04-29 12:42:31 +02:00
headless-context.ts sf snapshot: pre-dispatch, uncommitted changes after 53m inactivity 2026-04-30 19:10:38 +02:00
headless-events.ts feat(sf): bug-hunt fixes, UOK phase hardening, model policy, record-promoter 2026-05-02 02:03:55 +02:00
headless-query.ts sf snapshot: pre-dispatch, uncommitted changes after 32m inactivity 2026-05-02 11:25:51 +02:00
headless-types.ts feat: structured notification event model with metadata-first classification 2026-05-01 23:07:57 +02:00
headless-ui.ts fix(sf): surface agent-end ordering failures 2026-05-02 14:25:44 +02:00
headless.ts chore(sf): add optional token telemetry 2026-05-02 11:50:34 +02:00
help-text.ts feat: stabilize autonomous workflow system 2026-05-01 20:18:50 +02:00
loader.ts fix(sf): stabilize auto notices and package checks 2026-05-02 12:39:27 +02:00
logo.ts batch: snapshot of in-flight v2 work 2026-04-29 12:42:31 +02:00
mcp-server.ts batch: snapshot of in-flight v2 work 2026-04-29 12:42:31 +02:00
models-resolver.ts batch: snapshot of in-flight v2 work 2026-04-29 12:42:31 +02:00
onboarding.ts batch: snapshot of in-flight v2 work 2026-04-29 12:42:31 +02:00
pi-migration.ts batch: snapshot of in-flight v2 work 2026-04-29 12:42:31 +02:00
project-sessions.ts batch: snapshot of in-flight v2 work 2026-04-29 12:42:31 +02:00
provider-migrations.ts batch: snapshot of in-flight v2 work 2026-04-29 12:42:31 +02:00
remote-questions-config.ts batch: snapshot of in-flight v2 work 2026-04-29 12:42:31 +02:00
resource-loader.ts chore: clean up remaining sf-2 stale-name code comments 2026-05-02 18:14:22 +02:00
rtk.ts batch: snapshot of in-flight v2 work 2026-04-29 12:42:31 +02:00
security-overrides.ts batch: snapshot of in-flight v2 work 2026-04-29 12:42:31 +02:00
startup-model-validation.ts feat: Replaced bare error writes in cli.ts, headless.ts, and startup-mo… 2026-04-30 15:43:29 +02:00
startup-timings.ts batch: snapshot of in-flight v2 work 2026-04-29 12:42:31 +02:00
tool-bootstrap.ts batch: snapshot of in-flight v2 work 2026-04-29 12:42:31 +02:00
traces.ts feat: introduce repo-vcs skill and add JSDoc annotations across core modules 2026-05-01 21:36:32 +02:00
update-check.ts batch: snapshot of in-flight v2 work 2026-04-29 12:42:31 +02:00
update-cmd.ts batch: snapshot of in-flight v2 work 2026-04-29 12:42:31 +02:00
web-mode.ts fix: inline-fix for high/critical self-feedback entries 2026-05-02 19:57:41 +02:00
welcome-screen.ts batch: snapshot of in-flight v2 work 2026-04-29 12:42:31 +02:00
wizard.ts batch: snapshot of in-flight v2 work 2026-04-29 12:42:31 +02:00
worktree-cli.ts chore: CI workflows, package.json updates, test fixes, docs cleanup 2026-05-02 06:30:45 +02:00
worktree-name-gen.ts batch: snapshot of in-flight v2 work 2026-04-29 12:42:31 +02:00