Files
Open_Ultra_SAST/.kiro/specs/contributor-scan/spec.json
T

97 lines
8.3 KiB
JSON
Raw Normal View History

{
"feature_name": "contributor-scan",
"created_at": "2026-09-08T20:00:00Z",
"updated_at": "2026-11-24T16:53:30.184851+00:00",
"language": "en",
"phase": "implementation",
"approvals": {
"requirements": {
"generated": true,
"approved": true
},
"design": {
"generated": true,
"approved": true
},
"tasks": {
"generated": true,
"approved": true
}
},
"ready_for_implementation": true,
"depends_on": [
"model-grounded-detection"
],
"approval_note": "2026-09-08 brief drafted after the maintainer asked what the spec state was and whether anything was forgotten. It was: model-grounded-detection is 16/16 complete and its arbiter is measured at 86.7% pair-correct / 6.7% leak, but the model layer has ZERO production callers -- ousast scan does not use it, so the feature is complete and unshipped at once. That is a scope gap in the predecessor (it had no task saying 'make this reachable', and its byte-identical-gates requirement is satisfied precisely because nothing is wired). This spec covers scan integration, whole-repo scanning against known vulnerable repositories, the deferred memory-family decision, and records the pipeline, ops and corpus work delivered outside any spec. Not approved; requirements not generated. ; 2026-09-08 requirements generated at the maintainer's direction ('we follow the spec and build integration afterwards'). ; 2026-09-09 requirements approved and design generated ('let us continue with these'): the model layer joins as one stage inside MAP beside the obligations checker, one CPG per scan, regions from entry points, a total budget rather than a per-region cap. Phase 2 (the first run on a pinned real repository) can invalidate the rest and comes before shipping. ; 2026-09-09 tasks approved by the maintainer ('approve the tasks and start group 1'); implementing group 1 (regions, driver, MAP stage). ; 2026-09-09 group 2 complete except 2.8/2.9/2.13-2.16, and it reshaped the phase as intended. Nine engine defects found by measurement and none by review, gates byte-identical through every fix -- which says the pair corpus could not have caught any of them. Three requirements amendments are DRAFTED AND UNAPPROVED at the end of requirements.md: (A) Req 5 should state what a report may repeat, because libpng emitted 198 findings with nothing in the spec forbidding it, and the model layer's own suspicion band is still 38 of vampi's 60; (B) a family that cannot decide a class must say so, because c/memory scored zero true positives on 89k lines of C for a structural reason and a silent scan reads as a clean bill of health; (C) Req 4.1 is satisfied by a checkout that cannot demonstrate detection at all, so it should require one that can. Separately, two task groups appended to tasks.md without passing requirements or design have been LIFTED OUT to the new finding-feedback-loop spec, where they belong. ; 2026-09-09 the three group-2 amendments APPROVED by the maintainer and folded into the numbered requirements: Req 5.5 (a report proportionate to the evidence behind a finding), Req 5.6 (a family that cannot decide a class states the limit, and no scan presents absence of findings as evidence of absence), Req 4.6 (at least one checkout carrying a vulnerability a family can decide in principle). Req 5.5 is half implemented by task 2.11 -- pattern matches -- and task 2.17 was added for the model layer's own suspicion band, which is 38 of vampi's 60 findings and is an enumerated candidate the graph could not decide with a judge's opinion attached rather than a reasoned claim.",
"pending_amendments": [
{
"date": "2026-09-12",
"document": "design.md",
"topic": "Pre-push integration: shared deadline, reusable graph lease, exact ranker scope and provenance; preserve vendor exclusion.",
"approved": false,
"ready_for_implementation": false
},
{
"date": "2026-09-13",
"document": "frontend-retention-prerequisite.md",
"topic": "Retain declared first-party JavaScript tests through ASTGen and jssrc2cpg; prerequisite for pre-push-safety-net 3.4.",
"approved": true,
"ready_for_implementation": true,
"approval_source": "approved",
"task": "2.18"
}
],
"approval_history": [
{
"at": "2026-09-13T09:17:01.788332+00:00",
"source": "approved",
"action": "Approved frontend-retention prerequisite, task 2.18, including reproducible dependency adaptation; resume pre-push-safety-net 3.4 after verification."
},
{
"at": "2026-09-14T05:58:44.810694+00:00",
"source": "ok",
"action": "Accepted the proposed shared engine/census/context follow-up after group 8 NO-GO. Task 2.19 covers the confirmed missing Gruntfile and honest census-completeness repair; runtime and independent qualification gates remain unchanged."
},
{
"at": "2026-11-24T10:05:00+00:00",
"source": "approved",
"action": "Closed the memory-family decision (task 4.1): \"C memory-safety beyond string-function misuse is out of scope. Record that, and say so per corpus slice.\" Task 5.3 and task 2.13 are withdrawn; task 2.15 closes on its recorded-decision branch. Kept evidence_level beside rung (task 4.2): \"Keep both, record why. No output change for JSON, SARIF or MCP consumers. Record the reason in the spec and docs, and revisit when detection-core revises its consumer contract.\""
},
{
"at": "2026-11-24T10:05:00+00:00",
"source": "approved",
"action": "Set the course for the implementation run: task 7.1 closes as superseded (its instrument was deleted on 2026-10-13); 5.12 covers facts and generic features only and is to record why it drops the LLM-ranker clause; 7.2 lands first and 5.6 closes on its measurement while 5.1 is deferred; the subject for 5.2 is proposed by the agent and chosen by the maintainer before anything is pinned or scanned; a native scan writes to the user cache directory by default (task 3.1); both stages run autonomously; a push only after the whole test suite and every CI check pass."
},
{
"at": "2026-11-24T13:18:45.436115+00:00",
"source": "approved",
"action": "Later decisions of the same day, recorded at the time of writing. Task 5.2 pins lfnovo/open-notebook at 89eac04c (v1.8.3, MIT), chosen by the maintainer from a shortlist, with CVE-2026-33589 and CVE-2026-33588 as its two labelled path-traversal findings. The scan's false-positive ledger stays in .openultrasast/calibration/, shared with other calibration stores, but is written only when a scan learns something, and a read-only tree records that it could not be written (task 3.1). The docker build cache may be pruned and the engine image rebuilt; benchmarks/valid and benchmarks/unseen are kept out of the image (task 3.2)."
},
{
"at": "2026-11-24T16:53:30.184851+00:00",
"source": "approved",
"action": "Decisions taken after the maintainer asked to stop, recorded at the time of writing. Run retention for task 3.1: after each scan, with no OPENULTRASAST_RUNS_DIR set, runs in the default location older than 30 days are removed; the scan's own run and anything not named like a run are never touched; OPENULTRASAST_RUNS_RETENTION_DAYS sets the days and 0 disables it; a failed prune never fails the scan. A push follows a local gate, the whole test suite and every CI command passing locally, while GitHub CI stays red for reasons in other specs. The next session also repairs GitHub CI, splits _run_scan, guards the cache when a scan meets a directory that contains it, and moves the benchmark runs to the cache. One documentation commit brings up to date the kind-cluster wording, the roadmap Position table, the ir-consolidation brief and the old run location in another spec. Tasks 5.14, 7.3, 7.7, 7.8 and 5.9 close on the fresh pmpro measurement. The libpng re-measurement and the release workflow fix belong to task 3.2 part 2."
}
],
"implementation_verification": {
"2.18": {
"status": "VERIFIED",
"review": "APPROVED",
"record": "frontend-retention-verification.md"
},
"2.19": {
"status": "VERIFIED",
"review": "APPROVED",
"independent": false,
"record": "census-repair-verification.md"
}
},
"release": {
"tag": "v1.2.0-alpha.1",
"package_version": "1.2.0a1",
"channel": "alpha",
"rollout_decision": "NO-GO",
"status_record": "census-repair-verification.md"
}
}