feat(runtime): persist budgets and promote measured SEO learnings - #41
Draft
cryptoxdog wants to merge 1 commit into
Draft
feat(runtime): persist budgets and promote measured SEO learnings#41cryptoxdog wants to merge 1 commit into
cryptoxdog wants to merge 1 commit into
Conversation
Co-authored-by: Cursor <cursoragent@cursor.com>
|
| verifyContractIntegrity, | ||
| type EnrichedWebsiteFactoryContractV2, | ||
| } from '../../contracts/website_factory_v2.js'; | ||
| import { getLlmService } from '../../services/llm.js'; |
| import { sealWebsiteFactoryHandoff } from '@quantum-l9/bot-interop'; | ||
|
|
||
| const { insertMock, valuesMock, onConflictDoUpdateMock, returningMock } = vi.hoisted(() => { | ||
| const { insertMock, valuesMock, onConflictDoUpdateMock, returningMock, initClientMock } = vi.hoisted(() => { |
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
Consumes the canonical Website-Bot handoff package, returns the exact acknowledgement contract, initializes all active Router clients, persists atomic budget reservations in operational database, hydrates Graphiti memory for SEO tasks, and promotes only measured successful outcomes into shared memory.
Type of Change
Governance Checklist
setup_workspace_symlinks.sh, symlinks resolve (§2)ls -la .cursor/rules .cursor/skills .cursor/commandsall resolvemainBreaking Change
POST /api/clients/registernow accepts the canonical v3 handoff and no longer accepts the legacy local v2 schema. Website-Bot is the migration path and already emits v3. Run the database migration before starting the updated service.Rollback Plan
Stack Position
Stack 4/4. Depends on all preceding layers.
Dependencies and Release Gate
Requires
@quantum-l9/graphiti-memory-client@2.0.0,@quantum-l9/llm-router@1.1.0, and@quantum-l9/bot-interop@1.0.0published and installable.Validation
npm run migratenpm run typecheck && npm test && npm run verify:assurancememory_record_idandmemory_promoted_at; unsuccessful or unmeasured outcomes do not.Canonical-memory realignment
Quantum-L9/l9-graphiti-memoryas the sole shared cognitive-memory authority.Push Contract
main0a660de9ac042af3b315fdfeb94d4b8847f42a6efeat/persistent-budgets-and-governed-memory