Sync fork with upstream OB1 (176 commits) + preserve local hardening#4
Merged
Conversation
Scheduled script that queries the past N days of thoughts, paginates and ranks by importance, synthesizes with an LLM, and delivers to Telegram or stdout. Filters restricted/personal by default; opt in with --include-personal.
Weekly quality audit across three cost tiers: SQL-only orphan/dup lint (free), graph-based edge-weakness lint (free), and LLM-assisted contradiction sampling (budget-capped). Read-only — produces a report, never mutates.
…raph) as Tier 2 prereq
…h current generator
…test_path + traverse_graph) The previous recursive-CTE implementations enumerated every path to every reachable node, which exploded on densely connected graphs (a hub with 1k+ neighbours at depth 2 produced tens of thousands of rows) and depended on the per-path ANY(path) check to break cycles. On a cyclic graph that exceeded the statement_timeout the planner never actually pruned the walk. Replace both functions with iterative plpgsql BFS: - Global seen-set (UUID[]) so each node is visited at most once - JSONB parent-pointer map records the first (parent, relation) that reached each node; BFS's "first discovery wins" invariant is enforced with DISTINCT ON (next_id) - Shared reconstruct_bfs_path() helper walks the parent map end -> start with a safety guard against malformed maps - find_shortest_path keeps bidirectional edge traversal; traverse_graph keeps outgoing-only with optional relationship_type filter - Signatures, argument order, RETURNS shape, and language (plpgsql, no SECURITY DEFINER) match the original so this is a body-only rewrite - All queries scope by p_user_id to preserve the multi-tenant isolation the edge function relies on (service_role bypasses RLS) Update the README's "How It Works" section and function table to describe the new implementation so the docs don't contradict the SQL. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Standalone Node script that exercises traverse_graph and find_shortest_path against a live Supabase project with ob-graph installed. Picks an arbitrary edge, calls both RPCs at depth 1/2/6, and prints row counts + timings so maintainers can confirm the iterative-BFS rewrite stays inside the statement_timeout and returns sensible shapes before shipping. Reads SUPABASE_PROJECT_REF, SUPABASE_SERVICE_ROLE_KEY, and OB_GRAPH_USER_ID from recipes/ob-graph/.env.local so the service-role key never lands in repo history. Sets process.exitCode=1 on any RPC failure so CI or shell chaining picks up a non-zero exit. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
…wicegood/dashboard-next-bump [dashboards] open-brain-dashboard-next: bump next to 16.2.4
…estone/ob1-gate-v2 [docs] Refresh OB1 PR gate workflow registration
…estone/openclaw-tool-schemas [integrations] Add OpenClaw Agent Memory tool schemas
…enclaw-memory-host-hooks fix(openclaw-agent-memory): wire memory-host hooks for auto-recall (NateBJones-Projects#279)
…it/local-brain-no-mcp [recipes] Add local-brain-no-mcp recipe + ob1-local-http skill
…napsynapse/canonical-landing-page [dashboards] Canonical landing page for openbrain.fyi
…egram-markdownlint-fix [docs] Fix Telegram README Markdownlint
…rib/spiritualsystems/fix-typed-edges-comment-syntax [schemas] Fix invalid || concatenation in typed-reasoning-edges COMMENT
…-agent-memory feat(integrations): add hermes-agent-memory native provider for OB1
…lanshurafa/smart-ingest [integrations] Smart ingest Edge Function
…wicegood/dashboard-open-next-cloudflare [dashboards] open-brain-dashboard-next: add Cloudflare Workers deploy support
…026-06-11 # Conflicts: # .github/workflows/ob1-gate-v2.yml
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.
What
Brings the Humestone fork current with upstream NateBJones-Projects/OB1 (main was 178 commits behind) while preserving all local divergence.
Upstream capabilities gained (the reason for this sync, per the approved structural-audit remediation):
integrations/smart-ingest- validated, chunked, deduplicated embedding ingestion (structural fix for boilerplate-dominated source-content captures)recipes/atomizer- re-atomization toolkit (the pattern for the 308-stub source-content backlog promotion, step 2 of the remediation)schemas/provenance chains - derivation tracking (derived_from wiring for syntheses/dossiers)integrations/update-thought-mcp- safe thought updates with if_unchanged_sinceintegrations/telegram-capture- directly relevant to the locked step-5 Telegram pilotintegrations/hermes-agent-memory- native Hermes provider with workspace_mode isolationLocal divergence preserved:
ob1-gate-v2.ymlMerge surface: 226 files; exactly one conflict (the comment header of
ob1-gate-v2.yml, resolved by keeping upstream's rename note plus the local branch-protection steps).Verification
deno testintegrations/agent-memory-api: 46/46 passed (local modularized tests + upstream smoke tests together)deno checkintegrations/smart-ingest: passesnode --testdashboards/open-brain-dashboard-next/lib/agent-memory.test.mjs: 0 failuresNotes for review
🤖 Generated with Claude Code