Repository navigation
Agent proposal: [S5] Discovery: security.txt, CSAF provider metadata, /.well-known/tea record, repo links, reviewer… (#13) - #47
Conversation
… /.well-known/tea record, repo links, reviewer… (#13) Co-authored-by: hsinatfootprintai <149764663+hsinatfootprintai@users.noreply.github.com>
hsinatfootprintai
left a comment
There was a problem hiding this comment.
Review (comment only; this account authored the PR)
Verdict: request changes (comment): CI is red on one web test, and one design deviation needs a human decision. The Go side looks sound.
Tests run locally: go build, go vet, go test ./... on the branch head: all packages ok (cmd, discover, fetch, fingerprint, pipeline, repo, report, sbom, server, service, vuln). CI: go, e2e, proto SUCCESS; web FAILURE.
Acceptance criteria: 3/3 have code and tests on the Go side; the web part is red (below).
Deferred to verification: "Verify on dev" (a real site publishing CSAF provider metadata: security.txt and provider metadata FOUND, one VEX document parsed) is not run; the issue keeps needs-verification.
Docs impact: README +21 lines for the new request fields; looks consistent. The design doc is not updated for the new fetch reason (see below).
Blocking
web/src/lib/api.test.ts:29: "requestScan sends a supplied SBOM URL and the uploaded document as base64" fails in CI withcannot encode field touchstone.v1.ScanRequest.sbom_document to JSON: expected Uint8Array, got object(thrown fromrequestScan,web/src/lib/api.ts:24). Likely the document bytes are not a realUint8Arrayin the test environment (jsdom realm mismatch withFile.arrayBuffer()), but that is a guess: confirm whether a real browser upload also fails, and fix the encoding or the test accordingly.
Should fix / decide
- Design deviation, needs a human call: the agent added a fifth fetch reason
SUPPLIEDfor the reviewer'ssbom_url(design lists four; proto comment, design table and e2e ALLOWED list unchanged). Either accept it and update the design doc, proto comment and e2e allow-list in this PR, or fetch it under an existing reason. Architectural, so left to the owner. - Repo links are extracted but not emitted (no report field); consumer is S6. Fine, but say so in the issue so #14 picks it up.
- Size: about 1.7k added lines; a split (discover vs sbom vs web) would be easier to review.
Nits
- Discovery runs after fingerprinting, sequentially, unlike the design's parallel data flow (the agent says this keeps the
checkedorder stable). A note in the design doc would do.
|
@containarium changes Fix the failing web check only: web/src/lib/api.test.ts 'sends a supplied SBOM URL and the uploaded document as base64' fails with 'cannot encode field touchstone.v1.ScanRequest.sbom_document to JSON: expected Uint8Array, got object' (from requestScan in web/src/lib/api.ts). Find out whether a real browser upload would also fail (File.arrayBuffer() result not a Uint8Array) and fix the code or the test accordingly. Do not change anything else; the SUPPLIED fetch-reason question is for a person to decide. |
|
The agent will revise pull request #47 using that feedback. It starts from the pull request's branch and updates the same pull request when it is done; nothing is merged automatically. Next: reply |
Co-authored-by: hsinatfootprintai <149764663+hsinatfootprintai@users.noreply.github.com>
For #13:
[S5] Discovery: security.txt, CSAF provider metadata, /.well-known/tea record, repo links, reviewer…Closes #13
The line above closes the issue when this pull request is merged. The agent reports 0 of 3 checklist items as met (see Acceptance below). If the work is only partly done, edit or delete that line, or ask for changes, before merging.
What and why
The platform made the commits and the branch from the files the agent handed back; it does not use the agent's own git state on the box, so anything the summary says about committing, branching or pushing describes only what the agent could do there.
The agent's summary, quoted:
The agent's decisions, and where it departed from the issue or the design, quoted:
Changes
web/src/lib/api.test.ts— 83 lines1 file(s) in all.
Acceptance, from the issue
Parses RFC 9116 security.txt (incl. multiple `CSAF:` fields), follows CSAF provider metadata to VEX documents as DECLARED requests, records `/.well-known/tea`…— the agent says:Not touched in this revision; it only fixes the failing web test.Extracts GitHub/GitLab repo links from the page (ignoring badge/share links)— the agent says:Not touched in this revision.Reviewer-supplied SBOM/VEX by URL or upload is accepted on the CLI and in `ScanRequest`, rated High with evidence kind SBOM_SUPPLIED, and the web page (`web/`)…— the agent says:Fixed the failing web upload test; vitest not run (no Node on this box).The items are the issue's own; each status is the agent's report, which the platform has not checked.
Checks
Review this like any other change. The agent ran on the member's own machine from the text of the issue; the platform has not built or tested it. CI results appear on this pull request.
24fe13a3a4d866814ad2c0e57365eac3dd32505d, as reported by the agentnot_runHow this pull request was made
Opened by the platform from a coding agent's run on a member's box (run
65355707). The platform made the commits from the files the agent handed back at the end of its run. Nothing is merged automatically.Revised after review feedback
This pull request was revised by the agent after a reviewer's
@containarium changes(comment6535570752). The description above is the agent's account of this revision; the earlier commits are unchanged.