Repository navigation
docs(#9586): add entity discovery v1 normative contract - #9828
Conversation
Add docs/normative/entity-discovery/v1/README.md. It defines the runtime guarantees for fullsend poll when it enumerates candidates for configured entity sources, as ADR 0149 requires. It consumes the effective selections from ADR 0079 and entity-source configuration v1 and adds no source model or query language. The contract defines complete, incomplete, failed, and unsupported pass outcomes. Only a complete pass with no candidates is complete-empty. Last pages, empty pages, and caps never prove completeness, and absence from results is never non-membership. It specifies page traversal and partitioning rules, settled boundaries for delayed indexing, freshness-first ordering, and rate-limit interruption. Recovery uses in-memory retry only, with no durable checkpoint or inventory. Recurring discovery and a restart-safe older-candidate backfill rotation recover uncovered work. Plan changes replan the active pass without invalidating cached normalized entities, and time-dependent selections need recurring full rediscovery. Provider limits for GitHub, GitLab, Forgejo, and Jira are recorded where they affect these guarantees. Conformance cases DC-1 to DC-25 map each rule to observable adapter behavior. Link the contract from docs/architecture.md and from entity-source configuration v1. Note: pre-commit could not fetch remote hook repositories (TLS certificate failure). The applicable hooks ran directly instead: pre-commit-hooks 6.0.0 file checks, lint-broken-symlinks, lint-docs-links, lychee offline link checks, and scan-secrets. Closes #9586 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
🤖 Finished Review · ✅ Success · Started 10:13 AM UTC · Completed 10:25 AM UTC Commit: Runtime: pi · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $2.39 |
Site previewPreview: https://f0f08c3a-site.fullsend-ai.workers.dev Commit: |
|
Risk Assessment: moderate (2/5) DetailsDocumentation-only PR by a bot with no protected paths, assigned moderate risk due to diff size (612 lines) and high recent churn on docs/architecture.md. Previous runRisk Assessment: moderate (2/5) DetailsDocumentation-only PR by a bot with no protected paths, assigned moderate risk due to diff size (576 lines) and high recent churn on docs/architecture.md. |
|
Looks good to me Previous run<!-- fullsend:review-findings-v2:eyJ2ZXJzaW9uIjoyLCJhY3Rpb24iOiJhcHByb3ZlIiwiZmluZGluZ3MiOlt7InNldmVyaXR5IjoibWVkaXVtIiwiY2F0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VjdG5lc3MifSx7InNldmVyaXR5IjoibG93IiwiY2F0ZWdvcnkiOiJpbmNvbXBsZXRlLWRvYyIsImZpbGUiOiJkb2NzL3Byb2JsZW1zL2FnZW50LWFyY2hpdGVjdHVyZS5tZCIsImlkIjoiZl9iMDc3ZWUwOTdhMmE4MTE0IiwibGluZSI6MTYwLCJhY3Rpb25hYmxlIjpmYWxzZSwiZGltZW5zaW9uIjoiZG9jcy1jdXJyZW5jeSJ9XX0= --> ReviewFindingsMedium
Low
Labels: PR adds and updates documentation Next steps:
|
|
🤖 Finished Fix · ✅ Success · Started 10:27 AM UTC · Completed 10:30 AM UTC Commit: Runtime: claude · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $0.27 |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Require keyset/snapshot/reconciliation for page traversal and add the removal scenario to DC-7, require exhaustive backfill traversal and strengthen DC-18, align DC-13/15/16 with optional runtime requirements, and link the contract from agent-architecture. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
🔧 Fix agent — iteration 1 (bot-triggered)Addressed all four review findings in the entity discovery v1 contract and the agent-architecture problem doc. Pre-commit could not run because the sandbox has no network access to fetch hooks, and the offline link checker was unavailable. The secret scan passed. The new link and anchor were checked by hand. Fixed (4):
Tests: passed CI inspections (5):
Next steps:
Updated by fullsend fix agent |
|
🤖 Finished Review · ✅ Success · Started 10:33 AM UTC · Completed 10:40 AM UTC Commit: Runtime: pi · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $1.16 |
Superseded by updated review
Summary
Adds the versioned normative contract
docs/normative/entity-discovery/v1/README.md. It covers runtime entity discovery: how afullsend pollpass lists candidates for entity sources that are already configured. It answers the four questions in #9586 (complete scans, safe progress, recovery, and invalidation) and maps each rule to numbered conformance cases. It builds on ADR 0149, ADR 0079, and entity-source configuration v1. It adds no source model, configuration field, or query language.Related Issue
Implements the maintainer decisions in the latest comment on the issue. The closed PR #9590 was not reused.
Changes
complete,incomplete,failed, orunsupported. Only a complete pass with zero candidates counts as complete-empty. A last page, an empty page, a result cap, or a missing total count never proves completeness. An entity missing from the results is never treated as a non-match. A complete pass is not a point-in-time snapshot.incomplete/rate_limited.polldefaults to the once lifecycle. There is no global catch-up deadline.fullsend runfor a known entity is not gated by this contract. Event-only harnesses and the ADR 0063 event-reconstructing drivers are unaffected. The Activation section states that this contract does not enable scheduled or entity-driven execution on its own.docs/architecture.mdand from entity-source configuration v1. The VitePress sidebar findsdocs/normative/automatically, so no config change was needed.Testing
make linthooks pass for the changed files.pre-commitcould not fetch its remote hook repositories in the sandbox (TLS certificate failure), so the applicable hooks ran directly instead: the pre-commit-hooks 6.0.0 file checks,lint-broken-symlinks,lint-docs-links, and the offlinelycheelink and anchor check.scan-secretsalso passed.Review notes
incomplete.Checklist
🤖 Generated with Claude Code
Closes #9586
Post-script verification
agent/9586-entity-discovery-contract)ff203b943d8a75516b7ca2435a8a034627a662e8..HEAD)