Commit graph

4174 commits

Author SHA1 Message Date
Mikael Hugo
d548ea01c5 sf snapshot: uncommitted changes after 155m inactivity 2026-05-08 10:08:39 +02:00
Mikael Hugo
2f44374249 docs(runtime): remove stale node 24 guidance 2026-05-08 07:32:40 +02:00
Mikael Hugo
aa46a29cdd docs(runtime): align source docs with node 26 2026-05-08 07:17:33 +02:00
Mikael Hugo
0cfe839f7a fix(sf): guard progress widget cleanup 2026-05-08 07:17:29 +02:00
Mikael Hugo
10694440e3 feat(sf): align uok task state and steering 2026-05-08 06:57:59 +02:00
Mikael Hugo
378ab702e1 feat(sf): streamline uok state and direct modes 2026-05-08 05:51:06 +02:00
Mikael Hugo
19bfc3d3f6 feat(sf): align node sqlite uok runtime 2026-05-08 03:01:20 +02:00
Mikael Hugo
760564dbfb docs(sf): record node 26 runtime target 2026-05-08 01:56:55 +02:00
Mikael Hugo
d640aa0949 test(sf): align direct command web contracts 2026-05-08 01:48:50 +02:00
Mikael Hugo
b5893d1c28 Make SF direct command surface baseline 2026-05-08 01:34:07 +02:00
Mikael Hugo
6fc054e7c3 sf snapshot: uncommitted changes after 49m inactivity 2026-05-08 01:07:24 +02:00
Mikael Hugo
89677b7e9b sf snapshot: uncommitted changes after 110m inactivity 2026-05-08 00:17:47 +02:00
Mikael Hugo
d05e7164a9 feat: journal execution policy decisions 2026-05-07 22:27:29 +02:00
Mikael Hugo
e9df932234 feat: add execution policy profiles 2026-05-07 18:21:47 +02:00
Mikael Hugo
b0fce94f9e feat: record retrieval evidence across context tools 2026-05-07 18:17:41 +02:00
Mikael Hugo
05f185256c docs: record local cli survey cross-check 2026-05-07 17:22:03 +02:00
Mikael Hugo
b1a7749763 fix: harden widget and provider auth handling 2026-05-07 17:20:52 +02:00
Mikael Hugo
3c84bd2fed fix: stabilize headless bootstrap and prompt history 2026-05-07 16:46:44 +02:00
Mikael Hugo
deeb4dbd4e sf snapshot: uncommitted changes after 61m inactivity 2026-05-07 16:39:39 +02:00
Mikael Hugo
8088489e38 sf snapshot: uncommitted changes after 258m inactivity 2026-05-07 15:37:55 +02:00
Mikael Hugo
e154dad930 fix: clean workflow helper extraction lint 2026-05-07 11:19:26 +02:00
Mikael Hugo
426fea7334 fix: reload sf source runtime on extension changes 2026-05-07 10:31:34 +02:00
Mikael Hugo
343ee5c89e sf snapshot: uncommitted changes after 158m inactivity 2026-05-07 10:01:56 +02:00
Mikael Hugo
6e0273573c refactor: Extract workflow-helpers module from auto-prompts (D3)
- Extract buildResumeSection and buildCarryForwardSection for continue/carry-forward logic
- Extract checkNeedsReassessment and checkNeedsRunUat for adaptive replanning
- Consolidates workflow state checking and section building
- No behavior change; backward compatible via re-export pattern
- Reduces auto-prompts.js by ~260 LOC

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-05-07 07:23:43 +02:00
Mikael Hugo
e99d50fbc1 refactor: Extract summary-helpers module from auto-prompts (D2)
- Extract buildSliceSummaryExcerpt to format slice summaries as excerpts
- Extract getPriorTaskSummaryPaths and getDependencyTaskSummaryPaths
- Extract isSummaryCleanForSkip for replan decision logic
- Consolidates summary extraction logic for reuse and testability
- No behavior change; backward compatible via re-export pattern
- Reduces auto-prompts.js by ~120 LOC

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-05-07 07:16:56 +02:00
Mikael Hugo
d75ed12d89 refactor: Extract io-helpers module from auto-prompts (D1)
- Extract inlineFile, inlineFileOptional, inlineFileSmart to io-helpers.js
- Enables testable file I/O utilities reusable across prompt builders
- No behavior change; backward compatible via re-export pattern
- Reduces auto-prompts.js cognitive load by ~50 LOC

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-05-07 07:09:46 +02:00
Mikael Hugo
de3990093e style: Organize imports in memory-store.js per Biome
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-05-07 06:57:36 +02:00
Mikael Hugo
5e518dd7d4 feat: Add SM cross-project recall to memory ranking (Phase 3)
- Import querySmMemories from sm-client.js
- Merge cross-project memories into getRelevantMemoriesRanked
- Cap cross-project confidence at 0.8 with 0.9 reduction (conservative)
- Gracefully degrade: fail-open if SM unavailable
- Preserve cosine ranking with relation boost for merged pool
- Tests: 3821 passing, no regressions

Implements Tier 1.2 Phase 3: Cross-project memory recall via Singularity Memory.
Enables dispatch to leverage patterns from other projects while maintaining
local autonomy via fail-open semantics.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-05-07 06:56:15 +02:00
Mikael Hugo
bfb892eca3 fix: bind todo backlog triage to project db 2026-05-07 06:40:28 +02:00
Mikael Hugo
1b73500fcf fix: bind inspect command to project db 2026-05-07 06:38:43 +02:00
Mikael Hugo
2aed04608c fix: bind escalate command to project db 2026-05-07 06:37:21 +02:00
Mikael Hugo
87362f27fc docs: remove mcp server roadmap residue 2026-05-07 06:25:59 +02:00
Mikael Hugo
9bd913d4a1 fix: bind uok status to project db 2026-05-07 06:25:03 +02:00
Mikael Hugo
cc08afc3b1 fix: bind memory command to project db 2026-05-07 06:23:42 +02:00
Mikael Hugo
a2184a0a0e feat: store judgment log in db 2026-05-07 06:22:07 +02:00
Mikael Hugo
2178aa8803 fix: isolate uok message bus db per project 2026-05-07 06:09:32 +02:00
Mikael Hugo
95cb13c08d fix: isolate backlog db per project 2026-05-07 05:54:18 +02:00
Mikael Hugo
6beb6fd412 docs: align replan and state source of truth 2026-05-07 05:52:25 +02:00
Mikael Hugo
03ebc02277 fix: stamp replan triggers in db 2026-05-07 05:41:08 +02:00
Mikael Hugo
95b00d8963 test: cover memory tags schema 2026-05-07 05:38:38 +02:00
Mikael Hugo
5c32d91124 feat: promote schedule and self-feedback state to db 2026-05-07 05:34:42 +02:00
Mikael Hugo
cd5926a17a fix: auto-compact uok message bus 2026-05-07 05:23:08 +02:00
Mikael Hugo
5bc3895586 feat: expose uok message bus metrics 2026-05-07 05:19:41 +02:00
Mikael Hugo
268e7ac678 feat: publish uok diagnostics to observer inbox 2026-05-07 05:08:44 +02:00
Mikael Hugo
c0973ac287 fix: complete gate cost micro-usd migration 2026-05-07 05:07:57 +02:00
Mikael Hugo
7c39165c81 Tier 2.7: Migrate cost_usd to cost_micro_usd for accurate accounting
- Schema version bumped to 36
- Add migrateCostUsdToMicroUsd() helper for safe migration
- Convert cost_usd REAL to cost_micro_usd INTEGER in gate_runs
- Migration: multiply USD values by 1,000,000 to avoid float drift
- Update insertGateRun() to support cost_micro_usd field
- Old cost_usd column retained for backward compatibility

Benefits:
- Eliminates floating-point drift on accumulated costs
- Easier reasoning about cost totals
- Integer arithmetic is faster and more predictable
- Idempotent migration (safe to re-run)

Migration runs automatically on first database open for schema < 36.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-05-07 05:04:35 +02:00
Mikael Hugo
fce0c4c781 Tier 1.1: Implement vault credential resolver for provider keys
- Add vault-credential-resolver.js: Async credential resolution with vault:// URI support
- Integration with vault-resolver.js (low-level Vault client)
- Update doctor-providers.js to detect and report vault URIs
- Synchronous doctor checks (no network I/O) with lazy async resolution
- Fail-open semantics: vault unavailable -> fall back to plaintext
- 28 tests for credential resolver (all passing)
- ADR-0078: Architecture and auth chain documentation

Features:
- vault://secret/path/to/secret#fieldname URI format
- Auth chain: VAULT_TOKEN -> ~/.vault-token -> AppRole (reserved)
- Helper functions: couldBeVaultUri, hasProviderCredentialEnvVar, resolveProviderCredential, getCredentialValue, formatCredentialInfo
- Full backward compatibility with plaintext keys and auth.json

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-05-07 04:59:07 +02:00
Mikael Hugo
9ceb0bf229 fix: store backlog items in db 2026-05-07 04:50:13 +02:00
Mikael Hugo
59cfc4f7c3 test: guard against sf mcp server regression 2026-05-07 04:46:09 +02:00
Mikael Hugo
ffde54e05a fix: persist live planning specs in db 2026-05-07 04:44:09 +02:00