Files
Open_Ultra_SAST/.kiro/specs/contributor-scan/spec.json
T
Marius Ciepluch 80abac5fd1 spec(contributor-scan): record the thirteen answers of 2026-11-27 (item 5b)
A record of maintainer decisions, in the form of 23c5383. In
.kiro/specs/contributor-scan/spec.json, updated_at moves to 2026-11-27T14:15:26Z and
approval_history gains one entry with the maintainer's thirteen answers of 2026-11-27 to
the ninth session's menu, each with the label chosen and what it means as offered. Until
now they were recorded only in .kiro/handover.md, which is not tracked. The work they
choose is item 5b of the queue, before step 9; this commit is its first piece.

The entry also records what started the work. On 2026-11-27 the maintainer wrote
"proceed". Asked with the question tool what it names (the options: item 5b only, step 9,
step 6), the maintainer answered in free text "1-13". The session's reading, labelled as
such in the entry and open to correction: the work of item 5b in full, a record commit
first and then the menu's questions 1 to 13 in the order of the questions; question 13 is
the order of work, not a word for step 9. The session told the maintainer that reading
and that step 9 would be asked for; the maintainer had not answered by the time of this
record. Nothing is decided here beyond the maintainer's words.

Limits of what is on record:
- The options not chosen are not repeated in the entry; the handover holds them.
- In the handover the section that copies the menu ("Open items of the ninth session")
  restates the chosen label of answers 2, 6, 7, 10, 12 and 13 and some options not chosen,
  against its own sentence that it keeps them as offered. The entry quotes the labels of
  the decisions section, which a reviewer checked against the stored question call: they
  are the labels offered and returned. The handover is not tracked and is not changed
  here.

spec.json parses, with its keys in order and its earlier seven entries equal to HEAD's;
outside updated_at and the new entry the file is byte-identical to HEAD (one line
replaced, five added). The added lines are ASCII and `git diff --check` exits 0. ruff,
mypy, the three gates and compileall pass, and the gates print what they printed before.
No test reads a spec, by a grep of tests/. An independent reviewer approved the change in
one round; its optional rewordings are applied after the approval, as proposed (items 3
and 11 carry the meaning as offered; the pointer names the handover's decisions section;
the answer "1-13" is said to be free text; the entry says the maintainer had not answered
the reading).
2026-11-27 15:31:17 +01:00

107 lines
12 KiB
JSON

{
"feature_name": "contributor-scan",
"created_at": "2026-09-08T20:00:00Z",
"updated_at": "2026-11-27T14:15:26.457978+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."
},
{
"at": "2026-11-27T10:49:05.540047+00:00",
"source": "approved",
"action": "Decisions of 2026-11-26 and 2026-11-27, recorded on 2026-11-27 with the work they chose (item 5a, under task 3.2). The eighth session's menu, answered on 2026-11-26: (1) the wrapper's native path is fixed now and keeps the working directory; (2) a mistyped TARGET is refused by compose only; (3) the ledger in the image becomes an open task on 3.1; (4) the wrapper's output goes to the user cache; (5) the judge calls with the network off indicate bugs and are assessed, with no fix decided; (6) the first-use build keeps its output and its comment is corrected; (7) the three build commands are all fixed; (8) the citations in docs/detection-techniques.md name instructions; (9) the release job's tests are assessed read-only; (10) both dangling images are removed; (11) the fixes come before step 6 of the queue (part B of task 3.1), each in its own commit, test first and with a reviewer; (12) that step starts on the maintainer's word; (13) src/openultrasast/regress is deleted and the line of task 4.4 goes to kube-ax. On 2026-11-27, asked during the work on answer 4: the wrapper's runs land by the mount of ~/.cache/openultrasast/runs at /reports together with the override OPENULTRASAST_RUNS_DIR=/reports; the PowerShell wrapper gets the same change, untested on that machine."
},
{
"at": "2026-11-27T14:15:26.457978+00:00",
"source": "approved",
"action": "Decisions of 2026-11-27, recorded on 2026-11-27 before the work they chose (item 5b, which comes before step 9, the local gate and then the push). The ninth session's menu, thirteen questions answered on 2026-11-27, each with the label chosen and what it means as offered: (1) \"Move the file, fix now\": the replay script leaves benchmarks/unseen for a path the build context keeps, and its four references follow; (2) \"Record and stop asking\": a failed judge call adds a degradation to the manifest, with the count, the report says those questions went unasked, and after one transport failure the remaining questions are not asked; (3) \"Add -P there too\": the background child of ousast pre-push, one line, a test first, a reviewer; (4) \"Guard it\": the shell wrapper without HOME prints a clear message, and a failed mkdir stops it with exit 1; (5) \"Keep both\": the two positions of 6e4a62e stand as committed; (6) \"Document: run from checkout\": one sentence in ops/README.md for ousast pairs and ousast repos outside the checkout, and no code change; (7) \"Image scan prunes too\": a scan in the image prunes its runs directory when the wrapper's override is set; (8) \"Drop the two lines\": README.md says docker compose build only; (9) \"Decide the key now\": the ledger in the image is keyed by a digest of the tree's files, one ledger per digest under the runs directory, and a design note is shown to the maintainer before any code; (10) \"Roadmap note now\": a dated note for task 4.4 of plane-on-kubernetes in the roadmap, its wording shown to the maintainer before anything is written; (11) \"Leave them\": the stale citations in records, which are dated records; (12) \"Assess read-only\": where the step count in a model finding's rationale comes from, and whether a report should show it; nothing is changed; (13) \"Chosen fixes, then step 9\": the fixes above first, in the order of the questions, then the gate and the push. The options as offered are in the handover, which is not tracked, under \"Decisions of the ninth session's menu (2026-11-27)\". On 2026-11-27 the maintainer wrote \"proceed\"; asked what it names, the maintainer answered in free text \"1-13\", none of the three options offered. The session's reading of that answer, open to correction: the work of item 5b in full, a record commit first and then the menu's questions 1 to 13 in the order of the questions; question 13 is read as the order of work and not as a word for step 9, which still waits for a second word. The maintainer had not answered that by the time of this record."
}
],
"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"
}
}