Repository navigation
docs(#6407): adopt deterministic entity context staging - #7080
Conversation
PR Summary by QodoDocument deterministic filtered entity-context staging
AI Description
Diagram
High-Level Assessment
Files changed (4)
|
|
🤖 Finished Review · ✅ Success · Started 1:08 PM UTC · Completed 1:26 PM UTC Commit: Runtime: claude · Model: opus → claude-opus-4-6 · Effort: high · Cost: $5.09 |
Site previewPreview: https://690e4533-site.fullsend-ai.workers.dev Commit: |
Code Review by Qodo
1.
|
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
|
Risk Assessment: moderate (2/5) DetailsDocs-only ADR and schema addition with no source or CI changes, elevated to moderate by high churn and multi-author contention on docs/architecture.md. Previous runRisk Assessment: moderate (2/5) DetailsDocs-only ADR and schema addition with no source or CI changes, elevated to moderate by high churn and multi-author contention on docs/architecture.md. Previous run (2)Risk Assessment: moderate (2/5) DetailsDocs-only ADR and schema addition with no source or CI changes, elevated to moderate by high churn and multi-author contention on docs/architecture.md. Previous run (3)Risk Assessment: moderate (2/5) DetailsDocumentation and schema specification PR with large diff size and high churn on central docs, but zero code execution risk and easily revertible additive changes. Previous run (4)Risk Assessment: moderate (2/5) DetailsRe-review anchoring preserves the score of 2 (moderate): large documentation-only change size (16 files, 1590 lines) is balanced by zero protected paths, no dependency modifications, and an incremental delta confined to specification prose refinements within the established ADR scope. Previous run (5)Risk Assessment: moderate (2/5) DetailsRe-review anchoring preserves the score of 2 (moderate): Tier 1 metadata signals remain unchanged across 16 docs-only files with zero protected paths, and the incremental delta since the prior assessment (3 files) is confined to schema and specification wording refinements within the established design scope. Previous run (6)Risk Assessment: moderate (2/5) DetailsRe-review anchoring preserves the score of 2 (moderate): Tier 1 metadata signals remain unchanged across 16 docs-only files with zero protected paths, and the incremental delta since the prior assessment (3 files, ~9 lines) is confined to wording corrections within the established design scope. Previous run (7)Risk Assessment: moderate (2/5) DetailsRe-review anchoring preserves the score of 2 (moderate) as Tier 1 metadata signals remain unchanged across 16 docs-only files with zero protected paths, and the incremental delta is confined to minor schema refinements within the established design scope. Previous run (8)Risk Assessment: moderate (2/5) DetailsRe-review anchoring preserves the score of 2 (moderate) as Tier 1 metadata signals remain unchanged (16 docs-only files, zero protected paths or dependency touches) and the incremental delta is confined to minor normative schema refinements within the established design scope. Previous run (9)Risk Assessment: moderate (2/5) DetailsRe-review anchoring preserves the score of 2 (moderate) because Tier 1 metadata signals are unchanged from the prior round (16 docs-only files, large blast radius confined to normative schemas, zero protected or dependency touches) and the small ~3.8% line delta represents incremental refinement within the established scope. Previous run (10)Risk Assessment: moderate (2/5) DetailsRe-review anchoring applies: Tier 1 signals are unchanged from the prior assessment (16 files, large blast radius confined to the already-declared normative directory, zero protected/security/CI/dependency touches, non-bot/non-first-time author), and the ~3.5% line delta plus directory rename are incremental refinements within the same declared scope rather than new files, protected paths, or dependency changes, so the composite remains anchored at 2 (moderate). Previous run (11)Risk Assessment: moderate (2/5) DetailsTier 1 signals are unchanged from the prior review (16 files, 1445 lines, large blast radius confined to the already-declared normative/entity-context directory, zero protected/security/CI/dependency touches, non-bot/non-first-time author) and the incremental delta since the last round only fleshes out JSON Schema files already within scope, adding no new files or protected paths; Tier 2/3 confirm normal doc-maintenance churn and an intentionally partial design-only PR, keeping the composite anchored at 2 (moderate), consistent with 18+ prior assessment rounds. Previous run (12)Risk Assessment: moderate (2/5) DetailsTier 1 signals are unchanged from the prior review (same file count, ~same line count, large blast radius from a new normative directory, zero protected/security/CI/dependency touches, non-bot/non-first-time author), and the only delta since the prior review commit is a trivial +4/-2 edit to an already-touched doc with no new files or protected paths introduced, so per re-review anchoring the score is preserved at 2 (moderate). Previous run (13)Risk Assessment: moderate (2/5) DetailsTier 1 signals are unchanged from 17 prior assessment rounds (16 files/1360 lines, large blast radius from a new normative directory, zero protected/security/CI/dependency touches, non-bot/non-first-time author, docs-only test-ratio treated as neutral), so per re-review anchoring the score is preserved at 2 (moderate); independent re-computation (Tier1 Previous run (14)Risk Assessment: moderate (2/5) DetailsRe-review anchoring applied: Tier 1 signals unchanged from the prior assessment (16 files, large blast radius, 0 protected paths, no dependency/CI changes, non-bot/non-first-time author, docs-only test-ratio treated as neutral), and Tier 2/Tier 3 confirm this remains a purely additive, spec-first ADR/normative-doc PR touching pre-existing hotspots only incrementally, with no new signal justifying deviation from the prior moderate (2/5) score. Previous run (15)Risk Assessment: moderate (2/5) DetailsAnchored to the prior score of 2 (moderate): Tier 1 signals remain unchanged (16 files, large blast radius from a new normative spec directory, 0 protected paths, no dependency or CI changes, non-bot/non-first-time author, docs-only test-ratio exception), the current push is an even narrower incremental delta (2 of 16 files, ~27 lines of prose/schema wording fixes) with no new churn or contention signals, and Tier 3 remains an intentional, well-scoped spec-first ADR/normative-doc PR that deliberately does not close its implementation issue. Previous run (16)Risk Assessment: moderate (2/5) DetailsAnchored to the prior score of 2 (moderate): Tier 1 signals are unchanged (16 files, large blast radius, 0 protected paths, no dependency changes, non-bot/non-first-time author, docs-only test-ratio exception), the current diff is a small incremental refinement (3 of 16 files, schema/prose fixes) with no new protected paths, dependencies, or security-sensitive changes, and Tier 3 remains an intentional, well-labeled spec-first ADR/normative-doc PR that deliberately does not close its implementation issue. Previous run (17)Risk Assessment: moderate (2/5) DetailsRe-anchored to the prior score of 2 (moderate): Tier 1 signals are unchanged (16 files, large blast radius, 0 protected paths, no dependency changes, non-bot/non-first-time author, docs-only test-ratio exception), Tier 2 confirms the diff remains additive-only new-file/backlink content with no churn, fix/revert, or coupling concerns, and Tier 3 shows an intentional spec-first ADR/normative-doc PR that deliberately does not close its implementation issue — no new signal justifies moving off the prior composite. Previous run (18)Risk Assessment: moderate (2/5) DetailsRe-anchored to the prior score of 2 (moderate): Tier 1 signals are unchanged from the last assessment (16 files, large-blast-radius/0-protected-path/no-dependency/non-bot/docs-only-exception buckets identical), the ~12-line delta since the prior round is consistent with earlier incremental rounds, Tier 2 shows the diff remains net-new/additive with no churn, fix/revert, or coupling concerns, and Tier 3 shows an intentional spec-first docs/ADR PR with no elevated-risk issue labels and explicit scope discipline (not closing the implementation issue) -- no material new signal justifies moving off the prior composite. Previous run (19)Risk Assessment: moderate (2/5) DetailsRe-anchored to the prior score of 2 (moderate): Tier 1 signals are essentially unchanged from the last assessment (16 files/1239 vs 1234 lines, same large-blast-radius/0-protected-path/no-dependency/non-bot/docs-only-exception buckets), Tier 2 confirms the bulk of the diff lands in net-new files with only trivial additive touches to pre-existing high-churn hotspots unrelated to any fix/revert pattern, and Tier 3 shows an intentional, purely additive spec-first docs/ADR PR with no elevated-risk issue labels -- no new material signal justifies moving off the prior composite. Previous run (20)Risk Assessment: moderate (2/5) DetailsRe-review anchors to the prior score of 2 (moderate): despite growth to 16 files/1234 lines, Tier 1 signals remain in the same buckets (11-25 files, 800-1999 lines, large blast radius, 0 protected paths, no dependency changes, non-bot/non-first-time author, docs-only test-ratio exception), Tier 2 shows only minor touches to the pre-existing high-churn architecture.md hotspot with the bulk of change being net-new files, and Tier 3 partial acceptance-criteria coverage remains an expected artifact of an intentionally spec-first, purely additive docs/ADR PR carrying no elevated-risk labels; no new material signal justifies moving off the prior composite. Previous run (21)Risk Assessment: moderate (2/5) DetailsRe-review anchors to the prior score of 2 (moderate): Tier 1 signals remain in the same buckets despite growth to 16 files/1190 lines (still 11-25 files, 800-1999 lines, large blast radius, 0 protected paths, no dependency changes, non-bot non-first-time author); Tier 2 continues to show docs/architecture.md as the dominant high-churn hotspot with only a minor touch by this PR while most files are net-new; Tier 3 partial acceptance-criteria coverage remains an intentional artifact of a spec-first, purely additive docs/ADR PR with no risk labels. No new material signal justifies moving off the prior composite. Previous run (22)Risk Assessment: moderate (2/5) DetailsRe-review anchors to the prior score of 2 (moderate): Tier 1 signals remain in the same buckets despite growth from 13/802 to 15/1130 files/lines (still 11-25 files, 800-1999 lines, large blast radius, 0 protected paths, no dependency changes, non-bot non-first-time author); Tier 2 still shows docs/architecture.md as the dominant high-churn/fix-revert hotspot with only a minimal touch by this PR and 10/15 files net-new with no prior history; Tier 3 partial acceptance-criteria coverage remains an intentional artifact of a spec-first, purely additive docs/ADR PR with no risk labels. No new material signal justifies moving off the prior composite. Previous run (23)Risk Assessment: moderate (2/5) DetailsRe-review anchors to the prior score of 2 (moderate): Tier 1 signals are unchanged (13 files, 802 lines, 0 protected paths, no dependency changes, non-bot non-first-time author) despite the head SHA changing due to a rebase/amend; Tier 2 confirms architecture.md remains a high-churn hotspot but this PRs touch there is minimal, and 10 of 13 files are net-new with no prior churn; Tier 3 partial acceptance-criteria coverage reflects an intentional spec-first, docs-only design PR rather than a genuine gap. No new material risk signal justifies deviating from the prior composite. Previous run (24)Risk Assessment: moderate (2/5) DetailsTier 1 signals unchanged from prior assessment (composite 1.625), Tier 2 confirms architecture.md remains a high-churn hotspot but this PRs 9-line touch is minimal and 10 of 13 files are net-new with no prior churn, and Tier 3 partial acceptance-criteria coverage is consistent with spec-first incremental delivery; composite (1.625x0.50 + 2.5x0.30 + 2.0x0.20 = 1.96 ~ 2) anchors to the prior moderate score with no articulable reason for change. Previous run (25)Risk Assessment: moderate (2/5) DetailsDocs-only normative spec and ADR addition with Tier 1 signals identical to prior assessment (composite 1.625), architecture.md remains a hotspot but this PRs 9-line touch is minimal, and Tier 3 partial scope coverage is consistent with spec-first incremental delivery; composite (1.625x0.50 + 2.5x0.30 + 2.0x0.20 = 1.96 ~ 2) preserves the prior moderate score with no articulable reason for change. Previous run (26)Risk Assessment: moderate (2/5) DetailsDocs-only normative spec and ADR addition with no source, CI, security, or dependency changes; Tier 1 signals unchanged from prior assessment (composite 1.625), Tier 2 architecture.md remains a high-churn hotspot but this PRs 9-line additive touch is minimal, and Tier 3 scope partially met as expected for spec-first incremental delivery; composite weighted score (1.625x0.50 + 2.5x0.30 + 2.0x0.20 = 1.96 ~ 2) preserves prior moderate score with no articulable reason for change. Previous run (27)Risk Assessment: moderate (2/5) DetailsDocs-only normative spec and ADR addition with no source, CI, security, or dependency changes; composite weighted score (1.625x0.50 + 2.5x0.30 + 1.75x0.20 = 1.96 ~ 2) is consistent with the prior assessment of moderate — architecture.md remains a high-churn hotspot but this PRs 9-line touch is minimal and all changes are fully additive documentation. Previous run (28)Risk Assessment: moderate (2/5) DetailsDocs-only normative spec and ADR addition with no source, CI, or dependency changes; prior score of 2 preserved — architecture.md remains a high-churn hotspot but the PR's 9-line touch is minimal and fully additive. Previous run (29)Risk Assessment: moderate (2/5) DetailsDocs-only normative spec addition with no source or CI changes; prior score of 2 preserved — Tier 2 confirms architecture.md high-churn and multi-author merge-conflict risk flagged in prior assessment, with all other signals unchanged. Previous run (30)Risk Assessment: moderate (2/5) DetailsDocs-only ADR addition with no source or CI changes; score elevated slightly above low by docs/architecture.md being a high-churn, multi-author file that creates merge-conflict risk. |
ReviewEarlier findings
Previous runReviewFindingsMedium
Low
Earlier findings
Next steps:
Previous run (2)ReviewFindingsHigh
Medium
Low
Earlier findings
Next steps:
Previous run (3)ReviewFindingsHigh
Medium
Low
Next steps:
Previous run (4)ReviewFindingsHigh
Low
Next steps:
Previous run (5)ReviewFindingsHigh
Low
Next steps:
Previous run (6)ReviewFindingsHigh
Medium
Low
Next steps:
Previous run (7)ReviewFindingsMedium
Low
Next steps:
Previous run (8)ReviewFindingsMedium
Low
Next steps:
Previous run (9)ReviewFindingsMedium
Low
Next steps:
Previous run (10)ReviewFindingsMedium
Low
Next steps:
|
|
🤖 Review · Commit: |
|
🤖 Review · Commit: |
|
🤖 Finished Review · ✅ Success · Started 11:34 AM UTC · Completed 11:53 AM UTC Commit: Runtime: claude · Model: opus → claude-opus-4-6 · Effort: high · Cost: $5.22 |
|
🤖 Finished Review · ✅ Success · Started 7:42 AM UTC · Completed 8:04 AM UTC Commit: Runtime: claude · Model: opus → claude-opus-4-6 · Effort: high · Cost: $6.04 |
Require filtering metadata for emitted check logs, represent never-started GitHub startup failures without invented timestamps, and document the v1 ASCII structural path boundary. Signed-off-by: Barak Korren <bkorren@redhat.com> Assisted-by: Codex (gpt-5.6-sol)
Make never-started checks schema-visible, fail closed for unusable entity gaps, reject percent-encoded structural paths, and disclose the accepted ADR 0076 annotation. Signed-off-by: Barak Korren <bkorren@redhat.com> Assisted-by: Codex (gpt-5.6-sol)
Represent completed skipped and cancelled checks without native start times as explicit never-started records, and define a source-derived completion fallback when terminal timestamps are absent. Signed-off-by: Barak Korren <bkorren@redhat.com> Assisted-by: Codex (gpt-5.6-sol)
Document the local v1 schema bundle, sibling reference resolution, and the no-network meaning of schema identifiers for consumers. Signed-off-by: Barak Korren <bkorren@redhat.com> Assisted-by: Codex (gpt-5.6-sol)
Signed-off-by: Barak Korren <bkorren@redhat.com> Assisted-by: Codex (gpt-5.6-sol)
Signed-off-by: Barak Korren <bkorren@redhat.com> Assisted-by: Codex (gpt-5.6-sol)
Signed-off-by: Barak Korren <bkorren@redhat.com> Assisted-by: Codex (gpt-5.6-sol)
Use entity-context-snapshot for the normative v1 bundle and reserved sandbox mount while retaining FULLSEND_CONTEXT_DIR for consumer stability. Signed-off-by: Barak Korren <bkorren@redhat.com> Assisted-by: Codex (gpt-5.6-sol)
Define one GitHub node-ID alphabet across the entity-context-snapshot contract and enforce it for indexed GitHub IDs while documenting adapter validation for child documents. Signed-off-by: Barak Korren <bkorren@redhat.com> Assisted-by: Codex (gpt-5.6-sol)
Make manifest and filename ordering rules explicit and finish the entity-context-snapshot terminology migration. Signed-off-by: Barak Korren <bkorren@redhat.com> Assisted-by: Codex (gpt-5.6-sol)
Constrain collection sources by entity kind, bind checks to the collected change-proposal HEAD, and require comment admission through the current authorization contract with baseline content filtering. Keep bot roles as audit data without treating Fullsend installation permissions as comment trust, and mark every snapshot-derived block untrusted for runtime consumption. Signed-off-by: Barak Korren <bkorren@redhat.com> Assisted-by: Codex (gpt-5.6-sol)
Use role: bot for bot actors in the snapshot contract instead of attempting to map them to a human repository permission. Mark the value as a non-authority kind marker and reserve richer bot permission mapping for a future ADR. Signed-off-by: Barak Korren <bkorren@redhat.com> Assisted-by: Codex (gpt-5.6-sol)
Document check head_sha as a permitted repository revision anchor in the ADR and snapshot tree, and make the normalized-event cross-reference explicit that the snapshot bot marker is not an event permission. Signed-off-by: Barak Korren <bkorren@redhat.com> Assisted-by: Codex (gpt-5.6-sol)
Retain role: bot as an explicit actor-kind marker while keeping role_verified false and actor_role limited to repository permissions. This preserves fail-closed consumers until a future ADR defines verifiable bot permission mapping. Signed-off-by: Barak Korren <bkorren@redhat.com> Assisted-by: Codex (gpt-5.6-sol)
Record that v1 intentionally applies the run authorization policy to historical comment admission, omitting comments from unauthorized actors while retaining the required entity body. Preserve the narrow trust boundary and leave broader comment or bot trust to future ADRs. Signed-off-by: Barak Korren <bkorren@redhat.com> Assisted-by: Codex (gpt-5.6-sol)
Use ADR 0054 role ordering and agent thresholds for historical comment admission without importing transition-specific event exceptions. Document that eligible invokers are trusted command sources for v1 while unauthorized comments remain omitted until a future trust-boundary ADR. Signed-off-by: Barak Korren <bkorren@redhat.com> Assisted-by: Codex (gpt-5.6-sol)
Count formal reviews omitted by the v1 role-based admission policy in the reviews authorization_failed gap, keeping comment and review scope outcomes consistent. Signed-off-by: Barak Korren <bkorren@redhat.com> Assisted-by: Codex (gpt-5.6-sol)
Renumber the entity-context-snapshot ADR to 0141 after syncing with upstream main. Reference ADR 0133, ADR 0054, and ADR 0098 for actor attribution, role thresholds, discovery provenance, and filtering instead of duplicating their security contracts. Update the normative specification and living-document links while preserving upstream ADR 0107 bot-identity references. Signed-off-by: Barak Korren <bkorren@redhat.com> Assisted-by: Codex (gpt-5.6-sol)
|
🤖 Finished Review · ✅ Success · Started 6:01 AM UTC · Completed 6:14 AM UTC Commit: Runtime: pi · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $3.53 |
Align the entity-context-snapshot v1 boundary with ADR 0107 and ADR 0133. Registered bots with an exact provider-backed actor.bot_role may contribute comments and reviews; unknown or unresolved bots remain omitted and fail closed. Signed-off-by: Barak Korren <bkorren@redhat.com> Assisted-by: Codex (gpt-5.6-sol)
|
🤖 Finished Review · ✅ Success · Started 6:23 AM UTC · Completed 6:34 AM UTC Commit: Runtime: pi · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $2.41 |
Require entity bodies to pass actor attribution and authorization before staging, include the effective human admission threshold in collection profiles, scan structural paths, and define no-follow verification and complete determinism inputs. Signed-off-by: Barak Korren <bkorren@redhat.com> Assisted-by: Codex (gpt-5.6-sol)
|
🤖 Finished Review · ✅ Success · Started 6:50 AM UTC · Completed 7:01 AM UTC Commit: Runtime: pi · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $2.60 |
Require an immutable digest-verified upload snapshot or equivalent writer exclusion so in-place file changes cannot bypass the retained manifest. Align ADR 0141 determinism with the complete normalized acquisition inputs defined by the v1 specification. Signed-off-by: Barak Korren <bkorren@redhat.com> Assisted-by: Codex (gpt-5.6-sol)
|
🤖 Finished Review · ✅ Success · Started 8:04 AM UTC · Completed 8:15 AM UTC Commit: Runtime: pi · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $1.76 |
Summary
cat records/*.mdassembly with a stable prefix for prompt cachingFULLSEND_CONTEXT_DIR, outside the repository clone and retained run artifactsRationale
Issue #6407 identifies repeated ad-hoc forge calls as non-deterministic and token-intensive. This ADR records the architecture for collecting the handled issue or change proposal once, filtering untrusted content before agent consumption, and sharing the resulting snapshot across scripts and runtimes.
The record/state split means resolution changes do not rewrite unchanged comments. Chronological record names keep prior turns byte-identical when ordinary new replies append, allowing runtimes to reuse provider prompt caches without storing duplicate concatenated views. Current mutable state is supplied afterward.
This is the design decision for #6407; implementation and token-cost measurement remain follow-up work, so this PR does not close the issue.
Verification
make lintcheck jsonhook for all v1 JSON SchemasRelates to #6407.