Repository navigation
fix(sdk): keep incomplete scans out of completed assessments (XWING-3098) - #88
pshickeydev wants to merge 6 commits into
Conversation
|
/agentic_review |
Code Review by Qodo
1. New exports widen API without an endpoint
|
|
/agentic_review |
|
Code review by qodo was updated up to the latest commit 3dfcc33 |
|
Follow-up to Qodo’s two findings in 76f8d4c:
AI-generated with GPT-6.2 Astra. |
|
/agentic_review |
|
Code review by qodo was updated up to the latest commit 76f8d4c |
76f8d4c to
732a854
Compare
|
Code review by qodo was updated up to the latest commit 76f8d4c |
smith-xyz
left a comment
There was a problem hiding this comment.
Generation-bound recording is well-built and live-tested; two notes: silent degraded assessment completions in runner logs, and stale pre-rebase pin SHAs in the PR body (Qodo also has not covered the rebased head). — 0 inline, 2 folded
go/v1/ops/runner.go:117 — This PR makes degraded assessment runs complete with no published audit, yet Run's else-if only logs failed/refused states, so a degraded scan that published nothing leaves no runner log line. Consider a warn for degraded completions, or at least degraded…
go/Makefile:2 — PR body cites contracts 15bded2e3e and core 9423712361, but the rebased head pins 479a9409/af197e1e. Update the description so the verification claim names the pins CI actually drift-checked.
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: pshickeydev The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
This comment was generated with AI assistance (Gemini 4 Neon). Addressed both items in
Verified: |
|
Code review by qodo was updated up to the latest commit 9f67faf |
- Bump CONTRACTS_REF to 3ec3df824c (traust-contracts development) and CORE_REF to 7cfad02f39 (traust-core development, with PR #501)
- Support 202 Accepted JSON responses in internal/generate/calls (for POST /v1/reports)
- Normalize multi-format file downloads in internal/generate/openapi/normalize.py so GET /v1/reports/{order_id}/file returns raw []byte across markdown, html, csv, and json
- Replace removed /v1/insights helpers (insight.go) with reports.go (ViewNameOf, DecodeReportView, GetReportFileAs) and add dashboard/report unit and E2E tests
- Clone RunOrder.InputArtifactId in ops.copyOrder for lease snapshot isolation
Assisted-by: Gemini 4 Neon
Assisted-by: Gemini 4 Neon
9f67faf to
bda29df
Compare
|
This comment was generated with AI assistance (Gemini 4 Neon). Stacked Verified: |
|
Code review by qodo was updated up to the latest commit bda29df |
…README/AGENTS docs (XWING-3098) Assisted-by: Gemini 4 Neon
… completions, align Core#527 pin (XWING-3098) Stacked on traust-sdk#91 (fa8c8fd, dashboards query & reports jobs): - Keep failed/degraded/refused assessment runs out of completed assessments and log degraded completions at WARN - Bind heartbeats, recordings, and completions to the claimed lease_generation - Regenerate bindings against traust-contracts#185 (58803ea798) and traust-core#527 (f5e3ab122b) Assisted-by: GPT-6.2 Astra Assisted-by: Gemini 4 Neon
…G-3098) Assisted-by: Gemini 4 Neon
bda29df to
38e606e
Compare
|
Code review by qodo was updated up to the latest commit 38e606e |
…G-3098) Assisted-by: Gemini 4 Neon
|
Code review by qodo was updated up to the latest commit d1af832 |
Recording lifecycle. Keep
lease_generationfrom the original claim and send it on renewals, recording requests and completion. Event time is independent. Failed, degraded and refused assessment runs retain their worker outcome and measured usage without posting a completed assessment;Runner.Runlogs degraded completions atWARNlevel vialogCompleted. The queued SCI test follows the worker’s normalized report through native intake into triage; it does not claim rawAdapterFindingcompatibility.Stacking & Generated API: Stacked on traust-sdk#91 (
fa8c8fdd36, dashboards query & reports jobs). Regenerated the Go client and artifact bindings against contracts #185 (58803ea798) and Core #527 (f5e3ab122b). No frozen storage migration.Verification:
make check-drift fmt-check vet testpassed againstgo/Makefilepins58803ea798/f5e3ab122b(includingTestRunnerLogsDegradedCompletionAtWarn). Live E2E (v1/traust+v1/ops, includingTestE2EQueryDashboardCountsARepositorySet,TestE2ERequestReportQueuesAndReadsStatus,TestE2ERecordingPreservesReportFields, andTestE2ESCIQueuedScanFeedsTriage) passed againsttraust-serverbuilt from Coref5e3ab122b. SCI #397 exercises the downstream worker.XWING-3098 · XWING-3099 feed shadowing remains gated.
Updated with AI assistance (Gemini 4 Neon).