Repository navigation
docs(#9586): add entity-source discovery v1 normative protocol - #9590
fullsend-ai-coder[bot] wants to merge 4 commits into
Conversation
ADR 0149 forbids enabling entity-source discovery until a versioned normative query protocol exists. Add it under docs/normative/entity-source-discovery/v1/ (protocol version entity-source-discovery/v1), recording only decisions accepted in ADRs 0098, 0133, 0144, 0147, 0148, 0149, and 0151. The spec defines trusted source declarations, source scopes, a closed set of routing facts with actor-gating classes, a logical query model with three-valued operators and admission rules, combined-plan identity and plan-change rescans, local routing and deduplication, bound-run membership checks, coverage evidence (the last page is not completeness), time-dependent rediscovery, durable retry records, provider mappings and limit profiles for GitHub, GitLab, Forgejo, and Jira, and numbered conformance cases (ESD-01..ESD-64) with a rule-to-case map. Event-only harnesses are explicitly unaffected. ADR 0149 leaves query syntax open, so the spec defines a logical model that any harness-configuration syntax must lower to, not a syntax. Forgejo stays disabled until a normalized-entity contract covers it. Also link the protocol from architecture.md and add a "Living contract" cross-reference annotation to accepted ADR 0149. Note: pre-commit could not fetch hook repos (TLS failure in sandbox); the applicable pre-commit-hooks v6.0.0 hooks were run directly and passed, gitleaks ran via scan-secrets, and lychee offline link and fragment checks passed. Closes #9586 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
🤖 Finished Review · ✅ Success · Started 9:21 AM UTC · Completed 9:30 AM UTC Commit: Runtime: pi · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $1.99 |
Site previewPreview: https://6bce1804-site.fullsend-ai.workers.dev Commit: |
|
Risk Assessment: moderate (2/5) DetailsDocumentation-only PR by a bot touching no protected paths, but elevated to moderate risk by a large diff size and high recent commit churn and author contention on docs/architecture.md. Previous runRisk Assessment: moderate (2/5) DetailsDocumentation-only PR by a bot touching no protected paths, but elevated to moderate risk by a large diff size and high recent commit churn and author contention on docs/architecture.md. Previous run (2)Risk Assessment: moderate (2/5) DetailsDocumentation-only PR by a bot touching no protected paths, but elevated to moderate risk by a large line count and high recent commit churn and author contention on docs/architecture.md. Previous run (3)Risk Assessment: moderate (2/5) DetailsDocumentation-only PR by a bot touching no protected paths, but elevated to moderate risk by a large line count and high recent commit churn and author contention on docs/architecture.md. |
|
Looks good to me Earlier findings
Previous run<!-- fullsend:review-findings-v2:eyJ2ZXJzaW9uIjoyLCJhY3Rpb24iOiJhcHByb3ZlIiwiZmluZGluZ3MiOlt7InNldmVyaXR5IjoibG93IiwiY2F0ZWdvcnkiOiJkb2Mtc3R5bGUiLCJmaWxlIjoiZG9jcy9ub3JtYXRpdmUvZW50aXR5LXNvdXJjZS1kaXNjb3ZlcnkvdjEvUkVBRE1FLm1kIiwiaWQiOiJmXzlmOWM2ZmU3NjRhMmRiODkiLCJsaW5lIjo4MCwiYWN0aW9uYWJsZSI6dHJ1ZSwiZGltZW5zaW9uIjoic3R5bGUtY29udmVudGlvbnMifSx7InNldmVyaXR5IjoibWVkaXVtIiwiY2F0ZWdvcnkiOiJsb2dpYy1lcnJvciIsImZpbGUiOiJkb2NzL25vcm1hdGl2ZS9lbnRpdHktc291cmNlLWRpc2NvdmVyeS92MS9SRUFETUUubWQiLCJpZCI6ImZfY2M0OTAwZjM5NGI0NTUxYSIsImxpbmUiOjQxNCwiYWN0aW9uYWJsZSI6dHJ1ZSwiZGltZW5zaW9uIjoiY29ycmVjdG5lc3MifSx7InNldmVyaXR5IjoibG93IiwiY2F0ZWdvcnkiOiJsb2dpYy1lcnJvciIsImZpbGUiOiJkb2NzL25vcm1hdGl2ZS9lbnRpdHktc291cmNlLWRpc2NvdmVyeS92MS9SRUFETUUubWQiLCJpZCI6ImZfYzMyMThjZTJmZTM1MWRhYiIsImxpbmUiOjQxNiwiYWN0aW9uYWJsZSI6dHJ1ZSwiZGltZW5zaW9uIjoiY29ycmVjdG5lc3MifSx7InNldmVyaXR5IjoibWVkaXVtIiwiY2F0ZWdvcnkiOiJsb2dpYy1lcnJvciIsImZpbGUiOiJkb2NzL25vcm1hdGl2ZS9lbnRpdHktc291cmNlLWRpc2NvdmVyeS92MS9SRUFETUUubWQiLC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zaXRpb25zIjpbeyJpZCI6ImZfMmJjYzBkNWRlN2M5ZmNiZCIsInN0YXR1cyI6Im9wZW4ifSx7ImlkIjoiZl85ZjljNmZlNzY0YTJkYjg5Iiwic3RhdHVzIjoicmVzb2x2ZWRfYnlfY2hhbmdlIn1dfQ== --> ReviewFindingsMedium
Low
Earlier findings
Next steps:
Previous run (4)<!-- fullsend:review-findings-v2:eyJ2ZXJzaW9uIjoyLCJhY3Rpb24iOiJyZXF1ZXN0LWNoYW5nZXMiLCJmaW5kaW5ncyI6W3sic2V2ZXJpdHkiOiJtZWRpdW0iLCJjYXRlZ29yeSI6ImxvZ2ljLWVycm9yIiwiZmlsZSI6ImRvY3Mvbm9ybWF0aXZlL2VudGl0eS1zb3VyY2UtZGlzY292ZXJ5L3YxL1JFQURNRS5tZCIsImlkIjoiZl8yYmNjMGQ1ZGU3YzlmY2JkIiwibGluZSI6NDA2LCJhY3Rpb25hYmxlIjp0cnVlLCJkaW1lbnNpb24iOiJjb3JyZWN0bmVzcyJ9LHsic2V2ZXJpdHkiOiJsb3ciLCJjYXRlZ29yeSI6ImRvYy1zdHlsZSIsImZpbGUiOiJkb2NzL25vcm1hdGl2ZS9lbnRpdHktc291cmNlLWRpc2NvdmVyeS92MS9SRUFETUUubWQiLCJpZCI6ImZfOWY5YzZmZTc2NGEyZGI4OSIsImxpbmUiOjgwLCJhY3Rpb25hYmxlIjp0cnVlLCJkaW1lbnNpb24iOiJzdHlsZS1jb252ZW50aW9ucyJ9XX0= --> ReviewFindingsMedium
Low
Labels: Documentation-only change adding a normative spec and architecture/ADR cross-references. Next steps:
|
|
🤖 Finished Fix · ✅ Success · Started 9:32 AM UTC · Completed 9:36 AM UTC Commit: Runtime: claude · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $0.24 |
Require a second full read of the range for overlap_reconciliation so unchanged entities skipped by shifted page offsets are detected, add conformance case ESD-58, and lowercase the product name in running prose. Note: pre-commit could not fetch hook repositories (TLS failure in the sandbox); applicable hook checks (trailing whitespace, EOF, line endings, secret scan) were verified manually. Addresses #9590 Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
🔧 Fix agent — iteration 1 (bot-triggered)Addressed both review findings in the normative protocol README. Pre-commit could not fetch hook repositories in the sandbox, so applicable checks were verified manually; the offline link check and secret scan passed. Fixed (2):
Tests: passed CI inspections (5):
Conflict update: skipped; strategy
|
|
🤖 Finished Review · ✅ Success · Started 9:38 AM UTC · Completed 9:49 AM UTC Commit: Runtime: pi · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $1.46 |
|
🤖 Finished Fix · ✅ Success · Started 9:51 AM UTC · Completed 9:55 AM UTC Commit: Runtime: claude · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $0.30 |
Require validating passes for overlap_reconciliation to return identical canonical ID sets, so departures during either pass are detected. State that the previous pass becomes the baseline when a full read repeats and that a durable retry starts a new first pass. Add conformance case ESD-59 for departures during both passes. Note: pre-commit could not fetch hook repositories (certificate failure) and lychee could not run via make (operation not permitted); no links were changed and the edit adds no trailing whitespace. Addresses #9590 Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
🔧 Fix agent — iteration 2 (bot-triggered)Addressed both findings from the second review round by strengthening the overlap_reconciliation validation rule (identical ID sets across consecutive passes, moving baseline, bounded scan budget) and adding conformance case ESD-59. Fixed (2):
Tests: passed CI inspections (1):
Conflict update: skipped; strategy
|
|
🤖 Finished Review · ✅ Success · Started 9:57 AM UTC · Completed 10:04 AM UTC Commit: Runtime: pi · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $1.37 |
|
🤖 Finished Fix · ✅ Success · Started 10:06 AM UTC · Completed 10:10 AM UTC Commit: Runtime: claude · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $0.36 |
Require a unique stable tie-breaker for overlap_reconciliation, state the provider mapping implications, add conformance case ESD-65 for tied sort values, and correct the ESD-59 page-by-page trace. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
🔧 Fix agent — iteration 3 (bot-triggered)Addressed both open findings with a documentation-only change: a deterministic-ordering requirement for overlap_reconciliation (with provider mapping updates and new case ESD-65), and a corrected ESD-59 trace. The findings marked resolved needed no further change. Fixed (2):
Tests: passed CI inspections (2):
Conflict update: skipped; strategy
|
|
🤖 Finished Review · ✅ Success · Started 10:12 AM UTC · Completed 10:19 AM UTC Commit: Runtime: pi · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $1.16 |
Superseded by updated review
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
jwm4
left a comment
There was a problem hiding this comment.
I read this protocol for what it means for Jira polling. I did not review the query model, the routing facts or the paging proofs in detail, and the existing threads already cover the paging rules.
The direction is right for Jira. A checkpoint that advances only across complete ranges, and retry records that never turn an unresolved candidate into "handled", are properties the shipped Jira driver does not have.
I have two inline questions, both about state and load. I think the protocol should answer them before an adapter is built on it: where its records are kept, and in what order waiting work is served and with what bounds.
Written by Bill Murdock with assistance from Claude Code.
| ## Retry behavior | ||
|
|
||
| Partial scans and uncertain results stay visible and retryable. They cannot | ||
| silently drop candidates or start a sandbox. | ||
|
|
||
| A durable retry record holds: |
There was a problem hiding this comment.
Where are these records kept? The protocol relies on state that survives between cycles: the checkpoint or watermark, which "MUST advance only across complete ranges", the durable retry records in this section, and the due records for time-dependent queries. The Terms table calls a retry record "persisted state", and I could not find where it persists.
For the managed poll job the options are thin. The job has contents: read only (job template), so it cannot write to the repository. The GitHub Actions cache removes entries that go unused for 7 days. For a Jira source, anyone with Edit Issues can write issue properties, which is why the shipped driver clamps its per-issue checkpoint (the clamp).
One store does fit a Jira source, and I tested it: a property on the polling account's own Jira user record (/rest/api/3/user/properties/{propertyKey}). Against a Jira Cloud site I set, read, overwrote and deleted a value with an ordinary API token and no admin rights. Atlassian's API reference says writing another user's record needs Administer Jira, and a value can hold up to 32,768 bytes. It needs no operator setup and no repository write access. Limits I know of: the value is lost if a deployment switches to a different Jira account, and I have not tested an OAuth service account or two writers at once.
I am not asking for that store to be written in. I am asking that the protocol either name where each adapter keeps this state or say which contract does, and say what happens when the state is lost. The answer decides whether a long poller outage loses work.
One related point. A retry record is created for every candidate handed to a bound run and kept until the run reports back, so the number of records grows with the amount of waiting work. A single 32 KB value would not hold that, so the size of this state seems worth a sentence too.
There was a problem hiding this comment.
This PR was made up by a bot before I created #9199 I would pay noo heed to it until that one is merged. This PR is likely to be closed and the work, if any is needed, re-done from scratch.
Notably, there shouldn't be something like a retry record - an agent needs to mark an entity as one that does not need further work, and its trigger CEL expression needs to be shaped in a way that takes that into account. Otherwise, it gets triggered.
| - Create a retry record whenever a candidate's membership stays `unknown`, a | ||
| range is not `complete`, or a candidate is handed to a bound `run`. | ||
| - Retry with bounded backoff that respects provider rate limits and | ||
| `Retry-After` or equivalent signals. Rate limiting defers work; it never | ||
| advances a checkpoint. | ||
| - A handoff to a bound `run` is provisional. Scheduling a run, delivering a | ||
| wakeup, or receiving a process-start receipt is not completion. The record | ||
| stays until the bound run reports a definitive non-match with any | ||
| cache-dependent recheck arranged, completes actionable work, or safely | ||
| defers it under ADR 0144, or until rediscovery after checkpoint advancement | ||
| is proven. |
There was a problem hiding this comment.
What happens when discovery keeps finding more eligible entities than can be run? A candidate handed to a bound run gets a retry record that stays until the run reports back, and ADR 0144 says resource limits "cannot mark a true CEL result as already handled". So waiting work is not dropped, which is right. But I could not find three things:
- In what order waiting candidates are handed off, and that each one is reached eventually.
- That the work done in one discovery cycle stays bounded as the set of waiting candidates grows.
- That the number of hand-offs in one cycle is bounded.
The first two are exactly where the shipped Jira driver fails. It takes the 50 most recently updated issues and picks 5 of them at random, so under load most requests are never picked. The third has a concrete failure on GitHub: the existing poll workflow turns each hand-off record into one job of a job matrix (harness-run), and GitHub documents a maximum of 256 jobs per matrix. A batch larger than that can fail as a whole.
Could the protocol state a service order (for example, longest waiting first), a bound on work and on hand-offs per cycle, and that a candidate not handed off in one cycle stays eligible for the next? A conformance case for "more eligible candidates than one cycle can hand off" would pin it down.
|
closing this, this work is irrelevant given it was done before a key piece #9199 was made. |
Summary
Adds the versioned normative discovery/query protocol that ADR 0149 requires before entity-source discovery can be enabled:
docs/normative/entity-source-discovery/v1/README.md(protocol versionentity-source-discovery/v1). It records only decisions already accepted in ADRs 0098, 0133, 0144, 0147, 0148, 0149, and 0151, and reuses the Normalized entity v1 and Authorization Contract v2 contracts rather than redefining them.Related Issue
Part of #8418 (spec #9580).
Changes
docs/normative/entity-source-discovery/v1/README.md:eq,in,has,before,at_or_after,and,or,not, evaluated three-valued, with coverage-awarehas. Admission rules forbid provider-only, ranking, and top-N semantics, and forbid pushing negated actor-originated conditions into provider filters.entity.id.unknownis never treated asnon_match.complete: reaching the last page is not completeness; result caps, indexing delay, and overlap reconciliation are covered; checkpoints advance only across complete ranges.non_match.--jqlpoll override stays under ADR 0063.docs/architecture.md: links the new protocol. The open question now says only that a concrete harness-configuration syntax remains open.docs/contributing/adrs.md. Context, Decision, and Consequences are unchanged.Scope notes for reviewers
docs/normative/is auto-discovered, so no.vitepress/config.tschange is needed.Testing
scan-secrets) passed on the changed files and on the staged index.lychee --offline --include-fragmentspassed on all changed files: 0 errors, including anchors.pre-commit runcould not fetch hook repositories (TLS failure in the sandbox). The applicablepre-commit-hooksv6.0.0 hooks were run directly and passed: end-of-file, trailing-whitespace, private-key, merge-conflict, mixed-line-ending, large-files. Gitleaks was covered by the secret scan. The other hooks do not apply to Markdown.🤖 Generated with Claude Code
Closes #9586
Post-script verification
agent/9586-discovery-query-protocol)4c8159050583a928a261d720f32ce8b53608922e..HEAD)