Skip to content

Merge v0.10.0 - #132

Open
Kzoeps wants to merge 14 commits into
stagingfrom
main
Open

Kzoeps wants to merge 14 commits into
stagingfrom
main

Conversation

@Kzoeps

@Kzoeps Kzoeps commented Aug 22, 2026

Copy link
Copy Markdown
Member

No description provided.

Kzoeps and others added 12 commits July 1, 2026 16:50
…n-gate

# Conflicts:
#	internal/database/migrations/migrations_test.go
Reject duplicate filesystem Lexicon IDs, return reliable Lexicon timestamps, and cover existing-row migration upgrades. Bound CAR error details and apply the remaining focused test, formatting, and operator-documentation fixes.
Filter endorsement closure inputs to valid records and align local API smoke checks with raw validation metadata and typed visibility.
…n-gate

# Conflicts:
#	.agents/skills/hyperindex/references/schema-reference.md
#	cmd/hyperindex/main.go
#	internal/graphql/schema/builder.go
#	internal/graphql/schema/builder_test.go
#	internal/graphql/subscription/handler.go
#	internal/graphql/subscription/handler_test.go
#	internal/graphql/subscription/pubsub.go
@vercel

vercel Bot commented Aug 22, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
hyperindex-atproto-client Ready Ready Preview Aug 22, 2026 4:29am
hyperindex-client Ready Ready Preview Aug 22, 2026 4:29am

Request Review

@coderabbitai

coderabbitai Bot commented Aug 22, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: bdb896b6-2317-4073-8fb4-39779c052d15

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@greptile-apps

greptile-apps Bot commented Aug 22, 2026

Copy link
Copy Markdown

Greptile Summary

The PR introduces a fixed startup Lexicon snapshot and record-validation gate, restricting typed GraphQL and subscription behavior to valid records while preserving raw diagnostic access.

  • Adds validation metadata, migrations, ingestion validation, and startup reconciliation.
  • Aligns GraphQL, subscriptions, endorsement traversal, Jetstream, Tap, and backfill with the startup Lexicon set.
  • Bundles required Lexicon dependencies and updates operator-facing documentation and UI guidance.

Confidence Score: 5/5

The PR appears safe to merge because no blocking failure remains.

No blocking failure remains.

Important Files Changed

Filename Overview
cmd/hyperindex/main.go Establishes one startup Lexicon snapshot, performs validation reconciliation before serving, and shares the validator across ingestion paths.
internal/validation/validator.go Implements local record validation and Lexicon fingerprinting for persisted validation metadata.
internal/validationrefresh/scheduler.go Reclassifies stored records against the startup validator through a paged reconciliation workflow.
internal/graphql/schema/builder.go Applies validation visibility constraints to generated typed GraphQL operations and relationships.
internal/database/repositories/records.go Extends record persistence and querying with validation metadata and filtering support.
internal/graphql/subscription/handler.go Filters typed subscription events according to current and pre-delete validation state.
internal/database/migrations/migrations.go Registers the new validation metadata, Lexicon JSON, and paging-index migrations across supported databases.
Dockerfile Bundles pinned helper Lexicons into the runtime image and configures their default directory.

Flowchart

%%{init: {'theme': 'neutral'}}%%
flowchart TD
    A[Load filesystem Lexicons] --> C[Merge startup snapshot]
    B[Load database Lexicons] --> C
    C --> D[Build validator and GraphQL registry]
    D --> E[Refresh stored validation metadata]
    E --> F[Start typed GraphQL and subscriptions]
    D --> G[Validate newly ingested records]
    G --> H[(Raw record storage)]
    H --> I{Validation status valid?}
    I -->|Yes| J[Typed GraphQL and typed events]
    I -->|No| K[Generic records, search, and raw events]
Loading

Reviews (2): Last reviewed commit: "Merge pull request #133 from GainForest/..." | Re-trigger Greptile

Comment thread cmd/hyperindex/main.go
Comment on lines +771 to +774
svc.validator, err = validation.NewValidatorFromLexiconBytes(savedLexicons)
if err != nil {
return nil, fmt.Errorf("failed to build startup Lexicon snapshot: %w", err)
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Startup guidance remains stale

The fixed startup Lexicon snapshot and validation-refresh workflow change configuration and migration behavior, but AGENTS.md still omits the restart-only application model and startup refresh requirements, leaving future operational and maintenance work based on stale repository guidance.

Context Used: AGENTS.md (source)

Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant