You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tooling.apache.org by ak...@apache.org on 2026/05/06 02:56:59 UTC

(tooling-agents) branch main updated (24a932c -> 358a9a0)

This is an automated email from the ASF dual-hosted git repository.

andrewmusselman pushed a change to branch main
in repository https://gitbox.apache.org/repos/asf/tooling-agents.git


    from 24a932c  Move consolidate error wrapper inside run, surface failures in orchestrator
     new 8e8eb2b  Stop pushing per-section reports to GitHub, use CouchDB instead
     new 358a9a0  Wiping mahout reports to test new flow

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 ASVS/agents/asvs_consolidate.py             | 143 +++----
 ASVS/agents/asvs_orchestrate.py             | 230 +++++-----
 ASVS/reports/mahout/245aad3/all/1.2.1.md    |  76 ----
 ASVS/reports/mahout/245aad3/all/1.2.2.md    |  69 ---
 ASVS/reports/mahout/245aad3/all/1.2.3.md    |  76 ----
 ASVS/reports/mahout/245aad3/all/1.2.4.md    |  69 ---
 ASVS/reports/mahout/245aad3/all/1.2.5.md    |  75 ----
 ASVS/reports/mahout/245aad3/all/1.3.1.md    |  69 ---
 ASVS/reports/mahout/245aad3/all/1.3.2.md    |  28 --
 ASVS/reports/mahout/245aad3/all/1.5.1.md    |  28 --
 ASVS/reports/mahout/245aad3/all/10.4.1.md   |  28 --
 ASVS/reports/mahout/245aad3/all/10.4.2.md   |  28 --
 ASVS/reports/mahout/245aad3/all/10.4.3.md   |  28 --
 ASVS/reports/mahout/245aad3/all/10.4.4.md   |  28 --
 ASVS/reports/mahout/245aad3/all/10.4.5.md   |  28 --
 ASVS/reports/mahout/245aad3/all/11.3.1.md   |  28 --
 ASVS/reports/mahout/245aad3/all/11.3.2.md   |  28 --
 ASVS/reports/mahout/245aad3/all/11.4.1.md   |  28 --
 ASVS/reports/mahout/245aad3/all/12.1.1.md   |  28 --
 ASVS/reports/mahout/245aad3/all/12.2.1.md   |  28 --
 ASVS/reports/mahout/245aad3/all/12.2.2.md   | 114 -----
 ASVS/reports/mahout/245aad3/all/13.4.1.md   | 127 ------
 ASVS/reports/mahout/245aad3/all/14.2.1.md   | 132 ------
 ASVS/reports/mahout/245aad3/all/14.3.1.md   |  89 ----
 ASVS/reports/mahout/245aad3/all/15.1.1.md   | 140 ------
 ASVS/reports/mahout/245aad3/all/15.2.1.md   | 140 ------
 ASVS/reports/mahout/245aad3/all/15.3.1.md   | 135 ------
 ASVS/reports/mahout/245aad3/all/2.1.1.md    | 111 -----
 ASVS/reports/mahout/245aad3/all/2.2.1.md    | 229 ----------
 ASVS/reports/mahout/245aad3/all/2.2.2.md    |  83 ----
 ASVS/reports/mahout/245aad3/all/2.3.1.md    | 152 -------
 ASVS/reports/mahout/245aad3/all/3.2.1.md    |  85 ----
 ASVS/reports/mahout/245aad3/all/3.2.2.md    |  28 --
 ASVS/reports/mahout/245aad3/all/3.3.1.md    |  28 --
 ASVS/reports/mahout/245aad3/all/3.4.1.md    |  28 --
 ASVS/reports/mahout/245aad3/all/3.4.2.md    |  28 --
 ASVS/reports/mahout/245aad3/all/3.5.1.md    |  28 --
 ASVS/reports/mahout/245aad3/all/3.5.2.md    |  28 --
 ASVS/reports/mahout/245aad3/all/3.5.3.md    |  28 --
 ASVS/reports/mahout/245aad3/all/4.1.1.md    |  28 --
 ASVS/reports/mahout/245aad3/all/4.4.1.md    |  28 --
 ASVS/reports/mahout/245aad3/all/5.2.1.md    |  28 --
 ASVS/reports/mahout/245aad3/all/5.2.2.md    |  28 --
 ASVS/reports/mahout/245aad3/all/5.3.1.md    |  28 --
 ASVS/reports/mahout/245aad3/all/5.3.2.md    | 195 ---------
 ASVS/reports/mahout/245aad3/all/6.1.1.md    |  81 ----
 ASVS/reports/mahout/245aad3/all/6.2.1.md    |  81 ----
 ASVS/reports/mahout/245aad3/all/6.2.2.md    |  81 ----
 ASVS/reports/mahout/245aad3/all/6.2.3.md    |  81 ----
 ASVS/reports/mahout/245aad3/all/6.2.4.md    |  81 ----
 ASVS/reports/mahout/245aad3/all/6.2.5.md    |  28 --
 ASVS/reports/mahout/245aad3/all/6.2.6.md    |  28 --
 ASVS/reports/mahout/245aad3/all/6.2.7.md    |  28 --
 ASVS/reports/mahout/245aad3/all/6.2.8.md    |  28 --
 ASVS/reports/mahout/245aad3/all/6.3.1.md    |  28 --
 ASVS/reports/mahout/245aad3/all/6.3.2.md    |  28 --
 ASVS/reports/mahout/245aad3/all/6.4.1.md    |  28 --
 ASVS/reports/mahout/245aad3/all/6.4.2.md    |  28 --
 ASVS/reports/mahout/245aad3/all/7.2.1.md    |  28 --
 ASVS/reports/mahout/245aad3/all/7.2.2.md    |  28 --
 ASVS/reports/mahout/245aad3/all/7.2.3.md    |  28 --
 ASVS/reports/mahout/245aad3/all/7.2.4.md    |  28 --
 ASVS/reports/mahout/245aad3/all/7.4.1.md    |  28 --
 ASVS/reports/mahout/245aad3/all/7.4.2.md    |  28 --
 ASVS/reports/mahout/245aad3/all/8.1.1.md    |  28 --
 ASVS/reports/mahout/245aad3/all/8.2.1.md    |  28 --
 ASVS/reports/mahout/245aad3/all/8.2.2.md    |  28 --
 ASVS/reports/mahout/245aad3/all/8.3.1.md    |  28 --
 ASVS/reports/mahout/245aad3/all/9.1.1.md    |  28 --
 ASVS/reports/mahout/245aad3/all/9.1.2.md    |  28 --
 ASVS/reports/mahout/245aad3/all/9.1.3.md    |  28 --
 ASVS/reports/mahout/245aad3/all/9.2.1.md    |  28 --
 ASVS/reports/mahout/245aad3/consolidated.md | 596 --------------------------
 ASVS/reports/mahout/245aad3/issues.md       | 635 ----------------------------
 74 files changed, 157 insertions(+), 5306 deletions(-)
 delete mode 100644 ASVS/reports/mahout/245aad3/all/1.2.1.md
 delete mode 100644 ASVS/reports/mahout/245aad3/all/1.2.2.md
 delete mode 100644 ASVS/reports/mahout/245aad3/all/1.2.3.md
 delete mode 100644 ASVS/reports/mahout/245aad3/all/1.2.4.md
 delete mode 100644 ASVS/reports/mahout/245aad3/all/1.2.5.md
 delete mode 100644 ASVS/reports/mahout/245aad3/all/1.3.1.md
 delete mode 100644 ASVS/reports/mahout/245aad3/all/1.3.2.md
 delete mode 100644 ASVS/reports/mahout/245aad3/all/1.5.1.md
 delete mode 100644 ASVS/reports/mahout/245aad3/all/10.4.1.md
 delete mode 100644 ASVS/reports/mahout/245aad3/all/10.4.2.md
 delete mode 100644 ASVS/reports/mahout/245aad3/all/10.4.3.md
 delete mode 100644 ASVS/reports/mahout/245aad3/all/10.4.4.md
 delete mode 100644 ASVS/reports/mahout/245aad3/all/10.4.5.md
 delete mode 100644 ASVS/reports/mahout/245aad3/all/11.3.1.md
 delete mode 100644 ASVS/reports/mahout/245aad3/all/11.3.2.md
 delete mode 100644 ASVS/reports/mahout/245aad3/all/11.4.1.md
 delete mode 100644 ASVS/reports/mahout/245aad3/all/12.1.1.md
 delete mode 100644 ASVS/reports/mahout/245aad3/all/12.2.1.md
 delete mode 100644 ASVS/reports/mahout/245aad3/all/12.2.2.md
 delete mode 100644 ASVS/reports/mahout/245aad3/all/13.4.1.md
 delete mode 100644 ASVS/reports/mahout/245aad3/all/14.2.1.md
 delete mode 100644 ASVS/reports/mahout/245aad3/all/14.3.1.md
 delete mode 100644 ASVS/reports/mahout/245aad3/all/15.1.1.md
 delete mode 100644 ASVS/reports/mahout/245aad3/all/15.2.1.md
 delete mode 100644 ASVS/reports/mahout/245aad3/all/15.3.1.md
 delete mode 100644 ASVS/reports/mahout/245aad3/all/2.1.1.md
 delete mode 100644 ASVS/reports/mahout/245aad3/all/2.2.1.md
 delete mode 100644 ASVS/reports/mahout/245aad3/all/2.2.2.md
 delete mode 100644 ASVS/reports/mahout/245aad3/all/2.3.1.md
 delete mode 100644 ASVS/reports/mahout/245aad3/all/3.2.1.md
 delete mode 100644 ASVS/reports/mahout/245aad3/all/3.2.2.md
 delete mode 100644 ASVS/reports/mahout/245aad3/all/3.3.1.md
 delete mode 100644 ASVS/reports/mahout/245aad3/all/3.4.1.md
 delete mode 100644 ASVS/reports/mahout/245aad3/all/3.4.2.md
 delete mode 100644 ASVS/reports/mahout/245aad3/all/3.5.1.md
 delete mode 100644 ASVS/reports/mahout/245aad3/all/3.5.2.md
 delete mode 100644 ASVS/reports/mahout/245aad3/all/3.5.3.md
 delete mode 100644 ASVS/reports/mahout/245aad3/all/4.1.1.md
 delete mode 100644 ASVS/reports/mahout/245aad3/all/4.4.1.md
 delete mode 100644 ASVS/reports/mahout/245aad3/all/5.2.1.md
 delete mode 100644 ASVS/reports/mahout/245aad3/all/5.2.2.md
 delete mode 100644 ASVS/reports/mahout/245aad3/all/5.3.1.md
 delete mode 100644 ASVS/reports/mahout/245aad3/all/5.3.2.md
 delete mode 100644 ASVS/reports/mahout/245aad3/all/6.1.1.md
 delete mode 100644 ASVS/reports/mahout/245aad3/all/6.2.1.md
 delete mode 100644 ASVS/reports/mahout/245aad3/all/6.2.2.md
 delete mode 100644 ASVS/reports/mahout/245aad3/all/6.2.3.md
 delete mode 100644 ASVS/reports/mahout/245aad3/all/6.2.4.md
 delete mode 100644 ASVS/reports/mahout/245aad3/all/6.2.5.md
 delete mode 100644 ASVS/reports/mahout/245aad3/all/6.2.6.md
 delete mode 100644 ASVS/reports/mahout/245aad3/all/6.2.7.md
 delete mode 100644 ASVS/reports/mahout/245aad3/all/6.2.8.md
 delete mode 100644 ASVS/reports/mahout/245aad3/all/6.3.1.md
 delete mode 100644 ASVS/reports/mahout/245aad3/all/6.3.2.md
 delete mode 100644 ASVS/reports/mahout/245aad3/all/6.4.1.md
 delete mode 100644 ASVS/reports/mahout/245aad3/all/6.4.2.md
 delete mode 100644 ASVS/reports/mahout/245aad3/all/7.2.1.md
 delete mode 100644 ASVS/reports/mahout/245aad3/all/7.2.2.md
 delete mode 100644 ASVS/reports/mahout/245aad3/all/7.2.3.md
 delete mode 100644 ASVS/reports/mahout/245aad3/all/7.2.4.md
 delete mode 100644 ASVS/reports/mahout/245aad3/all/7.4.1.md
 delete mode 100644 ASVS/reports/mahout/245aad3/all/7.4.2.md
 delete mode 100644 ASVS/reports/mahout/245aad3/all/8.1.1.md
 delete mode 100644 ASVS/reports/mahout/245aad3/all/8.2.1.md
 delete mode 100644 ASVS/reports/mahout/245aad3/all/8.2.2.md
 delete mode 100644 ASVS/reports/mahout/245aad3/all/8.3.1.md
 delete mode 100644 ASVS/reports/mahout/245aad3/all/9.1.1.md
 delete mode 100644 ASVS/reports/mahout/245aad3/all/9.1.2.md
 delete mode 100644 ASVS/reports/mahout/245aad3/all/9.1.3.md
 delete mode 100644 ASVS/reports/mahout/245aad3/all/9.2.1.md
 delete mode 100644 ASVS/reports/mahout/245aad3/consolidated.md
 delete mode 100644 ASVS/reports/mahout/245aad3/issues.md


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@tooling.apache.org
For additional commands, e-mail: commits-help@tooling.apache.org


(tooling-agents) 01/02: Stop pushing per-section reports to GitHub, use CouchDB instead

Posted by ak...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

andrewmusselman pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tooling-agents.git

commit 8e8eb2bc135aac79886145e352c3c660ccaf63dd
Author: Andrew Musselman <an...@gmail.com>
AuthorDate: Tue May 5 19:53:22 2026 -0700

    Stop pushing per-section reports to GitHub, use CouchDB instead
---
 ASVS/agents/asvs_consolidate.py | 143 +++++++++++--------------
 ASVS/agents/asvs_orchestrate.py | 230 +++++++++++++++++-----------------------
 2 files changed, 157 insertions(+), 216 deletions(-)

diff --git a/ASVS/agents/asvs_consolidate.py b/ASVS/agents/asvs_consolidate.py
index ce398b9..f52ab32 100644
--- a/ASVS/agents/asvs_consolidate.py
+++ b/ASVS/agents/asvs_consolidate.py
@@ -238,6 +238,7 @@ async def run(input_dict, tools):
         output_directory = ""
         sections_raw = ""
         source_id = ""
+        reports_namespace_arg = ""
         for line in lines:
             line = line.strip()
             if not line:
@@ -258,6 +259,8 @@ async def run(input_dict, tools):
                     sections_raw = value
                 elif key in ("source", "source_id", "source_repo"):
                     source_id = value
+                elif key in ("reports_namespace", "reportsnamespace", "report_namespace"):
+                    reports_namespace_arg = value
 
         directories = [d.strip().strip("/") for d in directories_raw.split(",") if d.strip()]
         # Optional: list of section IDs (e.g. "1.2.1, 1.2.2, 2.1.1") that
@@ -334,97 +337,73 @@ async def run(input_dict, tools):
         default_branch = repo_data.get("default_branch", "main")
 
         # ============================================================
-        # PHASE 1: Read All Reports from All Directories
+        # PHASE 1: Read All Reports from CouchDB
         # ============================================================
+        # Per-section reports were previously fetched from GitHub via
+        # repos/{owner}/{repo}/contents/{dir}/{name}.md, requiring 345+
+        # parallel HTTP calls under L3 load. Now they live in CouchDB
+        # under reports_namespace_arg, keyed as "{pass_name}/{N.N.N.md}".
+        # CouchDB reads are local, fast, and rate-limit-free.
         print("\n=== PHASE 1: Reading all reports ===")
 
-        reports = {}
-        report_dirs = {}  # report_key -> directory it came from
+        if not reports_namespace_arg:
+            return {
+                "outputText": "Error: reports_namespace not provided in input. "
+                              "Caller (orchestrator) must pass `reports_namespace: ...` "
+                              "so consolidate knows where to read per-section reports.",
+            }
 
-        # Bounded concurrency — GitHub REST API has burst limits that 345
-        # parallel reads will hit hard. Even with auth, secondary rate limits
-        # kick in around 80-100 concurrent. 10 is comfortably below that and
-        # still ~30x faster than serial.
-        phase1_fetch_sem = asyncio.Semaphore(10)
+        reports = {}
+        report_dirs = {}  # report_key -> pass-name it came from
 
-        async def fetch_one_report(directory, item):
-            try:
-                async with phase1_fetch_sem:
-                    file_resp = await http_client.get(
-                        f"{GITHUB_API}/repos/{owner}/{repo}/contents/{directory}/{item['name']}",
-                        headers=headers,
-                        params={"ref": default_branch},
-                    )
-                if file_resp.status_code == 200:
-                    file_data = file_resp.json()
-                    content = base64.b64decode(file_data["content"]).decode("utf-8", errors="replace")
-                    return item['name'], content, directory
-                # Non-200 — log and continue
-                print(f"    WARNING: {item['name']} returned {file_resp.status_code}", flush=True)
-                return item['name'], None, directory
-            except Exception as e:
-                # Network errors, JSON decode errors, etc. — log and continue.
-                # We do NOT want one bad fetch out of N to kill all of Phase 1.
-                print(f"    WARNING: {item['name']} fetch failed: {type(e).__name__}: {e}", flush=True)
-                return item['name'], None, directory
+        try:
+            ns = data_store.use_namespace(reports_namespace_arg)
+            all_keys = ns.list_keys() or []
+            print(f"  Namespace {reports_namespace_arg}: {len(all_keys)} keys total", flush=True)
+        except Exception as e:
+            return {
+                "outputText": f"Error: failed to read reports namespace "
+                              f"{reports_namespace_arg}: {type(e).__name__}: {e}"
+            }
 
         for directory in directories:
-            print(f"\n  Reading reports from {directory}...")
-            contents_resp = await http_client.get(
-                f"{GITHUB_API}/repos/{owner}/{repo}/contents/{directory}",
-                headers=headers,
-                params={"ref": default_branch},
-            )
-            if contents_resp.status_code != 200:
-                print(f"  WARNING: Failed to list {directory}: {contents_resp.status_code}")
-                continue
-
-            dir_contents = contents_resp.json()
-            report_files = []
-            stale_count = 0
-            for item in dir_contents:
-                if item["type"] == "file" and item["name"].endswith(".md"):
-                    # Filter to per-section reports only (matches NN.NN.NN.md form).
-                    # This excludes consolidated.md, issues.md, AND any orphan
-                    # files left in the directory (e.g. README.md, notes.md, or
-                    # files from an old layout). Per-section files have the
-                    # form "X.Y.Z.md" where X, Y, Z are integers.
-                    name = item["name"]
-                    if not re.match(r'^\d+(?:\.\d+){2,}\.md$', name):
+            # Each `directory` is now a pass-name prefix within the
+            # reports namespace (e.g. "all" or "l1"), not a GitHub path.
+            print(f"\n  Reading reports for pass '{directory}'...")
+            pass_keys = [k for k in all_keys if k.startswith(directory + "/")]
+            # Filter to per-section reports only (matches NN.NN.NN.md form).
+            # Excludes any non-conforming filename that may have been written
+            # under the same prefix.
+            report_keys = []
+            for k in pass_keys:
+                fname = k.rsplit("/", 1)[-1]
+                if not re.match(r'^\d+(?:\.\d+){2,}\.md$', fname):
+                    continue
+                # If a section filter was provided, only keep files whose
+                # section ID is in the audited set.
+                if section_filter:
+                    sec_id = fname[:-3]  # strip ".md"
+                    if sec_id not in section_filter:
                         continue
-                    # If a section filter was provided, only keep files whose
-                    # section ID is in the filter. This skips stale section
-                    # reports from prior runs that happen to share the
-                    # directory. Without this, ~5 prior runs of the same repo
-                    # leave 5x the expected report count, blowing up Phase 2's
-                    # LLM cost and producing duplicate findings during merge.
-                    if section_filter:
-                        section_id = name[:-3]  # strip ".md"
-                        if section_id not in section_filter:
-                            stale_count += 1
-                            continue
-                    report_files.append(item)
-
-            if stale_count:
-                print(f"  Skipped {stale_count} stale report(s) not in current run")
-            print(f"  Found {len(report_files)} report files")
-
-            # OPTIMIZATION: parallel file reads (was sequential).
-            # Use return_exceptions=True so one bad fetch doesn't kill the
-            # whole phase. Combined with per-fetch try/except, this is
-            # belt-and-suspenders against transient GitHub errors.
-            if report_files:
-                fetch_results = await asyncio.gather(*[
-                    fetch_one_report(directory, item) for item in report_files
-                ], return_exceptions=True)
-                for result in fetch_results:
-                    if isinstance(result, Exception):
-                        print(f"    WARNING: unhandled fetch exception: {type(result).__name__}: {result}", flush=True)
+                report_keys.append(k)
+
+            print(f"  Found {len(report_keys)} report keys")
+
+            for k in report_keys:
+                try:
+                    content = ns.get(k)
+                    if content is None:
+                        print(f"    WARNING: {k} returned None", flush=True)
                         continue
-                    name, content, src_dir = result
-                    if content is not None:
-                        reports[name] = content
-                        report_dirs[name] = src_dir
+                    # Stored value is a markdown string. Tolerate dict-wrapped
+                    # values for forward compatibility.
+                    if isinstance(content, dict):
+                        content = content.get("report") or content.get("content") or json.dumps(content)
+                    fname = k.rsplit("/", 1)[-1]
+                    reports[fname] = content
+                    report_dirs[fname] = directory
+                except Exception as e:
+                    print(f"    WARNING: {k} read failed: {type(e).__name__}: {e}", flush=True)
 
         total_reports = len(reports)
         print(f"\nSuccessfully read {total_reports} reports")
diff --git a/ASVS/agents/asvs_orchestrate.py b/ASVS/agents/asvs_orchestrate.py
index 2e531fe..a6e59a1 100644
--- a/ASVS/agents/asvs_orchestrate.py
+++ b/ASVS/agents/asvs_orchestrate.py
@@ -98,6 +98,12 @@ async def run(input_dict, tools):
                 )
             return out
 
+        # DEPRECATED: this helper is no longer called. Per-section reports
+        # used to be pushed to GitHub (private repo) and then redacted-and-
+        # re-pushed (public repo) per file. They now live in CouchDB only,
+        # so neither push happens. The function is kept here intentionally
+        # in case per-section public reports are ever revived. If you're
+        # certain they won't be, this whole def can be deleted.
         async def _redact_and_push(gofannon_client, http_client, private_repo, private_token,
                                     output_repo, output_token, pass_output_dir, filename,
                                     redact_fn, source_id):
@@ -276,7 +282,18 @@ async def run(input_dict, tools):
             source_id_path += f"/{source_path_prefix}"
         source_id = f"{source_id_path} @ {commit_hash}"
 
+        # Per-section reports go into CouchDB instead of GitHub. The
+        # previous approach committed each per-section report to the
+        # private repo, which surfaced one entry on the public
+        # commits@tooling.apache.org mailing list per section (often
+        # with finding titles in the diff). Now they're stored in a
+        # CouchDB namespace keyed by output_directory; consolidate reads
+        # from the same namespace. Only consolidated.md, issues.md, and
+        # their redacted variants still go to GitHub.
+        reports_namespace = f"audit-reports:{output_directory}"
+
         print(f"  Output directory: {output_directory}", flush=True)
+        print(f"  Reports namespace: {reports_namespace}", flush=True)
         print(f"  Pass concurrency: {PASS_CONCURRENCY}", flush=True)
         print(f"  Bundling: max={BUNDLE_MAX_SECTIONS} sections/call, min={BUNDLE_MIN_SECTIONS}", flush=True)
         if carve_out:
@@ -880,55 +897,37 @@ async def run(input_dict, tools):
                 # bundles across all passes contend for the same global
                 # concurrency budget — not per-bundle as before.
 
-                async def push_one(section_id, report_text):
-                    async with github_push_sem:
-                        try:
-                            push_result = await gofannon_client.call(
-                                agent_name="asvs_push_github",
-                                input_dict={
-                                    "inputText": json.dumps({
-                                        "repo": push_repo,
-                                        "token": push_token,
-                                        "directory": pass_output_dir,
-                                        "filename": f"{section_id}.md",
-                                    }),
-                                    "commitMessage": f"ASVS {level or 'full'} audit: {section_id} ({pass_name}) [source: {source_id}]",
-                                    "fileContents": report_text,
-                                }
-                            )
-                            # asvs_push_github doesn't raise on GitHub errors —
-                            # it returns the error body in outputText. Inspect
-                            # to detect false-positive successes (rate limit,
-                            # 422 abuse detection, 404 missing repo, etc).
-                            output_text = (push_result or {}).get("outputText", "")
-                            # Success indicators: GitHub's PUT response includes
-                            # "content" and "commit" objects on success.
-                            if '"content"' in output_text and '"commit"' in output_text:
-                                return section_id, None
-                            # Otherwise extract a short error message.
-                            err_msg = output_text[:200] if output_text else "empty response"
-                            if output_text.startswith("Error: "):
-                                err_msg = output_text.split("\n", 1)[0][:200]
-                            else:
-                                # Try to pull GitHub's "message" field
-                                m = re.search(r'"message"\s*:\s*"([^"]+)"', output_text)
-                                if m:
-                                    err_msg = f"GitHub: {m.group(1)}"
-                            return section_id, err_msg
-                        except Exception as e:
-                            err_str = str(e) or f"{type(e).__name__} (no detail)"
-                            return section_id, err_str
+                # Per-section reports go to CouchDB only — never to GitHub.
+                # Storing them as commits in the private repo would surface
+                # finding titles on the public commits@tooling.apache.org
+                # mailing list. Consolidate reads from this same namespace
+                # in Phase 1 instead of fetching from GitHub.
+                #
+                # Key format: "{pass_name}/{section_id}.md" — preserves the
+                # pass-grouping that the GitHub layout used so consolidate
+                # can list by pass and the same logical structure is
+                # available for any future tooling.
+                reports_ns = data_store.use_namespace(reports_namespace)
+
+                async def store_one(section_id, report_text):
+                    try:
+                        key = f"{pass_name}/{section_id}.md"
+                        reports_ns.set(key, report_text)
+                        return section_id, None
+                    except Exception as e:
+                        err_str = str(e) or f"{type(e).__name__} (no detail)"
+                        return section_id, err_str
 
                 push_results = await asyncio.gather(*[
-                    push_one(sid, txt) for sid, txt in per_section_reports.items()
+                    store_one(sid, txt) for sid, txt in per_section_reports.items()
                 ])
                 for sid, err in push_results:
                     if err is None:
                         local_successes.append(sid)
-                        print(f"    [{pass_name}] {sid}: pushed", flush=True)
+                        print(f"    [{pass_name}] {sid}: stored", flush=True)
                     else:
-                        local_failures.append(f"{sid} (push): {err}")
-                        print(f"    [{pass_name}] {sid}: push failed: {err}", flush=True)
+                        local_failures.append(f"{sid} (store): {err}")
+                        print(f"    [{pass_name}] {sid}: store failed: {err}", flush=True)
                 local_outputs.extend(per_section_reports.values())
 
                 return local_successes, local_failures, local_outputs, pass_output_dir
@@ -998,76 +997,40 @@ async def run(input_dict, tools):
         if clean_stale_reports and successes and not failures:
             print(f"\n{'='*60}\nStep 3.5: Cleaning stale per-section reports\n{'='*60}", flush=True)
             try:
-                # List the commit-hash directory on the push repo
-                gh_headers = {
-                    "Authorization": f"token {push_token}",
-                    "Accept": "application/vnd.github+json",
-                }
-                # push_directory is e.g. "ASVS/reports/mahout/245aad3"
-                list_url = f"https://api.github.com/repos/{push_repo}/contents/{push_directory}"
-                list_resp = await http_client.get(list_url, headers=gh_headers)
-                if list_resp.status_code != 200:
-                    print(f"  Couldn't list {push_directory}: HTTP {list_resp.status_code}; skipping cleanup", flush=True)
+                # Per-section reports now live in CouchDB under
+                # reports_namespace, keyed as "{pass_name}/{section_id}.md".
+                # On re-runs at the same commit but with different pass
+                # groupings (e.g. different domain discovery output), keys
+                # from prior runs accumulate. Remove any keys whose
+                # pass-prefix isn't in current_pass_basenames.
+                current_pass_basenames = set()
+                for d in report_directories:
+                    bn = d.rstrip("/").split("/")[-1]
+                    current_pass_basenames.add(bn)
+
+                reports_ns = data_store.use_namespace(reports_namespace)
+                all_keys = reports_ns.list_keys() or []
+                orphan_keys = []
+                for k in all_keys:
+                    # key is "{pass_name}/{section_id}.md"
+                    pass_part = k.split("/", 1)[0] if "/" in k else ""
+                    if pass_part and pass_part not in current_pass_basenames:
+                        orphan_keys.append(k)
+
+                if not orphan_keys:
+                    print(f"  No orphan keys to clean", flush=True)
                 else:
-                    items = list_resp.json()
-                    # Identify current run's pass dirs (basename only)
-                    current_pass_basenames = set()
-                    for d in report_directories:
-                        # report_directories entries are e.g. "ASVS/reports/mahout/245aad3/all"
-                        bn = d.rstrip("/").split("/")[-1]
-                        current_pass_basenames.add(bn)
-
-                    orphan_dirs = []
-                    for item in items:
-                        if item.get("type") != "dir":
-                            continue
-                        name = item.get("name", "")
-                        # Always preserve rerun/ subdirectories
-                        if name == "rerun":
-                            continue
-                        if name in current_pass_basenames:
-                            continue
-                        orphan_dirs.append(name)
-
-                    if not orphan_dirs:
-                        print(f"  No orphan subdirectories to clean", flush=True)
-                    else:
-                        print(f"  Found {len(orphan_dirs)} orphan subdirectories: {orphan_dirs}", flush=True)
-                        section_re = re.compile(r"^\d+\.\d+\.\d+\.md$")
-                        deleted_count = 0
-                        skipped_count = 0
-                        for orphan in orphan_dirs:
-                            orphan_path = f"{push_directory}/{orphan}"
-                            orphan_list_url = f"https://api.github.com/repos/{push_repo}/contents/{orphan_path}"
-                            orphan_resp = await http_client.get(orphan_list_url, headers=gh_headers)
-                            if orphan_resp.status_code != 200:
-                                print(f"    {orphan}: couldn't list (HTTP {orphan_resp.status_code}); skipping", flush=True)
-                                continue
-                            orphan_items = orphan_resp.json()
-                            for oi in orphan_items:
-                                if oi.get("type") != "file":
-                                    continue
-                                fname = oi.get("name", "")
-                                if not section_re.match(fname):
-                                    skipped_count += 1
-                                    continue
-                                # Delete the file
-                                fpath = oi.get("path", "")
-                                fsha = oi.get("sha", "")
-                                del_payload = {
-                                    "message": f"Clean stale report: {fpath}",
-                                    "sha": fsha,
-                                }
-                                del_url = f"https://api.github.com/repos/{push_repo}/contents/{fpath}"
-                                del_resp = await http_client.request(
-                                    "DELETE", del_url, headers=gh_headers, json=del_payload,
-                                )
-                                if del_resp.status_code in (200, 204):
-                                    deleted_count += 1
-                                else:
-                                    print(f"    {fpath}: delete failed HTTP {del_resp.status_code}", flush=True)
-                        print(f"  Cleanup complete: deleted {deleted_count} stale section reports, "
-                              f"preserved {skipped_count} unrecognized files", flush=True)
+                    print(f"  Found {len(orphan_keys)} orphan keys "
+                          f"(passes not in current run: "
+                          f"{sorted(set(k.split('/', 1)[0] for k in orphan_keys))})", flush=True)
+                    deleted = 0
+                    for k in orphan_keys:
+                        try:
+                            reports_ns.delete(k)
+                            deleted += 1
+                        except Exception as de:
+                            print(f"    {k}: delete failed: {de}", flush=True)
+                    print(f"  Deleted {deleted} stale keys from {reports_namespace}", flush=True)
             except Exception as e:
                 # Cleanup failures shouldn't block consolidation
                 print(f"  Cleanup encountered an error (continuing): {type(e).__name__}: {e}", flush=True)
@@ -1090,6 +1053,17 @@ async def run(input_dict, tools):
                     audited_sections.add(s)
             sections_arg = ", ".join(sorted(audited_sections))
 
+            # `directories` was historically a list of GitHub paths like
+            # "ASVS/reports/steve/v3/d0aa7e9/all". Now per-section reports
+            # live in CouchDB under the reports_namespace; the dir suffix
+            # (the pass name, e.g. "all" or "l1") becomes a key prefix
+            # within that namespace. Pass both to consolidate so it knows
+            # where to read.
+            pass_prefixes = []
+            for d in report_directories:
+                # Extract the trailing pass name from each historical dir path
+                pass_prefixes.append(d.rsplit("/", 1)[-1])
+
             try:
                 consolidate_result = await gofannon_client.call(
                     agent_name="asvs_consolidate",
@@ -1097,10 +1071,11 @@ async def run(input_dict, tools):
                         "inputText": "\n".join([
                             f"repo: {push_repo}",
                             f"pat: {push_token}",
-                            f"directories: {', '.join(report_directories)}",
+                            f"directories: {', '.join(pass_prefixes)}",
                             f"output: {push_directory}",
                             f"sections: {sections_arg}",
                             f"source: {source_id}",
+                            f"reports_namespace: {reports_namespace}",
                         ]),
                         "domainGroups": json.dumps(domain_groups),
                         "level": level or "L3",
@@ -1213,28 +1188,15 @@ async def run(input_dict, tools):
                     failures.append(f"redacted issues push: {detail}")
                     print(f"  Push redacted issues.md FAILED: {detail}", flush=True)
 
-            # Push redacted per-section reports
-            for pass_output_dir in report_directories:
-                list_headers = {"Authorization": f"token {private_token}", "Accept": "application/vnd.github.v3+json"}
-                list_resp = await http_client.get(
-                    f"https://api.github.com/repos/{private_repo}/contents/{pass_output_dir}",
-                    headers=list_headers,
-                )
-                if list_resp.status_code != 200:
-                    continue
-                dir_contents = list_resp.json()
-                redaction_tasks = []
-                for item in dir_contents:
-                    if item["type"] != "file" or not item["name"].endswith(".md"):
-                        continue
-                    redaction_tasks.append(_redact_and_push(
-                        gofannon_client, http_client, private_repo, private_token,
-                        output_repo, output_token, pass_output_dir, item["name"],
-                        redact_consolidated, source_id,
-                    ))
-                await asyncio.gather(*redaction_tasks, return_exceptions=True)
-
-            print(f"  Redacted reports pushed to {output_repo}", flush=True)
+            # Per-section reports are no longer pushed to GitHub (see
+            # reports_namespace above), so there's nothing per-section to
+            # redact-and-push here. Public consumers of apache/tooling-agents
+            # see only the redacted consolidated.md and issues.md, which
+            # contain redaction notices ("N Critical findings have been
+            # redacted...") so the existence of redacted findings is still
+            # disclosed without their content.
+
+            print(f"  Redacted consolidated and issues pushed to {output_repo}", flush=True)
 
             if notify_email and critical_findings:
                 print(f"  Emailing {len(critical_findings)} critical findings to {notify_email}", flush=True)


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@tooling.apache.org
For additional commands, e-mail: commits-help@tooling.apache.org


(tooling-agents) 02/02: Wiping mahout reports to test new flow

Posted by ak...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

andrewmusselman pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tooling-agents.git

commit 358a9a027e4dcc626febaeeee8df6be97a04c3e0
Author: Andrew Musselman <an...@gmail.com>
AuthorDate: Tue May 5 19:56:51 2026 -0700

    Wiping mahout reports to test new flow
---
 ASVS/reports/mahout/245aad3/all/1.2.1.md    |  76 ----
 ASVS/reports/mahout/245aad3/all/1.2.2.md    |  69 ---
 ASVS/reports/mahout/245aad3/all/1.2.3.md    |  76 ----
 ASVS/reports/mahout/245aad3/all/1.2.4.md    |  69 ---
 ASVS/reports/mahout/245aad3/all/1.2.5.md    |  75 ----
 ASVS/reports/mahout/245aad3/all/1.3.1.md    |  69 ---
 ASVS/reports/mahout/245aad3/all/1.3.2.md    |  28 --
 ASVS/reports/mahout/245aad3/all/1.5.1.md    |  28 --
 ASVS/reports/mahout/245aad3/all/10.4.1.md   |  28 --
 ASVS/reports/mahout/245aad3/all/10.4.2.md   |  28 --
 ASVS/reports/mahout/245aad3/all/10.4.3.md   |  28 --
 ASVS/reports/mahout/245aad3/all/10.4.4.md   |  28 --
 ASVS/reports/mahout/245aad3/all/10.4.5.md   |  28 --
 ASVS/reports/mahout/245aad3/all/11.3.1.md   |  28 --
 ASVS/reports/mahout/245aad3/all/11.3.2.md   |  28 --
 ASVS/reports/mahout/245aad3/all/11.4.1.md   |  28 --
 ASVS/reports/mahout/245aad3/all/12.1.1.md   |  28 --
 ASVS/reports/mahout/245aad3/all/12.2.1.md   |  28 --
 ASVS/reports/mahout/245aad3/all/12.2.2.md   | 114 -----
 ASVS/reports/mahout/245aad3/all/13.4.1.md   | 127 ------
 ASVS/reports/mahout/245aad3/all/14.2.1.md   | 132 ------
 ASVS/reports/mahout/245aad3/all/14.3.1.md   |  89 ----
 ASVS/reports/mahout/245aad3/all/15.1.1.md   | 140 ------
 ASVS/reports/mahout/245aad3/all/15.2.1.md   | 140 ------
 ASVS/reports/mahout/245aad3/all/15.3.1.md   | 135 ------
 ASVS/reports/mahout/245aad3/all/2.1.1.md    | 111 -----
 ASVS/reports/mahout/245aad3/all/2.2.1.md    | 229 ----------
 ASVS/reports/mahout/245aad3/all/2.2.2.md    |  83 ----
 ASVS/reports/mahout/245aad3/all/2.3.1.md    | 152 -------
 ASVS/reports/mahout/245aad3/all/3.2.1.md    |  85 ----
 ASVS/reports/mahout/245aad3/all/3.2.2.md    |  28 --
 ASVS/reports/mahout/245aad3/all/3.3.1.md    |  28 --
 ASVS/reports/mahout/245aad3/all/3.4.1.md    |  28 --
 ASVS/reports/mahout/245aad3/all/3.4.2.md    |  28 --
 ASVS/reports/mahout/245aad3/all/3.5.1.md    |  28 --
 ASVS/reports/mahout/245aad3/all/3.5.2.md    |  28 --
 ASVS/reports/mahout/245aad3/all/3.5.3.md    |  28 --
 ASVS/reports/mahout/245aad3/all/4.1.1.md    |  28 --
 ASVS/reports/mahout/245aad3/all/4.4.1.md    |  28 --
 ASVS/reports/mahout/245aad3/all/5.2.1.md    |  28 --
 ASVS/reports/mahout/245aad3/all/5.2.2.md    |  28 --
 ASVS/reports/mahout/245aad3/all/5.3.1.md    |  28 --
 ASVS/reports/mahout/245aad3/all/5.3.2.md    | 195 ---------
 ASVS/reports/mahout/245aad3/all/6.1.1.md    |  81 ----
 ASVS/reports/mahout/245aad3/all/6.2.1.md    |  81 ----
 ASVS/reports/mahout/245aad3/all/6.2.2.md    |  81 ----
 ASVS/reports/mahout/245aad3/all/6.2.3.md    |  81 ----
 ASVS/reports/mahout/245aad3/all/6.2.4.md    |  81 ----
 ASVS/reports/mahout/245aad3/all/6.2.5.md    |  28 --
 ASVS/reports/mahout/245aad3/all/6.2.6.md    |  28 --
 ASVS/reports/mahout/245aad3/all/6.2.7.md    |  28 --
 ASVS/reports/mahout/245aad3/all/6.2.8.md    |  28 --
 ASVS/reports/mahout/245aad3/all/6.3.1.md    |  28 --
 ASVS/reports/mahout/245aad3/all/6.3.2.md    |  28 --
 ASVS/reports/mahout/245aad3/all/6.4.1.md    |  28 --
 ASVS/reports/mahout/245aad3/all/6.4.2.md    |  28 --
 ASVS/reports/mahout/245aad3/all/7.2.1.md    |  28 --
 ASVS/reports/mahout/245aad3/all/7.2.2.md    |  28 --
 ASVS/reports/mahout/245aad3/all/7.2.3.md    |  28 --
 ASVS/reports/mahout/245aad3/all/7.2.4.md    |  28 --
 ASVS/reports/mahout/245aad3/all/7.4.1.md    |  28 --
 ASVS/reports/mahout/245aad3/all/7.4.2.md    |  28 --
 ASVS/reports/mahout/245aad3/all/8.1.1.md    |  28 --
 ASVS/reports/mahout/245aad3/all/8.2.1.md    |  28 --
 ASVS/reports/mahout/245aad3/all/8.2.2.md    |  28 --
 ASVS/reports/mahout/245aad3/all/8.3.1.md    |  28 --
 ASVS/reports/mahout/245aad3/all/9.1.1.md    |  28 --
 ASVS/reports/mahout/245aad3/all/9.1.2.md    |  28 --
 ASVS/reports/mahout/245aad3/all/9.1.3.md    |  28 --
 ASVS/reports/mahout/245aad3/all/9.2.1.md    |  28 --
 ASVS/reports/mahout/245aad3/consolidated.md | 596 --------------------------
 ASVS/reports/mahout/245aad3/issues.md       | 635 ----------------------------
 72 files changed, 5090 deletions(-)

diff --git a/ASVS/reports/mahout/245aad3/all/1.2.1.md b/ASVS/reports/mahout/245aad3/all/1.2.1.md
deleted file mode 100644
index 088f594..0000000
--- a/ASVS/reports/mahout/245aad3/all/1.2.1.md
+++ /dev/null
@@ -1,76 +0,0 @@
-# Security Audit Report: ASVS 1.2.1
-
-## Executive Summary
-
-| Field | Value |
-|-------|-------|
-| **Repository** | apache/mahout |
-| **Audit Date** | May 05, 2026 |
-| **Auditor** | Tooling Agents (bundled-pass mode) |
-| **ASVS Requirement** | ASVS 1.2.1 |
-| **Files Analyzed** | 1 relevant / 394 total |
-| **Files Skipped** | 36 |
-
-**Requirement description:** Verify that output encoding for an HTTP response, HTML document, or XML document is relevant for the context required, such as encoding the relevant characters for HTML elements, HTML attributes, HTML comments, CSS, or HTTP header fields, to avoid changing the message or document structure.
-
-### Findings Overview
-
-| Severity | Count |
-|----------|-------|
-| 🔴 Critical | 0 |
-| 🟠 High | 0 |
-| 🟡 Medium | 0 |
-| 🟢 Low | 0 |
-
----
-
-## ASVS-1.2.1: Output Encoding for HTTP Response / HTML / XML / CSS
-
-### Findings for 1.2.1
-
-No findings detected. This file does not generate HTTP responses, HTML documents, XML documents, or CSS. The only string construction is an internal error message:
-
-```rust
-PyRuntimeError::new_err(format!("CUDA stream sync failed: {}", e))
-```
-
-The interpolated value `e` originates from `qdp_core::dlpack::synchronize_stream()`, an internal CUDA runtime call — not from user-controllable input — and is returned as a Python exception string, not rendered in any HTTP/HTML/XML/CSS context.
-
-### Security Controls Inventory for 1.2.1
-
-No applicable controls in this scope. The file contains no output encoding logic because there is no web output context.
-
-### Positive Patterns for 1.2.1
-
-- **Static capsule name**: `DLTENSOR_NAME: &[u8] = b"dltensor\0"` is a compile-time constant, eliminating any possibility of injection into the PyCapsule name.
-- **Typed error returns**: All errors use strongly-typed `PyRuntimeError::new_err()` with hardcoded message prefixes, preventing structure manipulation.
-
----
-
-
-
-## Cross-cutting Architecture Observations
-
-1. **Code is out of scope for web injection ASVS requirements**: `tensor.rs` is a low-level Rust FFI library for GPU memory management via the DLPack protocol. It operates entirely below the web application layer — there are no HTTP contexts, no dynamic content generation, no database queries, no OS commands, and no HTML processing. All six audited ASVS requirements (1.2.1–1.2.5, 1.3.1) target injection prevention in web application output contexts that do not exist in this file.
-
-2. **Memory safety is the dominant concern**: The file's actual attack surface centers on `unsafe` raw pointer operations, double-free prevention, use-after-free risks, and FFI boundary correctness — none of which are covered by the audited ASVS requirements. These concerns fall under different ASVS categories (e.g., memory management, input validation).
-
-3. **Positive defensive patterns observed**:
-   - Double-free prevention via `consumed` flag checked before both PyCapsule creation and `Drop` execution.
-   - Null pointer checks on all entry paths before dereferencing `self.ptr`.
-   - `debug_assert!` validating deleter presence in `Drop`.
-   - Strongly-typed interfaces (Rust's type system) prevent all text-based injection classes structurally.
-
-## Cross-cutting Recommendations
-
-### Immediate
-- **No immediate action required** for the audited ASVS requirements. This file has no applicable attack surface for injection prevention or HTML sanitization.
-
-### Short-term
-- **Expand audit scope** to include files that actually handle web-facing functionality (HTTP handlers, template rendering, API response construction, database query builders) to properly evaluate ASVS 1.2.1–1.2.5 and 1.3.1 compliance.
-- **Audit upstream callers** (e.g., the Python layer that invokes `QdpEngine.encode()`) for injection risks in any web-facing integration code.
-
-### Long-term
-- **Apply ASVS memory safety requirements** (if available in your framework) to this file, focusing on the `unsafe` blocks, raw pointer lifecycle management, and the `unsafe impl Send/Sync` claims.
-- Ensure the `qdp_core::dlpack` dependency is audited for correct deleter implementation, as this file's memory safety depends entirely on it.
-        
\ No newline at end of file
diff --git a/ASVS/reports/mahout/245aad3/all/1.2.2.md b/ASVS/reports/mahout/245aad3/all/1.2.2.md
deleted file mode 100644
index 6d68c0f..0000000
--- a/ASVS/reports/mahout/245aad3/all/1.2.2.md
+++ /dev/null
@@ -1,69 +0,0 @@
-# Security Audit Report: ASVS 1.2.2
-
-## Executive Summary
-
-| Field | Value |
-|-------|-------|
-| **Repository** | apache/mahout |
-| **Audit Date** | May 05, 2026 |
-| **Auditor** | Tooling Agents (bundled-pass mode) |
-| **ASVS Requirement** | ASVS 1.2.2 |
-| **Files Analyzed** | 1 relevant / 394 total |
-| **Files Skipped** | 36 |
-
-**Requirement description:** Verify that when dynamically building URLs, untrusted data is encoded according to its context (e.g., URL encoding or base64url encoding for query or path parameters). Ensure that only safe URL protocols are permitted (e.g., disallow javascript: or data:).
-
-### Findings Overview
-
-| Severity | Count |
-|----------|-------|
-| 🔴 Critical | 0 |
-| 🟠 High | 0 |
-| 🟡 Medium | 0 |
-| 🟢 Low | 0 |
-
----
-
-## ASVS-1.2.2: URL Encoding and Safe URL Protocols
-
-### Findings for 1.2.2
-
-No findings detected. This file does not construct, manipulate, or emit URLs of any kind. There are no `http://`, `javascript:`, `data:`, or any other URL protocol references.
-
-### Security Controls Inventory for 1.2.2
-
-No applicable controls in this scope. No URL construction exists in this file.
-
-### Positive Patterns for 1.2.2
-
-- N/A — no URL handling present.
-
----
-
-
-
-## Cross-cutting Architecture Observations
-
-1. **Code is out of scope for web injection ASVS requirements**: `tensor.rs` is a low-level Rust FFI library for GPU memory management via the DLPack protocol. It operates entirely below the web application layer — there are no HTTP contexts, no dynamic content generation, no database queries, no OS commands, and no HTML processing. All six audited ASVS requirements (1.2.1–1.2.5, 1.3.1) target injection prevention in web application output contexts that do not exist in this file.
-
-2. **Memory safety is the dominant concern**: The file's actual attack surface centers on `unsafe` raw pointer operations, double-free prevention, use-after-free risks, and FFI boundary correctness — none of which are covered by the audited ASVS requirements. These concerns fall under different ASVS categories (e.g., memory management, input validation).
-
-3. **Positive defensive patterns observed**:
-   - Double-free prevention via `consumed` flag checked before both PyCapsule creation and `Drop` execution.
-   - Null pointer checks on all entry paths before dereferencing `self.ptr`.
-   - `debug_assert!` validating deleter presence in `Drop`.
-   - Strongly-typed interfaces (Rust's type system) prevent all text-based injection classes structurally.
-
-## Cross-cutting Recommendations
-
-### Immediate
-- **No immediate action required** for the audited ASVS requirements. This file has no applicable attack surface for injection prevention or HTML sanitization.
-
-### Short-term
-- **Expand audit scope** to include files that actually handle web-facing functionality (HTTP handlers, template rendering, API response construction, database query builders) to properly evaluate ASVS 1.2.1–1.2.5 and 1.3.1 compliance.
-- **Audit upstream callers** (e.g., the Python layer that invokes `QdpEngine.encode()`) for injection risks in any web-facing integration code.
-
-### Long-term
-- **Apply ASVS memory safety requirements** (if available in your framework) to this file, focusing on the `unsafe` blocks, raw pointer lifecycle management, and the `unsafe impl Send/Sync` claims.
-- Ensure the `qdp_core::dlpack` dependency is audited for correct deleter implementation, as this file's memory safety depends entirely on it.
-        
\ No newline at end of file
diff --git a/ASVS/reports/mahout/245aad3/all/1.2.3.md b/ASVS/reports/mahout/245aad3/all/1.2.3.md
deleted file mode 100644
index 0c953a6..0000000
--- a/ASVS/reports/mahout/245aad3/all/1.2.3.md
+++ /dev/null
@@ -1,76 +0,0 @@
-# Security Audit Report: ASVS 1.2.3
-
-## Executive Summary
-
-| Field | Value |
-|-------|-------|
-| **Repository** | apache/mahout |
-| **Audit Date** | May 05, 2026 |
-| **Auditor** | Tooling Agents (bundled-pass mode) |
-| **ASVS Requirement** | ASVS 1.2.3 |
-| **Files Analyzed** | 1 relevant / 394 total |
-| **Files Skipped** | 36 |
-
-**Requirement description:** Verify that output encoding or escaping is used when dynamically building JavaScript content (including JSON), to avoid changing the message or document structure (to avoid JavaScript and JSON injection).
-
-### Findings Overview
-
-| Severity | Count |
-|----------|-------|
-| 🔴 Critical | 0 |
-| 🟠 High | 0 |
-| 🟡 Medium | 0 |
-| 🟢 Low | 0 |
-
----
-
-## ASVS-1.2.3: JavaScript / JSON Output Encoding
-
-### Findings for 1.2.3
-
-No findings detected. This file does not generate JavaScript content or JSON output. The return types are:
-
-| Method | Return Type | Content |
-|---|---|---|
-| `__dlpack__` | `Py<PyAny>` (PyCapsule) | Raw binary pointer, not text |
-| `__dlpack_device__` | `(i32, i32)` | Typed integer tuple |
-
-Neither produces JavaScript or JSON.
-
-### Security Controls Inventory for 1.2.3
-
-No applicable controls in this scope. No JavaScript or JSON generation exists in this file.
-
-### Positive Patterns for 1.2.3
-
-- **Binary protocol**: DLPack uses binary pointer exchange via PyCapsule, inherently immune to text-based injection.
-
----
-
-
-
-## Cross-cutting Architecture Observations
-
-1. **Code is out of scope for web injection ASVS requirements**: `tensor.rs` is a low-level Rust FFI library for GPU memory management via the DLPack protocol. It operates entirely below the web application layer — there are no HTTP contexts, no dynamic content generation, no database queries, no OS commands, and no HTML processing. All six audited ASVS requirements (1.2.1–1.2.5, 1.3.1) target injection prevention in web application output contexts that do not exist in this file.
-
-2. **Memory safety is the dominant concern**: The file's actual attack surface centers on `unsafe` raw pointer operations, double-free prevention, use-after-free risks, and FFI boundary correctness — none of which are covered by the audited ASVS requirements. These concerns fall under different ASVS categories (e.g., memory management, input validation).
-
-3. **Positive defensive patterns observed**:
-   - Double-free prevention via `consumed` flag checked before both PyCapsule creation and `Drop` execution.
-   - Null pointer checks on all entry paths before dereferencing `self.ptr`.
-   - `debug_assert!` validating deleter presence in `Drop`.
-   - Strongly-typed interfaces (Rust's type system) prevent all text-based injection classes structurally.
-
-## Cross-cutting Recommendations
-
-### Immediate
-- **No immediate action required** for the audited ASVS requirements. This file has no applicable attack surface for injection prevention or HTML sanitization.
-
-### Short-term
-- **Expand audit scope** to include files that actually handle web-facing functionality (HTTP handlers, template rendering, API response construction, database query builders) to properly evaluate ASVS 1.2.1–1.2.5 and 1.3.1 compliance.
-- **Audit upstream callers** (e.g., the Python layer that invokes `QdpEngine.encode()`) for injection risks in any web-facing integration code.
-
-### Long-term
-- **Apply ASVS memory safety requirements** (if available in your framework) to this file, focusing on the `unsafe` blocks, raw pointer lifecycle management, and the `unsafe impl Send/Sync` claims.
-- Ensure the `qdp_core::dlpack` dependency is audited for correct deleter implementation, as this file's memory safety depends entirely on it.
-        
\ No newline at end of file
diff --git a/ASVS/reports/mahout/245aad3/all/1.2.4.md b/ASVS/reports/mahout/245aad3/all/1.2.4.md
deleted file mode 100644
index db8bfe5..0000000
--- a/ASVS/reports/mahout/245aad3/all/1.2.4.md
+++ /dev/null
@@ -1,69 +0,0 @@
-# Security Audit Report: ASVS 1.2.4
-
-## Executive Summary
-
-| Field | Value |
-|-------|-------|
-| **Repository** | apache/mahout |
-| **Audit Date** | May 05, 2026 |
-| **Auditor** | Tooling Agents (bundled-pass mode) |
-| **ASVS Requirement** | ASVS 1.2.4 |
-| **Files Analyzed** | 1 relevant / 394 total |
-| **Files Skipped** | 36 |
-
-**Requirement description:** Verify that data selection or database queries (e.g., SQL, HQL, NoSQL, Cypher) use parameterized queries, ORMs, entity frameworks, or are otherwise protected from SQL Injection and other database injection attacks. This is also relevant when writing stored procedures.
-
-### Findings Overview
-
-| Severity | Count |
-|----------|-------|
-| 🔴 Critical | 0 |
-| 🟠 High | 0 |
-| 🟡 Medium | 0 |
-| 🟢 Low | 0 |
-
----
-
-## ASVS-1.2.4: Parameterized Queries / SQL Injection
-
-### Findings for 1.2.4
-
-No findings detected. This file contains no database interaction — no SQL, HQL, NoSQL, Cypher, or any other query language. No ORM or entity framework usage is present.
-
-### Security Controls Inventory for 1.2.4
-
-No applicable controls in this scope. No database access exists in this file.
-
-### Positive Patterns for 1.2.4
-
-- N/A — no database operations present.
-
----
-
-
-
-## Cross-cutting Architecture Observations
-
-1. **Code is out of scope for web injection ASVS requirements**: `tensor.rs` is a low-level Rust FFI library for GPU memory management via the DLPack protocol. It operates entirely below the web application layer — there are no HTTP contexts, no dynamic content generation, no database queries, no OS commands, and no HTML processing. All six audited ASVS requirements (1.2.1–1.2.5, 1.3.1) target injection prevention in web application output contexts that do not exist in this file.
-
-2. **Memory safety is the dominant concern**: The file's actual attack surface centers on `unsafe` raw pointer operations, double-free prevention, use-after-free risks, and FFI boundary correctness — none of which are covered by the audited ASVS requirements. These concerns fall under different ASVS categories (e.g., memory management, input validation).
-
-3. **Positive defensive patterns observed**:
-   - Double-free prevention via `consumed` flag checked before both PyCapsule creation and `Drop` execution.
-   - Null pointer checks on all entry paths before dereferencing `self.ptr`.
-   - `debug_assert!` validating deleter presence in `Drop`.
-   - Strongly-typed interfaces (Rust's type system) prevent all text-based injection classes structurally.
-
-## Cross-cutting Recommendations
-
-### Immediate
-- **No immediate action required** for the audited ASVS requirements. This file has no applicable attack surface for injection prevention or HTML sanitization.
-
-### Short-term
-- **Expand audit scope** to include files that actually handle web-facing functionality (HTTP handlers, template rendering, API response construction, database query builders) to properly evaluate ASVS 1.2.1–1.2.5 and 1.3.1 compliance.
-- **Audit upstream callers** (e.g., the Python layer that invokes `QdpEngine.encode()`) for injection risks in any web-facing integration code.
-
-### Long-term
-- **Apply ASVS memory safety requirements** (if available in your framework) to this file, focusing on the `unsafe` blocks, raw pointer lifecycle management, and the `unsafe impl Send/Sync` claims.
-- Ensure the `qdp_core::dlpack` dependency is audited for correct deleter implementation, as this file's memory safety depends entirely on it.
-        
\ No newline at end of file
diff --git a/ASVS/reports/mahout/245aad3/all/1.2.5.md b/ASVS/reports/mahout/245aad3/all/1.2.5.md
deleted file mode 100644
index 606deec..0000000
--- a/ASVS/reports/mahout/245aad3/all/1.2.5.md
+++ /dev/null
@@ -1,75 +0,0 @@
-# Security Audit Report: ASVS 1.2.5
-
-## Executive Summary
-
-| Field | Value |
-|-------|-------|
-| **Repository** | apache/mahout |
-| **Audit Date** | May 05, 2026 |
-| **Auditor** | Tooling Agents (bundled-pass mode) |
-| **ASVS Requirement** | ASVS 1.2.5 |
-| **Files Analyzed** | 1 relevant / 394 total |
-| **Files Skipped** | 36 |
-
-**Requirement description:** Verify that the application protects against OS command injection and that operating system calls use parameterized OS queries or use contextual command line output encoding.
-
-### Findings Overview
-
-| Severity | Count |
-|----------|-------|
-| 🔴 Critical | 0 |
-| 🟠 High | 0 |
-| 🟡 Medium | 0 |
-| 🟢 Low | 0 |
-
----
-
-## ASVS-1.2.5: OS Command Injection
-
-### Findings for 1.2.5
-
-No findings detected. This file does not invoke OS commands. The operations performed are:
-
-- CUDA stream synchronization via `qdp_core::dlpack::synchronize_stream()` — a typed FFI call to a CUDA library function, not a shell invocation.
-- PyCapsule creation via `ffi::PyCapsule_New()` — a Python C API call, not a process spawn.
-
-No functions from `std::process::Command`, shell invocations, or `libc::system()` calls are present.
-
-### Security Controls Inventory for 1.2.5
-
-No applicable controls in this scope. No OS command execution exists in this file.
-
-### Positive Patterns for 1.2.5
-
-- **Typed FFI calls only**: All external calls use strongly-typed function signatures (`PyCapsule_New`, `synchronize_stream`, `dlpack_stream_to_cuda`), making shell injection structurally impossible.
-- **No string-to-command conversion**: The `stream` parameter (`Option<i64>`) is passed as a typed integer to `dlpack_stream_to_cuda()`, never interpolated into a command string.
-
----
-
-
-
-## Cross-cutting Architecture Observations
-
-1. **Code is out of scope for web injection ASVS requirements**: `tensor.rs` is a low-level Rust FFI library for GPU memory management via the DLPack protocol. It operates entirely below the web application layer — there are no HTTP contexts, no dynamic content generation, no database queries, no OS commands, and no HTML processing. All six audited ASVS requirements (1.2.1–1.2.5, 1.3.1) target injection prevention in web application output contexts that do not exist in this file.
-
-2. **Memory safety is the dominant concern**: The file's actual attack surface centers on `unsafe` raw pointer operations, double-free prevention, use-after-free risks, and FFI boundary correctness — none of which are covered by the audited ASVS requirements. These concerns fall under different ASVS categories (e.g., memory management, input validation).
-
-3. **Positive defensive patterns observed**:
-   - Double-free prevention via `consumed` flag checked before both PyCapsule creation and `Drop` execution.
-   - Null pointer checks on all entry paths before dereferencing `self.ptr`.
-   - `debug_assert!` validating deleter presence in `Drop`.
-   - Strongly-typed interfaces (Rust's type system) prevent all text-based injection classes structurally.
-
-## Cross-cutting Recommendations
-
-### Immediate
-- **No immediate action required** for the audited ASVS requirements. This file has no applicable attack surface for injection prevention or HTML sanitization.
-
-### Short-term
-- **Expand audit scope** to include files that actually handle web-facing functionality (HTTP handlers, template rendering, API response construction, database query builders) to properly evaluate ASVS 1.2.1–1.2.5 and 1.3.1 compliance.
-- **Audit upstream callers** (e.g., the Python layer that invokes `QdpEngine.encode()`) for injection risks in any web-facing integration code.
-
-### Long-term
-- **Apply ASVS memory safety requirements** (if available in your framework) to this file, focusing on the `unsafe` blocks, raw pointer lifecycle management, and the `unsafe impl Send/Sync` claims.
-- Ensure the `qdp_core::dlpack` dependency is audited for correct deleter implementation, as this file's memory safety depends entirely on it.
-        
\ No newline at end of file
diff --git a/ASVS/reports/mahout/245aad3/all/1.3.1.md b/ASVS/reports/mahout/245aad3/all/1.3.1.md
deleted file mode 100644
index 1298620..0000000
--- a/ASVS/reports/mahout/245aad3/all/1.3.1.md
+++ /dev/null
@@ -1,69 +0,0 @@
-# Security Audit Report: ASVS 1.3.1
-
-## Executive Summary
-
-| Field | Value |
-|-------|-------|
-| **Repository** | apache/mahout |
-| **Audit Date** | May 05, 2026 |
-| **Auditor** | Tooling Agents (bundled-pass mode) |
-| **ASVS Requirement** | ASVS 1.3.1 |
-| **Files Analyzed** | 1 relevant / 394 total |
-| **Files Skipped** | 36 |
-
-**Requirement description:** Verify that all untrusted HTML input from WYSIWYG editors or similar is sanitized using a well-known and secure HTML sanitization library or framework feature.
-
-### Findings Overview
-
-| Severity | Count |
-|----------|-------|
-| 🔴 Critical | 0 |
-| 🟠 High | 0 |
-| 🟡 Medium | 0 |
-| 🟢 Low | 0 |
-
----
-
-## ASVS-1.3.1: HTML Sanitization for WYSIWYG / Rich Input
-
-### Findings for 1.3.1
-
-No findings detected. This file does not accept HTML input, does not implement a WYSIWYG editor, and does not process rich text content. The only external input is a typed `Option<i64>` CUDA stream identifier.
-
-### Security Controls Inventory for 1.3.1
-
-No applicable controls in this scope. No HTML input processing exists in this file.
-
-### Positive Patterns for 1.3.1
-
-- N/A — no HTML input handling present.
-
----
-
-
-
-## Cross-cutting Architecture Observations
-
-1. **Code is out of scope for web injection ASVS requirements**: `tensor.rs` is a low-level Rust FFI library for GPU memory management via the DLPack protocol. It operates entirely below the web application layer — there are no HTTP contexts, no dynamic content generation, no database queries, no OS commands, and no HTML processing. All six audited ASVS requirements (1.2.1–1.2.5, 1.3.1) target injection prevention in web application output contexts that do not exist in this file.
-
-2. **Memory safety is the dominant concern**: The file's actual attack surface centers on `unsafe` raw pointer operations, double-free prevention, use-after-free risks, and FFI boundary correctness — none of which are covered by the audited ASVS requirements. These concerns fall under different ASVS categories (e.g., memory management, input validation).
-
-3. **Positive defensive patterns observed**:
-   - Double-free prevention via `consumed` flag checked before both PyCapsule creation and `Drop` execution.
-   - Null pointer checks on all entry paths before dereferencing `self.ptr`.
-   - `debug_assert!` validating deleter presence in `Drop`.
-   - Strongly-typed interfaces (Rust's type system) prevent all text-based injection classes structurally.
-
-## Cross-cutting Recommendations
-
-### Immediate
-- **No immediate action required** for the audited ASVS requirements. This file has no applicable attack surface for injection prevention or HTML sanitization.
-
-### Short-term
-- **Expand audit scope** to include files that actually handle web-facing functionality (HTTP handlers, template rendering, API response construction, database query builders) to properly evaluate ASVS 1.2.1–1.2.5 and 1.3.1 compliance.
-- **Audit upstream callers** (e.g., the Python layer that invokes `QdpEngine.encode()`) for injection risks in any web-facing integration code.
-
-### Long-term
-- **Apply ASVS memory safety requirements** (if available in your framework) to this file, focusing on the `unsafe` blocks, raw pointer lifecycle management, and the `unsafe impl Send/Sync` claims.
-- Ensure the `qdp_core::dlpack` dependency is audited for correct deleter implementation, as this file's memory safety depends entirely on it.
-        
\ No newline at end of file
diff --git a/ASVS/reports/mahout/245aad3/all/1.3.2.md b/ASVS/reports/mahout/245aad3/all/1.3.2.md
deleted file mode 100644
index dedc030..0000000
--- a/ASVS/reports/mahout/245aad3/all/1.3.2.md
+++ /dev/null
@@ -1,28 +0,0 @@
-# Security Audit Report: ASVS 1.3.2
-
-## Executive Summary
-
-| Field | Value |
-|-------|-------|
-| **Repository** | apache/mahout |
-| **Audit Date** | May 05, 2026 |
-| **Auditor** | Tooling Agents (bundled-pass mode) |
-| **ASVS Requirement** | ASVS 1.3.2 |
-| **Files Analyzed** | 0 relevant / 394 total |
-| **Files Skipped** | 36 |
-
-**Requirement description:** Verify that the application avoids the use of eval() or other dynamic code execution features such as Spring Expression Language (SpEL). Where there is no alternative, any user input being included must be sanitized before being executed.
-
-### Findings Overview
-
-| Severity | Count |
-|----------|-------|
-| 🔴 Critical | 0 |
-| 🟠 High | 0 |
-| 🟡 Medium | 0 |
-| 🟢 Low | 0 |
-
-## Result
-
-No relevant files found for ASVS requirement 1.3.2 within the audited scope.
-        
\ No newline at end of file
diff --git a/ASVS/reports/mahout/245aad3/all/1.5.1.md b/ASVS/reports/mahout/245aad3/all/1.5.1.md
deleted file mode 100644
index 97c2202..0000000
--- a/ASVS/reports/mahout/245aad3/all/1.5.1.md
+++ /dev/null
@@ -1,28 +0,0 @@
-# Security Audit Report: ASVS 1.5.1
-
-## Executive Summary
-
-| Field | Value |
-|-------|-------|
-| **Repository** | apache/mahout |
-| **Audit Date** | May 05, 2026 |
-| **Auditor** | Tooling Agents (bundled-pass mode) |
-| **ASVS Requirement** | ASVS 1.5.1 |
-| **Files Analyzed** | 0 relevant / 394 total |
-| **Files Skipped** | 36 |
-
-**Requirement description:** Verify that the application configures XML parsers to use a restrictive configuration and that unsafe features such as resolving external entities are disabled to prevent XML eXternal Entity (XXE) attacks.
-
-### Findings Overview
-
-| Severity | Count |
-|----------|-------|
-| 🔴 Critical | 0 |
-| 🟠 High | 0 |
-| 🟡 Medium | 0 |
-| 🟢 Low | 0 |
-
-## Result
-
-No relevant files found for ASVS requirement 1.5.1 within the audited scope.
-        
\ No newline at end of file
diff --git a/ASVS/reports/mahout/245aad3/all/10.4.1.md b/ASVS/reports/mahout/245aad3/all/10.4.1.md
deleted file mode 100644
index 9bdc32f..0000000
--- a/ASVS/reports/mahout/245aad3/all/10.4.1.md
+++ /dev/null
@@ -1,28 +0,0 @@
-# Security Audit Report: ASVS 10.4.1
-
-## Executive Summary
-
-| Field | Value |
-|-------|-------|
-| **Repository** | apache/mahout |
-| **Audit Date** | May 05, 2026 |
-| **Auditor** | Tooling Agents (bundled-pass mode) |
-| **ASVS Requirement** | ASVS 10.4.1 |
-| **Files Analyzed** | 0 relevant / 394 total |
-| **Files Skipped** | 36 |
-
-**Requirement description:** Verify that the authorization server validates redirect URIs based on a client-specific allowlist of pre-registered URIs using exact string comparison.
-
-### Findings Overview
-
-| Severity | Count |
-|----------|-------|
-| 🔴 Critical | 0 |
-| 🟠 High | 0 |
-| 🟡 Medium | 0 |
-| 🟢 Low | 0 |
-
-## Result
-
-No relevant files found for ASVS requirement 10.4.1 within the audited scope.
-        
\ No newline at end of file
diff --git a/ASVS/reports/mahout/245aad3/all/10.4.2.md b/ASVS/reports/mahout/245aad3/all/10.4.2.md
deleted file mode 100644
index 3c6d217..0000000
--- a/ASVS/reports/mahout/245aad3/all/10.4.2.md
+++ /dev/null
@@ -1,28 +0,0 @@
-# Security Audit Report: ASVS 10.4.2
-
-## Executive Summary
-
-| Field | Value |
-|-------|-------|
-| **Repository** | apache/mahout |
-| **Audit Date** | May 05, 2026 |
-| **Auditor** | Tooling Agents (bundled-pass mode) |
-| **ASVS Requirement** | ASVS 10.4.2 |
-| **Files Analyzed** | 0 relevant / 394 total |
-| **Files Skipped** | 36 |
-
-**Requirement description:** Verify that, if the authorization server returns the authorization code in the authorization response, it can be used only once for a token request. For the second valid request with an authorization code that has already been used to issue an access token, the authorization server must reject a…
-
-### Findings Overview
-
-| Severity | Count |
-|----------|-------|
-| 🔴 Critical | 0 |
-| 🟠 High | 0 |
-| 🟡 Medium | 0 |
-| 🟢 Low | 0 |
-
-## Result
-
-No relevant files found for ASVS requirement 10.4.2 within the audited scope.
-        
\ No newline at end of file
diff --git a/ASVS/reports/mahout/245aad3/all/10.4.3.md b/ASVS/reports/mahout/245aad3/all/10.4.3.md
deleted file mode 100644
index 018b0ab..0000000
--- a/ASVS/reports/mahout/245aad3/all/10.4.3.md
+++ /dev/null
@@ -1,28 +0,0 @@
-# Security Audit Report: ASVS 10.4.3
-
-## Executive Summary
-
-| Field | Value |
-|-------|-------|
-| **Repository** | apache/mahout |
-| **Audit Date** | May 05, 2026 |
-| **Auditor** | Tooling Agents (bundled-pass mode) |
-| **ASVS Requirement** | ASVS 10.4.3 |
-| **Files Analyzed** | 0 relevant / 394 total |
-| **Files Skipped** | 36 |
-
-**Requirement description:** Verify that the authorization code is short-lived. The maximum lifetime can be up to 10 minutes for L1 and L2 applications and up to 1 minute for L3 applications.
-
-### Findings Overview
-
-| Severity | Count |
-|----------|-------|
-| 🔴 Critical | 0 |
-| 🟠 High | 0 |
-| 🟡 Medium | 0 |
-| 🟢 Low | 0 |
-
-## Result
-
-No relevant files found for ASVS requirement 10.4.3 within the audited scope.
-        
\ No newline at end of file
diff --git a/ASVS/reports/mahout/245aad3/all/10.4.4.md b/ASVS/reports/mahout/245aad3/all/10.4.4.md
deleted file mode 100644
index 12a2a05..0000000
--- a/ASVS/reports/mahout/245aad3/all/10.4.4.md
+++ /dev/null
@@ -1,28 +0,0 @@
-# Security Audit Report: ASVS 10.4.4
-
-## Executive Summary
-
-| Field | Value |
-|-------|-------|
-| **Repository** | apache/mahout |
-| **Audit Date** | May 05, 2026 |
-| **Auditor** | Tooling Agents (bundled-pass mode) |
-| **ASVS Requirement** | ASVS 10.4.4 |
-| **Files Analyzed** | 0 relevant / 394 total |
-| **Files Skipped** | 36 |
-
-**Requirement description:** Verify that for a given client, the authorization server only allows the usage of grants that this client needs to use. Note that the grants 'token' (Implicit flow) and 'password' (Resource Owner Password Credentials flow) must no longer be used.
-
-### Findings Overview
-
-| Severity | Count |
-|----------|-------|
-| 🔴 Critical | 0 |
-| 🟠 High | 0 |
-| 🟡 Medium | 0 |
-| 🟢 Low | 0 |
-
-## Result
-
-No relevant files found for ASVS requirement 10.4.4 within the audited scope.
-        
\ No newline at end of file
diff --git a/ASVS/reports/mahout/245aad3/all/10.4.5.md b/ASVS/reports/mahout/245aad3/all/10.4.5.md
deleted file mode 100644
index c995731..0000000
--- a/ASVS/reports/mahout/245aad3/all/10.4.5.md
+++ /dev/null
@@ -1,28 +0,0 @@
-# Security Audit Report: ASVS 10.4.5
-
-## Executive Summary
-
-| Field | Value |
-|-------|-------|
-| **Repository** | apache/mahout |
-| **Audit Date** | May 05, 2026 |
-| **Auditor** | Tooling Agents (bundled-pass mode) |
-| **ASVS Requirement** | ASVS 10.4.5 |
-| **Files Analyzed** | 0 relevant / 394 total |
-| **Files Skipped** | 36 |
-
-**Requirement description:** Verify that the authorization server mitigates refresh token replay attacks for public clients, preferably using sender-constrained refresh tokens, i.e., Demonstrating Proof of Possession (DPoP) or Certificate-Bound Access Tokens using mutual TLS (mTLS). For L1 and L2 applications, refresh token…
-
-### Findings Overview
-
-| Severity | Count |
-|----------|-------|
-| 🔴 Critical | 0 |
-| 🟠 High | 0 |
-| 🟡 Medium | 0 |
-| 🟢 Low | 0 |
-
-## Result
-
-No relevant files found for ASVS requirement 10.4.5 within the audited scope.
-        
\ No newline at end of file
diff --git a/ASVS/reports/mahout/245aad3/all/11.3.1.md b/ASVS/reports/mahout/245aad3/all/11.3.1.md
deleted file mode 100644
index 11279b7..0000000
--- a/ASVS/reports/mahout/245aad3/all/11.3.1.md
+++ /dev/null
@@ -1,28 +0,0 @@
-# Security Audit Report: ASVS 11.3.1
-
-## Executive Summary
-
-| Field | Value |
-|-------|-------|
-| **Repository** | apache/mahout |
-| **Audit Date** | May 05, 2026 |
-| **Auditor** | Tooling Agents (bundled-pass mode) |
-| **ASVS Requirement** | ASVS 11.3.1 |
-| **Files Analyzed** | 0 relevant / 394 total |
-| **Files Skipped** | 36 |
-
-**Requirement description:** Verify that insecure block modes (e.g., ECB) and weak padding schemes (e.g., PKCS#1 v1.5) are not used.
-
-### Findings Overview
-
-| Severity | Count |
-|----------|-------|
-| 🔴 Critical | 0 |
-| 🟠 High | 0 |
-| 🟡 Medium | 0 |
-| 🟢 Low | 0 |
-
-## Result
-
-No relevant files found for ASVS requirement 11.3.1 within the audited scope.
-        
\ No newline at end of file
diff --git a/ASVS/reports/mahout/245aad3/all/11.3.2.md b/ASVS/reports/mahout/245aad3/all/11.3.2.md
deleted file mode 100644
index 0ac359a..0000000
--- a/ASVS/reports/mahout/245aad3/all/11.3.2.md
+++ /dev/null
@@ -1,28 +0,0 @@
-# Security Audit Report: ASVS 11.3.2
-
-## Executive Summary
-
-| Field | Value |
-|-------|-------|
-| **Repository** | apache/mahout |
-| **Audit Date** | May 05, 2026 |
-| **Auditor** | Tooling Agents (bundled-pass mode) |
-| **ASVS Requirement** | ASVS 11.3.2 |
-| **Files Analyzed** | 0 relevant / 394 total |
-| **Files Skipped** | 36 |
-
-**Requirement description:** Verify that only approved ciphers and modes such as AES with GCM are used.
-
-### Findings Overview
-
-| Severity | Count |
-|----------|-------|
-| 🔴 Critical | 0 |
-| 🟠 High | 0 |
-| 🟡 Medium | 0 |
-| 🟢 Low | 0 |
-
-## Result
-
-No relevant files found for ASVS requirement 11.3.2 within the audited scope.
-        
\ No newline at end of file
diff --git a/ASVS/reports/mahout/245aad3/all/11.4.1.md b/ASVS/reports/mahout/245aad3/all/11.4.1.md
deleted file mode 100644
index 8afbc8e..0000000
--- a/ASVS/reports/mahout/245aad3/all/11.4.1.md
+++ /dev/null
@@ -1,28 +0,0 @@
-# Security Audit Report: ASVS 11.4.1
-
-## Executive Summary
-
-| Field | Value |
-|-------|-------|
-| **Repository** | apache/mahout |
-| **Audit Date** | May 05, 2026 |
-| **Auditor** | Tooling Agents (bundled-pass mode) |
-| **ASVS Requirement** | ASVS 11.4.1 |
-| **Files Analyzed** | 0 relevant / 394 total |
-| **Files Skipped** | 36 |
-
-**Requirement description:** Verify that only approved hash functions are used for general cryptographic use cases, including digital signatures, HMAC, KDF, and random bit generation. Disallowed hash functions, such as MD5, must not be used for any cryptographic purpose.
-
-### Findings Overview
-
-| Severity | Count |
-|----------|-------|
-| 🔴 Critical | 0 |
-| 🟠 High | 0 |
-| 🟡 Medium | 0 |
-| 🟢 Low | 0 |
-
-## Result
-
-No relevant files found for ASVS requirement 11.4.1 within the audited scope.
-        
\ No newline at end of file
diff --git a/ASVS/reports/mahout/245aad3/all/12.1.1.md b/ASVS/reports/mahout/245aad3/all/12.1.1.md
deleted file mode 100644
index a2e7301..0000000
--- a/ASVS/reports/mahout/245aad3/all/12.1.1.md
+++ /dev/null
@@ -1,28 +0,0 @@
-# Security Audit Report: ASVS 12.1.1
-
-## Executive Summary
-
-| Field | Value |
-|-------|-------|
-| **Repository** | apache/mahout |
-| **Audit Date** | May 05, 2026 |
-| **Auditor** | Tooling Agents (bundled-pass mode) |
-| **ASVS Requirement** | ASVS 12.1.1 |
-| **Files Analyzed** | 0 relevant / 394 total |
-| **Files Skipped** | 36 |
-
-**Requirement description:** Verify that only the latest recommended versions of the TLS protocol are enabled, such as TLS 1.2 and TLS 1.3. The latest version of the TLS protocol must be the preferred option.
-
-### Findings Overview
-
-| Severity | Count |
-|----------|-------|
-| 🔴 Critical | 0 |
-| 🟠 High | 0 |
-| 🟡 Medium | 0 |
-| 🟢 Low | 0 |
-
-## Result
-
-No relevant files found for ASVS requirement 12.1.1 within the audited scope.
-        
\ No newline at end of file
diff --git a/ASVS/reports/mahout/245aad3/all/12.2.1.md b/ASVS/reports/mahout/245aad3/all/12.2.1.md
deleted file mode 100644
index 68d8837..0000000
--- a/ASVS/reports/mahout/245aad3/all/12.2.1.md
+++ /dev/null
@@ -1,28 +0,0 @@
-# Security Audit Report: ASVS 12.2.1
-
-## Executive Summary
-
-| Field | Value |
-|-------|-------|
-| **Repository** | apache/mahout |
-| **Audit Date** | May 05, 2026 |
-| **Auditor** | Tooling Agents (bundled-pass mode) |
-| **ASVS Requirement** | ASVS 12.2.1 |
-| **Files Analyzed** | 0 relevant / 394 total |
-| **Files Skipped** | 36 |
-
-**Requirement description:** Verify that TLS is used for all connectivity between a client and external facing, HTTP-based services, and does not fall back to insecure or unencrypted communications.
-
-### Findings Overview
-
-| Severity | Count |
-|----------|-------|
-| 🔴 Critical | 0 |
-| 🟠 High | 0 |
-| 🟡 Medium | 0 |
-| 🟢 Low | 0 |
-
-## Result
-
-No relevant files found for ASVS requirement 12.2.1 within the audited scope.
-        
\ No newline at end of file
diff --git a/ASVS/reports/mahout/245aad3/all/12.2.2.md b/ASVS/reports/mahout/245aad3/all/12.2.2.md
deleted file mode 100644
index 7c893fe..0000000
--- a/ASVS/reports/mahout/245aad3/all/12.2.2.md
+++ /dev/null
@@ -1,114 +0,0 @@
-# Security Audit Report: ASVS 12.2.2
-
-## Executive Summary
-
-| Field | Value |
-|-------|-------|
-| **Repository** | apache/mahout |
-| **Audit Date** | May 05, 2026 |
-| **Auditor** | Tooling Agents (bundled-pass mode) |
-| **ASVS Requirement** | ASVS 12.2.2 |
-| **Files Analyzed** | 14 relevant / 394 total |
-| **Files Skipped** | 36 |
-
-**Requirement description:** Verify that external facing services use publicly trusted TLS certificates.
-
-### Findings Overview
-
-| Severity | Count |
-|----------|-------|
-| 🔴 Critical | 0 |
-| 🟠 High | 0 |
-| 🟡 Medium | 1 |
-| 🟢 Low | 0 |
-
----
-
-## ASVS-12.2.2: HTTPS Communication with External Facing Services
-
-### Findings for 12.2.2
-
-#### [MEDIUM]
-**Finding ID:** ASVS-1222-MED-001
-**Title:** Remote IO feature lacks visible TLS certificate validation configuration
-
-**File location:** `qdp/qdp-core/src/lib.rs`, line 24; `docs/qdp/api.md` (remote URL documentation); `docs/qdp/getting-started.md` (remote URL examples)
-
-**Vulnerable code quote:**
-```rust
-// lib.rs, line 24
-#[cfg(feature = "remote-io")]
-pub mod remote;
-```
-
-```markdown
-<!-- docs/qdp/api.md -->
-- remote URL (`s3://bucket/key`, `gs://bucket/key`) when built with `remote-io`
-```
-
-**Data flow:** User-supplied S3/GCS URL → `QdpEngine.encode()` → `remote` module (not provided) → external cloud storage
-
-**Proof of concept:** Not directly exploitable from provided code alone, but the `remote-io` feature conditionally enables cloud object storage access. The implementation of the `remote` module is not included in the audit scope, so verification of TLS certificate validation is impossible.
-
-**Impact:** If the `remote` module does not enforce publicly trusted TLS certificates or allows insecure connections, data in transit to/from S3/GCS could be intercepted via man-in-the-middle attacks. Since the data loaded may include training datasets or model parameters, integrity and confidentiality could be compromised.
-
-**Remediation:**
-- Verify the `remote` module (not provided) enforces TLS 1.2+ with publicly trusted certificates
-- Ensure no `VERIFY_SSL=false` or equivalent bypass is available
-- Document TLS requirements for remote IO connections
-
-```rust
-// Example: ensure reqwest/hyper client enforces TLS
-// In remote module implementation:
-let client = reqwest::Client::builder()
-    .min_tls_version(reqwest::tls::Version::TLS_1_2)
-    .use_rustls_tls() // Uses Mozilla's root certificate store
-    .build()?;
-```
-
-### Security Controls Inventory for 12.2.2
-
-| Control | Location | Status |
-|---------|----------|--------|
-| Remote IO module | `qdp/qdp-core/src/remote.rs` (conditionally compiled) | **NOT IN SCOPE** — module not provided for audit |
-| Query string/fragment rejection | Documented in `api.md` and `getting-started.md` | ✅ Documented (reduces URL-based information leakage) |
-| Feature gate for remote IO | `lib.rs` line 24: `#[cfg(feature = "remote-io")]` | ✅ Remote IO is opt-in via Cargo feature |
-
-### Positive Patterns for 12.2.2
-
-1. **Feature-gated remote IO**: Remote storage access requires explicit opt-in via the `remote-io` Cargo feature flag, reducing default attack surface.
-2. **URL fragment/query rejection**: Documentation explicitly states "Remote URL query/fragment is not supported (`?versionId=...`, `#...`)", which limits URL complexity and potential for parameter injection.
-
----
-
-
-
-## Cross-cutting Architecture Observations
-
-1. **Library vs. Web Application**: The audited codebase is a GPU computing library (Rust + Python), not a web application. Several ASVS requirements (12.2.2, 14.3.1) have limited applicability. The most impactful findings are in the documentation/process domain (15.1.1, 15.2.1).
-
-2. **Unsafe Code Boundary**: The codebase contains significant `unsafe` Rust code for CUDA FFI operations. While the code demonstrates disciplined unsafe usage with safety documentation, pointer validation, and RAII wrappers, this represents a "dangerous functionality" category per ASVS 15.1.1 that should be formally documented.
-
-3. **File Format Parsers as Attack Surface**: The library accepts untrusted file inputs in multiple formats (Parquet, Arrow IPC, NumPy, PyTorch, TensorFlow protobuf). These parsers process binary data from potentially untrusted sources and represent the highest-risk attack surface. The parsing is delegated to well-known libraries (Arrow, etc.), but vulnerability tracking is essential.
-
-4. **Remote IO Feature**: The `remote-io` feature enables cloud storage access, introducing network-level security requirements (TLS, authentication). The implementation was not provided for audit, creating a significant blind spot.
-
-5. **Credential Management in Release Process**: The `dev/release.md` correctly advises storing `.pypirc` in `~/.pypirc` with `chmod 600` and warns against placing it in the project directory — a solid operational security practice.
-
-## Cross-cutting Recommendations
-
-### Immediate (0–30 days)
-1. **Create dependency vulnerability management policy** (ASVS-1511-MED-001): Define remediation timeframes for Critical/High/Medium/Low severity vulnerabilities in a `SECURITY.md` or equivalent document.
-2. **Add `cargo audit` to CI pipeline** (ASVS-1521-MED-001): Implement automated Rust dependency vulnerability scanning on every PR and scheduled weekly runs.
-3. **Document dangerous components**: Formally identify `qdp_kernels`, `cudarc`, and file format parsers as "dangerous functionality" per ASVS 15.1.1 definitions.
-
-### Short-term (30–90 days)
-4. **Audit the `remote` module** (ASVS-1222-MED-001): Verify TLS certificate validation for S3/GCS connections. Ensure publicly trusted certificates are enforced and no bypass exists.
-5. **Add deployment hardening documentation** (ASVS-1341-MED-001): If QDP or its documentation is deployed as a web service, document exclusion of `.git` and other VCS metadata.
-6. **Add Python dependency auditing**: Implement `pip-audit` or `safety` checks for the Python package surface.
-
-### Long-term (90+ days)
-7. **SBOM generation**: Integrate Software Bill of Materials generation into the release process for both Rust (`cargo sbom`) and Python (`cyclonedx-py`) components.
-8. **Sanitize paths in error messages** (ASVS-1421-LOW-001): Implement path redaction for remote URLs in error messages to prevent information leakage of internal bucket/key names.
-9. **Sandboxing for file parsers**: Consider containerization or process isolation for file format parsing (Parquet, Arrow, TensorFlow protobuf) to limit blast radius from parser vulnerabilities.
-        
\ No newline at end of file
diff --git a/ASVS/reports/mahout/245aad3/all/13.4.1.md b/ASVS/reports/mahout/245aad3/all/13.4.1.md
deleted file mode 100644
index edbf54b..0000000
--- a/ASVS/reports/mahout/245aad3/all/13.4.1.md
+++ /dev/null
@@ -1,127 +0,0 @@
-# Security Audit Report: ASVS 13.4.1
-
-## Executive Summary
-
-| Field | Value |
-|-------|-------|
-| **Repository** | apache/mahout |
-| **Audit Date** | May 05, 2026 |
-| **Auditor** | Tooling Agents (bundled-pass mode) |
-| **ASVS Requirement** | ASVS 13.4.1 |
-| **Files Analyzed** | 14 relevant / 394 total |
-| **Files Skipped** | 36 |
-
-**Requirement description:** Verify that the application is deployed either without any source control metadata, including the .git or .svn folders, or in a way that these folders are inaccessible both externally and to the application itself.
-
-### Findings Overview
-
-| Severity | Count |
-|----------|-------|
-| 🔴 Critical | 0 |
-| 🟠 High | 0 |
-| 🟡 Medium | 1 |
-| 🟢 Low | 0 |
-
----
-
-## ASVS-13.4.1: Unintended Information Leakage — Source Control Metadata
-
-### Findings for 13.4.1
-
-#### [MEDIUM]
-**Finding ID:** ASVS-1341-MED-001
-**Title:** No deployment configuration to exclude source control metadata from production artifacts
-
-**File location:** `docs/qdp/getting-started.md` (development setup); `dev/release.md` (release process)
-
-**Vulnerable code quote:**
-```markdown
-<!-- docs/qdp/getting-started.md -->
-git clone https://github.com/apache/mahout.git
-cd mahout
-uv sync --active --project qdp/qdp-python --group dev
-source .venv/bin/activate
-uv run --active maturin develop --manifest-path qdp/qdp-python/Cargo.toml
-```
-
-```markdown
-<!-- dev/release.md -->
-git checkout main
-git pull upstream main
-git checkout -b v0.5-stable
-git push -u upstream v0.5-stable
-```
-
-**Data flow:** Source repository (`.git/`) → development/build environment → packaged artifact → deployment
-
-**Impact:** If the application is deployed from a git checkout (e.g., in a container built from the repository clone, or served via a web-accessible directory), the `.git` folder could expose:
-- Full repository history including potentially sensitive commits
-- Internal developer information (email addresses, commit messages)
-- Configuration details that aid reconnaissance
-
-**Proof of concept:** If QDP's Python package or documentation site is served from a directory containing `.git`:
-```
-GET /.git/config HTTP/1.1
-# Could expose: remote URLs, branch configurations, contributor info
-```
-
-**Remediation:**
-- Add `.dockerignore` or equivalent build exclusion rules:
-```dockerfile
-# .dockerignore
-.git
-.svn
-.gitignore
-dev/
-```
-- For Python packages distributed via PyPI (the documented release path), `maturin build` and `uv build` produce wheel/sdist artifacts that **do not** include `.git` — this is a positive pattern.
-- Document deployment best practices that explicitly exclude VCS metadata.
-
-### Security Controls Inventory for 13.4.1
-
-| Control | Location | Status |
-|---------|----------|--------|
-| PyPI package build (maturin/uv) | `dev/release.md` Step 1.2 | ✅ Wheel/sdist artifacts exclude `.git` by default |
-| Docker/container deployment config | Not found | ❌ No Dockerfile or container config provided |
-| Web server config (documentation site) | Not found | ❌ No web server config blocking `.git` access |
-| `.gitignore` / build exclusions | Not in scope | Not verifiable from provided files |
-
-### Positive Patterns for 13.4.1
-
-1. **Package-based distribution**: The release process builds wheels and sdist via `uv build` and `maturin build`, which inherently exclude `.git` directories from distribution artifacts.
-2. **Apache SVN source publication**: Final release artifacts are built from Apache SVN source (`dist.apache.org`), adding a layer of separation from the git repository.
-3. **Separate release branch model**: Release candidates are tagged and built from stable branches, reducing the chance of development artifacts leaking into releases.
-
----
-
-
-
-## Cross-cutting Architecture Observations
-
-1. **Library vs. Web Application**: The audited codebase is a GPU computing library (Rust + Python), not a web application. Several ASVS requirements (12.2.2, 14.3.1) have limited applicability. The most impactful findings are in the documentation/process domain (15.1.1, 15.2.1).
-
-2. **Unsafe Code Boundary**: The codebase contains significant `unsafe` Rust code for CUDA FFI operations. While the code demonstrates disciplined unsafe usage with safety documentation, pointer validation, and RAII wrappers, this represents a "dangerous functionality" category per ASVS 15.1.1 that should be formally documented.
-
-3. **File Format Parsers as Attack Surface**: The library accepts untrusted file inputs in multiple formats (Parquet, Arrow IPC, NumPy, PyTorch, TensorFlow protobuf). These parsers process binary data from potentially untrusted sources and represent the highest-risk attack surface. The parsing is delegated to well-known libraries (Arrow, etc.), but vulnerability tracking is essential.
-
-4. **Remote IO Feature**: The `remote-io` feature enables cloud storage access, introducing network-level security requirements (TLS, authentication). The implementation was not provided for audit, creating a significant blind spot.
-
-5. **Credential Management in Release Process**: The `dev/release.md` correctly advises storing `.pypirc` in `~/.pypirc` with `chmod 600` and warns against placing it in the project directory — a solid operational security practice.
-
-## Cross-cutting Recommendations
-
-### Immediate (0–30 days)
-1. **Create dependency vulnerability management policy** (ASVS-1511-MED-001): Define remediation timeframes for Critical/High/Medium/Low severity vulnerabilities in a `SECURITY.md` or equivalent document.
-2. **Add `cargo audit` to CI pipeline** (ASVS-1521-MED-001): Implement automated Rust dependency vulnerability scanning on every PR and scheduled weekly runs.
-3. **Document dangerous components**: Formally identify `qdp_kernels`, `cudarc`, and file format parsers as "dangerous functionality" per ASVS 15.1.1 definitions.
-
-### Short-term (30–90 days)
-4. **Audit the `remote` module** (ASVS-1222-MED-001): Verify TLS certificate validation for S3/GCS connections. Ensure publicly trusted certificates are enforced and no bypass exists.
-5. **Add deployment hardening documentation** (ASVS-1341-MED-001): If QDP or its documentation is deployed as a web service, document exclusion of `.git` and other VCS metadata.
-6. **Add Python dependency auditing**: Implement `pip-audit` or `safety` checks for the Python package surface.
-
-### Long-term (90+ days)
-7. **SBOM generation**: Integrate Software Bill of Materials generation into the release process for both Rust (`cargo sbom`) and Python (`cyclonedx-py`) components.
-8. **Sanitize paths in error messages** (ASVS-1421-LOW-001): Implement path redaction for remote URLs in error messages to prevent information leakage of internal bucket/key names.
-9. **Sandboxing for file parsers**: Consider containerization or process isolation for file format parsing (Parquet, Arrow, TensorFlow protobuf) to limit blast radius from parser vulnerabilities.
-        
\ No newline at end of file
diff --git a/ASVS/reports/mahout/245aad3/all/14.2.1.md b/ASVS/reports/mahout/245aad3/all/14.2.1.md
deleted file mode 100644
index 180e53d..0000000
--- a/ASVS/reports/mahout/245aad3/all/14.2.1.md
+++ /dev/null
@@ -1,132 +0,0 @@
-# Security Audit Report: ASVS 14.2.1
-
-## Executive Summary
-
-| Field | Value |
-|-------|-------|
-| **Repository** | apache/mahout |
-| **Audit Date** | May 05, 2026 |
-| **Auditor** | Tooling Agents (bundled-pass mode) |
-| **ASVS Requirement** | ASVS 14.2.1 |
-| **Files Analyzed** | 14 relevant / 394 total |
-| **Files Skipped** | 36 |
-
-**Requirement description:** Verify that sensitive data is only sent to the server in the HTTP message body or header fields, and that the URL and query string do not contain sensitive information, such as an API key or session token.
-
-### Findings Overview
-
-| Severity | Count |
-|----------|-------|
-| 🔴 Critical | 0 |
-| 🟠 High | 0 |
-| 🟡 Medium | 0 |
-| 🟢 Low | 1 |
-
----
-
-## ASVS-14.2.1: General Data Protection — Sensitive Data in URLs
-
-### Findings for 14.2.1
-
-#### [LOW]
-**Finding ID:** ASVS-1421-LOW-001
-**Title:** Remote S3/GCS URL paths may contain sensitive bucket names or object keys in logs
-
-**File location:** `qdp/qdp-core/src/lib.rs` (encode_from_parquet, lines referencing `path: &str`); `docs/qdp/getting-started.md` (remote URL examples)
-
-**Vulnerable code quote:**
-```markdown
-<!-- docs/qdp/getting-started.md -->
-engine.encode("s3://my-bucket/path/data.parquet", num_qubits=10, encoding_method="amplitude")
-engine.encode("gs://my-bucket/path/data.parquet", num_qubits=10, encoding_method="amplitude")
-```
-
-```rust
-// lib.rs - encode_from_parquet accepts path as &str
-pub fn encode_from_parquet(
-    &self,
-    path: &str,
-    num_qubits: usize,
-    encoding_method: &str,
-) -> Result<*mut DLManagedTensor> {
-    platform::encode_from_parquet(self, path, num_qubits, encoding_method)
-}
-```
-
-**Data flow:** User-supplied URL string (may include bucket/key paths) → `encode_from_parquet` / `encode` → `platform` module → potentially logged or included in error messages
-
-**Impact:** While query strings are explicitly rejected (positive pattern), S3/GCS bucket names and object key paths passed as function arguments could appear in error messages or logs. Object keys may contain sensitive identifiers (customer IDs, dataset names, internal project names). The `MahoutError::Io(String)` variant could propagate these paths.
-
-**Proof of concept:**
-```python
-# Path contains sensitive internal naming
-engine.encode("s3://company-internal-ml-prod/customer-12345/private-dataset.parquet",
-              num_qubits=10, encoding_method="amplitude")
-# If this fails, error message may contain the full path
-```
-
-**Remediation:**
-- Sanitize file paths in error messages to redact bucket names or keys
-- Consider structured logging that separates path components for selective redaction
-
-```rust
-// Example: redact bucket/key in error messages
-fn sanitize_remote_path(path: &str) -> String {
-    if path.starts_with("s3://") || path.starts_with("gs://") {
-        let parts: Vec<&str> = path.splitn(4, '/').collect();
-        if parts.len() >= 4 {
-            return format!("{}//{}/<redacted>", parts[0], parts[2]);
-        }
-    }
-    path.to_string()
-}
-```
-
-### Security Controls Inventory for 14.2.1
-
-| Control | Location | Status |
-|---------|----------|--------|
-| Query string/fragment rejection | Documented in `api.md`, `getting-started.md` | ✅ Explicitly rejects `?versionId=...`, `#...` |
-| URL path sanitization in errors | Error types in `error.rs` | ❌ No path sanitization in `MahoutError::Io(String)` |
-| No HTTP API endpoints | Entire codebase | ✅ Library API, not a web service — no HTTP query strings for API keys |
-| No session tokens in URLs | Entire codebase | ✅ Not applicable — library has no session management |
-
-### Positive Patterns for 14.2.1
-
-1. **Query string/fragment rejection**: The API explicitly documents and rejects query strings and fragments in remote URLs, preventing credential leakage via URL parameters like `?AWSAccessKeyId=...`.
-2. **Library API design**: As a Python/Rust library (not a web service), there are no HTTP endpoints, query parameters, or URL routing that could leak sensitive data. API keys and session tokens are not part of the API surface.
-3. **Typed API with `&[f64]`/`&[f32]`**: Encoding data is passed as typed arrays, not as URL-encoded strings, eliminating URL-based data leakage for the core encoding path.
-
----
-
-
-
-## Cross-cutting Architecture Observations
-
-1. **Library vs. Web Application**: The audited codebase is a GPU computing library (Rust + Python), not a web application. Several ASVS requirements (12.2.2, 14.3.1) have limited applicability. The most impactful findings are in the documentation/process domain (15.1.1, 15.2.1).
-
-2. **Unsafe Code Boundary**: The codebase contains significant `unsafe` Rust code for CUDA FFI operations. While the code demonstrates disciplined unsafe usage with safety documentation, pointer validation, and RAII wrappers, this represents a "dangerous functionality" category per ASVS 15.1.1 that should be formally documented.
-
-3. **File Format Parsers as Attack Surface**: The library accepts untrusted file inputs in multiple formats (Parquet, Arrow IPC, NumPy, PyTorch, TensorFlow protobuf). These parsers process binary data from potentially untrusted sources and represent the highest-risk attack surface. The parsing is delegated to well-known libraries (Arrow, etc.), but vulnerability tracking is essential.
-
-4. **Remote IO Feature**: The `remote-io` feature enables cloud storage access, introducing network-level security requirements (TLS, authentication). The implementation was not provided for audit, creating a significant blind spot.
-
-5. **Credential Management in Release Process**: The `dev/release.md` correctly advises storing `.pypirc` in `~/.pypirc` with `chmod 600` and warns against placing it in the project directory — a solid operational security practice.
-
-## Cross-cutting Recommendations
-
-### Immediate (0–30 days)
-1. **Create dependency vulnerability management policy** (ASVS-1511-MED-001): Define remediation timeframes for Critical/High/Medium/Low severity vulnerabilities in a `SECURITY.md` or equivalent document.
-2. **Add `cargo audit` to CI pipeline** (ASVS-1521-MED-001): Implement automated Rust dependency vulnerability scanning on every PR and scheduled weekly runs.
-3. **Document dangerous components**: Formally identify `qdp_kernels`, `cudarc`, and file format parsers as "dangerous functionality" per ASVS 15.1.1 definitions.
-
-### Short-term (30–90 days)
-4. **Audit the `remote` module** (ASVS-1222-MED-001): Verify TLS certificate validation for S3/GCS connections. Ensure publicly trusted certificates are enforced and no bypass exists.
-5. **Add deployment hardening documentation** (ASVS-1341-MED-001): If QDP or its documentation is deployed as a web service, document exclusion of `.git` and other VCS metadata.
-6. **Add Python dependency auditing**: Implement `pip-audit` or `safety` checks for the Python package surface.
-
-### Long-term (90+ days)
-7. **SBOM generation**: Integrate Software Bill of Materials generation into the release process for both Rust (`cargo sbom`) and Python (`cyclonedx-py`) components.
-8. **Sanitize paths in error messages** (ASVS-1421-LOW-001): Implement path redaction for remote URLs in error messages to prevent information leakage of internal bucket/key names.
-9. **Sandboxing for file parsers**: Consider containerization or process isolation for file format parsing (Parquet, Arrow, TensorFlow protobuf) to limit blast radius from parser vulnerabilities.
-        
\ No newline at end of file
diff --git a/ASVS/reports/mahout/245aad3/all/14.3.1.md b/ASVS/reports/mahout/245aad3/all/14.3.1.md
deleted file mode 100644
index e7ff10a..0000000
--- a/ASVS/reports/mahout/245aad3/all/14.3.1.md
+++ /dev/null
@@ -1,89 +0,0 @@
-# Security Audit Report: ASVS 14.3.1
-
-## Executive Summary
-
-| Field | Value |
-|-------|-------|
-| **Repository** | apache/mahout |
-| **Audit Date** | May 05, 2026 |
-| **Auditor** | Tooling Agents (bundled-pass mode) |
-| **ASVS Requirement** | ASVS 14.3.1 |
-| **Files Analyzed** | 14 relevant / 394 total |
-| **Files Skipped** | 36 |
-
-**Requirement description:** Verify that authenticated data is cleared from client storage, such as the browser DOM, after the client or session is terminated. The 'Clear-Site-Data' HTTP response header field may be able to help with this but the client-side should also be able to clear up if the server connection is not…
-
-### Findings Overview
-
-| Severity | Count |
-|----------|-------|
-| 🔴 Critical | 0 |
-| 🟠 High | 0 |
-| 🟡 Medium | 0 |
-| 🟢 Low | 0 |
-
----
-
-## ASVS-14.3.1: Client-side Data Protection — Clearing Authenticated Data
-
-### Findings for 14.3.1
-
-No findings detected.
-
-**Rationale:** This requirement targets web applications with browser-based clients using DOM storage, cookies, localStorage, sessionStorage, or similar client-side storage mechanisms. The audited codebase is a GPU computing library consumed via Python, with no browser client, no HTTP sessions, no client-side storage, and no web-facing user interface.
-
-The closest analog — DLPack memory lifecycle management — is correctly implemented:
-
-- **Single-consume DLPack capsules**: Prevent double-use of GPU memory handles (`free_dlpack_tensor` in `dlpack.rs`)
-- **Arc reference counting**: GPU memory is freed when all references are dropped
-- **RAII patterns**: `PinnedHostBuffer`, `GpuStateVector`, and `PipelineContext` all implement `Drop` for deterministic cleanup
-
-### Security Controls Inventory for 14.3.1
-
-| Control | Location | Status |
-|---------|----------|--------|
-| DLPack single-consume enforcement | `dlpack.rs`: `free_dlpack_tensor()`, deleter takes ownership | ✅ Prevents stale GPU memory access |
-| Arc-based buffer lifecycle | `memory.rs`: `GpuStateVector::buffer: Arc<BufferStorage>` | ✅ Reference counting for safe cleanup |
-| RAII Drop implementations | `memory.rs` (PinnedHostBuffer), `pipeline.rs` (PipelineContext), `overlap_tracker.rs` (OverlapTracker) | ✅ Deterministic resource cleanup |
-| Clear-Site-Data header | Not applicable | N/A — no HTTP responses |
-| Client-side cleanup logic | Not applicable | N/A — no browser client |
-
-### Positive Patterns for 14.3.1
-
-1. **Deterministic GPU memory cleanup**: All GPU-resident data structures implement `Drop` traits that free CUDA memory, ensuring data is released when Rust ownership ends.
-2. **Single-consume DLPack design**: The `DLManagedTensor` deleter is set to `None` after first invocation via `managed.deleter.take()` in `free_dlpack_tensor`, preventing double-free and ensuring cleanup occurs exactly once.
-3. **Pinned memory cleanup**: `PinnedHostBuffer::drop()` calls `cudaFreeHost` with error logging, ensuring page-locked host memory is released.
-
----
-
-
-
-## Cross-cutting Architecture Observations
-
-1. **Library vs. Web Application**: The audited codebase is a GPU computing library (Rust + Python), not a web application. Several ASVS requirements (12.2.2, 14.3.1) have limited applicability. The most impactful findings are in the documentation/process domain (15.1.1, 15.2.1).
-
-2. **Unsafe Code Boundary**: The codebase contains significant `unsafe` Rust code for CUDA FFI operations. While the code demonstrates disciplined unsafe usage with safety documentation, pointer validation, and RAII wrappers, this represents a "dangerous functionality" category per ASVS 15.1.1 that should be formally documented.
-
-3. **File Format Parsers as Attack Surface**: The library accepts untrusted file inputs in multiple formats (Parquet, Arrow IPC, NumPy, PyTorch, TensorFlow protobuf). These parsers process binary data from potentially untrusted sources and represent the highest-risk attack surface. The parsing is delegated to well-known libraries (Arrow, etc.), but vulnerability tracking is essential.
-
-4. **Remote IO Feature**: The `remote-io` feature enables cloud storage access, introducing network-level security requirements (TLS, authentication). The implementation was not provided for audit, creating a significant blind spot.
-
-5. **Credential Management in Release Process**: The `dev/release.md` correctly advises storing `.pypirc` in `~/.pypirc` with `chmod 600` and warns against placing it in the project directory — a solid operational security practice.
-
-## Cross-cutting Recommendations
-
-### Immediate (0–30 days)
-1. **Create dependency vulnerability management policy** (ASVS-1511-MED-001): Define remediation timeframes for Critical/High/Medium/Low severity vulnerabilities in a `SECURITY.md` or equivalent document.
-2. **Add `cargo audit` to CI pipeline** (ASVS-1521-MED-001): Implement automated Rust dependency vulnerability scanning on every PR and scheduled weekly runs.
-3. **Document dangerous components**: Formally identify `qdp_kernels`, `cudarc`, and file format parsers as "dangerous functionality" per ASVS 15.1.1 definitions.
-
-### Short-term (30–90 days)
-4. **Audit the `remote` module** (ASVS-1222-MED-001): Verify TLS certificate validation for S3/GCS connections. Ensure publicly trusted certificates are enforced and no bypass exists.
-5. **Add deployment hardening documentation** (ASVS-1341-MED-001): If QDP or its documentation is deployed as a web service, document exclusion of `.git` and other VCS metadata.
-6. **Add Python dependency auditing**: Implement `pip-audit` or `safety` checks for the Python package surface.
-
-### Long-term (90+ days)
-7. **SBOM generation**: Integrate Software Bill of Materials generation into the release process for both Rust (`cargo sbom`) and Python (`cyclonedx-py`) components.
-8. **Sanitize paths in error messages** (ASVS-1421-LOW-001): Implement path redaction for remote URLs in error messages to prevent information leakage of internal bucket/key names.
-9. **Sandboxing for file parsers**: Consider containerization or process isolation for file format parsing (Parquet, Arrow, TensorFlow protobuf) to limit blast radius from parser vulnerabilities.
-        
\ No newline at end of file
diff --git a/ASVS/reports/mahout/245aad3/all/15.1.1.md b/ASVS/reports/mahout/245aad3/all/15.1.1.md
deleted file mode 100644
index c97403b..0000000
--- a/ASVS/reports/mahout/245aad3/all/15.1.1.md
+++ /dev/null
@@ -1,140 +0,0 @@
-# Security Audit Report: ASVS 15.1.1
-
-## Executive Summary
-
-| Field | Value |
-|-------|-------|
-| **Repository** | apache/mahout |
-| **Audit Date** | May 05, 2026 |
-| **Auditor** | Tooling Agents (bundled-pass mode) |
-| **ASVS Requirement** | ASVS 15.1.1 |
-| **Files Analyzed** | 14 relevant / 394 total |
-| **Files Skipped** | 36 |
-
-**Requirement description:** Verify that application documentation defines risk based remediation time frames for 3rd party component versions with vulnerabilities and for updating libraries in general, to minimize the risk from these components.
-
-### Findings Overview
-
-| Severity | Count |
-|----------|-------|
-| 🔴 Critical | 0 |
-| 🟠 High | 0 |
-| 🟡 Medium | 1 |
-| 🟢 Low | 0 |
-
----
-
-## ASVS-15.1.1: Secure Coding and Architecture Documentation — Remediation Timeframes
-
-### Findings for 15.1.1
-
-#### [MEDIUM]
-**Finding ID:** ASVS-1511-MED-001
-**Title:** No documented risk-based remediation timeframes for third-party component vulnerabilities
-
-**File location:** `dev/release.md` (entire file); all documentation files
-
-**Vulnerable code quote:**
-```markdown
-<!-- dev/release.md does not contain any section about dependency vulnerability management -->
-<!-- The release process covers: branching, building, signing, voting, publishing -->
-<!-- But no mention of: -->
-<!--   - Dependency vulnerability scanning -->
-<!--   - Remediation timeframes (critical: X days, high: Y days, etc.) -->
-<!--   - SBOM generation -->
-<!--   - Dependency audit procedures -->
-```
-
-**Data flow:** N/A — this is a documentation/process gap
-
-**Impact:** Without defined remediation timeframes:
-- Known vulnerabilities in dependencies (`cudarc`, `thiserror`, `arrow`, `parquet`, CUDA runtime, PyTorch) may persist indefinitely
-- No consistent standard for when updates must be applied
-- Increased window of exposure for supply chain attacks
-- Inconsistent risk treatment across the project
-
-**Third-party dependencies identified from code:**
-| Dependency | Usage | Risk Category |
-|-----------|-------|---------------|
-| `cudarc` | CUDA device management | High (GPU driver interface, FFI) |
-| `qdp_kernels` | CUDA kernel bindings | High (unsafe FFI, memory operations) |
-| `thiserror` | Error derivation | Low |
-| `arrow`/`parquet` (implied) | Data format I/O | Medium (parser, deserialization) |
-| `PyTorch` (optional) | DLPack consumer | Medium |
-| `numpy` (optional) | Array input | Low |
-| CUDA Runtime | GPU operations | High (system library) |
-
-**Remediation:**
-Create a `SECURITY.md` or `docs/security/dependency-policy.md` defining:
-
-```markdown
-# Dependency Vulnerability Management Policy
-
-## Remediation Timeframes
-
-| Severity | Definition | Remediation SLA |
-|----------|-----------|----------------|
-| Critical (CVSS ≥ 9.0) | RCE, data exfiltration, privilege escalation | 7 calendar days |
-| High (CVSS 7.0–8.9) | Significant impact vulnerabilities | 30 calendar days |
-| Medium (CVSS 4.0–6.9) | Limited impact vulnerabilities | 90 calendar days |
-| Low (CVSS < 4.0) | Minimal impact | Next scheduled release |
-
-## General Update Policy
-- All dependencies reviewed quarterly
-- `cargo audit` / `pip-audit` run in CI on every PR
-- SBOM generated with each release
-
-## Dangerous Components
-- `qdp_kernels`: CUDA FFI — unsafe operations, direct memory manipulation
-- `cudarc`: CUDA driver bindings — GPU memory allocation, raw pointers
-- Parquet/Arrow readers: Binary data parsing from untrusted files
-```
-
-### Security Controls Inventory for 15.1.1
-
-| Control | Location | Status |
-|---------|----------|--------|
-| Dependency remediation timeframe documentation | Not found in any provided file | ❌ **Missing** |
-| Vulnerability scanning in CI | Not found | ❌ Not documented |
-| SBOM generation | Not found | ❌ Not documented |
-| Dangerous component identification | Not found | ❌ Not documented |
-| Release process vulnerability checks | `dev/release.md` | ❌ Release process does not include dependency audit step |
-
-### Positive Patterns for 15.1.1
-
-1. **Apache release governance**: The ATR (Apache Trusted Releases) process with PMC voting provides a structured release gate where dependency issues could be caught, though no explicit dependency review step is documented.
-2. **Feature-gated optional dependencies**: The `remote-io` and `pytorch` features are opt-in, reducing the mandatory dependency surface.
-
----
-
-
-
-## Cross-cutting Architecture Observations
-
-1. **Library vs. Web Application**: The audited codebase is a GPU computing library (Rust + Python), not a web application. Several ASVS requirements (12.2.2, 14.3.1) have limited applicability. The most impactful findings are in the documentation/process domain (15.1.1, 15.2.1).
-
-2. **Unsafe Code Boundary**: The codebase contains significant `unsafe` Rust code for CUDA FFI operations. While the code demonstrates disciplined unsafe usage with safety documentation, pointer validation, and RAII wrappers, this represents a "dangerous functionality" category per ASVS 15.1.1 that should be formally documented.
-
-3. **File Format Parsers as Attack Surface**: The library accepts untrusted file inputs in multiple formats (Parquet, Arrow IPC, NumPy, PyTorch, TensorFlow protobuf). These parsers process binary data from potentially untrusted sources and represent the highest-risk attack surface. The parsing is delegated to well-known libraries (Arrow, etc.), but vulnerability tracking is essential.
-
-4. **Remote IO Feature**: The `remote-io` feature enables cloud storage access, introducing network-level security requirements (TLS, authentication). The implementation was not provided for audit, creating a significant blind spot.
-
-5. **Credential Management in Release Process**: The `dev/release.md` correctly advises storing `.pypirc` in `~/.pypirc` with `chmod 600` and warns against placing it in the project directory — a solid operational security practice.
-
-## Cross-cutting Recommendations
-
-### Immediate (0–30 days)
-1. **Create dependency vulnerability management policy** (ASVS-1511-MED-001): Define remediation timeframes for Critical/High/Medium/Low severity vulnerabilities in a `SECURITY.md` or equivalent document.
-2. **Add `cargo audit` to CI pipeline** (ASVS-1521-MED-001): Implement automated Rust dependency vulnerability scanning on every PR and scheduled weekly runs.
-3. **Document dangerous components**: Formally identify `qdp_kernels`, `cudarc`, and file format parsers as "dangerous functionality" per ASVS 15.1.1 definitions.
-
-### Short-term (30–90 days)
-4. **Audit the `remote` module** (ASVS-1222-MED-001): Verify TLS certificate validation for S3/GCS connections. Ensure publicly trusted certificates are enforced and no bypass exists.
-5. **Add deployment hardening documentation** (ASVS-1341-MED-001): If QDP or its documentation is deployed as a web service, document exclusion of `.git` and other VCS metadata.
-6. **Add Python dependency auditing**: Implement `pip-audit` or `safety` checks for the Python package surface.
-
-### Long-term (90+ days)
-7. **SBOM generation**: Integrate Software Bill of Materials generation into the release process for both Rust (`cargo sbom`) and Python (`cyclonedx-py`) components.
-8. **Sanitize paths in error messages** (ASVS-1421-LOW-001): Implement path redaction for remote URLs in error messages to prevent information leakage of internal bucket/key names.
-9. **Sandboxing for file parsers**: Consider containerization or process isolation for file format parsing (Parquet, Arrow, TensorFlow protobuf) to limit blast radius from parser vulnerabilities.
-        
\ No newline at end of file
diff --git a/ASVS/reports/mahout/245aad3/all/15.2.1.md b/ASVS/reports/mahout/245aad3/all/15.2.1.md
deleted file mode 100644
index 448c11e..0000000
--- a/ASVS/reports/mahout/245aad3/all/15.2.1.md
+++ /dev/null
@@ -1,140 +0,0 @@
-# Security Audit Report: ASVS 15.2.1
-
-## Executive Summary
-
-| Field | Value |
-|-------|-------|
-| **Repository** | apache/mahout |
-| **Audit Date** | May 05, 2026 |
-| **Auditor** | Tooling Agents (bundled-pass mode) |
-| **ASVS Requirement** | ASVS 15.2.1 |
-| **Files Analyzed** | 14 relevant / 394 total |
-| **Files Skipped** | 36 |
-
-**Requirement description:** Verify that the application only contains components which have not breached the documented update and remediation time frames.
-
-### Findings Overview
-
-| Severity | Count |
-|----------|-------|
-| 🔴 Critical | 0 |
-| 🟠 High | 0 |
-| 🟡 Medium | 2 |
-| 🟢 Low | 0 |
-
----
-
-## ASVS-15.2.1: Security Architecture and Dependencies — Component Currency
-
-### Findings for 15.2.1
-
-#### [MEDIUM]
-**Finding ID:** ASVS-1521-MED-001
-**Title:** Unable to verify component currency without documented remediation timeframes
-
-**File location:** All Rust source files (dependency usage); `dev/release.md` (release process)
-
-**Vulnerable code quote:**
-```rust
-// qdp/qdp-core/src/gpu/memory.rs - uses cudarc
-use cudarc::driver::{CudaDevice, CudaSlice, DevicePtr};
-
-// qdp/qdp-core/src/error.rs - uses thiserror
-use thiserror::Error;
-
-// qdp/qdp-core/src/gpu/memory.rs - uses qdp_kernels (internal CUDA bindings)
-use qdp_kernels::{CuComplex, CuDoubleComplex};
-```
-
-**Data flow:** N/A — this is a process/verification gap
-
-**Impact:** Without ASVS 15.1.1 compliance (documented timeframes), compliance with 15.2.1 is structurally impossible to verify. The following risks exist:
-- Dependencies may contain known CVEs without a mechanism to detect or track them
-- No `Cargo.lock` or `requirements.txt` freeze file was provided for audit, preventing version verification
-- The `qdp_kernels` crate (likely internal) contains unsafe CUDA FFI that requires careful version management
-- Parquet/Arrow file parsers handle untrusted input and are a common source of vulnerabilities
-
-**Remediation:**
-1. Implement the policy from ASVS-1511-MED-001
-2. Add automated dependency scanning to CI:
-
-```yaml
-# Example GitHub Actions workflow
-name: Dependency Audit
-on: [push, pull_request]
-jobs:
-  audit:
-    runs-on: ubuntu-latest
-    steps:
-      - uses: actions/checkout@v4
-      - name: Rust dependency audit
-        run: |
-          cargo install cargo-audit
-          cargo audit
-      - name: Python dependency audit
-        run: |
-          pip install pip-audit
-          pip-audit -r requirements.txt
-```
-
-3. Include `Cargo.lock` in the repository for reproducible builds and auditability
-4. Add a dependency review step to the release process in `dev/release.md`:
-
-```markdown
-### 1.0 Pre-Release Dependency Audit
-Before cutting an RC:
-1. Run `cargo audit` and resolve all findings above the threshold
-2. Run `pip-audit` for Python dependencies
-3. Verify no dependencies exceed their remediation timeframe
-4. Generate SBOM: `cargo sbom > sbom.json`
-```
-
-### Security Controls Inventory for 15.2.1
-
-| Control | Location | Status |
-|---------|----------|--------|
-| `cargo audit` in CI | Not found | ❌ Not implemented |
-| `pip-audit` in CI | Not found | ❌ Not implemented |
-| `Cargo.lock` provided | Not in audit scope | ❌ Not provided for version verification |
-| Dependency review in release process | `dev/release.md` | ❌ No dependency audit step |
-| Automated dependency updates (Dependabot/Renovate) | Not found | ❌ Not configured |
-
-### Positive Patterns for 15.2.1
-
-1. **Minimal dependency surface**: The Rust core uses relatively few direct dependencies (`cudarc`, `thiserror`, `qdp_kernels`), reducing the attack surface compared to projects with large dependency trees.
-2. **Conditional compilation**: Platform-specific code is behind `#[cfg(target_os = "linux")]` and feature flags, meaning unused dependencies are not compiled.
-3. **Internal kernel crate**: `qdp_kernels` appears to be an internal crate, giving the project full control over its security posture rather than depending on an external FFI binding.
-
----
-
-
-
-## Cross-cutting Architecture Observations
-
-1. **Library vs. Web Application**: The audited codebase is a GPU computing library (Rust + Python), not a web application. Several ASVS requirements (12.2.2, 14.3.1) have limited applicability. The most impactful findings are in the documentation/process domain (15.1.1, 15.2.1).
-
-2. **Unsafe Code Boundary**: The codebase contains significant `unsafe` Rust code for CUDA FFI operations. While the code demonstrates disciplined unsafe usage with safety documentation, pointer validation, and RAII wrappers, this represents a "dangerous functionality" category per ASVS 15.1.1 that should be formally documented.
-
-3. **File Format Parsers as Attack Surface**: The library accepts untrusted file inputs in multiple formats (Parquet, Arrow IPC, NumPy, PyTorch, TensorFlow protobuf). These parsers process binary data from potentially untrusted sources and represent the highest-risk attack surface. The parsing is delegated to well-known libraries (Arrow, etc.), but vulnerability tracking is essential.
-
-4. **Remote IO Feature**: The `remote-io` feature enables cloud storage access, introducing network-level security requirements (TLS, authentication). The implementation was not provided for audit, creating a significant blind spot.
-
-5. **Credential Management in Release Process**: The `dev/release.md` correctly advises storing `.pypirc` in `~/.pypirc` with `chmod 600` and warns against placing it in the project directory — a solid operational security practice.
-
-## Cross-cutting Recommendations
-
-### Immediate (0–30 days)
-1. **Create dependency vulnerability management policy** (ASVS-1511-MED-001): Define remediation timeframes for Critical/High/Medium/Low severity vulnerabilities in a `SECURITY.md` or equivalent document.
-2. **Add `cargo audit` to CI pipeline** (ASVS-1521-MED-001): Implement automated Rust dependency vulnerability scanning on every PR and scheduled weekly runs.
-3. **Document dangerous components**: Formally identify `qdp_kernels`, `cudarc`, and file format parsers as "dangerous functionality" per ASVS 15.1.1 definitions.
-
-### Short-term (30–90 days)
-4. **Audit the `remote` module** (ASVS-1222-MED-001): Verify TLS certificate validation for S3/GCS connections. Ensure publicly trusted certificates are enforced and no bypass exists.
-5. **Add deployment hardening documentation** (ASVS-1341-MED-001): If QDP or its documentation is deployed as a web service, document exclusion of `.git` and other VCS metadata.
-6. **Add Python dependency auditing**: Implement `pip-audit` or `safety` checks for the Python package surface.
-
-### Long-term (90+ days)
-7. **SBOM generation**: Integrate Software Bill of Materials generation into the release process for both Rust (`cargo sbom`) and Python (`cyclonedx-py`) components.
-8. **Sanitize paths in error messages** (ASVS-1421-LOW-001): Implement path redaction for remote URLs in error messages to prevent information leakage of internal bucket/key names.
-9. **Sandboxing for file parsers**: Consider containerization or process isolation for file format parsing (Parquet, Arrow, TensorFlow protobuf) to limit blast radius from parser vulnerabilities.
-        
\ No newline at end of file
diff --git a/ASVS/reports/mahout/245aad3/all/15.3.1.md b/ASVS/reports/mahout/245aad3/all/15.3.1.md
deleted file mode 100644
index af2dcf4..0000000
--- a/ASVS/reports/mahout/245aad3/all/15.3.1.md
+++ /dev/null
@@ -1,135 +0,0 @@
-# Security Audit Report: ASVS 15.3.1
-
-## Executive Summary
-
-| Field | Value |
-|-------|-------|
-| **Repository** | apache/mahout |
-| **Audit Date** | May 05, 2026 |
-| **Auditor** | Tooling Agents (bundled-pass mode) |
-| **ASVS Requirement** | ASVS 15.3.1 |
-| **Files Analyzed** | 7 relevant / 394 total |
-| **Files Skipped** | 36 |
-
-**Requirement description:** Verify that the application only returns the required subset of fields from a data object. For example, it should not return an entire data object, as some individual fields should not be accessible to users.
-
-### Findings Overview
-
-| Severity | Count |
-|----------|-------|
-| 🔴 Critical | 0 |
-| 🟠 High | 0 |
-| 🟡 Medium | 1 |
-| 🟢 Low | 1 |
-
----
-
-## ASVS-15.3.1: Defensive Coding — Return Only Required Field Subset
-
-### Findings for 15.3.1
-
-#### MEDIUM
-**Finding ID:** ASVS-1531-MED-001
-**Location:** `qumat/qumat.py`, `execute_circuit()` (lines ~243-262) and `get_final_state_vector()` (lines ~283-302)
-
-**Description:** The entire `self.backend_config` dictionary is passed to backend modules, and is also mutated to accumulate state between calls. The `backend_config` contains all constructor-supplied configuration (including `backend_name`, `backend_options` with `simulator_type`, `shots`, etc.) plus injected `parameter_values`. Backend functions receive the full configuration object rather than only the fields they need.
-
-```python
-# execute_circuit mutates then passes the full config
-self.backend_config["parameter_values"] = bound_parameters
-return self.backend_module.execute_circuit(
-    self.circuit, self.backend, self.backend_config
-)
-```
-
-```python
-# get_final_state_vector does the same
-self.backend_config["parameter_values"] = bound_parameters
-return self.backend_module.get_final_state_vector(
-    self.circuit, self.backend, self.backend_config
-)
-```
-
-**Data Flow:** User-supplied `backend_config` (constructor) → accumulated `parameter_values` injected → entire dict passed to backend module → backend receives fields beyond its operational need (e.g., `execute_circuit` receives `backend_name`, full `backend_options` including `simulator_type` that is only needed at init time).
-
-**Impact:** Backend modules receive more configuration data than required for their specific operation. If a backend module logs, serializes, or exposes this config (e.g., in error messages), fields that should be scoped differently could leak. The mutation pattern also creates implicit coupling between sequential calls.
-
-**Remediation:**
-```python
-def execute_circuit(self, parameter_values=None):
-    self._ensure_circuit_initialized()
-    # ... parameter binding logic ...
-    
-    # Pass only what the backend needs
-    execution_config = {
-        "parameter_values": bound_parameters,
-        "shots": self.backend_config["backend_options"].get("shots", 1024),
-    }
-    return self.backend_module.execute_circuit(
-        self.circuit, self.backend, execution_config
-    )
-```
-
----
-
-#### LOW
-**Finding ID:** ASVS-1531-LOW-001
-**Location:** `qumat/qumat.py`, class `QuMat` (all attributes)
-
-**Description:** All instance attributes (`backend_config`, `backend_module`, `backend`, `circuit`, `parameters`) are public Python attributes. While Python convention doesn't enforce access control, sensitive internal state (raw backend handles, full configuration) is freely accessible to any consumer of a `QuMat` instance.
-
-**Impact:** Low risk in a library context, but consumers could inadvertently depend on or expose internal state such as the raw `backend_config` dictionary.
-
-**Remediation:** Use underscore-prefixed attributes for internal state (`_backend_config`, `_backend_module`) and provide explicit accessor properties for fields consumers legitimately need.
-
----
-
-### Security Controls Inventory for 15.3.1
-
-| Control | Location | Coverage Status |
-|---------|----------|-----------------|
-| `QuantumTensor` minimal DLPack interface | `tensor.rs` (inventory) | ✅ Exposes only `__dlpack__` and `__dlpack_device__` |
-| `measure_overlap` returns scalar only | `qumat.py:~360` | ✅ Returns only float overlap value |
-| Backend config scoping | `qumat.py:execute_circuit`, `get_final_state_vector` | ❌ Full config dict passed |
-
-### Positive Patterns for 15.3.1
-
-- **`QuantumTensor`** exposes only the DLPack protocol methods (`__dlpack__`, `__dlpack_device__`) — minimal interface, no extra metadata or internal state exposed.
-- **`measure_overlap`** returns a single clamped `float` — only the computed result, not intermediate circuit state or measurement distributions.
-- **`calculate_prob_zero`** delegates to backend but only returns a probability float.
-
----
-
-
-
-## Cross-cutting Architecture Observations
-
-1. **Validation Asymmetry Between QDP and QuMat:** The QDP (Rust) layer has comprehensive, well-documented input validation (num_qubits 1–30, NaN/Inf rejection, type enforcement, encoding method validation). The QuMat (Python) layer has strong qubit index validation but significant gaps for other parameters (`num_qubits`, rotation angles, configuration structure). This creates a false sense of security — the Python layer appears validated but has exploitable gaps before inputs reach the  [...]
-
-2. **Mutable Shared State Pattern:** `self.backend_config` serves as both a configuration store and a runtime communication channel (via injected `parameter_values`). This pattern creates implicit coupling between operations and makes reasoning about state across sequential calls difficult.
-
-3. **Defense-in-Depth Present but Incomplete:** The architecture has validation at multiple layers (Python API → Rust core → CUDA kernels), but the Python layer validation has gaps that could cause confusing failures or resource exhaustion before inputs reach the Rust validation layer.
-
-4. **Library vs. Service Context:** The codebase is a library, not a web service. Many ASVS web-focused requirements (HTTP headers, session management) are not directly applicable. However, input validation and defensive coding requirements remain fully relevant.
-
-5. **Documentation Quality Split:** QDP documentation is thorough with explicit validation rules, supported formats, and error conditions. QuMat documentation covers API usage but lacks formal validation rule specifications.
-
----
-
-## Cross-cutting Recommendations
-
-### Immediate (address before next release)
-1. **Add `num_qubits` validation to `create_empty_circuit`** — type check (int), non-negative, and reasonable upper bound. This is the highest-impact gap as it guards all subsequent operations. *(ASVS-221-HIGH-001)*
-2. **Reset `self.parameters` in `create_empty_circuit`** — prevents stale parameter injection across circuit lifecycles. Single-line fix with high correctness impact. *(ASVS-231-MED-001)*
-
-### Short-term (next sprint)
-3. **Add angle/float validation helper** (`_validate_angle`) and apply to all rotation gate methods (`apply_rx/ry/rz_gate`, `apply_u_gate`). Check for type correctness and finiteness (no NaN/Inf). *(ASVS-221-MED-001)*
-4. **Validate `backend_options` structure** in constructor — must be a `dict`, optionally validate expected keys. Add `backend_name` allow-list. *(ASVS-221-MED-002)*
-5. **Stop mutating `self.backend_config`** — pass execution-specific data via a separate dict or shallow copy to avoid state leakage between calls. *(ASVS-231-LOW-001, ASVS-1531-MED-001)*
-6. **Document validation rules** for QuMat class inputs in a structured format matching the QDP documentation standard. *(ASVS-211-MED-001)*
-
-### Long-term (architectural)
-7. **Create a `CircuitConfig` or `ExecutionContext` dataclass** that separates initialization config from runtime state, replacing the mutable dict pattern.
-8. **Scope backend function signatures** to accept only the fields each operation needs, rather than a full configuration dict.
-9. **Consider a validation decorator or mixin** that centralizes input validation for all public methods, reducing the risk of future methods being added without validation.
-        
\ No newline at end of file
diff --git a/ASVS/reports/mahout/245aad3/all/2.1.1.md b/ASVS/reports/mahout/245aad3/all/2.1.1.md
deleted file mode 100644
index a2d96ae..0000000
--- a/ASVS/reports/mahout/245aad3/all/2.1.1.md
+++ /dev/null
@@ -1,111 +0,0 @@
-# Security Audit Report: ASVS 2.1.1
-
-## Executive Summary
-
-| Field | Value |
-|-------|-------|
-| **Repository** | apache/mahout |
-| **Audit Date** | May 05, 2026 |
-| **Auditor** | Tooling Agents (bundled-pass mode) |
-| **ASVS Requirement** | ASVS 2.1.1 |
-| **Files Analyzed** | 7 relevant / 394 total |
-| **Files Skipped** | 36 |
-
-**Requirement description:** Verify that the application's documentation defines input validation rules for how to check the validity of data items against an expected structure. This could be common data formats such as credit card numbers, email addresses, telephone numbers, or it could be an internal data format.
-
-### Findings Overview
-
-| Severity | Count |
-|----------|-------|
-| 🔴 Critical | 0 |
-| 🟠 High | 0 |
-| 🟡 Medium | 1 |
-| 🟢 Low | 0 |
-
----
-
-## ASVS-2.1.1: Validation and Business Logic Documentation
-
-### Findings for 2.1.1
-
-#### MEDIUM
-**Finding ID:** ASVS-211-MED-001
-**Location:** `qumat/qumat.py` — class-level and method-level docstrings
-
-**Description:** The `QuMat` class lacks structured documentation defining input validation rules for its parameters. While docstrings describe parameter types, they do not specify valid ranges, allowed values, or expected structures as formal validation rules. Contrast this with the QDP API documentation which explicitly specifies ranges (e.g., `num_qubits` 1–30) and allowed encoding methods.
-
-Specific gaps in `qumat.py`:
-- `create_empty_circuit(num_qubits)`: No documented valid range for `num_qubits`
-- `apply_rx_gate(qubit_index, angle)`: No documented valid range or constraints for `angle` (e.g., finite-only, radian range)
-- `apply_u_gate(qubit_index, theta, phi, lambd)`: No documented constraints on rotation angles
-- `backend_config`: No schema or structural validation rules documented beyond required keys
-
-**Impact:** Developers implementing backends or consuming the API lack clear guidance on what constitutes valid input, leading to inconsistent validation across backends and potential runtime failures with unclear error messages.
-
-**Remediation:** Add a validation rules section to the `QuMat` class docstring:
-```python
-class QuMat:
-    """...
-    
-    Input Validation Rules:
-        - ``num_qubits``: int, range [1, 30] (or backend-specific maximum)
-        - ``qubit_index``: int, range [0, num_qubits - 1]  
-        - ``angle`` (rotation gates): float, must be finite (no NaN/Inf)
-        - ``backend_name``: str, one of {"qiskit", "cirq", "amazon_braket"}
-        - ``backend_options``: dict with required key "simulator_type" (str) 
-          and optional "shots" (int, >= 1)
-    """
-```
-
----
-
-### Security Controls Inventory for 2.1.1
-
-| Control | Location | Coverage Status |
-|---------|----------|-----------------|
-| QDP API validation rules | `website/.../api.md` | ✅ Well-documented: types, ranges, encoding methods |
-| QDP Concepts validation description | `website/.../concepts.md` Section 3 | ✅ Encoder validation documented |
-| QuMat validation rules documentation | `qumat/qumat.py` docstrings | ⚠️ Partial — types documented, ranges/constraints missing |
-| `_validate_qubit_index` contract | `qumat/qumat.py:~97-112` | ✅ Rules clearly documented in docstring |
-
-### Positive Patterns for 2.1.1
-
-- **QDP API documentation** (`api.md`, `python-api.md`) provides clear, structured validation rules including: `num_qubits` range 1–30, explicit encoding method allow-lists, supported data types and shapes, NaN/Inf rejection rules per encoding method, and file format constraints.
-- **Concepts documentation** (`concepts.md`) Section 3 formally specifies encoder validation constraints including input size relationships.
-- **`_validate_qubit_index`** has a clear docstring specifying what it validates and what errors it raises.
-
----
-
-
-
-## Cross-cutting Architecture Observations
-
-1. **Validation Asymmetry Between QDP and QuMat:** The QDP (Rust) layer has comprehensive, well-documented input validation (num_qubits 1–30, NaN/Inf rejection, type enforcement, encoding method validation). The QuMat (Python) layer has strong qubit index validation but significant gaps for other parameters (`num_qubits`, rotation angles, configuration structure). This creates a false sense of security — the Python layer appears validated but has exploitable gaps before inputs reach the  [...]
-
-2. **Mutable Shared State Pattern:** `self.backend_config` serves as both a configuration store and a runtime communication channel (via injected `parameter_values`). This pattern creates implicit coupling between operations and makes reasoning about state across sequential calls difficult.
-
-3. **Defense-in-Depth Present but Incomplete:** The architecture has validation at multiple layers (Python API → Rust core → CUDA kernels), but the Python layer validation has gaps that could cause confusing failures or resource exhaustion before inputs reach the Rust validation layer.
-
-4. **Library vs. Service Context:** The codebase is a library, not a web service. Many ASVS web-focused requirements (HTTP headers, session management) are not directly applicable. However, input validation and defensive coding requirements remain fully relevant.
-
-5. **Documentation Quality Split:** QDP documentation is thorough with explicit validation rules, supported formats, and error conditions. QuMat documentation covers API usage but lacks formal validation rule specifications.
-
----
-
-## Cross-cutting Recommendations
-
-### Immediate (address before next release)
-1. **Add `num_qubits` validation to `create_empty_circuit`** — type check (int), non-negative, and reasonable upper bound. This is the highest-impact gap as it guards all subsequent operations. *(ASVS-221-HIGH-001)*
-2. **Reset `self.parameters` in `create_empty_circuit`** — prevents stale parameter injection across circuit lifecycles. Single-line fix with high correctness impact. *(ASVS-231-MED-001)*
-
-### Short-term (next sprint)
-3. **Add angle/float validation helper** (`_validate_angle`) and apply to all rotation gate methods (`apply_rx/ry/rz_gate`, `apply_u_gate`). Check for type correctness and finiteness (no NaN/Inf). *(ASVS-221-MED-001)*
-4. **Validate `backend_options` structure** in constructor — must be a `dict`, optionally validate expected keys. Add `backend_name` allow-list. *(ASVS-221-MED-002)*
-5. **Stop mutating `self.backend_config`** — pass execution-specific data via a separate dict or shallow copy to avoid state leakage between calls. *(ASVS-231-LOW-001, ASVS-1531-MED-001)*
-6. **Document validation rules** for QuMat class inputs in a structured format matching the QDP documentation standard. *(ASVS-211-MED-001)*
-
-### Long-term (architectural)
-7. **Create a `CircuitConfig` or `ExecutionContext` dataclass** that separates initialization config from runtime state, replacing the mutable dict pattern.
-8. **Scope backend function signatures** to accept only the fields each operation needs, rather than a full configuration dict.
-9. **Consider a validation decorator or mixin** that centralizes input validation for all public methods, reducing the risk of future methods being added without validation.
-        
\ No newline at end of file
diff --git a/ASVS/reports/mahout/245aad3/all/2.2.1.md b/ASVS/reports/mahout/245aad3/all/2.2.1.md
deleted file mode 100644
index b601f14..0000000
--- a/ASVS/reports/mahout/245aad3/all/2.2.1.md
+++ /dev/null
@@ -1,229 +0,0 @@
-# Security Audit Report: ASVS 2.2.1
-
-## Executive Summary
-
-| Field | Value |
-|-------|-------|
-| **Repository** | apache/mahout |
-| **Audit Date** | May 05, 2026 |
-| **Auditor** | Tooling Agents (bundled-pass mode) |
-| **ASVS Requirement** | ASVS 2.2.1 |
-| **Files Analyzed** | 7 relevant / 394 total |
-| **Files Skipped** | 36 |
-
-**Requirement description:** Verify that input is validated to enforce business or functional expectations for that input. This should either use positive validation against an allow list of values, patterns, and ranges, or be based on comparing the input to an expected structure and logical limits according to predefined…
-
-### Findings Overview
-
-| Severity | Count |
-|----------|-------|
-| 🔴 Critical | 0 |
-| 🟠 High | 1 |
-| 🟡 Medium | 2 |
-| 🟢 Low | 0 |
-
----
-
-## ASVS-2.2.1: Input Validation
-
-### Findings for 2.2.1
-
-#### HIGH
-**Finding ID:** ASVS-221-HIGH-001
-**Location:** `qumat/qumat.py`, `create_empty_circuit()` (lines ~82-85)
-
-**Description:** The `num_qubits` parameter is not validated for type, sign, or upper bound. It is stored directly and used in subsequent range checks for qubit indices. An invalid value (float, negative, extremely large, or non-numeric) produces undefined behavior downstream.
-
-```python
-def create_empty_circuit(self, num_qubits: int | None = None) -> None:
-    self.num_qubits = num_qubits
-    self.circuit = self.backend_module.create_empty_circuit(num_qubits)
-```
-
-**Data Flow:** User input (`num_qubits`) → stored as `self.num_qubits` → used in `_validate_qubit_index` comparisons → passed to backend `create_empty_circuit`
-
-**Proof of Concept:**
-```python
-# Extremely large value — potential resource exhaustion in backend
-qm = QuMat(config)
-qm.create_empty_circuit(10000000)  # Backend may allocate enormous structures
-
-# Float value — breaks comparison logic
-qm.create_empty_circuit(3.7)  # qubit index 3 would pass validation (3 < 3.7)
-
-# Negative value — all qubit indices fail validation
-qm.create_empty_circuit(-1)
-```
-
-**Impact:** Resource exhaustion (DoS) with large values; logic errors with non-integer types; confusing error messages with unsupported types. The QDP documentation specifies 1–30 as the valid range, but `qumat.py` enforces no upper bound.
-
-**Remediation:**
-```python
-def create_empty_circuit(self, num_qubits: int | None = None) -> None:
-    if num_qubits is not None:
-        if not isinstance(num_qubits, int):
-            raise TypeError(
-                f"num_qubits must be an integer, got {type(num_qubits).__name__}"
-            )
-        if num_qubits < 0:
-            raise ValueError(f"num_qubits must be non-negative, got {num_qubits}")
-    self.num_qubits = num_qubits
-    self.circuit = self.backend_module.create_empty_circuit(num_qubits)
-```
-
----
-
-#### MEDIUM
-**Finding ID:** ASVS-221-MED-001
-**Location:** `qumat/qumat.py`, `apply_rx_gate()` (line ~303), `apply_ry_gate()` (line ~321), `apply_rz_gate()` (line ~339), `apply_u_gate()` (line ~356)
-
-**Description:** When rotation angles are provided as floats, no validation is performed for finiteness (NaN, Inf) or type correctness. While `_handle_parameter` registers string parameter names, float values pass through unchecked. The QDP documentation explicitly requires finite values for similar parameters.
-
-```python
-def apply_rx_gate(self, qubit_index: int, angle: float | str) -> None:
-    self._ensure_circuit_initialized()
-    self._validate_qubit_index(qubit_index)
-    self._handle_parameter(angle)  # Only registers strings; floats pass through
-    self.backend_module.apply_rx_gate(self.circuit, qubit_index, angle)
-```
-
-Similarly, `apply_u_gate` accepts `theta`, `phi`, `lambd` with no validation:
-```python
-def apply_u_gate(self, qubit_index, theta, phi, lambd):
-    self._ensure_circuit_initialized()
-    self._validate_qubit_index(qubit_index)
-    # No type or finiteness checks on theta, phi, lambd
-    self.backend_module.apply_u_gate(self.circuit, qubit_index, theta, phi, lambd)
-```
-
-**Data Flow:** User input (angle/theta/phi/lambd) → no validation → passed directly to backend module
-
-**Proof of Concept:**
-```python
-import math
-qm = QuMat(config)
-qm.create_empty_circuit(2)
-qm.apply_rx_gate(0, float('nan'))   # NaN angle — undefined quantum state
-qm.apply_rx_gate(0, float('inf'))   # Infinite angle — undefined behavior
-qm.apply_u_gate(0, "not_a_number", 1.0, 1.0)  # String where float expected
-```
-
-**Impact:** NaN or Inf values produce mathematically undefined quantum states. Backends may silently produce incorrect results rather than raising errors, leading to data integrity issues in quantum computations.
-
-**Remediation:**
-```python
-def _validate_angle(self, angle: float, param_name: str = "angle") -> None:
-    """Validate that a gate angle is a finite number."""
-    if not isinstance(angle, (int, float)):
-        raise TypeError(f"{param_name} must be a number, got {type(angle).__name__}")
-    if math.isnan(angle) or math.isinf(angle):
-        raise ValueError(f"{param_name} must be finite, got {angle}")
-```
-
----
-
-#### MEDIUM
-**Finding ID:** ASVS-221-MED-002
-**Location:** `qumat/qumat.py`, `__init__()` (lines ~53-75)
-
-**Description:** The `backend_options` value is checked for existence but not validated for type or structure. The `backend_name` is not validated against an allow list of known backends, relying solely on `import_module` to fail for unknown names.
-
-```python
-if "backend_options" not in backend_config:
-    raise KeyError(...)
-# No validation that backend_options is a dict
-# No validation that backend_name is in {"qiskit", "cirq", "amazon_braket"}
-
-self.backend_module: ModuleType = import_module(
-    f".{self.backend_name}_backend", package="qumat"
-)
-```
-
-**Data Flow:** `backend_config` → `backend_name` used in `import_module` f-string → module loaded; `backend_options` stored and used later without structure checks
-
-**Proof of Concept:**
-```python
-# backend_options not a dict — fails later with confusing error
-QuMat({"backend_name": "qiskit", "backend_options": 42})
-
-# Unknown backend — ImportError instead of clear validation error
-QuMat({"backend_name": "nonexistent", "backend_options": {}})
-```
-
-**Impact:** Unclear error messages for misconfigured backends; implicit validation through ImportError rather than explicit business rule check. The relative import (`package="qumat"`) limits the attack surface of the module loading to within the `qumat` package.
-
-**Remediation:**
-```python
-_ALLOWED_BACKENDS = frozenset({"qiskit", "cirq", "amazon_braket"})
-
-def __init__(self, backend_config):
-    # ... existing dict/key checks ...
-    
-    if not isinstance(backend_config["backend_options"], dict):
-        raise TypeError("backend_options must be a dictionary")
-    
-    if backend_config["backend_name"] not in self._ALLOWED_BACKENDS:
-        raise ValueError(
-            f"Unknown backend '{backend_config['backend_name']}'. "
-            f"Allowed backends: {sorted(self._ALLOWED_BACKENDS)}"
-        )
-```
-
----
-
-### Security Controls Inventory for 2.2.1
-
-| Control | Location | Applied To | Coverage |
-|---------|----------|------------|----------|
-| `_validate_qubit_index` | `qumat.py:97-112` | All gate methods | ✅ Consistently applied to every gate |
-| `_ensure_circuit_initialized` | `qumat.py:87-95` | All gate + execute methods | ✅ Consistently applied |
-| `isinstance(backend_config, dict)` | `qumat.py:57-60` | Constructor | ✅ Applied |
-| Key existence checks | `qumat.py:62-75` | Constructor | ✅ `backend_name`, `backend_options` checked |
-| `num_qubits` validation | `qumat.py:create_empty_circuit` | Circuit creation | ❌ **NOT APPLIED** (Gap Type A) |
-| Angle/float validation | `qumat.py:apply_rx/ry/rz/u_gate` | Rotation gates | ❌ **NOT APPLIED** (Gap Type A) |
-| `backend_options` structure validation | `qumat.py:__init__` | Constructor | ❌ **NOT APPLIED** (Gap Type A) |
-| `backend_name` allow-list | `qumat.py:__init__` | Constructor | ❌ **NOT APPLIED** (Gap Type A) |
-| Unbound parameter check | `qumat.py:execute_circuit` | Execution | ✅ Applied |
-
-### Positive Patterns for 2.2.1
-
-- **`_validate_qubit_index`** is a centralized, well-implemented validation function that checks type (`isinstance`), sign (non-negative), and range (within circuit bounds). It is **consistently called** from every gate method — no gaps in application.
-- **`_ensure_circuit_initialized`** provides a reliable prerequisite check before any operation.
-- **Constructor validation** properly checks that `backend_config` is a dictionary with required keys, producing clear error messages.
-- **QDP Rust core** (per documentation and inventory) validates `num_qubits` (1–30), data types, NaN/Inf, and encoding-specific constraints at the native layer.
-
----
-
-
-
-## Cross-cutting Architecture Observations
-
-1. **Validation Asymmetry Between QDP and QuMat:** The QDP (Rust) layer has comprehensive, well-documented input validation (num_qubits 1–30, NaN/Inf rejection, type enforcement, encoding method validation). The QuMat (Python) layer has strong qubit index validation but significant gaps for other parameters (`num_qubits`, rotation angles, configuration structure). This creates a false sense of security — the Python layer appears validated but has exploitable gaps before inputs reach the  [...]
-
-2. **Mutable Shared State Pattern:** `self.backend_config` serves as both a configuration store and a runtime communication channel (via injected `parameter_values`). This pattern creates implicit coupling between operations and makes reasoning about state across sequential calls difficult.
-
-3. **Defense-in-Depth Present but Incomplete:** The architecture has validation at multiple layers (Python API → Rust core → CUDA kernels), but the Python layer validation has gaps that could cause confusing failures or resource exhaustion before inputs reach the Rust validation layer.
-
-4. **Library vs. Service Context:** The codebase is a library, not a web service. Many ASVS web-focused requirements (HTTP headers, session management) are not directly applicable. However, input validation and defensive coding requirements remain fully relevant.
-
-5. **Documentation Quality Split:** QDP documentation is thorough with explicit validation rules, supported formats, and error conditions. QuMat documentation covers API usage but lacks formal validation rule specifications.
-
----
-
-## Cross-cutting Recommendations
-
-### Immediate (address before next release)
-1. **Add `num_qubits` validation to `create_empty_circuit`** — type check (int), non-negative, and reasonable upper bound. This is the highest-impact gap as it guards all subsequent operations. *(ASVS-221-HIGH-001)*
-2. **Reset `self.parameters` in `create_empty_circuit`** — prevents stale parameter injection across circuit lifecycles. Single-line fix with high correctness impact. *(ASVS-231-MED-001)*
-
-### Short-term (next sprint)
-3. **Add angle/float validation helper** (`_validate_angle`) and apply to all rotation gate methods (`apply_rx/ry/rz_gate`, `apply_u_gate`). Check for type correctness and finiteness (no NaN/Inf). *(ASVS-221-MED-001)*
-4. **Validate `backend_options` structure** in constructor — must be a `dict`, optionally validate expected keys. Add `backend_name` allow-list. *(ASVS-221-MED-002)*
-5. **Stop mutating `self.backend_config`** — pass execution-specific data via a separate dict or shallow copy to avoid state leakage between calls. *(ASVS-231-LOW-001, ASVS-1531-MED-001)*
-6. **Document validation rules** for QuMat class inputs in a structured format matching the QDP documentation standard. *(ASVS-211-MED-001)*
-
-### Long-term (architectural)
-7. **Create a `CircuitConfig` or `ExecutionContext` dataclass** that separates initialization config from runtime state, replacing the mutable dict pattern.
-8. **Scope backend function signatures** to accept only the fields each operation needs, rather than a full configuration dict.
-9. **Consider a validation decorator or mixin** that centralizes input validation for all public methods, reducing the risk of future methods being added without validation.
-        
\ No newline at end of file
diff --git a/ASVS/reports/mahout/245aad3/all/2.2.2.md b/ASVS/reports/mahout/245aad3/all/2.2.2.md
deleted file mode 100644
index 59b2afd..0000000
--- a/ASVS/reports/mahout/245aad3/all/2.2.2.md
+++ /dev/null
@@ -1,83 +0,0 @@
-# Security Audit Report: ASVS 2.2.2
-
-## Executive Summary
-
-| Field | Value |
-|-------|-------|
-| **Repository** | apache/mahout |
-| **Audit Date** | May 05, 2026 |
-| **Auditor** | Tooling Agents (bundled-pass mode) |
-| **ASVS Requirement** | ASVS 2.2.2 |
-| **Files Analyzed** | 7 relevant / 394 total |
-| **Files Skipped** | 36 |
-
-**Requirement description:** Verify that the application is designed to enforce input validation at a trusted service layer. While client-side validation improves usability and should be encouraged, it must not be relied upon as a security control.
-
-### Findings Overview
-
-| Severity | Count |
-|----------|-------|
-| 🔴 Critical | 0 |
-| 🟠 High | 0 |
-| 🟡 Medium | 0 |
-| 🟢 Low | 0 |
-
----
-
-## ASVS-2.2.2: Server-Side Input Validation
-
-### Findings for 2.2.2
-
-No findings detected.
-
-This codebase is a Python library (not a client-server application). All validation present in `qumat.py` executes within the library itself — there is no client-side/server-side split where client validation could be bypassed. The QDP architecture processes data through Python → PyO3 → Rust → CUDA, with validation at the Rust core layer being the authoritative check, which is the correct trusted service layer.
-
-### Security Controls Inventory for 2.2.2
-
-| Control | Location | Layer | Status |
-|---------|----------|-------|--------|
-| QuMat input validation | `qumat/qumat.py` | Library (trusted) | ✅ All validation at library level |
-| QDP Rust encoder validation | `qdp-core` (per docs) | Native extension (trusted) | ✅ Authoritative validation in Rust |
-| CUDA kernel input checks | `qdp-kernels` (per docs) | GPU (trusted) | ✅ Final processing layer |
-
-### Positive Patterns for 2.2.2
-
-- **No client-side-only validation:** All validation in `qumat.py` runs in the same process as the computation — there is no untrusted client layer.
-- **Defense-in-depth in QDP:** Validation occurs at both the Python API layer and the Rust core layer, with the Rust layer being authoritative. Even if Python validation is bypassed (e.g., calling `_qdp` directly), the Rust core validates inputs before GPU execution.
-- **`_validate_qubit_index`** is called at the library entry point for every gate operation, not deferred to backend modules.
-
----
-
-
-
-## Cross-cutting Architecture Observations
-
-1. **Validation Asymmetry Between QDP and QuMat:** The QDP (Rust) layer has comprehensive, well-documented input validation (num_qubits 1–30, NaN/Inf rejection, type enforcement, encoding method validation). The QuMat (Python) layer has strong qubit index validation but significant gaps for other parameters (`num_qubits`, rotation angles, configuration structure). This creates a false sense of security — the Python layer appears validated but has exploitable gaps before inputs reach the  [...]
-
-2. **Mutable Shared State Pattern:** `self.backend_config` serves as both a configuration store and a runtime communication channel (via injected `parameter_values`). This pattern creates implicit coupling between operations and makes reasoning about state across sequential calls difficult.
-
-3. **Defense-in-Depth Present but Incomplete:** The architecture has validation at multiple layers (Python API → Rust core → CUDA kernels), but the Python layer validation has gaps that could cause confusing failures or resource exhaustion before inputs reach the Rust validation layer.
-
-4. **Library vs. Service Context:** The codebase is a library, not a web service. Many ASVS web-focused requirements (HTTP headers, session management) are not directly applicable. However, input validation and defensive coding requirements remain fully relevant.
-
-5. **Documentation Quality Split:** QDP documentation is thorough with explicit validation rules, supported formats, and error conditions. QuMat documentation covers API usage but lacks formal validation rule specifications.
-
----
-
-## Cross-cutting Recommendations
-
-### Immediate (address before next release)
-1. **Add `num_qubits` validation to `create_empty_circuit`** — type check (int), non-negative, and reasonable upper bound. This is the highest-impact gap as it guards all subsequent operations. *(ASVS-221-HIGH-001)*
-2. **Reset `self.parameters` in `create_empty_circuit`** — prevents stale parameter injection across circuit lifecycles. Single-line fix with high correctness impact. *(ASVS-231-MED-001)*
-
-### Short-term (next sprint)
-3. **Add angle/float validation helper** (`_validate_angle`) and apply to all rotation gate methods (`apply_rx/ry/rz_gate`, `apply_u_gate`). Check for type correctness and finiteness (no NaN/Inf). *(ASVS-221-MED-001)*
-4. **Validate `backend_options` structure** in constructor — must be a `dict`, optionally validate expected keys. Add `backend_name` allow-list. *(ASVS-221-MED-002)*
-5. **Stop mutating `self.backend_config`** — pass execution-specific data via a separate dict or shallow copy to avoid state leakage between calls. *(ASVS-231-LOW-001, ASVS-1531-MED-001)*
-6. **Document validation rules** for QuMat class inputs in a structured format matching the QDP documentation standard. *(ASVS-211-MED-001)*
-
-### Long-term (architectural)
-7. **Create a `CircuitConfig` or `ExecutionContext` dataclass** that separates initialization config from runtime state, replacing the mutable dict pattern.
-8. **Scope backend function signatures** to accept only the fields each operation needs, rather than a full configuration dict.
-9. **Consider a validation decorator or mixin** that centralizes input validation for all public methods, reducing the risk of future methods being added without validation.
-        
\ No newline at end of file
diff --git a/ASVS/reports/mahout/245aad3/all/2.3.1.md b/ASVS/reports/mahout/245aad3/all/2.3.1.md
deleted file mode 100644
index bb2bcc0..0000000
--- a/ASVS/reports/mahout/245aad3/all/2.3.1.md
+++ /dev/null
@@ -1,152 +0,0 @@
-# Security Audit Report: ASVS 2.3.1
-
-## Executive Summary
-
-| Field | Value |
-|-------|-------|
-| **Repository** | apache/mahout |
-| **Audit Date** | May 05, 2026 |
-| **Auditor** | Tooling Agents (bundled-pass mode) |
-| **ASVS Requirement** | ASVS 2.3.1 |
-| **Files Analyzed** | 7 relevant / 394 total |
-| **Files Skipped** | 36 |
-
-**Requirement description:** Verify that the application will only process business logic flows for the same user in the expected sequential step order and without skipping steps.
-
-### Findings Overview
-
-| Severity | Count |
-|----------|-------|
-| 🔴 Critical | 0 |
-| 🟠 High | 0 |
-| 🟡 Medium | 1 |
-| 🟢 Low | 1 |
-
----
-
-## ASVS-2.3.1: Business Logic Sequential Flow
-
-### Findings for 2.3.1
-
-#### MEDIUM
-**Finding ID:** ASVS-231-MED-001
-**Location:** `qumat/qumat.py`, `create_empty_circuit()` (lines ~82-85)
-
-**Description:** When `create_empty_circuit` is called again on an existing `QuMat` instance, it resets `self.circuit` and `self.num_qubits` but does **not** reset `self.parameters`. This allows stale parameter registrations and bound values from a previous circuit to persist and be injected into the new circuit's execution via `backend_config["parameter_values"]`.
-
-```python
-def create_empty_circuit(self, num_qubits: int | None = None) -> None:
-    self.num_qubits = num_qubits
-    self.circuit = self.backend_module.create_empty_circuit(num_qubits)
-    # self.parameters is NOT reset
-```
-
-**Data Flow:**
-1. Circuit 1 created, parameterized gates applied, parameters bound
-2. `create_empty_circuit()` called again — `self.parameters` retains old values
-3. New circuit executed — stale `parameter_values` injected into `backend_config`
-
-**Proof of Concept:**
-```python
-qm = QuMat(config)
-qm.create_empty_circuit(3)
-qm.apply_rx_gate(0, "theta")
-qm.bind_parameters({"theta": 1.57})
-qm.execute_circuit()  # Circuit 1 with theta=1.57
-
-# User creates a NEW circuit (no parameterized gates)
-qm.create_empty_circuit(2)
-qm.apply_hadamard_gate(0)
-
-# execute_circuit passes stale {"theta": 1.57} to backend
-# Backend may error or silently ignore, depending on implementation
-result = qm.execute_circuit()
-```
-
-**Impact:** Incorrect quantum computation results due to stale parameter state. In scientific computing contexts, silent corruption of computation parameters could lead to invalid experimental results. The unbound parameter check in `execute_circuit` only catches parameters with `None` values — fully bound stale parameters pass through silently.
-
-**Remediation:**
-```python
-def create_empty_circuit(self, num_qubits: int | None = None) -> None:
-    self.num_qubits = num_qubits
-    self.circuit = self.backend_module.create_empty_circuit(num_qubits)
-    self.parameters = {}  # Reset parameter registry for new circuit
-```
-
----
-
-#### LOW
-**Finding ID:** ASVS-231-LOW-001
-**Location:** `qumat/qumat.py`, `execute_circuit()` (lines ~243-262)
-
-**Description:** The `execute_circuit` method mutates `self.backend_config` in place by setting `self.backend_config["parameter_values"]`. This means the configuration object carries state from one execution to the next. If `execute_circuit` is called without parameters after a previous call with parameters, the old `parameter_values` key remains in `backend_config`.
-
-```python
-self.backend_config["parameter_values"] = bound_parameters
-return self.backend_module.execute_circuit(
-    self.circuit, self.backend, self.backend_config
-)
-```
-
-**Impact:** Low severity — the value is overwritten on each call. However, the mutation pattern violates the principle of keeping configuration immutable and could lead to subtle bugs if backend modules cache or reference the config dict.
-
-**Remediation:** Pass a copy or a purpose-built execution context rather than mutating the shared config:
-```python
-exec_config = {**self.backend_config, "parameter_values": bound_parameters}
-return self.backend_module.execute_circuit(self.circuit, self.backend, exec_config)
-```
-
----
-
-### Security Controls Inventory for 2.3.1
-
-| Control | Location | Coverage |
-|---------|----------|----------|
-| `_ensure_circuit_initialized` | `qumat.py:87-95` | ✅ Enforces create-before-operate for all gate/execute methods |
-| Unbound parameter check | `qumat.py:execute_circuit` (~253-260) | ✅ Prevents execution with `None`-valued parameters |
-| Unbound parameter check | `qumat.py:get_final_state_vector` (~290-297) | ✅ Same check for state vector retrieval |
-| Parameter reset on new circuit | `qumat.py:create_empty_circuit` | ❌ **NOT APPLIED** — parameters persist (Gap Type B: control pattern exists in execute but not in create) |
-| DLPack single-consume | `tensor.rs` (inventory) | ✅ `consumed` flag prevents double-use |
-
-### Positive Patterns for 2.3.1
-
-- **`_ensure_circuit_initialized`** is consistently called as a prerequisite check in every operation that requires a circuit, correctly enforcing the sequential requirement that `create_empty_circuit` must precede gate application and execution.
-- **Unbound parameter detection** in both `execute_circuit` and `get_final_state_vector` prevents execution when required parameters haven't been bound.
-- **DLPack single-consume pattern** in `QuantumTensor` prevents the same tensor from being consumed twice, enforcing correct usage order.
-- **`bind_parameters`** validates that parameter names exist in the circuit's registry before allowing binding, preventing assignment to non-existent parameters.
-
----
-
-
-
-## Cross-cutting Architecture Observations
-
-1. **Validation Asymmetry Between QDP and QuMat:** The QDP (Rust) layer has comprehensive, well-documented input validation (num_qubits 1–30, NaN/Inf rejection, type enforcement, encoding method validation). The QuMat (Python) layer has strong qubit index validation but significant gaps for other parameters (`num_qubits`, rotation angles, configuration structure). This creates a false sense of security — the Python layer appears validated but has exploitable gaps before inputs reach the  [...]
-
-2. **Mutable Shared State Pattern:** `self.backend_config` serves as both a configuration store and a runtime communication channel (via injected `parameter_values`). This pattern creates implicit coupling between operations and makes reasoning about state across sequential calls difficult.
-
-3. **Defense-in-Depth Present but Incomplete:** The architecture has validation at multiple layers (Python API → Rust core → CUDA kernels), but the Python layer validation has gaps that could cause confusing failures or resource exhaustion before inputs reach the Rust validation layer.
-
-4. **Library vs. Service Context:** The codebase is a library, not a web service. Many ASVS web-focused requirements (HTTP headers, session management) are not directly applicable. However, input validation and defensive coding requirements remain fully relevant.
-
-5. **Documentation Quality Split:** QDP documentation is thorough with explicit validation rules, supported formats, and error conditions. QuMat documentation covers API usage but lacks formal validation rule specifications.
-
----
-
-## Cross-cutting Recommendations
-
-### Immediate (address before next release)
-1. **Add `num_qubits` validation to `create_empty_circuit`** — type check (int), non-negative, and reasonable upper bound. This is the highest-impact gap as it guards all subsequent operations. *(ASVS-221-HIGH-001)*
-2. **Reset `self.parameters` in `create_empty_circuit`** — prevents stale parameter injection across circuit lifecycles. Single-line fix with high correctness impact. *(ASVS-231-MED-001)*
-
-### Short-term (next sprint)
-3. **Add angle/float validation helper** (`_validate_angle`) and apply to all rotation gate methods (`apply_rx/ry/rz_gate`, `apply_u_gate`). Check for type correctness and finiteness (no NaN/Inf). *(ASVS-221-MED-001)*
-4. **Validate `backend_options` structure** in constructor — must be a `dict`, optionally validate expected keys. Add `backend_name` allow-list. *(ASVS-221-MED-002)*
-5. **Stop mutating `self.backend_config`** — pass execution-specific data via a separate dict or shallow copy to avoid state leakage between calls. *(ASVS-231-LOW-001, ASVS-1531-MED-001)*
-6. **Document validation rules** for QuMat class inputs in a structured format matching the QDP documentation standard. *(ASVS-211-MED-001)*
-
-### Long-term (architectural)
-7. **Create a `CircuitConfig` or `ExecutionContext` dataclass** that separates initialization config from runtime state, replacing the mutable dict pattern.
-8. **Scope backend function signatures** to accept only the fields each operation needs, rather than a full configuration dict.
-9. **Consider a validation decorator or mixin** that centralizes input validation for all public methods, reducing the risk of future methods being added without validation.
-        
\ No newline at end of file
diff --git a/ASVS/reports/mahout/245aad3/all/3.2.1.md b/ASVS/reports/mahout/245aad3/all/3.2.1.md
deleted file mode 100644
index 426b973..0000000
--- a/ASVS/reports/mahout/245aad3/all/3.2.1.md
+++ /dev/null
@@ -1,85 +0,0 @@
-# Security Audit Report: ASVS 3.2.1
-
-## Executive Summary
-
-| Field | Value |
-|-------|-------|
-| **Repository** | apache/mahout |
-| **Audit Date** | May 05, 2026 |
-| **Auditor** | Tooling Agents (bundled-pass mode) |
-| **ASVS Requirement** | ASVS 3.2.1 |
-| **Files Analyzed** | 7 relevant / 394 total |
-| **Files Skipped** | 36 |
-
-**Requirement description:** Verify that security controls are in place to prevent browsers from rendering content or functionality in HTTP responses in an incorrect context (e.g., when an API, a user-uploaded file or other resource is requested directly). Possible controls could include: not serving the content unless HTTP…
-
-### Findings Overview
-
-| Severity | Count |
-|----------|-------|
-| 🔴 Critical | 0 |
-| 🟠 High | 0 |
-| 🟡 Medium | 0 |
-| 🟢 Low | 0 |
-
----
-
-## ASVS-3.2.1: Unintended Content Interpretation
-
-### Findings for 3.2.1
-
-No findings detected.
-
-The provided source code consists of:
-1. **Python library code** (`qumat/qumat.py`) — not a web-serving component
-2. **Rust extension** (`tensor.rs` inventory) — native library, not serving HTTP
-3. **Markdown documentation** — static content for a documentation website
-
-None of these components serve HTTP responses or render content in a browser context. The ASVS 3.2.1 requirement about `Sec-Fetch-*` headers, `Content-Security-Policy`, and `Content-Disposition` is not applicable to the audited code.
-
-**Note:** The documentation files reside under `website/` suggesting they are served by a static site generator (likely Docusaurus). The web server/CDN configuration that serves these docs is not included in the audit scope. If the documentation site serves user-uploaded files or API responses, those server configurations should be audited separately.
-
-### Security Controls Inventory for 3.2.1
-
-No applicable controls in this scope. The audited components do not serve HTTP responses.
-
-### Positive Patterns for 3.2.1
-
-- The QDP API returns `QuantumTensor` objects via DLPack protocol (binary GPU memory), not HTTP responses — content interpretation issues do not apply to this interface.
-- Documentation is static Markdown with no dynamic content rendering or user-uploaded file serving.
-
----
-
-
-
-## Cross-cutting Architecture Observations
-
-1. **Validation Asymmetry Between QDP and QuMat:** The QDP (Rust) layer has comprehensive, well-documented input validation (num_qubits 1–30, NaN/Inf rejection, type enforcement, encoding method validation). The QuMat (Python) layer has strong qubit index validation but significant gaps for other parameters (`num_qubits`, rotation angles, configuration structure). This creates a false sense of security — the Python layer appears validated but has exploitable gaps before inputs reach the  [...]
-
-2. **Mutable Shared State Pattern:** `self.backend_config` serves as both a configuration store and a runtime communication channel (via injected `parameter_values`). This pattern creates implicit coupling between operations and makes reasoning about state across sequential calls difficult.
-
-3. **Defense-in-Depth Present but Incomplete:** The architecture has validation at multiple layers (Python API → Rust core → CUDA kernels), but the Python layer validation has gaps that could cause confusing failures or resource exhaustion before inputs reach the Rust validation layer.
-
-4. **Library vs. Service Context:** The codebase is a library, not a web service. Many ASVS web-focused requirements (HTTP headers, session management) are not directly applicable. However, input validation and defensive coding requirements remain fully relevant.
-
-5. **Documentation Quality Split:** QDP documentation is thorough with explicit validation rules, supported formats, and error conditions. QuMat documentation covers API usage but lacks formal validation rule specifications.
-
----
-
-## Cross-cutting Recommendations
-
-### Immediate (address before next release)
-1. **Add `num_qubits` validation to `create_empty_circuit`** — type check (int), non-negative, and reasonable upper bound. This is the highest-impact gap as it guards all subsequent operations. *(ASVS-221-HIGH-001)*
-2. **Reset `self.parameters` in `create_empty_circuit`** — prevents stale parameter injection across circuit lifecycles. Single-line fix with high correctness impact. *(ASVS-231-MED-001)*
-
-### Short-term (next sprint)
-3. **Add angle/float validation helper** (`_validate_angle`) and apply to all rotation gate methods (`apply_rx/ry/rz_gate`, `apply_u_gate`). Check for type correctness and finiteness (no NaN/Inf). *(ASVS-221-MED-001)*
-4. **Validate `backend_options` structure** in constructor — must be a `dict`, optionally validate expected keys. Add `backend_name` allow-list. *(ASVS-221-MED-002)*
-5. **Stop mutating `self.backend_config`** — pass execution-specific data via a separate dict or shallow copy to avoid state leakage between calls. *(ASVS-231-LOW-001, ASVS-1531-MED-001)*
-6. **Document validation rules** for QuMat class inputs in a structured format matching the QDP documentation standard. *(ASVS-211-MED-001)*
-
-### Long-term (architectural)
-7. **Create a `CircuitConfig` or `ExecutionContext` dataclass** that separates initialization config from runtime state, replacing the mutable dict pattern.
-8. **Scope backend function signatures** to accept only the fields each operation needs, rather than a full configuration dict.
-9. **Consider a validation decorator or mixin** that centralizes input validation for all public methods, reducing the risk of future methods being added without validation.
-        
\ No newline at end of file
diff --git a/ASVS/reports/mahout/245aad3/all/3.2.2.md b/ASVS/reports/mahout/245aad3/all/3.2.2.md
deleted file mode 100644
index 3b25da8..0000000
--- a/ASVS/reports/mahout/245aad3/all/3.2.2.md
+++ /dev/null
@@ -1,28 +0,0 @@
-# Security Audit Report: ASVS 3.2.2
-
-## Executive Summary
-
-| Field | Value |
-|-------|-------|
-| **Repository** | apache/mahout |
-| **Audit Date** | May 05, 2026 |
-| **Auditor** | Tooling Agents (bundled-pass mode) |
-| **ASVS Requirement** | ASVS 3.2.2 |
-| **Files Analyzed** | 0 relevant / 394 total |
-| **Files Skipped** | 36 |
-
-**Requirement description:** Verify that content intended to be displayed as text, rather than rendered as HTML, is handled using safe rendering functions (such as createTextNode or textContent) to prevent unintended execution of content such as HTML or JavaScript.
-
-### Findings Overview
-
-| Severity | Count |
-|----------|-------|
-| 🔴 Critical | 0 |
-| 🟠 High | 0 |
-| 🟡 Medium | 0 |
-| 🟢 Low | 0 |
-
-## Result
-
-No relevant files found for ASVS requirement 3.2.2 within the audited scope.
-        
\ No newline at end of file
diff --git a/ASVS/reports/mahout/245aad3/all/3.3.1.md b/ASVS/reports/mahout/245aad3/all/3.3.1.md
deleted file mode 100644
index 7c50105..0000000
--- a/ASVS/reports/mahout/245aad3/all/3.3.1.md
+++ /dev/null
@@ -1,28 +0,0 @@
-# Security Audit Report: ASVS 3.3.1
-
-## Executive Summary
-
-| Field | Value |
-|-------|-------|
-| **Repository** | apache/mahout |
-| **Audit Date** | May 05, 2026 |
-| **Auditor** | Tooling Agents (bundled-pass mode) |
-| **ASVS Requirement** | ASVS 3.3.1 |
-| **Files Analyzed** | 0 relevant / 394 total |
-| **Files Skipped** | 36 |
-
-**Requirement description:** Verify that cookies have the 'Secure' attribute set, and if the '\__Host-' prefix is not used for the cookie name, the '__Secure-' prefix must be used for the cookie name.
-
-### Findings Overview
-
-| Severity | Count |
-|----------|-------|
-| 🔴 Critical | 0 |
-| 🟠 High | 0 |
-| 🟡 Medium | 0 |
-| 🟢 Low | 0 |
-
-## Result
-
-No relevant files found for ASVS requirement 3.3.1 within the audited scope.
-        
\ No newline at end of file
diff --git a/ASVS/reports/mahout/245aad3/all/3.4.1.md b/ASVS/reports/mahout/245aad3/all/3.4.1.md
deleted file mode 100644
index 312f219..0000000
--- a/ASVS/reports/mahout/245aad3/all/3.4.1.md
+++ /dev/null
@@ -1,28 +0,0 @@
-# Security Audit Report: ASVS 3.4.1
-
-## Executive Summary
-
-| Field | Value |
-|-------|-------|
-| **Repository** | apache/mahout |
-| **Audit Date** | May 05, 2026 |
-| **Auditor** | Tooling Agents (bundled-pass mode) |
-| **ASVS Requirement** | ASVS 3.4.1 |
-| **Files Analyzed** | 0 relevant / 394 total |
-| **Files Skipped** | 36 |
-
-**Requirement description:** Verify that a Strict-Transport-Security header field is included on all responses to enforce an HTTP Strict Transport Security (HSTS) policy. A maximum age of at least 1 year must be defined, and for L2 and up, the policy must apply to all subdomains as well.
-
-### Findings Overview
-
-| Severity | Count |
-|----------|-------|
-| 🔴 Critical | 0 |
-| 🟠 High | 0 |
-| 🟡 Medium | 0 |
-| 🟢 Low | 0 |
-
-## Result
-
-No relevant files found for ASVS requirement 3.4.1 within the audited scope.
-        
\ No newline at end of file
diff --git a/ASVS/reports/mahout/245aad3/all/3.4.2.md b/ASVS/reports/mahout/245aad3/all/3.4.2.md
deleted file mode 100644
index 1cf3f51..0000000
--- a/ASVS/reports/mahout/245aad3/all/3.4.2.md
+++ /dev/null
@@ -1,28 +0,0 @@
-# Security Audit Report: ASVS 3.4.2
-
-## Executive Summary
-
-| Field | Value |
-|-------|-------|
-| **Repository** | apache/mahout |
-| **Audit Date** | May 05, 2026 |
-| **Auditor** | Tooling Agents (bundled-pass mode) |
-| **ASVS Requirement** | ASVS 3.4.2 |
-| **Files Analyzed** | 0 relevant / 394 total |
-| **Files Skipped** | 36 |
-
-**Requirement description:** Verify that the Cross-Origin Resource Sharing (CORS) Access-Control-Allow-Origin header field is a fixed value by the application, or if the Origin HTTP request header field value is used, it is validated against an allowlist of trusted origins. When 'Access-Control-Allow-Origin: *' needs to be…
-
-### Findings Overview
-
-| Severity | Count |
-|----------|-------|
-| 🔴 Critical | 0 |
-| 🟠 High | 0 |
-| 🟡 Medium | 0 |
-| 🟢 Low | 0 |
-
-## Result
-
-No relevant files found for ASVS requirement 3.4.2 within the audited scope.
-        
\ No newline at end of file
diff --git a/ASVS/reports/mahout/245aad3/all/3.5.1.md b/ASVS/reports/mahout/245aad3/all/3.5.1.md
deleted file mode 100644
index 17ecc40..0000000
--- a/ASVS/reports/mahout/245aad3/all/3.5.1.md
+++ /dev/null
@@ -1,28 +0,0 @@
-# Security Audit Report: ASVS 3.5.1
-
-## Executive Summary
-
-| Field | Value |
-|-------|-------|
-| **Repository** | apache/mahout |
-| **Audit Date** | May 05, 2026 |
-| **Auditor** | Tooling Agents (bundled-pass mode) |
-| **ASVS Requirement** | ASVS 3.5.1 |
-| **Files Analyzed** | 0 relevant / 394 total |
-| **Files Skipped** | 36 |
-
-**Requirement description:** Verify that, if the application does not rely on the CORS preflight mechanism to prevent disallowed cross-origin requests to use sensitive functionality, these requests are validated to ensure they originate from the application itself. This may be done by using and validating anti-forgery tokens…
-
-### Findings Overview
-
-| Severity | Count |
-|----------|-------|
-| 🔴 Critical | 0 |
-| 🟠 High | 0 |
-| 🟡 Medium | 0 |
-| 🟢 Low | 0 |
-
-## Result
-
-No relevant files found for ASVS requirement 3.5.1 within the audited scope.
-        
\ No newline at end of file
diff --git a/ASVS/reports/mahout/245aad3/all/3.5.2.md b/ASVS/reports/mahout/245aad3/all/3.5.2.md
deleted file mode 100644
index 0ac4897..0000000
--- a/ASVS/reports/mahout/245aad3/all/3.5.2.md
+++ /dev/null
@@ -1,28 +0,0 @@
-# Security Audit Report: ASVS 3.5.2
-
-## Executive Summary
-
-| Field | Value |
-|-------|-------|
-| **Repository** | apache/mahout |
-| **Audit Date** | May 05, 2026 |
-| **Auditor** | Tooling Agents (bundled-pass mode) |
-| **ASVS Requirement** | ASVS 3.5.2 |
-| **Files Analyzed** | 0 relevant / 394 total |
-| **Files Skipped** | 36 |
-
-**Requirement description:** Verify that, if the application relies on the CORS preflight mechanism to prevent disallowed cross-origin use of sensitive functionality, it is not possible to call the functionality with a request which does not trigger a CORS-preflight request. This may require checking the values of the 'Origin'…
-
-### Findings Overview
-
-| Severity | Count |
-|----------|-------|
-| 🔴 Critical | 0 |
-| 🟠 High | 0 |
-| 🟡 Medium | 0 |
-| 🟢 Low | 0 |
-
-## Result
-
-No relevant files found for ASVS requirement 3.5.2 within the audited scope.
-        
\ No newline at end of file
diff --git a/ASVS/reports/mahout/245aad3/all/3.5.3.md b/ASVS/reports/mahout/245aad3/all/3.5.3.md
deleted file mode 100644
index 92f12d7..0000000
--- a/ASVS/reports/mahout/245aad3/all/3.5.3.md
+++ /dev/null
@@ -1,28 +0,0 @@
-# Security Audit Report: ASVS 3.5.3
-
-## Executive Summary
-
-| Field | Value |
-|-------|-------|
-| **Repository** | apache/mahout |
-| **Audit Date** | May 05, 2026 |
-| **Auditor** | Tooling Agents (bundled-pass mode) |
-| **ASVS Requirement** | ASVS 3.5.3 |
-| **Files Analyzed** | 0 relevant / 394 total |
-| **Files Skipped** | 36 |
-
-**Requirement description:** Verify that HTTP requests to sensitive functionality use appropriate HTTP methods such as POST, PUT, PATCH, or DELETE, and not methods defined by the HTTP specification as "safe" such as HEAD, OPTIONS, or GET. Alternatively, strict validation of the Sec-Fetch-* request header fields can be used to…
-
-### Findings Overview
-
-| Severity | Count |
-|----------|-------|
-| 🔴 Critical | 0 |
-| 🟠 High | 0 |
-| 🟡 Medium | 0 |
-| 🟢 Low | 0 |
-
-## Result
-
-No relevant files found for ASVS requirement 3.5.3 within the audited scope.
-        
\ No newline at end of file
diff --git a/ASVS/reports/mahout/245aad3/all/4.1.1.md b/ASVS/reports/mahout/245aad3/all/4.1.1.md
deleted file mode 100644
index 5950e7b..0000000
--- a/ASVS/reports/mahout/245aad3/all/4.1.1.md
+++ /dev/null
@@ -1,28 +0,0 @@
-# Security Audit Report: ASVS 4.1.1
-
-## Executive Summary
-
-| Field | Value |
-|-------|-------|
-| **Repository** | apache/mahout |
-| **Audit Date** | May 05, 2026 |
-| **Auditor** | Tooling Agents (bundled-pass mode) |
-| **ASVS Requirement** | ASVS 4.1.1 |
-| **Files Analyzed** | 0 relevant / 394 total |
-| **Files Skipped** | 36 |
-
-**Requirement description:** Verify that every HTTP response with a message body contains a Content-Type header field that matches the actual content of the response, including the charset parameter to specify safe character encoding (e.g., UTF-8, ISO-8859-1) according to IANA Media Types, such as "text/", "/+xml" and "/xml".
-
-### Findings Overview
-
-| Severity | Count |
-|----------|-------|
-| 🔴 Critical | 0 |
-| 🟠 High | 0 |
-| 🟡 Medium | 0 |
-| 🟢 Low | 0 |
-
-## Result
-
-No relevant files found for ASVS requirement 4.1.1 within the audited scope.
-        
\ No newline at end of file
diff --git a/ASVS/reports/mahout/245aad3/all/4.4.1.md b/ASVS/reports/mahout/245aad3/all/4.4.1.md
deleted file mode 100644
index 9350d2e..0000000
--- a/ASVS/reports/mahout/245aad3/all/4.4.1.md
+++ /dev/null
@@ -1,28 +0,0 @@
-# Security Audit Report: ASVS 4.4.1
-
-## Executive Summary
-
-| Field | Value |
-|-------|-------|
-| **Repository** | apache/mahout |
-| **Audit Date** | May 05, 2026 |
-| **Auditor** | Tooling Agents (bundled-pass mode) |
-| **ASVS Requirement** | ASVS 4.4.1 |
-| **Files Analyzed** | 0 relevant / 394 total |
-| **Files Skipped** | 36 |
-
-**Requirement description:** Verify that WebSocket over TLS (WSS) is used for all WebSocket connections.
-
-### Findings Overview
-
-| Severity | Count |
-|----------|-------|
-| 🔴 Critical | 0 |
-| 🟠 High | 0 |
-| 🟡 Medium | 0 |
-| 🟢 Low | 0 |
-
-## Result
-
-No relevant files found for ASVS requirement 4.4.1 within the audited scope.
-        
\ No newline at end of file
diff --git a/ASVS/reports/mahout/245aad3/all/5.2.1.md b/ASVS/reports/mahout/245aad3/all/5.2.1.md
deleted file mode 100644
index b87b3dc..0000000
--- a/ASVS/reports/mahout/245aad3/all/5.2.1.md
+++ /dev/null
@@ -1,28 +0,0 @@
-# Security Audit Report: ASVS 5.2.1
-
-## Executive Summary
-
-| Field | Value |
-|-------|-------|
-| **Repository** | apache/mahout |
-| **Audit Date** | May 05, 2026 |
-| **Auditor** | Tooling Agents (bundled-pass mode) |
-| **ASVS Requirement** | ASVS 5.2.1 |
-| **Files Analyzed** | 0 relevant / 394 total |
-| **Files Skipped** | 36 |
-
-**Requirement description:** Verify that the application will only accept files of a size which it can process without causing a loss of performance or a denial of service attack.
-
-### Findings Overview
-
-| Severity | Count |
-|----------|-------|
-| 🔴 Critical | 0 |
-| 🟠 High | 0 |
-| 🟡 Medium | 0 |
-| 🟢 Low | 0 |
-
-## Result
-
-No relevant files found for ASVS requirement 5.2.1 within the audited scope.
-        
\ No newline at end of file
diff --git a/ASVS/reports/mahout/245aad3/all/5.2.2.md b/ASVS/reports/mahout/245aad3/all/5.2.2.md
deleted file mode 100644
index 6e4ee0d..0000000
--- a/ASVS/reports/mahout/245aad3/all/5.2.2.md
+++ /dev/null
@@ -1,28 +0,0 @@
-# Security Audit Report: ASVS 5.2.2
-
-## Executive Summary
-
-| Field | Value |
-|-------|-------|
-| **Repository** | apache/mahout |
-| **Audit Date** | May 05, 2026 |
-| **Auditor** | Tooling Agents (bundled-pass mode) |
-| **ASVS Requirement** | ASVS 5.2.2 |
-| **Files Analyzed** | 0 relevant / 394 total |
-| **Files Skipped** | 36 |
-
-**Requirement description:** Verify that when the application accepts a file, either on its own or within an archive such as a zip file, it checks if the file extension matches an expected file extension and validates that the contents correspond to the type represented by the extension. This includes, but is not limited to…
-
-### Findings Overview
-
-| Severity | Count |
-|----------|-------|
-| 🔴 Critical | 0 |
-| 🟠 High | 0 |
-| 🟡 Medium | 0 |
-| 🟢 Low | 0 |
-
-## Result
-
-No relevant files found for ASVS requirement 5.2.2 within the audited scope.
-        
\ No newline at end of file
diff --git a/ASVS/reports/mahout/245aad3/all/5.3.1.md b/ASVS/reports/mahout/245aad3/all/5.3.1.md
deleted file mode 100644
index 96c213e..0000000
--- a/ASVS/reports/mahout/245aad3/all/5.3.1.md
+++ /dev/null
@@ -1,28 +0,0 @@
-# Security Audit Report: ASVS 5.3.1
-
-## Executive Summary
-
-| Field | Value |
-|-------|-------|
-| **Repository** | apache/mahout |
-| **Audit Date** | May 05, 2026 |
-| **Auditor** | Tooling Agents (bundled-pass mode) |
-| **ASVS Requirement** | ASVS 5.3.1 |
-| **Files Analyzed** | 0 relevant / 394 total |
-| **Files Skipped** | 36 |
-
-**Requirement description:** Verify that files uploaded or generated by untrusted input and stored in a public folder, are not executed as server-side program code when accessed directly with an HTTP request.
-
-### Findings Overview
-
-| Severity | Count |
-|----------|-------|
-| 🔴 Critical | 0 |
-| 🟠 High | 0 |
-| 🟡 Medium | 0 |
-| 🟢 Low | 0 |
-
-## Result
-
-No relevant files found for ASVS requirement 5.3.1 within the audited scope.
-        
\ No newline at end of file
diff --git a/ASVS/reports/mahout/245aad3/all/5.3.2.md b/ASVS/reports/mahout/245aad3/all/5.3.2.md
deleted file mode 100644
index b5f4d72..0000000
--- a/ASVS/reports/mahout/245aad3/all/5.3.2.md
+++ /dev/null
@@ -1,195 +0,0 @@
-# Security Audit Report: ASVS 5.3.2
-
-## Executive Summary
-
-| Field | Value |
-|-------|-------|
-| **Repository** | apache/mahout |
-| **Audit Date** | May 05, 2026 |
-| **Auditor** | Tooling Agents (bundled-pass mode) |
-| **ASVS Requirement** | ASVS 5.3.2 |
-| **Files Analyzed** | 1 relevant / 394 total |
-| **Files Skipped** | 36 |
-
-**Requirement description:** Verify that when the application creates file paths for file operations, instead of user-submitted filenames, it uses internally generated or trusted data, or if user-submitted filenames or file metadata must be used, strict validation and sanitization must be applied. This is to protect against…
-
-### Findings Overview
-
-| Severity | Count |
-|----------|-------|
-| 🔴 Critical | 0 |
-| 🟠 High | 0 |
-| 🟡 Medium | 1 |
-| 🟢 Low | 0 |
-
----
-
-## ASVS-5.3.2: File Storage — Path Traversal Protection
-
-### Findings for 5.3.2
-
-#### [MEDIUM]
-
-**Finding ID:** ASVS-532-MED-001
-**Title:** `path_from_py` accepts user-supplied file paths with no validation or sanitization
-**Location:** `qdp/qdp-python/src/loader.rs`, function `path_from_py`, lines 109–113
-
-**Vulnerable code:**
-```rust
-/// Resolve path from Python str or pathlib.Path (__fspath__).
-pub fn path_from_py(path: &Bound<'_, PyAny>) -> PyResult<String> {
-    path.extract::<String>().or_else(|_| {
-        path.call_method0("__fspath__")
-            .and_then(|m| m.extract::<String>())
-    })
-}
-```
-
-**Data flow:**
-`Python caller (user-controlled str/pathlib.Path)` → `path_from_py()` → raw `String` → downstream `QdpEngine::encode_from_parquet()`, `encode_from_arrow_ipc()`, `encode_from_numpy()`, `encode_from_torch()`, `encode_from_tensorflow()` → OS-level file open
-
-**Missing control:** No validation or sanitization is applied. Specifically absent are:
-- Path traversal sequence rejection (`../`, `..\\`, encoded variants)
-- Null byte injection checks
-- Allowlist of permitted base directories
-- Canonicalization (resolve symlinks, normalize `.`/`..`)
-- Scheme validation (no check preventing `file://`, `http://`, etc. when `remote-io` is disabled)
-
-**Entry points that call `path_from_py` (or consume its output):**
-From the code inventory, the following `QdpEngine` methods accept a `path: &str` originating from Python input:
-| Method | File Format |
-|--------|-------------|
-| `encode_from_parquet` | `.parquet` |
-| `encode_from_arrow_ipc` | `.arrow`, `.feather` |
-| `encode_from_numpy` | `.npy` |
-| `encode_from_torch` | `.pt`, `.pth` |
-| `encode_from_tensorflow` | `.pb` |
-
-None of these downstream consumers perform path validation either (**Type A — entry point with NO control**).
-
-**Proof of concept:**
-```python
-from qumat_qdp import QuantumDataLoader
-
-# Path traversal — read /etc/passwd (if it happened to be a valid format)
-loader = QuantumDataLoader(
-    path="../../../../etc/shadow",
-    num_qubits=4,
-    encoding_method="amplitude",
-    batch_size=1
-)
-
-# Null byte injection (Python 3 blocks this at OS level, but not all
-# downstream Rust calls may)
-loader = QuantumDataLoader(
-    path="/safe/dir/data.parquet\x00../../etc/shadow",
-    ...
-)
-```
-
-**Impact:**
-If this library is integrated into a service (API, notebook server, job scheduler) where file paths originate from untrusted user input, an attacker could:
-1. **Path traversal:** Read arbitrary files on the server accessible to the process.
-2. **SSRF (with `remote-io` feature):** Supply `s3://` or `gs://` URLs targeting internal infrastructure resources.
-3. **Information disclosure:** Exfiltrate sensitive configuration, credentials, or data.
-
-**Remediation:**
-```rust
-use std::path::{Path, PathBuf};
-
-/// Resolve and validate a user-supplied path, constraining it to an
-/// allowed base directory and rejecting traversal attempts.
-pub fn path_from_py(path: &Bound<'_, PyAny>, allowed_base: &Path) -> PyResult<String> {
-    let raw: String = path.extract::<String>().or_else(|_| {
-        path.call_method0("__fspath__")
-            .and_then(|m| m.extract::<String>())
-    })?;
-
-    // Reject null bytes
-    if raw.contains('\0') {
-        return Err(pyo3::exceptions::PyValueError::new_err(
-            "Path must not contain null bytes",
-        ));
-    }
-
-    // Canonicalize to resolve symlinks and ../ sequences
-    let canonical = allowed_base
-        .join(&raw)
-        .canonicalize()
-        .map_err(|e| pyo3::exceptions::PyValueError::new_err(
-            format!("Invalid path '{}': {}", raw, e),
-        ))?;
-
-    // Ensure resolved path is still under the allowed base
-    if !canonical.starts_with(allowed_base) {
-        return Err(pyo3::exceptions::PyValueError::new_err(
-            format!("Path '{}' escapes allowed directory", raw),
-        ));
-    }
-
-    canonical
-        .to_str()
-        .map(|s| s.to_string())
-        .ok_or_else(|| pyo3::exceptions::PyValueError::new_err(
-            "Path contains non-UTF-8 characters",
-        ))
-}
-```
-
----
-
-### Security Controls Inventory for 5.3.2
-
-| Control | Defined? | Location | Applied at entry points? | Coverage |
-|---------|----------|----------|--------------------------|----------|
-| Path validation/sanitization | **No** | N/A | N/A | **0% — No control exists** |
-| Directory allowlist / chroot | **No** | N/A | N/A | **0%** |
-| File extension validation | **No** | N/A | N/A | **0%** (documentation lists allowed formats but no enforcement in `path_from_py`) |
-| URL scheme validation | **No** | N/A | N/A | **0%** (remote-io feature accepts `s3://`, `gs://` per docs but no scheme filter in code) |
-| Null byte rejection | **No** | N/A | N/A | **0%** (Rust `String` is null-safe, but no explicit check) |
-
-### Positive Patterns for 5.3.2
-
-1. **Whitelist of null-handling values:** The `parse_null_handling` function (lines 76–84) demonstrates a proper allowlist pattern for string inputs, rejecting unknown values with a descriptive error. This pattern should be extended to file paths.
-2. **Rust's type system:** Using `String` (not `CString`) avoids null-byte-in-middle issues at the Rust/OS boundary for most standard library I/O operations.
-3. **Documentation lists supported formats:** The API documentation (`api.md`, `getting-started.md`) clearly specifies allowed file extensions and URL schemes, providing a basis for implementing validation.
-
----
-
-
-
-## Cross-cutting Architecture Observations
-
-1. **Library vs. Application scope:** The audited code is a native Rust extension library (PyO3) for GPU-accelerated quantum computing, not a web application. Five of six ASVS requirements (6.1.1, 6.2.1–6.2.4) relate to authentication and passwords, which are entirely absent from this codebase. These requirements would apply to any service or application that wraps this library and exposes it to end users.
-
-2. **File I/O surface area is the primary risk:** The sole applicable ASVS requirement (5.3.2) has a genuine gap. The library accepts file paths from Python callers and performs I/O operations (reading Parquet, Arrow, NumPy, PyTorch, TensorFlow files) with **no path validation**. The `path_from_py` function is the single chokepoint where validation should be added.
-
-3. **Input validation is inconsistent:** The codebase demonstrates strong validation for numeric/enum inputs (e.g., `parse_null_handling` rejects unknown values, encoding methods are validated, qubit ranges are checked, GPU pointer validity is verified via `cudaPointerGetAttributes`). However, string-based inputs that map to filesystem or network resources (`path`) receive no validation, creating an asymmetry.
-
-4. **Remote I/O amplifies risk:** When the `remote-io` feature flag is enabled, the library can access `s3://` and `gs://` URLs. Combined with the absence of path/URL validation, this creates an SSRF attack surface if an attacker can control the path input.
-
-5. **Documentation quality is high but does not address security boundaries:** The API documentation thoroughly describes input constraints (data types, shapes, encoding rules) but does not specify any security boundaries for file paths (e.g., "paths must be absolute and within a designated data directory").
-
-## Cross-cutting Recommendations
-
-### Immediate (P0 — before next release)
-
-1. **Add path validation to `path_from_py`:** Implement canonicalization, traversal rejection, and optionally a base-directory constraint. This is the single actionable vulnerability in scope.
-
-2. **Add URL scheme validation when `remote-io` is enabled:** If the path starts with a scheme (`s3://`, `gs://`, `http://`, etc.), validate against an allowlist of permitted schemes and reject unexpected ones (especially `file://`, `http://`, `ftp://`).
-
-### Short-term (next 1–2 sprints)
-
-3. **Document security boundaries for file path inputs:** Add a "Security Considerations" section to the API documentation specifying:
-   - Which inputs are trusted vs. potentially untrusted
-   - How integrators should sanitize paths before passing them to the library
-   - The SSRF risk when `remote-io` is enabled
-
-4. **Add file extension validation:** Enforce that the resolved path ends with one of the documented supported extensions (`.parquet`, `.arrow`, `.feather`, `.npy`, `.pt`, `.pth`, `.pb`) to limit the attack surface.
-
-### Long-term (roadmap)
-
-5. **If the library is ever embedded in a service context:** The wrapping application must implement all ASVS authentication controls (6.x). Consider providing integration guidance or a reference architecture that includes rate limiting, authentication, and authorization layers.
-
-6. **Consider a `SafePath` wrapper type:** Create a validated path type that can only be constructed through the validation function, enforcing the "parse, don't validate" pattern and making it impossible to accidentally use an unvalidated path in I/O operations.
-        
\ No newline at end of file
diff --git a/ASVS/reports/mahout/245aad3/all/6.1.1.md b/ASVS/reports/mahout/245aad3/all/6.1.1.md
deleted file mode 100644
index ef98d50..0000000
--- a/ASVS/reports/mahout/245aad3/all/6.1.1.md
+++ /dev/null
@@ -1,81 +0,0 @@
-# Security Audit Report: ASVS 6.1.1
-
-## Executive Summary
-
-| Field | Value |
-|-------|-------|
-| **Repository** | apache/mahout |
-| **Audit Date** | May 05, 2026 |
-| **Auditor** | Tooling Agents (bundled-pass mode) |
-| **ASVS Requirement** | ASVS 6.1.1 |
-| **Files Analyzed** | 1 relevant / 394 total |
-| **Files Skipped** | 36 |
-
-**Requirement description:** Verify that application documentation defines how controls such as rate limiting, anti-automation, and adaptive response, are used to defend against attacks such as credential stuffing and password brute force. The documentation must make clear how these controls are configured and prevent…
-
-### Findings Overview
-
-| Severity | Count |
-|----------|-------|
-| 🔴 Critical | 0 |
-| 🟠 High | 0 |
-| 🟡 Medium | 0 |
-| 🟢 Low | 0 |
-
----
-
-## ASVS-6.1.1: Authentication Documentation
-
-### Findings for 6.1.1
-
-No findings detected.
-
-This codebase is a GPU-accelerated quantum data processing library. It does not implement an authentication system, user accounts, login flows, or session management. The ASVS 6.1.1 requirement (documenting rate limiting, anti-automation, and adaptive response for credential stuffing / brute force defense) is **not applicable** to this scope.
-
-### Security Controls Inventory for 6.1.1
-
-No applicable controls in this scope. The library has no authentication layer. If this library is embedded in a service with authentication, that service's authentication documentation would need to satisfy this requirement independently.
-
-### Positive Patterns for 6.1.1
-
-- The `dev/release.md` documentation demonstrates good security documentation practices for the release process (GPG signing, checksum verification, token management with `chmod 600`), suggesting the project team is capable of producing security documentation when the domain warrants it.
-
----
-
-
-
-## Cross-cutting Architecture Observations
-
-1. **Library vs. Application scope:** The audited code is a native Rust extension library (PyO3) for GPU-accelerated quantum computing, not a web application. Five of six ASVS requirements (6.1.1, 6.2.1–6.2.4) relate to authentication and passwords, which are entirely absent from this codebase. These requirements would apply to any service or application that wraps this library and exposes it to end users.
-
-2. **File I/O surface area is the primary risk:** The sole applicable ASVS requirement (5.3.2) has a genuine gap. The library accepts file paths from Python callers and performs I/O operations (reading Parquet, Arrow, NumPy, PyTorch, TensorFlow files) with **no path validation**. The `path_from_py` function is the single chokepoint where validation should be added.
-
-3. **Input validation is inconsistent:** The codebase demonstrates strong validation for numeric/enum inputs (e.g., `parse_null_handling` rejects unknown values, encoding methods are validated, qubit ranges are checked, GPU pointer validity is verified via `cudaPointerGetAttributes`). However, string-based inputs that map to filesystem or network resources (`path`) receive no validation, creating an asymmetry.
-
-4. **Remote I/O amplifies risk:** When the `remote-io` feature flag is enabled, the library can access `s3://` and `gs://` URLs. Combined with the absence of path/URL validation, this creates an SSRF attack surface if an attacker can control the path input.
-
-5. **Documentation quality is high but does not address security boundaries:** The API documentation thoroughly describes input constraints (data types, shapes, encoding rules) but does not specify any security boundaries for file paths (e.g., "paths must be absolute and within a designated data directory").
-
-## Cross-cutting Recommendations
-
-### Immediate (P0 — before next release)
-
-1. **Add path validation to `path_from_py`:** Implement canonicalization, traversal rejection, and optionally a base-directory constraint. This is the single actionable vulnerability in scope.
-
-2. **Add URL scheme validation when `remote-io` is enabled:** If the path starts with a scheme (`s3://`, `gs://`, `http://`, etc.), validate against an allowlist of permitted schemes and reject unexpected ones (especially `file://`, `http://`, `ftp://`).
-
-### Short-term (next 1–2 sprints)
-
-3. **Document security boundaries for file path inputs:** Add a "Security Considerations" section to the API documentation specifying:
-   - Which inputs are trusted vs. potentially untrusted
-   - How integrators should sanitize paths before passing them to the library
-   - The SSRF risk when `remote-io` is enabled
-
-4. **Add file extension validation:** Enforce that the resolved path ends with one of the documented supported extensions (`.parquet`, `.arrow`, `.feather`, `.npy`, `.pt`, `.pth`, `.pb`) to limit the attack surface.
-
-### Long-term (roadmap)
-
-5. **If the library is ever embedded in a service context:** The wrapping application must implement all ASVS authentication controls (6.x). Consider providing integration guidance or a reference architecture that includes rate limiting, authentication, and authorization layers.
-
-6. **Consider a `SafePath` wrapper type:** Create a validated path type that can only be constructed through the validation function, enforcing the "parse, don't validate" pattern and making it impossible to accidentally use an unvalidated path in I/O operations.
-        
\ No newline at end of file
diff --git a/ASVS/reports/mahout/245aad3/all/6.2.1.md b/ASVS/reports/mahout/245aad3/all/6.2.1.md
deleted file mode 100644
index 2c241fd..0000000
--- a/ASVS/reports/mahout/245aad3/all/6.2.1.md
+++ /dev/null
@@ -1,81 +0,0 @@
-# Security Audit Report: ASVS 6.2.1
-
-## Executive Summary
-
-| Field | Value |
-|-------|-------|
-| **Repository** | apache/mahout |
-| **Audit Date** | May 05, 2026 |
-| **Auditor** | Tooling Agents (bundled-pass mode) |
-| **ASVS Requirement** | ASVS 6.2.1 |
-| **Files Analyzed** | 1 relevant / 394 total |
-| **Files Skipped** | 36 |
-
-**Requirement description:** Verify that user set passwords are at least 8 characters in length although a minimum of 15 characters is strongly recommended.
-
-### Findings Overview
-
-| Severity | Count |
-|----------|-------|
-| 🔴 Critical | 0 |
-| 🟠 High | 0 |
-| 🟡 Medium | 0 |
-| 🟢 Low | 0 |
-
----
-
-## ASVS-6.2.1: Password Minimum Length
-
-### Findings for 6.2.1
-
-No findings detected.
-
-This codebase does not handle user passwords. There is no registration, login, or credential storage functionality. The requirement is **not applicable** to this scope.
-
-### Security Controls Inventory for 6.2.1
-
-No applicable controls in this scope. No password handling exists in the audited code.
-
-### Positive Patterns for 6.2.1
-
-None applicable.
-
----
-
-
-
-## Cross-cutting Architecture Observations
-
-1. **Library vs. Application scope:** The audited code is a native Rust extension library (PyO3) for GPU-accelerated quantum computing, not a web application. Five of six ASVS requirements (6.1.1, 6.2.1–6.2.4) relate to authentication and passwords, which are entirely absent from this codebase. These requirements would apply to any service or application that wraps this library and exposes it to end users.
-
-2. **File I/O surface area is the primary risk:** The sole applicable ASVS requirement (5.3.2) has a genuine gap. The library accepts file paths from Python callers and performs I/O operations (reading Parquet, Arrow, NumPy, PyTorch, TensorFlow files) with **no path validation**. The `path_from_py` function is the single chokepoint where validation should be added.
-
-3. **Input validation is inconsistent:** The codebase demonstrates strong validation for numeric/enum inputs (e.g., `parse_null_handling` rejects unknown values, encoding methods are validated, qubit ranges are checked, GPU pointer validity is verified via `cudaPointerGetAttributes`). However, string-based inputs that map to filesystem or network resources (`path`) receive no validation, creating an asymmetry.
-
-4. **Remote I/O amplifies risk:** When the `remote-io` feature flag is enabled, the library can access `s3://` and `gs://` URLs. Combined with the absence of path/URL validation, this creates an SSRF attack surface if an attacker can control the path input.
-
-5. **Documentation quality is high but does not address security boundaries:** The API documentation thoroughly describes input constraints (data types, shapes, encoding rules) but does not specify any security boundaries for file paths (e.g., "paths must be absolute and within a designated data directory").
-
-## Cross-cutting Recommendations
-
-### Immediate (P0 — before next release)
-
-1. **Add path validation to `path_from_py`:** Implement canonicalization, traversal rejection, and optionally a base-directory constraint. This is the single actionable vulnerability in scope.
-
-2. **Add URL scheme validation when `remote-io` is enabled:** If the path starts with a scheme (`s3://`, `gs://`, `http://`, etc.), validate against an allowlist of permitted schemes and reject unexpected ones (especially `file://`, `http://`, `ftp://`).
-
-### Short-term (next 1–2 sprints)
-
-3. **Document security boundaries for file path inputs:** Add a "Security Considerations" section to the API documentation specifying:
-   - Which inputs are trusted vs. potentially untrusted
-   - How integrators should sanitize paths before passing them to the library
-   - The SSRF risk when `remote-io` is enabled
-
-4. **Add file extension validation:** Enforce that the resolved path ends with one of the documented supported extensions (`.parquet`, `.arrow`, `.feather`, `.npy`, `.pt`, `.pth`, `.pb`) to limit the attack surface.
-
-### Long-term (roadmap)
-
-5. **If the library is ever embedded in a service context:** The wrapping application must implement all ASVS authentication controls (6.x). Consider providing integration guidance or a reference architecture that includes rate limiting, authentication, and authorization layers.
-
-6. **Consider a `SafePath` wrapper type:** Create a validated path type that can only be constructed through the validation function, enforcing the "parse, don't validate" pattern and making it impossible to accidentally use an unvalidated path in I/O operations.
-        
\ No newline at end of file
diff --git a/ASVS/reports/mahout/245aad3/all/6.2.2.md b/ASVS/reports/mahout/245aad3/all/6.2.2.md
deleted file mode 100644
index c1bbbc8..0000000
--- a/ASVS/reports/mahout/245aad3/all/6.2.2.md
+++ /dev/null
@@ -1,81 +0,0 @@
-# Security Audit Report: ASVS 6.2.2
-
-## Executive Summary
-
-| Field | Value |
-|-------|-------|
-| **Repository** | apache/mahout |
-| **Audit Date** | May 05, 2026 |
-| **Auditor** | Tooling Agents (bundled-pass mode) |
-| **ASVS Requirement** | ASVS 6.2.2 |
-| **Files Analyzed** | 1 relevant / 394 total |
-| **Files Skipped** | 36 |
-
-**Requirement description:** Verify that users can change their password.
-
-### Findings Overview
-
-| Severity | Count |
-|----------|-------|
-| 🔴 Critical | 0 |
-| 🟠 High | 0 |
-| 🟡 Medium | 0 |
-| 🟢 Low | 0 |
-
----
-
-## ASVS-6.2.2: Password Change Capability
-
-### Findings for 6.2.2
-
-No findings detected.
-
-This codebase does not implement user accounts or password management. The requirement is **not applicable** to this scope.
-
-### Security Controls Inventory for 6.2.2
-
-No applicable controls in this scope.
-
-### Positive Patterns for 6.2.2
-
-None applicable.
-
----
-
-
-
-## Cross-cutting Architecture Observations
-
-1. **Library vs. Application scope:** The audited code is a native Rust extension library (PyO3) for GPU-accelerated quantum computing, not a web application. Five of six ASVS requirements (6.1.1, 6.2.1–6.2.4) relate to authentication and passwords, which are entirely absent from this codebase. These requirements would apply to any service or application that wraps this library and exposes it to end users.
-
-2. **File I/O surface area is the primary risk:** The sole applicable ASVS requirement (5.3.2) has a genuine gap. The library accepts file paths from Python callers and performs I/O operations (reading Parquet, Arrow, NumPy, PyTorch, TensorFlow files) with **no path validation**. The `path_from_py` function is the single chokepoint where validation should be added.
-
-3. **Input validation is inconsistent:** The codebase demonstrates strong validation for numeric/enum inputs (e.g., `parse_null_handling` rejects unknown values, encoding methods are validated, qubit ranges are checked, GPU pointer validity is verified via `cudaPointerGetAttributes`). However, string-based inputs that map to filesystem or network resources (`path`) receive no validation, creating an asymmetry.
-
-4. **Remote I/O amplifies risk:** When the `remote-io` feature flag is enabled, the library can access `s3://` and `gs://` URLs. Combined with the absence of path/URL validation, this creates an SSRF attack surface if an attacker can control the path input.
-
-5. **Documentation quality is high but does not address security boundaries:** The API documentation thoroughly describes input constraints (data types, shapes, encoding rules) but does not specify any security boundaries for file paths (e.g., "paths must be absolute and within a designated data directory").
-
-## Cross-cutting Recommendations
-
-### Immediate (P0 — before next release)
-
-1. **Add path validation to `path_from_py`:** Implement canonicalization, traversal rejection, and optionally a base-directory constraint. This is the single actionable vulnerability in scope.
-
-2. **Add URL scheme validation when `remote-io` is enabled:** If the path starts with a scheme (`s3://`, `gs://`, `http://`, etc.), validate against an allowlist of permitted schemes and reject unexpected ones (especially `file://`, `http://`, `ftp://`).
-
-### Short-term (next 1–2 sprints)
-
-3. **Document security boundaries for file path inputs:** Add a "Security Considerations" section to the API documentation specifying:
-   - Which inputs are trusted vs. potentially untrusted
-   - How integrators should sanitize paths before passing them to the library
-   - The SSRF risk when `remote-io` is enabled
-
-4. **Add file extension validation:** Enforce that the resolved path ends with one of the documented supported extensions (`.parquet`, `.arrow`, `.feather`, `.npy`, `.pt`, `.pth`, `.pb`) to limit the attack surface.
-
-### Long-term (roadmap)
-
-5. **If the library is ever embedded in a service context:** The wrapping application must implement all ASVS authentication controls (6.x). Consider providing integration guidance or a reference architecture that includes rate limiting, authentication, and authorization layers.
-
-6. **Consider a `SafePath` wrapper type:** Create a validated path type that can only be constructed through the validation function, enforcing the "parse, don't validate" pattern and making it impossible to accidentally use an unvalidated path in I/O operations.
-        
\ No newline at end of file
diff --git a/ASVS/reports/mahout/245aad3/all/6.2.3.md b/ASVS/reports/mahout/245aad3/all/6.2.3.md
deleted file mode 100644
index 6e26250..0000000
--- a/ASVS/reports/mahout/245aad3/all/6.2.3.md
+++ /dev/null
@@ -1,81 +0,0 @@
-# Security Audit Report: ASVS 6.2.3
-
-## Executive Summary
-
-| Field | Value |
-|-------|-------|
-| **Repository** | apache/mahout |
-| **Audit Date** | May 05, 2026 |
-| **Auditor** | Tooling Agents (bundled-pass mode) |
-| **ASVS Requirement** | ASVS 6.2.3 |
-| **Files Analyzed** | 1 relevant / 394 total |
-| **Files Skipped** | 36 |
-
-**Requirement description:** Verify that password change functionality requires the user's current and new password.
-
-### Findings Overview
-
-| Severity | Count |
-|----------|-------|
-| 🔴 Critical | 0 |
-| 🟠 High | 0 |
-| 🟡 Medium | 0 |
-| 🟢 Low | 0 |
-
----
-
-## ASVS-6.2.3: Password Change Requires Current and New Password
-
-### Findings for 6.2.3
-
-No findings detected.
-
-This codebase does not implement password change functionality. The requirement is **not applicable** to this scope.
-
-### Security Controls Inventory for 6.2.3
-
-No applicable controls in this scope.
-
-### Positive Patterns for 6.2.3
-
-None applicable.
-
----
-
-
-
-## Cross-cutting Architecture Observations
-
-1. **Library vs. Application scope:** The audited code is a native Rust extension library (PyO3) for GPU-accelerated quantum computing, not a web application. Five of six ASVS requirements (6.1.1, 6.2.1–6.2.4) relate to authentication and passwords, which are entirely absent from this codebase. These requirements would apply to any service or application that wraps this library and exposes it to end users.
-
-2. **File I/O surface area is the primary risk:** The sole applicable ASVS requirement (5.3.2) has a genuine gap. The library accepts file paths from Python callers and performs I/O operations (reading Parquet, Arrow, NumPy, PyTorch, TensorFlow files) with **no path validation**. The `path_from_py` function is the single chokepoint where validation should be added.
-
-3. **Input validation is inconsistent:** The codebase demonstrates strong validation for numeric/enum inputs (e.g., `parse_null_handling` rejects unknown values, encoding methods are validated, qubit ranges are checked, GPU pointer validity is verified via `cudaPointerGetAttributes`). However, string-based inputs that map to filesystem or network resources (`path`) receive no validation, creating an asymmetry.
-
-4. **Remote I/O amplifies risk:** When the `remote-io` feature flag is enabled, the library can access `s3://` and `gs://` URLs. Combined with the absence of path/URL validation, this creates an SSRF attack surface if an attacker can control the path input.
-
-5. **Documentation quality is high but does not address security boundaries:** The API documentation thoroughly describes input constraints (data types, shapes, encoding rules) but does not specify any security boundaries for file paths (e.g., "paths must be absolute and within a designated data directory").
-
-## Cross-cutting Recommendations
-
-### Immediate (P0 — before next release)
-
-1. **Add path validation to `path_from_py`:** Implement canonicalization, traversal rejection, and optionally a base-directory constraint. This is the single actionable vulnerability in scope.
-
-2. **Add URL scheme validation when `remote-io` is enabled:** If the path starts with a scheme (`s3://`, `gs://`, `http://`, etc.), validate against an allowlist of permitted schemes and reject unexpected ones (especially `file://`, `http://`, `ftp://`).
-
-### Short-term (next 1–2 sprints)
-
-3. **Document security boundaries for file path inputs:** Add a "Security Considerations" section to the API documentation specifying:
-   - Which inputs are trusted vs. potentially untrusted
-   - How integrators should sanitize paths before passing them to the library
-   - The SSRF risk when `remote-io` is enabled
-
-4. **Add file extension validation:** Enforce that the resolved path ends with one of the documented supported extensions (`.parquet`, `.arrow`, `.feather`, `.npy`, `.pt`, `.pth`, `.pb`) to limit the attack surface.
-
-### Long-term (roadmap)
-
-5. **If the library is ever embedded in a service context:** The wrapping application must implement all ASVS authentication controls (6.x). Consider providing integration guidance or a reference architecture that includes rate limiting, authentication, and authorization layers.
-
-6. **Consider a `SafePath` wrapper type:** Create a validated path type that can only be constructed through the validation function, enforcing the "parse, don't validate" pattern and making it impossible to accidentally use an unvalidated path in I/O operations.
-        
\ No newline at end of file
diff --git a/ASVS/reports/mahout/245aad3/all/6.2.4.md b/ASVS/reports/mahout/245aad3/all/6.2.4.md
deleted file mode 100644
index a7e232d..0000000
--- a/ASVS/reports/mahout/245aad3/all/6.2.4.md
+++ /dev/null
@@ -1,81 +0,0 @@
-# Security Audit Report: ASVS 6.2.4
-
-## Executive Summary
-
-| Field | Value |
-|-------|-------|
-| **Repository** | apache/mahout |
-| **Audit Date** | May 05, 2026 |
-| **Auditor** | Tooling Agents (bundled-pass mode) |
-| **ASVS Requirement** | ASVS 6.2.4 |
-| **Files Analyzed** | 1 relevant / 394 total |
-| **Files Skipped** | 36 |
-
-**Requirement description:** Verify that passwords submitted during account registration or password change are checked against an available set of, at least, the top 3000 passwords which match the application's password policy, e.g. minimum length.
-
-### Findings Overview
-
-| Severity | Count |
-|----------|-------|
-| 🔴 Critical | 0 |
-| 🟠 High | 0 |
-| 🟡 Medium | 0 |
-| 🟢 Low | 0 |
-
----
-
-## ASVS-6.2.4: Common Password Check
-
-### Findings for 6.2.4
-
-No findings detected.
-
-This codebase does not handle password registration or password change operations. The requirement is **not applicable** to this scope.
-
-### Security Controls Inventory for 6.2.4
-
-No applicable controls in this scope.
-
-### Positive Patterns for 6.2.4
-
-None applicable.
-
----
-
-
-
-## Cross-cutting Architecture Observations
-
-1. **Library vs. Application scope:** The audited code is a native Rust extension library (PyO3) for GPU-accelerated quantum computing, not a web application. Five of six ASVS requirements (6.1.1, 6.2.1–6.2.4) relate to authentication and passwords, which are entirely absent from this codebase. These requirements would apply to any service or application that wraps this library and exposes it to end users.
-
-2. **File I/O surface area is the primary risk:** The sole applicable ASVS requirement (5.3.2) has a genuine gap. The library accepts file paths from Python callers and performs I/O operations (reading Parquet, Arrow, NumPy, PyTorch, TensorFlow files) with **no path validation**. The `path_from_py` function is the single chokepoint where validation should be added.
-
-3. **Input validation is inconsistent:** The codebase demonstrates strong validation for numeric/enum inputs (e.g., `parse_null_handling` rejects unknown values, encoding methods are validated, qubit ranges are checked, GPU pointer validity is verified via `cudaPointerGetAttributes`). However, string-based inputs that map to filesystem or network resources (`path`) receive no validation, creating an asymmetry.
-
-4. **Remote I/O amplifies risk:** When the `remote-io` feature flag is enabled, the library can access `s3://` and `gs://` URLs. Combined with the absence of path/URL validation, this creates an SSRF attack surface if an attacker can control the path input.
-
-5. **Documentation quality is high but does not address security boundaries:** The API documentation thoroughly describes input constraints (data types, shapes, encoding rules) but does not specify any security boundaries for file paths (e.g., "paths must be absolute and within a designated data directory").
-
-## Cross-cutting Recommendations
-
-### Immediate (P0 — before next release)
-
-1. **Add path validation to `path_from_py`:** Implement canonicalization, traversal rejection, and optionally a base-directory constraint. This is the single actionable vulnerability in scope.
-
-2. **Add URL scheme validation when `remote-io` is enabled:** If the path starts with a scheme (`s3://`, `gs://`, `http://`, etc.), validate against an allowlist of permitted schemes and reject unexpected ones (especially `file://`, `http://`, `ftp://`).
-
-### Short-term (next 1–2 sprints)
-
-3. **Document security boundaries for file path inputs:** Add a "Security Considerations" section to the API documentation specifying:
-   - Which inputs are trusted vs. potentially untrusted
-   - How integrators should sanitize paths before passing them to the library
-   - The SSRF risk when `remote-io` is enabled
-
-4. **Add file extension validation:** Enforce that the resolved path ends with one of the documented supported extensions (`.parquet`, `.arrow`, `.feather`, `.npy`, `.pt`, `.pth`, `.pb`) to limit the attack surface.
-
-### Long-term (roadmap)
-
-5. **If the library is ever embedded in a service context:** The wrapping application must implement all ASVS authentication controls (6.x). Consider providing integration guidance or a reference architecture that includes rate limiting, authentication, and authorization layers.
-
-6. **Consider a `SafePath` wrapper type:** Create a validated path type that can only be constructed through the validation function, enforcing the "parse, don't validate" pattern and making it impossible to accidentally use an unvalidated path in I/O operations.
-        
\ No newline at end of file
diff --git a/ASVS/reports/mahout/245aad3/all/6.2.5.md b/ASVS/reports/mahout/245aad3/all/6.2.5.md
deleted file mode 100644
index e53b452..0000000
--- a/ASVS/reports/mahout/245aad3/all/6.2.5.md
+++ /dev/null
@@ -1,28 +0,0 @@
-# Security Audit Report: ASVS 6.2.5
-
-## Executive Summary
-
-| Field | Value |
-|-------|-------|
-| **Repository** | apache/mahout |
-| **Audit Date** | May 05, 2026 |
-| **Auditor** | Tooling Agents (bundled-pass mode) |
-| **ASVS Requirement** | ASVS 6.2.5 |
-| **Files Analyzed** | 0 relevant / 394 total |
-| **Files Skipped** | 36 |
-
-**Requirement description:** Verify that passwords of any composition can be used, without rules limiting the type of characters permitted. There must be no requirement for a minimum number of upper or lower case characters, numbers, or special characters.
-
-### Findings Overview
-
-| Severity | Count |
-|----------|-------|
-| 🔴 Critical | 0 |
-| 🟠 High | 0 |
-| 🟡 Medium | 0 |
-| 🟢 Low | 0 |
-
-## Result
-
-No relevant files found for ASVS requirement 6.2.5 within the audited scope.
-        
\ No newline at end of file
diff --git a/ASVS/reports/mahout/245aad3/all/6.2.6.md b/ASVS/reports/mahout/245aad3/all/6.2.6.md
deleted file mode 100644
index 3e834c0..0000000
--- a/ASVS/reports/mahout/245aad3/all/6.2.6.md
+++ /dev/null
@@ -1,28 +0,0 @@
-# Security Audit Report: ASVS 6.2.6
-
-## Executive Summary
-
-| Field | Value |
-|-------|-------|
-| **Repository** | apache/mahout |
-| **Audit Date** | May 05, 2026 |
-| **Auditor** | Tooling Agents (bundled-pass mode) |
-| **ASVS Requirement** | ASVS 6.2.6 |
-| **Files Analyzed** | 0 relevant / 394 total |
-| **Files Skipped** | 36 |
-
-**Requirement description:** Verify that password input fields use type=password to mask the entry. Applications may allow the user to temporarily view the entire masked password, or the last typed character of the password.
-
-### Findings Overview
-
-| Severity | Count |
-|----------|-------|
-| 🔴 Critical | 0 |
-| 🟠 High | 0 |
-| 🟡 Medium | 0 |
-| 🟢 Low | 0 |
-
-## Result
-
-No relevant files found for ASVS requirement 6.2.6 within the audited scope.
-        
\ No newline at end of file
diff --git a/ASVS/reports/mahout/245aad3/all/6.2.7.md b/ASVS/reports/mahout/245aad3/all/6.2.7.md
deleted file mode 100644
index 2ad485c..0000000
--- a/ASVS/reports/mahout/245aad3/all/6.2.7.md
+++ /dev/null
@@ -1,28 +0,0 @@
-# Security Audit Report: ASVS 6.2.7
-
-## Executive Summary
-
-| Field | Value |
-|-------|-------|
-| **Repository** | apache/mahout |
-| **Audit Date** | May 05, 2026 |
-| **Auditor** | Tooling Agents (bundled-pass mode) |
-| **ASVS Requirement** | ASVS 6.2.7 |
-| **Files Analyzed** | 0 relevant / 394 total |
-| **Files Skipped** | 36 |
-
-**Requirement description:** Verify that "paste" functionality, browser password helpers, and external password managers are permitted.
-
-### Findings Overview
-
-| Severity | Count |
-|----------|-------|
-| 🔴 Critical | 0 |
-| 🟠 High | 0 |
-| 🟡 Medium | 0 |
-| 🟢 Low | 0 |
-
-## Result
-
-No relevant files found for ASVS requirement 6.2.7 within the audited scope.
-        
\ No newline at end of file
diff --git a/ASVS/reports/mahout/245aad3/all/6.2.8.md b/ASVS/reports/mahout/245aad3/all/6.2.8.md
deleted file mode 100644
index 52addfb..0000000
--- a/ASVS/reports/mahout/245aad3/all/6.2.8.md
+++ /dev/null
@@ -1,28 +0,0 @@
-# Security Audit Report: ASVS 6.2.8
-
-## Executive Summary
-
-| Field | Value |
-|-------|-------|
-| **Repository** | apache/mahout |
-| **Audit Date** | May 05, 2026 |
-| **Auditor** | Tooling Agents (bundled-pass mode) |
-| **ASVS Requirement** | ASVS 6.2.8 |
-| **Files Analyzed** | 0 relevant / 394 total |
-| **Files Skipped** | 36 |
-
-**Requirement description:** Verify that the application verifies the user's password exactly as received from the user, without any modifications such as truncation or case transformation.
-
-### Findings Overview
-
-| Severity | Count |
-|----------|-------|
-| 🔴 Critical | 0 |
-| 🟠 High | 0 |
-| 🟡 Medium | 0 |
-| 🟢 Low | 0 |
-
-## Result
-
-No relevant files found for ASVS requirement 6.2.8 within the audited scope.
-        
\ No newline at end of file
diff --git a/ASVS/reports/mahout/245aad3/all/6.3.1.md b/ASVS/reports/mahout/245aad3/all/6.3.1.md
deleted file mode 100644
index fea7eba..0000000
--- a/ASVS/reports/mahout/245aad3/all/6.3.1.md
+++ /dev/null
@@ -1,28 +0,0 @@
-# Security Audit Report: ASVS 6.3.1
-
-## Executive Summary
-
-| Field | Value |
-|-------|-------|
-| **Repository** | apache/mahout |
-| **Audit Date** | May 05, 2026 |
-| **Auditor** | Tooling Agents (bundled-pass mode) |
-| **ASVS Requirement** | ASVS 6.3.1 |
-| **Files Analyzed** | 0 relevant / 394 total |
-| **Files Skipped** | 36 |
-
-**Requirement description:** Verify that controls to prevent attacks such as credential stuffing and password brute force are implemented according to the application's security documentation.
-
-### Findings Overview
-
-| Severity | Count |
-|----------|-------|
-| 🔴 Critical | 0 |
-| 🟠 High | 0 |
-| 🟡 Medium | 0 |
-| 🟢 Low | 0 |
-
-## Result
-
-No relevant files found for ASVS requirement 6.3.1 within the audited scope.
-        
\ No newline at end of file
diff --git a/ASVS/reports/mahout/245aad3/all/6.3.2.md b/ASVS/reports/mahout/245aad3/all/6.3.2.md
deleted file mode 100644
index 48e8826..0000000
--- a/ASVS/reports/mahout/245aad3/all/6.3.2.md
+++ /dev/null
@@ -1,28 +0,0 @@
-# Security Audit Report: ASVS 6.3.2
-
-## Executive Summary
-
-| Field | Value |
-|-------|-------|
-| **Repository** | apache/mahout |
-| **Audit Date** | May 05, 2026 |
-| **Auditor** | Tooling Agents (bundled-pass mode) |
-| **ASVS Requirement** | ASVS 6.3.2 |
-| **Files Analyzed** | 0 relevant / 394 total |
-| **Files Skipped** | 36 |
-
-**Requirement description:** Verify that default user accounts (e.g., "root", "admin", or "sa") are not present in the application or are disabled.
-
-### Findings Overview
-
-| Severity | Count |
-|----------|-------|
-| 🔴 Critical | 0 |
-| 🟠 High | 0 |
-| 🟡 Medium | 0 |
-| 🟢 Low | 0 |
-
-## Result
-
-No relevant files found for ASVS requirement 6.3.2 within the audited scope.
-        
\ No newline at end of file
diff --git a/ASVS/reports/mahout/245aad3/all/6.4.1.md b/ASVS/reports/mahout/245aad3/all/6.4.1.md
deleted file mode 100644
index e03a609..0000000
--- a/ASVS/reports/mahout/245aad3/all/6.4.1.md
+++ /dev/null
@@ -1,28 +0,0 @@
-# Security Audit Report: ASVS 6.4.1
-
-## Executive Summary
-
-| Field | Value |
-|-------|-------|
-| **Repository** | apache/mahout |
-| **Audit Date** | May 05, 2026 |
-| **Auditor** | Tooling Agents (bundled-pass mode) |
-| **ASVS Requirement** | ASVS 6.4.1 |
-| **Files Analyzed** | 0 relevant / 394 total |
-| **Files Skipped** | 36 |
-
-**Requirement description:** Verify that system generated initial passwords or activation codes are securely randomly generated, follow the existing password policy, and expire after a short period of time or after they are initially used. These initial secrets must not be permitted to become the long term password.
-
-### Findings Overview
-
-| Severity | Count |
-|----------|-------|
-| 🔴 Critical | 0 |
-| 🟠 High | 0 |
-| 🟡 Medium | 0 |
-| 🟢 Low | 0 |
-
-## Result
-
-No relevant files found for ASVS requirement 6.4.1 within the audited scope.
-        
\ No newline at end of file
diff --git a/ASVS/reports/mahout/245aad3/all/6.4.2.md b/ASVS/reports/mahout/245aad3/all/6.4.2.md
deleted file mode 100644
index 1a2ff6f..0000000
--- a/ASVS/reports/mahout/245aad3/all/6.4.2.md
+++ /dev/null
@@ -1,28 +0,0 @@
-# Security Audit Report: ASVS 6.4.2
-
-## Executive Summary
-
-| Field | Value |
-|-------|-------|
-| **Repository** | apache/mahout |
-| **Audit Date** | May 05, 2026 |
-| **Auditor** | Tooling Agents (bundled-pass mode) |
-| **ASVS Requirement** | ASVS 6.4.2 |
-| **Files Analyzed** | 0 relevant / 394 total |
-| **Files Skipped** | 36 |
-
-**Requirement description:** Verify that password hints or knowledge-based authentication (so-called "secret questions") are not present.
-
-### Findings Overview
-
-| Severity | Count |
-|----------|-------|
-| 🔴 Critical | 0 |
-| 🟠 High | 0 |
-| 🟡 Medium | 0 |
-| 🟢 Low | 0 |
-
-## Result
-
-No relevant files found for ASVS requirement 6.4.2 within the audited scope.
-        
\ No newline at end of file
diff --git a/ASVS/reports/mahout/245aad3/all/7.2.1.md b/ASVS/reports/mahout/245aad3/all/7.2.1.md
deleted file mode 100644
index 35a9fd3..0000000
--- a/ASVS/reports/mahout/245aad3/all/7.2.1.md
+++ /dev/null
@@ -1,28 +0,0 @@
-# Security Audit Report: ASVS 7.2.1
-
-## Executive Summary
-
-| Field | Value |
-|-------|-------|
-| **Repository** | apache/mahout |
-| **Audit Date** | May 05, 2026 |
-| **Auditor** | Tooling Agents (bundled-pass mode) |
-| **ASVS Requirement** | ASVS 7.2.1 |
-| **Files Analyzed** | 0 relevant / 394 total |
-| **Files Skipped** | 36 |
-
-**Requirement description:** Verify that the application performs all session token verification using a trusted, backend service.
-
-### Findings Overview
-
-| Severity | Count |
-|----------|-------|
-| 🔴 Critical | 0 |
-| 🟠 High | 0 |
-| 🟡 Medium | 0 |
-| 🟢 Low | 0 |
-
-## Result
-
-No relevant files found for ASVS requirement 7.2.1 within the audited scope.
-        
\ No newline at end of file
diff --git a/ASVS/reports/mahout/245aad3/all/7.2.2.md b/ASVS/reports/mahout/245aad3/all/7.2.2.md
deleted file mode 100644
index 0ea5116..0000000
--- a/ASVS/reports/mahout/245aad3/all/7.2.2.md
+++ /dev/null
@@ -1,28 +0,0 @@
-# Security Audit Report: ASVS 7.2.2
-
-## Executive Summary
-
-| Field | Value |
-|-------|-------|
-| **Repository** | apache/mahout |
-| **Audit Date** | May 05, 2026 |
-| **Auditor** | Tooling Agents (bundled-pass mode) |
-| **ASVS Requirement** | ASVS 7.2.2 |
-| **Files Analyzed** | 0 relevant / 394 total |
-| **Files Skipped** | 36 |
-
-**Requirement description:** Verify that the application uses either self-contained or reference tokens that are dynamically generated for session management, i.e. not using static API secrets and keys.
-
-### Findings Overview
-
-| Severity | Count |
-|----------|-------|
-| 🔴 Critical | 0 |
-| 🟠 High | 0 |
-| 🟡 Medium | 0 |
-| 🟢 Low | 0 |
-
-## Result
-
-No relevant files found for ASVS requirement 7.2.2 within the audited scope.
-        
\ No newline at end of file
diff --git a/ASVS/reports/mahout/245aad3/all/7.2.3.md b/ASVS/reports/mahout/245aad3/all/7.2.3.md
deleted file mode 100644
index a9ab887..0000000
--- a/ASVS/reports/mahout/245aad3/all/7.2.3.md
+++ /dev/null
@@ -1,28 +0,0 @@
-# Security Audit Report: ASVS 7.2.3
-
-## Executive Summary
-
-| Field | Value |
-|-------|-------|
-| **Repository** | apache/mahout |
-| **Audit Date** | May 05, 2026 |
-| **Auditor** | Tooling Agents (bundled-pass mode) |
-| **ASVS Requirement** | ASVS 7.2.3 |
-| **Files Analyzed** | 0 relevant / 394 total |
-| **Files Skipped** | 36 |
-
-**Requirement description:** Verify that if reference tokens are used to represent user sessions, they are unique and generated using a cryptographically secure pseudo-random number generator (CSPRNG) and possess at least 128 bits of entropy.
-
-### Findings Overview
-
-| Severity | Count |
-|----------|-------|
-| 🔴 Critical | 0 |
-| 🟠 High | 0 |
-| 🟡 Medium | 0 |
-| 🟢 Low | 0 |
-
-## Result
-
-No relevant files found for ASVS requirement 7.2.3 within the audited scope.
-        
\ No newline at end of file
diff --git a/ASVS/reports/mahout/245aad3/all/7.2.4.md b/ASVS/reports/mahout/245aad3/all/7.2.4.md
deleted file mode 100644
index 0bffc21..0000000
--- a/ASVS/reports/mahout/245aad3/all/7.2.4.md
+++ /dev/null
@@ -1,28 +0,0 @@
-# Security Audit Report: ASVS 7.2.4
-
-## Executive Summary
-
-| Field | Value |
-|-------|-------|
-| **Repository** | apache/mahout |
-| **Audit Date** | May 05, 2026 |
-| **Auditor** | Tooling Agents (bundled-pass mode) |
-| **ASVS Requirement** | ASVS 7.2.4 |
-| **Files Analyzed** | 0 relevant / 394 total |
-| **Files Skipped** | 36 |
-
-**Requirement description:** Verify that the application generates a new session token on user authentication, including re-authentication, and terminates the current session token.
-
-### Findings Overview
-
-| Severity | Count |
-|----------|-------|
-| 🔴 Critical | 0 |
-| 🟠 High | 0 |
-| 🟡 Medium | 0 |
-| 🟢 Low | 0 |
-
-## Result
-
-No relevant files found for ASVS requirement 7.2.4 within the audited scope.
-        
\ No newline at end of file
diff --git a/ASVS/reports/mahout/245aad3/all/7.4.1.md b/ASVS/reports/mahout/245aad3/all/7.4.1.md
deleted file mode 100644
index 16e391d..0000000
--- a/ASVS/reports/mahout/245aad3/all/7.4.1.md
+++ /dev/null
@@ -1,28 +0,0 @@
-# Security Audit Report: ASVS 7.4.1
-
-## Executive Summary
-
-| Field | Value |
-|-------|-------|
-| **Repository** | apache/mahout |
-| **Audit Date** | May 05, 2026 |
-| **Auditor** | Tooling Agents (bundled-pass mode) |
-| **ASVS Requirement** | ASVS 7.4.1 |
-| **Files Analyzed** | 0 relevant / 394 total |
-| **Files Skipped** | 36 |
-
-**Requirement description:** Verify that when session termination is triggered (such as logout or expiration), the application disallows any further use of the session. For reference tokens or stateful sessions, this means invalidating the session data at the application backend. Applications using self-contained tokens will…
-
-### Findings Overview
-
-| Severity | Count |
-|----------|-------|
-| 🔴 Critical | 0 |
-| 🟠 High | 0 |
-| 🟡 Medium | 0 |
-| 🟢 Low | 0 |
-
-## Result
-
-No relevant files found for ASVS requirement 7.4.1 within the audited scope.
-        
\ No newline at end of file
diff --git a/ASVS/reports/mahout/245aad3/all/7.4.2.md b/ASVS/reports/mahout/245aad3/all/7.4.2.md
deleted file mode 100644
index 5697492..0000000
--- a/ASVS/reports/mahout/245aad3/all/7.4.2.md
+++ /dev/null
@@ -1,28 +0,0 @@
-# Security Audit Report: ASVS 7.4.2
-
-## Executive Summary
-
-| Field | Value |
-|-------|-------|
-| **Repository** | apache/mahout |
-| **Audit Date** | May 05, 2026 |
-| **Auditor** | Tooling Agents (bundled-pass mode) |
-| **ASVS Requirement** | ASVS 7.4.2 |
-| **Files Analyzed** | 0 relevant / 394 total |
-| **Files Skipped** | 36 |
-
-**Requirement description:** Verify that the application terminates all active sessions when a user account is disabled or deleted (such as an employee leaving the company).
-
-### Findings Overview
-
-| Severity | Count |
-|----------|-------|
-| 🔴 Critical | 0 |
-| 🟠 High | 0 |
-| 🟡 Medium | 0 |
-| 🟢 Low | 0 |
-
-## Result
-
-No relevant files found for ASVS requirement 7.4.2 within the audited scope.
-        
\ No newline at end of file
diff --git a/ASVS/reports/mahout/245aad3/all/8.1.1.md b/ASVS/reports/mahout/245aad3/all/8.1.1.md
deleted file mode 100644
index cade4d5..0000000
--- a/ASVS/reports/mahout/245aad3/all/8.1.1.md
+++ /dev/null
@@ -1,28 +0,0 @@
-# Security Audit Report: ASVS 8.1.1
-
-## Executive Summary
-
-| Field | Value |
-|-------|-------|
-| **Repository** | apache/mahout |
-| **Audit Date** | May 05, 2026 |
-| **Auditor** | Tooling Agents (bundled-pass mode) |
-| **ASVS Requirement** | ASVS 8.1.1 |
-| **Files Analyzed** | 0 relevant / 394 total |
-| **Files Skipped** | 36 |
-
-**Requirement description:** Verify that authorization documentation defines rules for restricting function-level and data-specific access based on consumer permissions and resource attributes.
-
-### Findings Overview
-
-| Severity | Count |
-|----------|-------|
-| 🔴 Critical | 0 |
-| 🟠 High | 0 |
-| 🟡 Medium | 0 |
-| 🟢 Low | 0 |
-
-## Result
-
-No relevant files found for ASVS requirement 8.1.1 within the audited scope.
-        
\ No newline at end of file
diff --git a/ASVS/reports/mahout/245aad3/all/8.2.1.md b/ASVS/reports/mahout/245aad3/all/8.2.1.md
deleted file mode 100644
index 4dd8384..0000000
--- a/ASVS/reports/mahout/245aad3/all/8.2.1.md
+++ /dev/null
@@ -1,28 +0,0 @@
-# Security Audit Report: ASVS 8.2.1
-
-## Executive Summary
-
-| Field | Value |
-|-------|-------|
-| **Repository** | apache/mahout |
-| **Audit Date** | May 05, 2026 |
-| **Auditor** | Tooling Agents (bundled-pass mode) |
-| **ASVS Requirement** | ASVS 8.2.1 |
-| **Files Analyzed** | 0 relevant / 394 total |
-| **Files Skipped** | 36 |
-
-**Requirement description:** Verify that the application ensures that function-level access is restricted to consumers with explicit permissions.
-
-### Findings Overview
-
-| Severity | Count |
-|----------|-------|
-| 🔴 Critical | 0 |
-| 🟠 High | 0 |
-| 🟡 Medium | 0 |
-| 🟢 Low | 0 |
-
-## Result
-
-No relevant files found for ASVS requirement 8.2.1 within the audited scope.
-        
\ No newline at end of file
diff --git a/ASVS/reports/mahout/245aad3/all/8.2.2.md b/ASVS/reports/mahout/245aad3/all/8.2.2.md
deleted file mode 100644
index 17d034c..0000000
--- a/ASVS/reports/mahout/245aad3/all/8.2.2.md
+++ /dev/null
@@ -1,28 +0,0 @@
-# Security Audit Report: ASVS 8.2.2
-
-## Executive Summary
-
-| Field | Value |
-|-------|-------|
-| **Repository** | apache/mahout |
-| **Audit Date** | May 05, 2026 |
-| **Auditor** | Tooling Agents (bundled-pass mode) |
-| **ASVS Requirement** | ASVS 8.2.2 |
-| **Files Analyzed** | 0 relevant / 394 total |
-| **Files Skipped** | 36 |
-
-**Requirement description:** Verify that the application ensures that data-specific access is restricted to consumers with explicit permissions to specific data items to mitigate insecure direct object reference (IDOR) and broken object level authorization (BOLA).
-
-### Findings Overview
-
-| Severity | Count |
-|----------|-------|
-| 🔴 Critical | 0 |
-| 🟠 High | 0 |
-| 🟡 Medium | 0 |
-| 🟢 Low | 0 |
-
-## Result
-
-No relevant files found for ASVS requirement 8.2.2 within the audited scope.
-        
\ No newline at end of file
diff --git a/ASVS/reports/mahout/245aad3/all/8.3.1.md b/ASVS/reports/mahout/245aad3/all/8.3.1.md
deleted file mode 100644
index b426538..0000000
--- a/ASVS/reports/mahout/245aad3/all/8.3.1.md
+++ /dev/null
@@ -1,28 +0,0 @@
-# Security Audit Report: ASVS 8.3.1
-
-## Executive Summary
-
-| Field | Value |
-|-------|-------|
-| **Repository** | apache/mahout |
-| **Audit Date** | May 05, 2026 |
-| **Auditor** | Tooling Agents (bundled-pass mode) |
-| **ASVS Requirement** | ASVS 8.3.1 |
-| **Files Analyzed** | 0 relevant / 394 total |
-| **Files Skipped** | 36 |
-
-**Requirement description:** Verify that the application enforces authorization rules at a trusted service layer and doesn't rely on controls that an untrusted consumer could manipulate, such as client-side JavaScript.
-
-### Findings Overview
-
-| Severity | Count |
-|----------|-------|
-| 🔴 Critical | 0 |
-| 🟠 High | 0 |
-| 🟡 Medium | 0 |
-| 🟢 Low | 0 |
-
-## Result
-
-No relevant files found for ASVS requirement 8.3.1 within the audited scope.
-        
\ No newline at end of file
diff --git a/ASVS/reports/mahout/245aad3/all/9.1.1.md b/ASVS/reports/mahout/245aad3/all/9.1.1.md
deleted file mode 100644
index f483807..0000000
--- a/ASVS/reports/mahout/245aad3/all/9.1.1.md
+++ /dev/null
@@ -1,28 +0,0 @@
-# Security Audit Report: ASVS 9.1.1
-
-## Executive Summary
-
-| Field | Value |
-|-------|-------|
-| **Repository** | apache/mahout |
-| **Audit Date** | May 05, 2026 |
-| **Auditor** | Tooling Agents (bundled-pass mode) |
-| **ASVS Requirement** | ASVS 9.1.1 |
-| **Files Analyzed** | 0 relevant / 394 total |
-| **Files Skipped** | 36 |
-
-**Requirement description:** Verify that self-contained tokens are validated using their digital signature or MAC to protect against tampering before accepting the token's contents.
-
-### Findings Overview
-
-| Severity | Count |
-|----------|-------|
-| 🔴 Critical | 0 |
-| 🟠 High | 0 |
-| 🟡 Medium | 0 |
-| 🟢 Low | 0 |
-
-## Result
-
-No relevant files found for ASVS requirement 9.1.1 within the audited scope.
-        
\ No newline at end of file
diff --git a/ASVS/reports/mahout/245aad3/all/9.1.2.md b/ASVS/reports/mahout/245aad3/all/9.1.2.md
deleted file mode 100644
index c224ff0..0000000
--- a/ASVS/reports/mahout/245aad3/all/9.1.2.md
+++ /dev/null
@@ -1,28 +0,0 @@
-# Security Audit Report: ASVS 9.1.2
-
-## Executive Summary
-
-| Field | Value |
-|-------|-------|
-| **Repository** | apache/mahout |
-| **Audit Date** | May 05, 2026 |
-| **Auditor** | Tooling Agents (bundled-pass mode) |
-| **ASVS Requirement** | ASVS 9.1.2 |
-| **Files Analyzed** | 0 relevant / 394 total |
-| **Files Skipped** | 36 |
-
-**Requirement description:** Verify that only algorithms on an allowlist can be used to create and verify self-contained tokens, for a given context. The allowlist must include the permitted algorithms, ideally only either symmetric or asymmetric algorithms, and must not include the 'None' algorithm. If both symmetric and…
-
-### Findings Overview
-
-| Severity | Count |
-|----------|-------|
-| 🔴 Critical | 0 |
-| 🟠 High | 0 |
-| 🟡 Medium | 0 |
-| 🟢 Low | 0 |
-
-## Result
-
-No relevant files found for ASVS requirement 9.1.2 within the audited scope.
-        
\ No newline at end of file
diff --git a/ASVS/reports/mahout/245aad3/all/9.1.3.md b/ASVS/reports/mahout/245aad3/all/9.1.3.md
deleted file mode 100644
index 5291268..0000000
--- a/ASVS/reports/mahout/245aad3/all/9.1.3.md
+++ /dev/null
@@ -1,28 +0,0 @@
-# Security Audit Report: ASVS 9.1.3
-
-## Executive Summary
-
-| Field | Value |
-|-------|-------|
-| **Repository** | apache/mahout |
-| **Audit Date** | May 05, 2026 |
-| **Auditor** | Tooling Agents (bundled-pass mode) |
-| **ASVS Requirement** | ASVS 9.1.3 |
-| **Files Analyzed** | 0 relevant / 394 total |
-| **Files Skipped** | 36 |
-
-**Requirement description:** Verify that key material that is used to validate self-contained tokens is from trusted pre-configured sources for the token issuer, preventing attackers from specifying untrusted sources and keys. For JWTs and other JWS structures, headers such as 'jku', 'x5u', and 'jwk' must be validated against…
-
-### Findings Overview
-
-| Severity | Count |
-|----------|-------|
-| 🔴 Critical | 0 |
-| 🟠 High | 0 |
-| 🟡 Medium | 0 |
-| 🟢 Low | 0 |
-
-## Result
-
-No relevant files found for ASVS requirement 9.1.3 within the audited scope.
-        
\ No newline at end of file
diff --git a/ASVS/reports/mahout/245aad3/all/9.2.1.md b/ASVS/reports/mahout/245aad3/all/9.2.1.md
deleted file mode 100644
index 1261f83..0000000
--- a/ASVS/reports/mahout/245aad3/all/9.2.1.md
+++ /dev/null
@@ -1,28 +0,0 @@
-# Security Audit Report: ASVS 9.2.1
-
-## Executive Summary
-
-| Field | Value |
-|-------|-------|
-| **Repository** | apache/mahout |
-| **Audit Date** | May 05, 2026 |
-| **Auditor** | Tooling Agents (bundled-pass mode) |
-| **ASVS Requirement** | ASVS 9.2.1 |
-| **Files Analyzed** | 0 relevant / 394 total |
-| **Files Skipped** | 36 |
-
-**Requirement description:** Verify that, if a validity time span is present in the token data, the token and its content are accepted only if the verification time is within this validity time span. For example, for JWTs, the claims 'nbf' and 'exp' must be verified.
-
-### Findings Overview
-
-| Severity | Count |
-|----------|-------|
-| 🔴 Critical | 0 |
-| 🟠 High | 0 |
-| 🟡 Medium | 0 |
-| 🟢 Low | 0 |
-
-## Result
-
-No relevant files found for ASVS requirement 9.2.1 within the audited scope.
-        
\ No newline at end of file
diff --git a/ASVS/reports/mahout/245aad3/consolidated.md b/ASVS/reports/mahout/245aad3/consolidated.md
deleted file mode 100644
index ff075c7..0000000
--- a/ASVS/reports/mahout/245aad3/consolidated.md
+++ /dev/null
@@ -1,596 +0,0 @@
-# Security Audit Consolidated Report
-
-## Apache Mahout (QuMat / QDP)
-
----
-
-## Report Metadata
-
-| Field | Value |
-|-------|-------|
-| **Repository** | `apache/tooling-runbooks` |
-| **ASVS Level** | L1 |
-| **Severity Threshold** | None (all findings included) |
-| **Commit** | `245aad3` |
-| **Date** | May 05, 2026 |
-| **Auditor** | Tooling Agents |
-| **Source Reports** | 70 |
-| **Total Findings** | 13 |
-
----
-
-## Executive Summary
-
-### Severity Distribution
-
-| Severity | Count | Percentage |
-|----------|-------|------------|
-| Critical | 0 | 0.0% |
-| High | 1 | 7.7% |
-| Medium | 10 | 76.9% |
-| Low | 2 | 15.4% |
-| Info | 0 | 0.0% |
-
-### Level Coverage
-
-This audit evaluated controls at **ASVS Level 1 (L1)** — the minimum assurance level covering essential application security verification requirements. All 13 findings fall within the L1 scope, indicating that foundational input validation, configuration hygiene, and third-party component governance require attention before progressing to higher assurance levels.
-
-### Top 5 Risks
-
-1. **[High] FINDING-001 — `num_qubits` parameter lacks validation for type, sign, and upper bound (ASVS 2.2.1)**
-   The core quantum circuit initialization parameter accepts arbitrary values without enforcing type constraints, non-negativity, or a documented upper bound. Malformed values could trigger undefined behavior in downstream backend modules or unbounded resource allocation.
-
-2. **[Medium] FINDING-006 — Backend modules receive full configuration object instead of required fields (ASVS 15.3.1)**
-   Passing the entire configuration dictionary to backend adapters violates the principle of least privilege. A compromised or poorly-written backend plugin gains access to credentials, paths, or settings outside its operational scope.
-
-3. **[Medium] FINDING-011 — `path_from_py` accepts user-supplied file paths with no validation or sanitization (ASVS 5.3.2)**
-   The Rust/Python boundary function accepts arbitrary filesystem paths without canonicalization or traversal checks. In deployment contexts where user-supplied paths reach this function, path traversal or symlink-based attacks become feasible.
-
-4. **[Medium] FINDING-004 / FINDING-005 — No documented remediation timeframes for third-party vulnerabilities (ASVS 15.1.1, 15.2.1)**
-   The absence of a risk-based policy defining maximum acceptable time-to-patch for dependencies of varying severity means that known vulnerabilities in transitive dependencies may persist indefinitely without a governance trigger for remediation.
-
-5. **[Medium] FINDING-010 — Stale parameter state persists across circuit resets (ASVS 2.3.1)**
-   When a quantum circuit is reset, previously bound parameter values remain in the instance state. Subsequent circuit executions may unintentionally inherit parameters from a prior computation, leading to silent correctness errors in quantum simulations.
-
-### Positive Controls Observed
-
-The audit identified **25 positive security controls** that demonstrate defense-in-depth practices across the codebase:
-
-| Category | Representative Controls |
-|----------|------------------------|
-| **Memory Safety** | Double-free prevention via consumed flag; RAII `Drop` implementations for deterministic GPU resource cleanup; DLPack single-consume enforcement; null pointer checks on all entry paths |
-| **Injection Prevention** | Compile-time constant capsule names; strongly-typed FFI interfaces eliminating shell injection structurally; Rust type system preventing text-based injection classes |
-| **Input Validation** | Centralized `_validate_qubit_index` function with type/sign/range checks; allowlist pattern for enum inputs (`parse_null_handling`); defense-in-depth validation at both Python API and Rust core layers |
-| **Attack Surface Reduction** | Feature-gated remote IO requiring explicit opt-in; URL query/fragment rejection preventing credential leakage via URL parameters; minimal DLPack interface exposure |
-| **Governance & Release** | Apache PMC voting as structured release gate; GPG signing and checksum verification in release process; documented security practices for token management |
-
-These controls indicate a security-aware development culture, particularly in the Rust/GPU interop layer where memory safety concerns are most acute. The findings in this report primarily address gaps in the Python orchestration layer and governance documentation rather than fundamental architectural weaknesses.
-
----
-
-## 3. Findings
-
-### 3.2 High
-
-#### FINDING-001: num_qubits parameter lacks validation for type, sign, and upper bound
-
-| Attribute | Value |
-|-----------|-------|
-| **Severity** | 🟠 High |
-| **ASVS Level(s)** | L1 |
-| **CWE** | N/A |
-| **ASVS Sections** | 2.2.1 |
-| **Files** | `qumat/qumat.py:82-85` |
-| **Source Reports** | 2.2.1.md |
-| **Related** | None |
-
-**Description:**
-
-The `num_qubits` parameter is not validated for type, sign, or upper bound. It is stored directly and used in subsequent range checks for qubit indices. An invalid value (float, negative, extremely large, or non-numeric) produces undefined behavior downstream. User input (`num_qubits`) is stored as `self.num_qubits`, used in `_validate_qubit_index` comparisons, and passed to backend `create_empty_circuit`. This can lead to resource exhaustion (DoS) with large values, logic errors with no [...]
-
-**Remediation:**
-
-Add validation to check that num_qubits is an integer, non-negative, and within reasonable bounds before storing and using it. Implement type checking with isinstance, validate non-negativity, and optionally enforce the documented 1-30 range constraint.
-
----
-
-### 3.3 Medium
-
-#### FINDING-002: Remote IO feature lacks visible TLS certificate validation configuration
-
-| Attribute | Value |
-|-----------|-------|
-| **Severity** | 🟡 Medium |
-| **ASVS Level(s)** | L1 |
-| **CWE** | N/A |
-| **ASVS Section(s)** | 12.2.2 |
-| **Files** | `qdp/qdp-core/src/lib.rs:24`&lt;br&gt;`docs/qdp/api.md`&lt;br&gt;`docs/qdp/getting-started.md` |
-| **Source Reports** | 12.2.2.md |
-| **Related Findings** | None |
-
-**Description:**
-
-User-supplied S3/GCS URL → QdpEngine.encode() → remote module (not provided) → external cloud storage. The remote-io feature conditionally enables cloud object storage access. The implementation of the remote module is not included in the audit scope, so verification of TLS certificate validation is impossible. If the remote module does not enforce publicly trusted TLS certificates or allows insecure connections, data in transit to/from S3/GCS could be intercepted via man-in-the-middle a [...]
-
-**Remediation:**
-
-Verify the remote module (not provided) enforces TLS 1.2+ with publicly trusted certificates. Ensure no VERIFY_SSL=false or equivalent bypass is available. Document TLS requirements for remote IO connections. Example implementation:
-```rust
-let client = reqwest::Client::builder()
-    .min_tls_version(reqwest::tls::Version::TLS_1_2)
-    .use_rustls_tls()
-    .build()?;
-```
-
----
-
-#### FINDING-003: No deployment configuration to exclude source control metadata from production artifacts
-
-| Attribute | Value |
-|-----------|-------|
-| **Severity** | 🟡 Medium |
-| **ASVS Level(s)** | L1 |
-| **CWE** | N/A |
-| **ASVS Section(s)** | 13.4.1 |
-| **Files** | `docs/qdp/getting-started.md`&lt;br&gt;`dev/release.md` |
-| **Source Reports** | 13.4.1.md |
-| **Related Findings** | None |
-
-**Description:**
-
-If the application is deployed from a git checkout (e.g., in a container built from the repository clone, or served via a web-accessible directory), the `.git` folder could expose: Full repository history including potentially sensitive commits, Internal developer information (email addresses, commit messages), Configuration details that aid reconnaissance. Data flow: Source repository (`.git/`) → development/build environment → packaged artifact → deployment
-
-**Remediation:**
-
-Add `.dockerignore` or equivalent build exclusion rules containing: `.git`, `.svn`, `.gitignore`, `dev/`. For Python packages distributed via PyPI (the documented release path), `maturin build` and `uv build` produce wheel/sdist artifacts that do not include `.git` — this is a positive pattern. Document deployment best practices that explicitly exclude VCS metadata.
-
----
-
-#### FINDING-004: No documented risk-based remediation timeframes for third-party component vulnerabilities
-
-| Attribute | Value |
-|-----------|-------|
-| **Severity** | 🟡 Medium |
-| **ASVS Level(s)** | L1 |
-| **CWE** | N/A |
-| **ASVS Section(s)** | 15.1.1 |
-| **Files** | `dev/release.md` (entire file) |
-| **Source Reports** | 15.1.1.md |
-| **Related Findings** | None |
-
-**Description:**
-
-The application documentation does not define risk-based remediation time frames for 3rd party component versions with vulnerabilities or for updating libraries in general. Without defined remediation timeframes, known vulnerabilities in dependencies (cudarc, thiserror, arrow, parquet, CUDA runtime, PyTorch) may persist indefinitely with no consistent standard for when updates must be applied, increasing the window of exposure for supply chain attacks and resulting in inconsistent risk t [...]
-
-**Remediation:**
-
-Create a SECURITY.md or docs/security/dependency-policy.md defining:
-
-```markdown
-# Dependency Vulnerability Management Policy
-
-## Remediation Timeframes
-
-| Severity | Definition | Remediation SLA |
-|----------|-----------|-----------------|
-| Critical (CVSS ≥ 9.0) | RCE, data exfiltration, privilege escalation | 7 calendar days |
-| High (CVSS 7.0–8.9) | Significant impact vulnerabilities | 30 calendar days |
-| Medium (CVSS 4.0–6.9) | Limited impact vulnerabilities | 90 calendar days |
-| Low (CVSS < 4.0) | Minimal impact | Next scheduled release |
-
-## General Update Policy
-- All dependencies reviewed quarterly
-- cargo audit / pip-audit run in CI on every PR
-- SBOM generated with each release
-
-## Dangerous Components
-- qdp_kernels: CUDA FFI — unsafe operations, direct memory manipulation
-- cudarc: CUDA driver bindings — GPU memory allocation, raw pointers
-- Parquet/Arrow readers: Binary data parsing from untrusted files
-```
-
----
-
-#### FINDING-005: Unable to verify component currency without documented remediation timeframes
-
-| Attribute | Value |
-|-----------|-------|
-| **Severity** | 🟡 Medium |
-| **ASVS Level(s)** | L1 |
-| **CWE** | N/A |
-| **ASVS Section(s)** | 15.2.1 |
-| **Files** | `qdp/qdp-core/src/gpu/memory.rs`&lt;br&gt;`qdp/qdp-core/src/error.rs`&lt;br&gt;`dev/release.md` |
-| **Source Reports** | 15.2.1.md |
-| **Related Findings** | None |
-
-**Description:**
-
-Without ASVS 15.1.1 compliance (documented timeframes), compliance with 15.2.1 is structurally impossible to verify. The following risks exist: Dependencies may contain known CVEs without a mechanism to detect or track them; No Cargo.lock or requirements.txt freeze file was provided for audit, preventing version verification; The qdp_kernels crate (likely internal) contains unsafe CUDA FFI that requires careful version management; Parquet/Arrow file parsers handle untrusted input and are [...]
-
-**Remediation:**
-
-1. Implement the policy from ASVS-1511-MED-001
-2. Add automated dependency scanning to CI (cargo audit and pip-audit)
-3. Include Cargo.lock in the repository for reproducible builds and auditability
-4. Add a dependency review step to the release process in dev/release.md with pre-release dependency audit steps including cargo audit, pip-audit, verification of remediation timeframes, and SBOM generation
-
----
-
-#### FINDING-006: Backend modules receive full configuration object instead of required fields
-
-| Attribute | Value |
-|-----------|-------|
-| **Severity** | 🟡 Medium |
-| **ASVS Level(s)** | L1 |
-| **CWE** | N/A |
-| **ASVS Section(s)** | 15.3.1 |
-| **Files** | `qumat/qumat.py:243-262`&lt;br&gt;`qumat/qumat.py:283-302` |
-| **Source Reports** | 15.3.1.md |
-| **Related Findings** | None |
-
-**Description:**
-
-The entire `self.backend_config` dictionary is passed to backend modules, and is also mutated to accumulate state between calls. The `backend_config` contains all constructor-supplied configuration (including `backend_name`, `backend_options` with `simulator_type`, `shots`, etc.) plus injected `parameter_values`. Backend functions receive the full configuration object rather than only the fields they need. Backend modules receive more configuration data than required for their specific o [...]
-
-**Remediation:**
-
-Pass only what the backend needs. For example, in execute_circuit, create a scoped execution_config dictionary containing only parameter_values and shots, rather than passing the entire backend_config. Example:
-```python
-execution_config = {
-    "parameter_values": bound_parameters,
-    "shots": self.backend_config["backend_options"].get("shots", 1024)
-}
-```
-Use this scoped config when calling `backend_module.execute_circuit(self.circuit, self.backend, execution_config)`.
-
----
-
-#### FINDING-007: QuMat class lacks structured documentation defining input validation rules
-
-| Attribute | Value |
-|-----------|-------|
-| **Severity** | 🟡 Medium |
-| **ASVS Level(s)** | L1 |
-| **CWE** | N/A |
-| **ASVS Section(s)** | 2.1.1 |
-| **Files** | `qumat/qumat.py` |
-| **Source Reports** | 2.1.1.md |
-| **Related Findings** | None |
-
-**Description:**
-
-The QuMat class lacks structured documentation defining input validation rules for its parameters. While docstrings describe parameter types, they do not specify valid ranges, allowed values, or expected structures as formal validation rules. Contrast this with the QDP API documentation which explicitly specifies ranges (e.g., num_qubits 1–30) and allowed encoding methods. Specific gaps in qumat.py: create_empty_circuit(num_qubits) has no documented valid range for num_qubits; apply_rx_g [...]
-
-**Remediation:**
-
-Add a validation rules section to the QuMat class docstring specifying: num_qubits as int, range [1, 30] (or backend-specific maximum); qubit_index as int, range [0, num_qubits - 1]; angle (rotation gates) as float, must be finite (no NaN/Inf); backend_name as str, one of {"qiskit", "cirq", "amazon_braket"}; backend_options as dict with required key "simulator_type" (str) and optional "shots" (int, >= 1).
-
----
-
-#### FINDING-008: Rotation angle parameters lack validation for finiteness and type
-
-| Attribute | Value |
-|-----------|-------|
-| **Severity** | 🟡 Medium |
-| **ASVS Level(s)** | L1 |
-| **CWE** | N/A |
-| **ASVS Section(s)** | 2.2.1 |
-| **Files** | `qumat/qumat.py:303`&lt;br&gt;`qumat/qumat.py:321`&lt;br&gt;`qumat/qumat.py:339`&lt;br&gt;`qumat/qumat.py:356` |
-| **Source Reports** | 2.2.1.md |
-| **Related Findings** | None |
-
-**Description:**
-
-When rotation angles are provided as floats, no validation is performed for finiteness (NaN, Inf) or type correctness. While `_handle_parameter` registers string parameter names, float values pass through unchecked. The QDP documentation explicitly requires finite values for similar parameters. This affects `apply_rx_gate()` (line ~303), `apply_ry_gate()` (line ~321), `apply_rz_gate()` (line ~339), and `apply_u_gate()` (line ~356). User input (angle/theta/phi/lambd) passes directly to ba [...]
-
-**Remediation:**
-
-Create a `_validate_angle` helper function that validates angle parameters are numeric types and finite (not NaN or Inf). Apply this validation to all rotation gate methods before passing values to backend modules.
-
----
-
-#### FINDING-009: backend_options and backend_name lack structure and allow-list validation
-
-| Attribute | Value |
-|-----------|-------|
-| **Severity** | 🟡 Medium |
-| **ASVS Level(s)** | L1 |
-| **CWE** | N/A |
-| **ASVS Section(s)** | 2.2.1 |
-| **Files** | `qumat/qumat.py:53-75` |
-| **Source Reports** | 2.2.1.md |
-| **Related Findings** | None |
-
-**Description:**
-
-The `backend_options` value is checked for existence but not validated for type or structure. The `backend_name` is not validated against an allow list of known backends, relying solely on `import_module` to fail for unknown names. The `backend_config` flows to `backend_name` used in `import_module` f-string for module loading, and `backend_options` is stored and used later without structure checks. This results in unclear error messages for misconfigured backends and implicit validation [...]
-
-**Remediation:**
-
-Add type validation to ensure backend_options is a dictionary. Create an allow-list of valid backend names (qiskit, cirq, amazon_braket) and validate backend_name against this list before attempting module import. Provide clear error messages for invalid configurations.
-
----
-
-#### FINDING-010: Stale Parameter State Persists Across Circuit Resets
-
-| Attribute | Value |
-|-----------|-------|
-| **Severity** | 🟡 Medium |
-| **ASVS Level(s)** | L1 |
-| **CWE** | N/A |
-| **ASVS Section(s)** | 2.3.1 |
-| **Files** | `qumat/qumat.py:82-85` |
-| **Source Reports** | 2.3.1.md |
-| **Related Findings** | None |
-
-**Description:**
-
-When `create_empty_circuit` is called again on an existing `QuMat` instance, it resets `self.circuit` and `self.num_qubits` but does **not** reset `self.parameters`. This allows stale parameter registrations and bound values from a previous circuit to persist and be injected into the new circuit's execution via `backend_config["parameter_values"]`. This can lead to incorrect quantum computation results due to stale parameter state. In scientific computing contexts, silent corruption of c [...]
-
-**Remediation:**
-
-Reset the parameters dictionary when creating a new circuit:
-```python
-def create_empty_circuit(self, num_qubits: int | None = None) -> None:
-    self.num_qubits = num_qubits
-    self.circuit = self.backend_module.create_empty_circuit(num_qubits)
-    self.parameters = {}  # Reset parameter registry for new circuit
-```
-
----
-
-#### FINDING-011: `path_from_py` accepts user-supplied file paths with no validation or sanitization
-
-| Attribute | Value |
-|-----------|-------|
-| **Severity** | 🟡 Medium |
-| **ASVS Level(s)** | L1 |
-| **CWE** | CWE-22 |
-| **ASVS Section(s)** | 5.3.2 |
-| **Files** | `qdp/qdp-python/src/loader.rs:109-113` |
-| **Source Reports** | 5.3.2.md |
-| **Related Findings** | None |
-
-**Description:**
-
-The `path_from_py` function in the Rust extension accepts file paths from Python callers without any validation or sanitization. It extracts a string from Python input (either a string or pathlib.Path object) and passes it directly to downstream file I/O operations. No checks are performed for path traversal sequences (../, ..\\, encoded variants), null byte injection, scheme validation, or canonicalization. The function serves as a chokepoint for multiple entry points (encode_from_parqu [...]
-
-**Remediation:**
-
-Implement path validation and sanitization in the path_from_py function. The remediation should include: (1) Reject null bytes in the path string, (2) Canonicalize the path to resolve symlinks and ../ sequences using Path::canonicalize(), (3) Enforce that the resolved path is within an allowed base directory using starts_with(), (4) Add URL scheme validation when remote-io is enabled to allowlist only permitted schemes (s3://, gs://) and reject unexpected ones (file://, http://, ftp://), [...]
-
-### 3.4 Low
-
-#### FINDING-012: Remote S3/GCS URL paths may contain sensitive bucket names or object keys in logs
-
-| Attribute | Value |
-|-----------|-------|
-| **Severity** | 🔵 Low |
-| **ASVS Level(s)** | L1 |
-| **CWE** | N/A |
-| **ASVS Sections** | 14.2.1 |
-| **Files** | `qdp/qdp-core/src/lib.rs` (encode_from_parquet function)&lt;br&gt;`docs/qdp/getting-started.md` (remote URL examples)&lt;br&gt;`error.rs` (MahoutError::Io(String) variant) |
-| **Source Reports** | 14.2.1.md |
-| **Related** | None |
-
-**Description:**
-
-User-supplied URL strings for S3/GCS bucket names and object key paths passed as function arguments could appear in error messages or logs. Object keys may contain sensitive identifiers (customer IDs, dataset names, internal project names). The MahoutError::Io(String) variant could propagate these paths. While query strings are explicitly rejected (positive pattern), the path components themselves may leak sensitive information through error messages.
-
-**Remediation:**
-
-Sanitize file paths in error messages to redact bucket names or keys. Consider structured logging that separates path components for selective redaction. Example implementation: create a sanitize_remote_path function that redacts bucket and key information for s3:// and gs:// URLs, replacing sensitive path components with `<redacted>` placeholder.
-
----
-
-#### FINDING-013: All instance attributes are public and freely accessible
-
-| Attribute | Value |
-|-----------|-------|
-| **Severity** | 🔵 Low |
-| **ASVS Level(s)** | L1 |
-| **CWE** | N/A |
-| **ASVS Sections** | 15.3.1 |
-| **Files** | `qumat/qumat.py` |
-| **Source Reports** | 15.3.1.md |
-| **Related** | None |
-
-**Description:**
-
-All instance attributes (`backend_config`, `backend_module`, `backend`, `circuit`, `parameters`) are public Python attributes. While Python convention doesn't enforce access control, sensitive internal state (raw backend handles, full configuration) is freely accessible to any consumer of a `QuMat` instance. Low risk in a library context, but consumers could inadvertently depend on or expose internal state such as the raw `backend_config` dictionary.
-
-**Remediation:**
-
-Use underscore-prefixed attributes for internal state (_backend_config, _backend_module) and provide explicit accessor properties for fields consumers legitimately need.
-
----
-
-# 4. Positive Security Controls
-
-| Control ID | Control Description | Evidence | Implementation Files | ASVS Mapping |
-|------------|-------------------|----------|---------------------|--------------|
-| PSC-001 | Static capsule name using compile-time constant | `DLTENSOR_NAME: &[u8] = b"dltensor\0"` is a compile-time constant, eliminating any possibility of injection into the PyCapsule name | tensor.rs | 1.2.5 |
-| PSC-002 | Double-free prevention via consumed flag | consumed flag checked before both PyCapsule creation and Drop execution | tensor.rs | 2.2.1 |
-| PSC-003 | Null pointer checks on entry paths | Null pointer checks on all entry paths before dereferencing self.ptr | tensor.rs | 2.2.1 |
-| PSC-004 | Strongly-typed interfaces prevent text-based injection | Rust's type system prevents all text-based injection classes structurally | tensor.rs | 1.2.5, 2.2.1 |
-| PSC-005 | Typed FFI calls only | All external calls use strongly-typed function signatures (PyCapsule_New, synchronize_stream, dlpack_stream_to_cuda), making shell injection structurally impossible | Multiple | 1.2.5 |
-| PSC-006 | Feature-gated remote IO | Remote storage access requires explicit opt-in via the remote-io Cargo feature flag, reducing default attack surface | qdp/qdp-core/src/lib.rs:24 | 12.2.2 |
-| PSC-007 | URL fragment/query rejection | Documentation explicitly states Remote URL query/fragment is not supported (?versionId=..., #...), which limits URL complexity and potential for parameter injection | docs/qdp/api.md, docs/qdp/getting-started.md | 14.2.1 |
-| PSC-008 | Package-based distribution | The release process builds wheels and sdist via `uv build` and `maturin build`, which inherently exclude `.git` directories from distribution artifacts | dev/release.md | 13.4.1 |
-| PSC-009 | Query string/fragment rejection | The API explicitly documents and rejects query strings and fragments in remote URLs, preventing credential leakage via URL parameters like ?AWSAccessKeyId=... | api.md, getting-started.md | 14.2.1 |
-| PSC-010 | DLPack single-consume enforcement | free_dlpack_tensor() in dlpack.rs uses deleter that takes ownership, preventing double-use of GPU memory handles | dlpack.rs | 2.2.1 |
-| PSC-011 | RAII Drop implementations for deterministic resource cleanup | PinnedHostBuffer, PipelineContext, and OverlapTracker all implement Drop traits for deterministic cleanup of GPU memory and resources | memory.rs, pipeline.rs, overlap_tracker.rs | 2.2.1 |
-| PSC-012 | Apache release governance with PMC voting | The ATR (Apache Trusted Releases) process with PMC voting provides a structured release gate where dependency issues could be caught | dev/release.md | 15.1.1, 15.2.1 |
-| PSC-013 | QuantumTensor minimal DLPack interface | Exposes only __dlpack__ and __dlpack_device__ methods | tensor.rs | 15.3.1 |
-| PSC-014 | QDP API validation rules documented with clear types, ranges, and encoding methods | QDP API documentation provides clear, structured validation rules including: num_qubits range 1–30, explicit encoding method allow-lists, supported data types and shapes, NaN/Inf rejection rules per encoding method, and file format constraints | website/.../api.md, website/.../python-api.md | 2.1.1 |
-| PSC-015 | _validate_qubit_index function provides centralized validation | Checks type (isinstance), sign (non-negative), and range (within circuit bounds). Consistently called from every gate method with no gaps in application. | qumat/qumat.py:97-112 | 2.2.1 |
-| PSC-016 | _ensure_circuit_initialized provides prerequisite check | Reliable check applied consistently to all gate and execute methods before any operation. | qumat/qumat.py:87-95 | 2.3.1 |
-| PSC-017 | Constructor validates backend_config is a dictionary with required keys | Proper isinstance check and key existence validation with clear error messages. | qumat/qumat.py:57-60, 62-75 | 2.2.1 |
-| PSC-018 | No client-side-only validation | All validation in qumat.py runs in the same process as the computation — there is no untrusted client layer | qumat/qumat.py | 2.2.2, 8.3.1 |
-| PSC-019 | Defense-in-depth in QDP | Validation occurs at both the Python API layer and the Rust core layer, with the Rust layer being authoritative | qumat/qumat.py, qdp-core | 2.2.2 |
-| PSC-020 | Unbound parameter check | Prevents execution with None-valued parameters in both execute_circuit and get_final_state_vector | qumat.py:253-260, 290-297 | 2.2.1 |
-| PSC-021 | Whitelist pattern for enum inputs | The parse_null_handling function demonstrates proper allowlist validation for string inputs, rejecting unknown values with descriptive errors | qdp/qdp-python/src/loader.rs:76-84 | 2.2.1 |
-| PSC-022 | Type-safe null handling | Using Rust String type (not CString) avoids null-byte-in-middle issues at the Rust/OS boundary for most standard library I/O operations | qdp/qdp-python/src/loader.rs:109-113 | 2.2.1 |
-| PSC-023 | Documentation of supported formats | API documentation clearly specifies allowed file extensions and URL schemes, providing a basis for implementing validation | api.md, getting-started.md | 2.1.1 |
-| PSC-024 | Strong validation for numeric and enum inputs | Codebase demonstrates validation for encoding methods, qubit ranges, and GPU pointer validity via cudaPointerGetAttributes | Multiple | 2.2.1 |
-| PSC-025 | Security documentation practices for release process | The dev/release.md documentation demonstrates good security documentation practices including GPG signing, checksum verification, and token management with chmod 600 | dev/release.md | 15.1.1 |
-
----
-
-# 5. ASVS Compliance Summary
-
-| ASVS ID | Title | Status | Findings | Notes |
-|---------|-------|--------|----------|-------|
-| 1.2.1 | Output Encoding for HTTP Response / HTML / XML / CSS | N/A | - | Not a web application |
-| 1.2.2 | URL Encoding and Safe URL Protocols | N/A | - | No URL construction |
-| 1.2.3 | JavaScript / JSON Output Encoding | N/A | - | No JavaScript/JSON output |
-| 1.2.4 | Parameterized Queries / SQL Injection | N/A | - | No database interaction |
-| 1.2.5 | OS Command Injection | **Pass** | - | Typed FFI calls only; no shell invocation (PSC-004, PSC-005) |
-| 1.3.1 | HTML Sanitization for WYSIWYG / Rich Input | N/A | - | No HTML processing |
-| 1.3.2 | Avoid eval() or Dynamic Code Execution | N/A | - | No dynamic code execution |
-| 1.5.1 | XML Parser Configuration - XXE Prevention | N/A | - | No XML parsing |
-| 2.1.1 | Validation and Business Logic Documentation | **Partial** | FINDING-007 | QDP documented (PSC-014, PSC-023); QuMat lacks structured validation docs |
-| 2.2.1 | Input Validation | **Fail** | FINDING-001, FINDING-008, FINDING-009 | Strong validation for qubit indices (PSC-015, PSC-017, PSC-021, PSC-024); gaps in num_qubits, rotation angles, backend options |
-| 2.2.2 | Server-Side Input Validation | **Pass** | - | All validation server-side; no client-side bypass (PSC-018, PSC-019) |
-| 2.3.1 | Business Logic Sequential Flow | **Partial** | FINDING-010 | Strong prerequisite checks (PSC-016); stale parameter state issue |
-| 3.2.1 | Unintended Content Interpretation | N/A | - | No content rendering |
-| 3.2.2 | Safe text rendering to prevent unintended HTML/JavaScript execution | N/A | - | No HTML/JS rendering |
-| 3.3.1 | Cookie Security Attributes | N/A | - | No cookies |
-| 3.4.1 | HTTP Strict Transport Security (HSTS) Policy | N/A | - | Not a web server |
-| 3.4.2 | Cross-Origin Resource Sharing (CORS) Access-Control-Allow-Origin Validation | N/A | - | Not a web API |
-| 3.5.1 | Cross-Origin Request Validation | N/A | - | Not a web application |
-| 3.5.2 | CORS Preflight Bypass Prevention | N/A | - | Not a web application |
-| 3.5.3 | HTTP Method Validation for Sensitive Functionality | N/A | - | Not a web application |
-| 4.1.1 | HTTP Response Content-Type Header Verification | N/A | - | No HTTP responses |
-| 4.4.1 | Verify that WebSocket over TLS (WSS) is used for all WebSocket connections | N/A | - | No WebSocket usage |
-| 5.2.1 | File Size Validation | N/A | - | No file upload functionality |
-| 5.2.2 | File Upload Validation | N/A | - | No file upload functionality |
-| 5.3.1 | Verify that files uploaded or generated by untrusted input and stored in a public folder, are not executed as server-side program code when accessed directly with an HTTP request | N/A | - | No file upload or public folder |
-| 5.3.2 | File Storage — Path Traversal Protection | **Fail** | FINDING-011 | path_from_py accepts unsanitized paths |
-| 6.1.1 | Authentication Documentation | N/A | - | No authentication |
-| 6.2.1 | Password Minimum Length | N/A | - | No password authentication |
-| 6.2.2 | Password Change Capability | N/A | - | No password authentication |
-| 6.2.3 | Password Change Requires Current and New Password | N/A | - | No password authentication |
-| 6.2.4 | Common Password Check | N/A | - | No password authentication |
-| 6.2.5 | Password Composition Rules | N/A | - | No password authentication |
-| 6.2.6 | Password Input Field Masking | N/A | - | No password fields |
-| 6.2.7 | Paste functionality, browser password helpers, and external password managers | N/A | - | No password fields |
-| 6.2.8 | Password Verification Without Modification | N/A | - | No password authentication |
-| 6.3.1 | Verify that controls to prevent attacks such as credential stuffing and password brute force are implemented according to the application's security documentation | N/A | - | No authentication |
-| 6.3.2 | Verify that default user accounts (e.g., "root", "admin", or "sa") are not present in the application or are disabled | N/A | - | No user accounts |
-| 6.4.1 | Secure Initial Password/Activation Code Generation | N/A | - | No password generation |
-| 6.4.2 | Verify that password hints or knowledge-based authentication (so-called "secret questions") are not present | **Pass** | - | No knowledge-based auth |
-| 7.2.1 | Verify that the application performs all session token verification using a trusted, backend service | N/A | - | No session management |
-| 7.2.2 | Session Management - Dynamic Token Generation | N/A | - | No session tokens |
-| 7.2.3 | Reference Token Uniqueness and Entropy | N/A | - | No session tokens |
-| 7.2.4 | Verify that the application generates a new session token on user authentication, including re-authentication, and terminates the current session token | N/A | - | No session management |
-| 7.4.1 | Session Termination and Invalidation | N/A | - | No sessions |
-| 7.4.2 | Verify that the application terminates all active sessions when a user account is disabled or deleted (such as an employee leaving the company) | N/A | - | No user accounts |
-| 8.1.1 | Authorization documentation for function-level and data-specific access | N/A | - | No authorization layer |
-| 8.2.1 | Function-level access control | N/A | - | No authorization |
-| 8.2.2 | Data-specific access restriction and IDOR/BOLA mitigation | N/A | - | No authorization |
-| 8.3.1 | Verify that the application enforces authorization rules at a trusted service layer and doesn't rely on controls that an untrusted consumer could manipulate, such as client-side JavaScript | N/A | - | No authorization layer |
-| 9.1.1 | Verify that self-contained tokens are validated using their digital signature or MAC to protect against tampering before accepting the token's contents | N/A | - | No token usage |
-| 9.1.2 | Token Algorithm Allowlist Verification | N/A | - | No token usage |
-| 9.1.3 | Verify that key material that is used to validate self-contained tokens is from trusted pre-configured sources for the token issuer | N/A | - | No token usage |
-| 9.2.1 | Token Validity Time Span Verification | N/A | - | No token usage |
-| 10.4.1 | Authorization Server Redirect URI Validation | N/A | - | No OAuth |
-| 10.4.2 | Authorization Code Single Use Verification | N/A | - | No OAuth |
-| 10.4.3 | Authorization Code Lifetime | N/A | - | No OAuth |
-| 10.4.4 | Authorization Server Grant Type Restrictions | N/A | - | No OAuth |
-| 10.4.5 | Refresh Token Replay Attack Mitigation | N/A | - | No OAuth |
-| 11.3.1 | Insecure Block Modes and Weak Padding Schemes | N/A | - | No cryptographic operations |
-| 11.3.2 | Approved Ciphers and Modes | N/A | - | No cryptographic operations |
-| 11.4.1 | Approved Hash Functions for Cryptographic Use | N/A | - | No cryptographic hashing |
-| 12.1.1 | TLS Protocol Version Requirements | N/A | - | Not a TLS server |
-| 12.2.1 | TLS for all connectivity between client and external facing HTTP-based services | N/A | - | No external HTTP services |
-| 12.2.2 | HTTPS Communication with External Facing Services | **Partial** | FINDING-002 | Remote IO feature-gated (PSC-006); TLS cert validation not visible |
-| 13.4.1 | Unintended Information Leakage — Source Control Metadata | **Partial** | FINDING-003 | Package distribution excludes .git (PSC-008); no deployment config |
-| 14.2.1 | General Data Protection — Sensitive Data in URLs | **Partial** | FINDING-012 | Query/fragment rejection (PSC-007, PSC-009); bucket names may appear in logs |
-| 14.3.1 | Client-side Data Protection — Clearing Authenticated Data | N/A | - | No client-side storage |
-| 15.1.1 | Secure Coding and Architecture Documentation — Remediation Timeframes | **Fail** | FINDING-004 | Release governance exists (PSC-012); no documented remediation timeframes |
-| 15.2.1 | Security Architecture and Dependencies — Component Currency | **Fail** | FINDING-005 | Cannot verify without remediation policy |
-| 15.3.1 | Defensive Coding — Return Only Required Field Subset | **Partial** | FINDING-006, FINDING-013 | Minimal DLPack interface (PSC-013); backend receives full config; public attributes |
-
-**Summary Statistics:**
-- **Pass**: 3
-- **Partial**: 7
-- **Fail**: 5
-- **N/A**: 70
-- **Total Applicable**: 15
-
----
-
-# 6. Cross-Reference Matrix
-
-| Finding ID | Severity | ASVS Controls | Positive Controls | Affected Components |
-|------------|----------|---------------|-------------------|---------------------|
-| FINDING-001 | High | 2.2.1 | PSC-015, PSC-024 | qumat/qumat.py (constructor) |
-| FINDING-002 | Medium | 12.2.2 | PSC-006 | qdp/qdp-core (remote-io feature) |
-| FINDING-003 | Medium | 13.4.1 | PSC-008 | Build/deployment configuration |
-| FINDING-004 | Medium | 15.1.1 | PSC-012, PSC-025 | Security documentation |
-| FINDING-005 | Medium | 15.2.1 | PSC-012 | Dependency management process |
-| FINDING-006 | Medium | 15.3.1 | PSC-013 | qumat/qumat.py (backend initialization) |
-| FINDING-007 | Medium | 2.1.1 | PSC-014, PSC-023 | qumat/qumat.py (class documentation) |
-| FINDING-008 | Medium | 2.2.1 | PSC-015, PSC-024 | qumat/qumat.py (rotation gate methods) |
-| FINDING-009 | Medium | 2.2.1 | PSC-017, PSC-021 | qumat/qumat.py (constructor) |
-| FINDING-010 | Medium | 2.3.1 | PSC-016, PSC-020 | qumat/qumat.py (reset_circuit method) |
-| FINDING-011 | Medium | 5.3.2 | PSC-022, PSC-023 | qdp/qdp-python/src/loader.rs |
-| FINDING-012 | Low | 14.2.1 | PSC-007, PSC-009 | Remote URL handling, logging |
-| FINDING-013 | Low | 15.3.1 | PSC-013 | qumat/qumat.py (all attributes) |
-
-## Control Coverage by Component
-
-| Component | Positive Controls | Findings | ASVS Coverage |
-|-----------|-------------------|----------|---------------|
-| tensor.rs | PSC-001, PSC-002, PSC-003, PSC-004, PSC-013 | None | 1.2.5, 2.2.1, 15.3.1 |
-| qumat/qumat.py | PSC-015, PSC-016, PSC-017, PSC-018, PSC-019, PSC-020 | FINDING-001, FINDING-006, FINDING-007, FINDING-008, FINDING-009, FINDING-010, FINDING-013 | 2.1.1, 2.2.1, 2.2.2, 2.3.1, 15.3.1 |
-| qdp-core | PSC-006, PSC-019 | FINDING-002 | 2.2.2, 12.2.2 |
-| qdp-python/loader.rs | PSC-021, PSC-022 | FINDING-011 | 2.2.1, 5.3.2 |
-| dlpack.rs | PSC-010 | None | 2.2.1 |
-| memory.rs / pipeline.rs | PSC-011 | None | 2.2.1 |
-| Documentation | PSC-007, PSC-009, PSC-014, PSC-023, PSC-025 | FINDING-012 | 2.1.1, 14.2.1, 15.1.1 |
-| Build/Release | PSC-008, PSC-012 | FINDING-003, FINDING-004, FINDING-005 | 13.4.1, 15.1.1, 15.2.1 |
-
-## ASVS Control to Finding/PSC Mapping
-
-| ASVS Control | Status | Findings | Positive Controls |
-|--------------|--------|----------|-------------------|
-| 1.2.5 | Pass | - | PSC-001, PSC-004, PSC-005 |
-| 2.1.1 | Partial | FINDING-007 | PSC-014, PSC-023 |
-| 2.2.1 | Fail | FINDING-001, FINDING-008, FINDING-009 | PSC-002, PSC-003, PSC-004, PSC-010, PSC-011, PSC-015, PSC-017, PSC-020, PSC-021, PSC-022, PSC-024 |
-| 2.2.2 | Pass | - | PSC-018, PSC-019 |
-| 2.3.1 | Partial | FINDING-010 | PSC-016, PSC-020 |
-| 5.3.2 | Fail | FINDING-011 | PSC-022, PSC-023 |
-| 12.2.2 | Partial | FINDING-002 | PSC-006 |
-| 13.4.1 | Partial | FINDING-003 | PSC-008 |
-| 14.2.1 | Partial | FINDING-012 | PSC-007, PSC-009 |
-| 15.1.1 | Fail | FINDING-004 | PSC-012, PSC-025 |
-| 15.2.1 | Fail | FINDING-005 | PSC-012 |
-| 15.3.1 | Partial | FINDING-006, FINDING-013 | PSC-013 |
-
-## Risk Heat Map
-
-| Severity | Count | ASVS Controls Affected | Components Affected |
-|----------|-------|------------------------|---------------------|
-| High | 1 | 2.2.1 | qumat/qumat.py |
-| Medium | 10 | 2.1.1, 2.2.1, 2.3.1, 5.3.2, 12.2.2, 13.4.1, 15.1.1, 15.2.1, 15.3.1 | qumat/qumat.py, qdp-core, loader.rs, documentation, build |
-| Low | 2 | 14.2.1, 15.3.1 | URL handling, qumat/qumat.py |
-
-**Total Findings**: 13  
-**Total Positive Controls**: 25  
-**ASVS Controls Assessed**: 85  
-**Applicable ASVS Controls**: 15
-
-## 7. Level Coverage Analysis
-
-
-**Audit scope:** up to L1
-
-| Level | Sections Audited | Findings Found |
-|-------|-----------------|----------------|
-| L1 | 70 | 13 |
-
-**Total consolidated findings: 13**
-
-*End of Consolidated Security Audit Report*
\ No newline at end of file
diff --git a/ASVS/reports/mahout/245aad3/issues.md b/ASVS/reports/mahout/245aad3/issues.md
deleted file mode 100644
index 1128dd2..0000000
--- a/ASVS/reports/mahout/245aad3/issues.md
+++ /dev/null
@@ -1,635 +0,0 @@
-# Security Issues
-
-## Issue: FINDING-001 - num_qubits parameter lacks validation for type, sign, and upper bound
-**Labels:** bug, security, priority:high
-**Description:**
-### Summary
-The `num_qubits` parameter in the QuMat class is not validated for type, sign, or upper bound, which can lead to resource exhaustion (DoS), logic errors, and confusing error messages.
-
-### Details
-The `num_qubits` parameter is stored directly without validation and used in subsequent range checks for qubit indices. Invalid values (float, negative, extremely large, or non-numeric) produce undefined behavior downstream. User input is stored as `self.num_qubits`, used in `_validate_qubit_index` comparisons, and passed to backend `create_empty_circuit`. The QDP documentation specifies 1–30 as the valid range, but `qumat.py` enforces no upper bound.
-
-**Affected Files:**
-- `qumat/qumat.py` (lines 82-85)
-
-**ASVS Reference:** 2.2.1 (Level L1)
-
-### Remediation
-Add validation to check that `num_qubits` is an integer, non-negative, and within reasonable bounds before storing and using it:
-- Implement type checking with `isinstance(num_qubits, int)`
-- Validate non-negativity: `num_qubits > 0`
-- Enforce the documented 1-30 range constraint: `1 <= num_qubits <= 30`
-
-### Acceptance Criteria
-- [ ] Type validation added for `num_qubits` parameter
-- [ ] Range validation (1-30) implemented
-- [ ] Clear error messages for invalid inputs
-- [ ] Unit tests added for edge cases (negative, zero, > 30, float, non-numeric)
-- [ ] Documentation updated to reflect validation rules
-
-### References
-- Source Report: 2.2.1.md
-- CWE: None specified
-- Related: FINDING-007 (documentation of validation rules)
-
-### Priority
-**High** - Can lead to DoS through resource exhaustion and logic errors
-
----
-
-## Issue: FINDING-002 - Remote IO feature lacks visible TLS certificate validation configuration
-**Labels:** security, priority:medium, network
-**Description:**
-### Summary
-The remote-io feature for S3/GCS access lacks verifiable TLS certificate validation, potentially exposing data in transit to man-in-the-middle attacks.
-
-### Details
-User-supplied S3/GCS URLs flow through `QdpEngine.encode()` to a remote module (not provided in audit scope). The implementation of the remote module cannot be verified for TLS certificate validation. If the remote module does not enforce publicly trusted TLS certificates or allows insecure connections, data in transit (training datasets, model parameters) could be intercepted or tampered with via MITM attacks.
-
-**Affected Files:**
-- `qdp/qdp-core/src/lib.rs` (line 24)
-- `docs/qdp/api.md`
-- `docs/qdp/getting-started.md`
-
-**ASVS Reference:** 12.2.2 (Level L1)
-
-### Remediation
-1. Verify the remote module enforces TLS 1.2+ with publicly trusted certificates
-2. Ensure no `VERIFY_SSL=false` or equivalent bypass is available
-3. Document TLS requirements for remote IO connections
-
-Example implementation:
-```rust
-let client = reqwest::Client::builder()
-    .min_tls_version(reqwest::tls::Version::TLS_1_2)
-    .use_rustls_tls()
-    .build()?;
-```
-
-### Acceptance Criteria
-- [ ] Remote module code reviewed for TLS validation
-- [ ] TLS 1.2+ enforcement verified
-- [ ] Certificate validation confirmed (no bypass options)
-- [ ] Documentation updated with TLS requirements
-- [ ] Integration tests added for remote IO over TLS
-
-### References
-- Source Report: 12.2.2.md
-- Related: FINDING-012 (sensitive URL logging)
-
-### Priority
-**Medium** - Data confidentiality and integrity risk, but requires MITM position
-
----
-
-## Issue: FINDING-003 - No deployment configuration to exclude source control metadata from production artifacts
-**Labels:** security, priority:medium, deployment
-**Description:**
-### Summary
-Deployment from git checkouts may expose `.git` folder contents, revealing repository history, developer information, and configuration details.
-
-### Details
-If the application is deployed from a git checkout (e.g., in a container built from repository clone or web-accessible directory), the `.git` folder could expose:
-- Full repository history including potentially sensitive commits
-- Internal developer information (email addresses, commit messages)
-- Configuration details that aid reconnaissance
-
-**Affected Files:**
-- `docs/qdp/getting-started.md`
-- `dev/release.md`
-
-**ASVS Reference:** 13.4.1 (Level L1)
-
-### Remediation
-1. Add `.dockerignore` with exclusion rules:
-   ```
-   .git
-   .svn
-   .gitignore
-   dev/
-   ```
-2. Document deployment best practices that explicitly exclude VCS metadata
-3. Note: PyPI distribution via `maturin build` and `uv build` already excludes `.git` (positive pattern)
-
-### Acceptance Criteria
-- [ ] `.dockerignore` file created with VCS exclusions
-- [ ] Deployment documentation updated with security best practices
-- [ ] Build process verified to exclude `.git` directory
-- [ ] Container image tested to confirm no VCS metadata present
-
-### References
-- Source Report: 13.4.1.md
-
-### Priority
-**Medium** - Information disclosure risk in misconfigured deployments
-
----
-
-## Issue: FINDING-004 - No documented risk-based remediation timeframes for third-party component vulnerabilities
-**Labels:** security, priority:medium, dependencies, policy
-**Description:**
-### Summary
-The project lacks documented risk-based remediation timeframes for third-party component vulnerabilities, potentially allowing known vulnerabilities to persist indefinitely.
-
-### Details
-Without defined remediation timeframes, known vulnerabilities in dependencies (cudarc, thiserror, arrow, parquet, CUDA runtime, PyTorch) may persist with no consistent standard for when updates must be applied. This increases the window of exposure for supply chain attacks and results in inconsistent risk treatment across the project.
-
-**Affected Files:**
-- `dev/release.md` (entire file)
-
-**ASVS Reference:** 15.1.1 (Level L1)
-
-### Remediation
-Create a `SECURITY.md` or `docs/security/dependency-policy.md` defining:
-
-| Severity | Definition | Remediation SLA |
-|----------|-----------|-----------------|
-| Critical (CVSS ≥ 9.0) | RCE, data exfiltration, privilege escalation | 7 calendar days |
-| High (CVSS 7.0–8.9) | Significant impact vulnerabilities | 30 calendar days |
-| Medium (CVSS 4.0–6.9) | Limited impact vulnerabilities | 90 calendar days |
-| Low (CVSS < 4.0) | Minimal impact | Next scheduled release |
-
-**General Update Policy:**
-- All dependencies reviewed quarterly
-- `cargo audit` / `pip-audit` run in CI on every PR
-- SBOM generated with each release
-
-### Acceptance Criteria
-- [ ] Security policy document created
-- [ ] Remediation timeframes defined by severity
-- [ ] Policy integrated into release process
-- [ ] Dangerous components documented (qdp_kernels, cudarc, Parquet/Arrow)
-- [ ] Team trained on policy requirements
-
-### References
-- Source Report: 15.1.1.md
-- Related: FINDING-005 (component currency verification)
-
-### Priority
-**Medium** - Policy gap, no immediate exploit but increases long-term risk
-
----
-
-## Issue: FINDING-005 - Unable to verify component currency without documented remediation timeframes
-**Labels:** security, priority:medium, dependencies, automation
-**Description:**
-### Summary
-Without documented remediation timeframes (FINDING-004), verifying component currency is structurally impossible, and dependencies may contain undetected CVEs.
-
-### Details
-Risks include:
-- Dependencies may contain known CVEs without detection/tracking mechanism
-- No `Cargo.lock` or `requirements.txt` freeze file provided for audit
-- The `qdp_kernels` crate (unsafe CUDA FFI) requires careful version management
-- Parquet/Arrow file parsers handle untrusted input and are common vulnerability sources
-
-**Affected Files:**
-- `qdp/qdp-core/src/gpu/memory.rs`
-- `qdp/qdp-core/src/error.rs`
-- `dev/release.md`
-
-**ASVS Reference:** 15.2.1 (Level L1)
-
-### Remediation
-1. Implement the policy from FINDING-004
-2. Add automated dependency scanning to CI:
-   - `cargo audit` for Rust dependencies
-   - `pip-audit` for Python dependencies
-3. Include `Cargo.lock` in repository for reproducible builds
-4. Add dependency review step to release process:
-   ```markdown
-   ## Pre-Release Dependency Audit
-   - [ ] Run `cargo audit`
-   - [ ] Run `pip-audit`
-   - [ ] Verify remediation timeframes compliance
-   - [ ] Generate SBOM
-   ```
-
-### Acceptance Criteria
-- [ ] Dependency policy implemented (FINDING-004)
-- [ ] `cargo audit` integrated into CI pipeline
-- [ ] `pip-audit` integrated into CI pipeline
-- [ ] `Cargo.lock` committed to repository
-- [ ] Release process updated with audit steps
-- [ ] SBOM generation automated
-
-### References
-- Source Report: 15.2.1.md
-- Depends on: FINDING-004
-
-### Priority
-**Medium** - Blocks verification of security posture, requires process changes
-
----
-
-## Issue: FINDING-006 - Backend modules receive full configuration object instead of required fields
-**Labels:** bug, security, priority:medium, architecture
-**Description:**
-### Summary
-Backend modules receive the entire `backend_config` dictionary instead of only required fields, potentially exposing sensitive configuration data through error messages or logs.
-
-### Details
-The entire `self.backend_config` dictionary is passed to backend modules and mutated to accumulate state between calls. The config contains all constructor-supplied configuration (including `backend_name`, `backend_options` with `simulator_type`, `shots`, etc.) plus injected `parameter_values`. If a backend module logs, serializes, or exposes this config (e.g., in error messages), fields that should be scoped differently could leak. The mutation pattern also creates implicit coupling bet [...]
-
-**Affected Files:**
-- `qumat/qumat.py` (lines 243-262, 283-302)
-
-**ASVS Reference:** 15.3.1 (Level L1)
-
-### Remediation
-Pass only what the backend needs. Example for `execute_circuit`:
-
-```python
-execution_config = {
-    "parameter_values": bound_parameters,
-    "shots": self.backend_config["backend_options"].get("shots", 1024)
-}
-backend_module.execute_circuit(self.circuit, self.backend, execution_config)
-```
-
-### Acceptance Criteria
-- [ ] Scoped configuration objects created for each backend operation
-- [ ] Only required fields passed to backend modules
-- [ ] Mutation of shared config eliminated
-- [ ] Unit tests verify config isolation
-- [ ] Backend interface documented with required fields
-
-### References
-- Source Report: 15.3.1.md
-- Related: FINDING-013 (public attributes)
-
-### Priority
-**Medium** - Information disclosure risk, architectural improvement needed
-
----
-
-## Issue: FINDING-007 - QuMat class lacks structured documentation defining input validation rules
-**Labels:** documentation, priority:medium
-**Description:**
-### Summary
-The QuMat class lacks structured documentation defining input validation rules, leading to inconsistent validation across backends and unclear error messages.
-
-### Details
-While docstrings describe parameter types, they do not specify valid ranges, allowed values, or expected structures as formal validation rules. Specific gaps:
-- `create_empty_circuit(num_qubits)`: no documented valid range
-- `apply_rx_gate(qubit_index, angle)`: no documented constraints for angle
-- `apply_u_gate(qubit_index, theta, phi, lambd)`: no documented rotation angle constraints
-- `backend_config`: no schema or structural validation rules beyond required keys
-
-Contrast with QDP API documentation which explicitly specifies ranges (e.g., num_qubits 1–30).
-
-**Affected Files:**
-- `qumat/qumat.py`
-
-**ASVS Reference:** 2.1.1 (Level L1)
-
-### Remediation
-Add a validation rules section to the QuMat class docstring:
-
-```python
-"""
-Validation Rules:
-- num_qubits: int, range [1, 30]
-- qubit_index: int, range [0, num_qubits - 1]
-- angle (rotation gates): float, must be finite (no NaN/Inf)
-- backend_name: str, one of {"qiskit", "cirq", "amazon_braket"}
-- backend_options: dict with required key "simulator_type" (str)
-                   and optional "shots" (int, >= 1)
-"""
-```
-
-### Acceptance Criteria
-- [ ] Validation rules section added to class docstring
-- [ ] All parameters documented with type, range, and constraints
-- [ ] Examples provided for valid and invalid inputs
-- [ ] Documentation published and accessible
-- [ ] Related findings (FINDING-001, FINDING-008) reference this documentation
-
-### References
-- Source Report: 2.1.1.md
-- Related: FINDING-001, FINDING-008, FINDING-009
-
-### Priority
-**Medium** - Documentation gap affecting developer experience and security
-
----
-
-## Issue: FINDING-008 - Rotation angle parameters lack validation for finiteness and type
-**Labels:** bug, security, priority:medium
-**Description:**
-### Summary
-Rotation angle parameters (rx, ry, rz, u gates) lack validation for finiteness (NaN, Inf) and type correctness, potentially producing mathematically undefined quantum states.
-
-### Details
-When rotation angles are provided as floats, no validation is performed. While `_handle_parameter` registers string parameter names, float values pass through unchecked. User input passes directly to backend modules without validation. NaN or Inf values produce mathematically undefined quantum states. Backends may silently produce incorrect results rather than raising errors, leading to data integrity issues in quantum computations.
-
-**Affected Files:**
-- `qumat/qumat.py` (lines 303, 321, 339, 356)
-
-**ASVS Reference:** 2.2.1 (Level L1)
-
-### Remediation
-Create a `_validate_angle` helper function:
-
-```python
-def _validate_angle(self, angle: float, param_name: str) -> None:
-    """Validate that angle is numeric and finite."""
-    if not isinstance(angle, (int, float)):
-        raise ValueError(f"{param_name} must be numeric, got {type(angle)}")
-    if not math.isfinite(angle):
-        raise ValueError(f"{param_name} must be finite (not NaN or Inf)")
-```
-
-Apply to all rotation gate methods before passing to backend modules.
-
-### Acceptance Criteria
-- [ ] `_validate_angle` helper function implemented
-- [ ] Validation applied to `apply_rx_gate`, `apply_ry_gate`, `apply_rz_gate`, `apply_u_gate`
-- [ ] Clear error messages for invalid angles
-- [ ] Unit tests for NaN, Inf, and non-numeric inputs
-- [ ] Documentation updated with angle constraints
-
-### References
-- Source Report: 2.2.1.md
-- Related: FINDING-007 (documentation)
-
-### Priority
-**Medium** - Data integrity risk in quantum computations
-
----
-
-## Issue: FINDING-009 - backend_options and backend_name lack structure and allow-list validation
-**Labels:** bug, security, priority:medium
-**Description:**
-### Summary
-The `backend_options` value is not validated for type or structure, and `backend_name` is not validated against an allow list, resulting in unclear error messages and implicit validation.
-
-### Details
-`backend_options` is checked for existence but not validated for type or structure. `backend_name` is not validated against an allow list of known backends, relying solely on `import_module` to fail for unknown names. This results in:
-- Unclear error messages for misconfigured backends
-- Implicit validation through ImportError rather than explicit business rule check
-
-The relative import (`package='qumat'`) limits attack surface to within the `qumat` package (positive pattern).
-
-**Affected Files:**
-- `qumat/qumat.py` (lines 53-75)
-
-**ASVS Reference:** 2.2.1 (Level L1)
-
-### Remediation
-1. Add type validation for `backend_options`:
-   ```python
-   if not isinstance(backend_options, dict):
-       raise TypeError("backend_options must be a dictionary")
-   ```
-
-2. Create allow-list for `backend_name`:
-   ```python
-   VALID_BACKENDS = {"qiskit", "cirq", "amazon_braket"}
-   if backend_name not in VALID_BACKENDS:
-       raise ValueError(f"Invalid backend: {backend_name}. Must be one of {VALID_BACKENDS}")
-   ```
-
-### Acceptance Criteria
-- [ ] Type validation added for `backend_options`
-- [ ] Allow-list validation added for `backend_name`
-- [ ] Clear error messages for invalid configurations
-- [ ] Unit tests for invalid backend names and options
-- [ ] Documentation updated with valid backend list
-
-### References
-- Source Report: 2.2.1.md
-- Related: FINDING-007 (documentation)
-
-### Priority
-**Medium** - User experience and validation clarity
-
----
-
-## Issue: FINDING-010 - Stale Parameter State Persists Across Circuit Resets
-**Labels:** bug, security, priority:medium, data-integrity
-**Description:**
-### Summary
-When `create_empty_circuit` is called on an existing QuMat instance, stale parameter registrations from the previous circuit persist and can corrupt new circuit execution.
-
-### Details
-`create_empty_circuit` resets `self.circuit` and `self.num_qubits` but **not** `self.parameters`. Stale parameter registrations and bound values from a previous circuit persist and are injected into the new circuit's execution via `backend_config["parameter_values"]`. This leads to:
-- Incorrect quantum computation results due to stale parameter state
-- Silent corruption of computation parameters in scientific computing contexts
-- Invalid experimental results
-
-The unbound parameter check in `execute_circuit` only catches parameters with `None` values—fully bound stale parameters pass through silently.
-
-**Affected Files:**
-- `qumat/qumat.py` (lines 82-85)
-
-**ASVS Reference:** 2.3.1 (Level L1)
-
-### Remediation
-Reset the parameters dictionary when creating a new circuit:
-
-```python
-def create_empty_circuit(self, num_qubits: int | None = None) -> None:
-    self.num_qubits = num_qubits
-    self.circuit = self.backend_module.create_empty_circuit(num_qubits)
-    self.parameters = {}  # Reset parameter registry for new circuit
-```
-
-### Acceptance Criteria
-- [ ] Parameters dictionary reset in `create_empty_circuit`
-- [ ] Unit test verifying stale parameters are cleared
-- [ ] Integration test with multiple circuit creations
-- [ ] Documentation updated to clarify circuit lifecycle
-- [ ] Regression test added
-
-### References
-- Source Report: 2.3.1.md
-
-### Priority
-**Medium** - Data integrity issue affecting scientific computation accuracy
-
----
-
-## Issue: FINDING-011 - path_from_py accepts user-supplied file paths with no validation or sanitization
-**Labels:** bug, security, priority:medium, cwe-22
-**Description:**
-### Summary
-The `path_from_py` function accepts file paths from Python callers without validation, enabling path traversal attacks, SSRF (with remote-io), and arbitrary file access.
-
-### Details
-`path_from_py` extracts a string from Python input (string or pathlib.Path) and passes it directly to downstream file I/O operations. No checks are performed for:
-- Path traversal sequences (`../`, `..\`, encoded variants)
-- Null byte injection
-- Scheme validation
-- Canonicalization
-
-The function serves as a chokepoint for multiple entry points (encode_from_parquet, encode_from_arrow_ipc, encode_from_numpy, encode_from_torch, encode_from_tensorflow). With `remote-io` enabled, this creates an SSRF attack surface (s3://, gs:// URLs without scheme validation).
-
-**Attack scenarios:**
-- Path traversal to read arbitrary files: `../../etc/passwd`
-- SSRF targeting internal infrastructure: `http://169.254.169.254/latest/meta-data/`
-- Information disclosure of sensitive configuration and credentials
-
-**Affected Files:**
-- `qdp/qdp-python/src/loader.rs` (lines 109-113)
-
-**ASVS Reference:** 5.3.2 (Level L1)  
-**CWE:** CWE-22 (Improper Limitation of a Pathname to a Restricted Directory)
-
-### Remediation
-Implement path validation and sanitization:
-
-```rust
-fn path_from_py(path: &PyAny, allowed_base: &Path) -> PyResult<PathBuf> {
-    let path_str: String = /* extract string */;
-    
-    // 1. Reject null bytes
-    if path_str.contains('\0') {
-        return Err(PyValueError::new_err("Path contains null byte"));
-    }
-    
-    // 2. Validate scheme for remote paths
-    if path_str.starts_with("s3://") || path_str.starts_with("gs://") {
-        // Allow only these schemes when remote-io enabled
-        return Ok(PathBuf::from(path_str));
-    } else if path_str.contains("://") {
-        return Err(PyValueError::new_err("Unsupported URL scheme"));
-    }
-    
-    // 3. Canonicalize and validate local paths
-    let path = Path::new(&path_str).canonicalize()
-        .map_err(|e| PyValueError::new_err(format!("Invalid path: {}", e)))?;
-    
-    if !path.starts_with(allowed_base) {
-        return Err(PyValueError::new_err("Path outside allowed directory"));
-    }
-    
-    Ok(path)
-}
-```
-
-### Acceptance Criteria
-- [ ] Path validation implemented with null byte rejection
-- [ ] Canonicalization enforced for local paths
-- [ ] Base directory restriction implemented
-- [ ] URL scheme allowlist for remote-io
-- [ ] File extension validation (optional but recommended)
-- [ ] Unit tests for path traversal attempts
-- [ ] Unit tests for null byte injection
-- [ ] Unit tests for scheme validation
-- [ ] Security documentation updated
-
-### References
-- Source Report: 5.3.2.md
-- CWE-22: https://cwe.mitre.org/data/definitions/22.html
-
-### Priority
-**Medium** - Path traversal and SSRF risk in service integration scenarios
-
----
-
-## Issue: FINDING-012 - Remote S3/GCS URL paths may contain sensitive bucket names or object keys in logs
-**Labels:** security, priority:low, logging
-**Description:**
-### Summary
-User-supplied S3/GCS URLs may expose sensitive bucket names or object keys through error messages and logs.
-
-### Details
-User-supplied URL strings for S3/GCS bucket names and object key paths passed as function arguments could appear in error messages or logs. Object keys may contain sensitive identifiers (customer IDs, dataset names, internal project names). The `MahoutError::Io(String)` variant could propagate these paths.
-
-While query strings are explicitly rejected (positive pattern), the path components themselves may leak sensitive information through error messages.
-
-**Affected Files:**
-- `qdp/qdp-core/src/lib.rs` (encode_from_parquet function)
-- `docs/qdp/getting-started.md` (remote URL examples)
-- `error.rs` (MahoutError::Io(String) variant)
-
-**ASVS Reference:** 14.2.1 (Level L1)
-
-### Remediation
-Sanitize file paths in error messages:
-
-```rust
-fn sanitize_remote_path(path: &str) -> String {
-    if path.starts_with("s3://") || path.starts_with("gs://") {
-        let parts: Vec<&str> = path.splitn(4, '/').collect();
-        if parts.len() >= 4 {
-            return format!("{}://<redacted>/<redacted>", parts[0].trim_end_matches(':'));
-        }
-    }
-    path.to_string()
-}
-
-// Use in error handling:
-MahoutError::Io(format!("Failed to read: {}", sanitize_remote_path(&path)))
-```
-
-Consider structured logging that separates path components for selective redaction.
-
-### Acceptance Criteria
-- [ ] Path sanitization function implemented
-- [ ] Sensitive paths redacted in error messages
-- [ ] Structured logging with selective redaction
-- [ ] Unit tests for sanitization logic
-- [ ] Documentation on logging best practices
-
-### References
-- Source Report: 14.2.1.md
-- Related: FINDING-002 (remote IO TLS)
-
-### Priority
-**Low** - Information disclosure through logs, limited impact
-
----
-
-## Issue: FINDING-013 - All instance attributes are public and freely accessible
-**Labels:** enhancement, priority:low, architecture
-**Description:**
-### Summary
-All QuMat instance attributes are public Python attributes, allowing free access to sensitive internal state such as raw backend handles and full configuration.
-
-### Details
-All instance attributes (`backend_config`, `backend_module`, `backend`, `circuit`, `parameters`) are public Python attributes. While Python convention doesn't enforce access control, sensitive internal state is freely accessible to any consumer of a `QuMat` instance.
-
-**Risks (low in library context):**
-- Consumers could inadvertently depend on internal state
-- Raw `backend_config` dictionary could be exposed or modified
-- Internal implementation details become implicit API surface
-
-**Affected Files:**
-- `qumat/qumat.py`
-
-**ASVS Reference:** 15.3.1 (Level L1)
-
-### Remediation
-Use underscore-prefixed attributes for internal state and provide explicit accessor properties:
-
-```python
-class QuMat:
-    def __init__(self, backend_config):
-        self._backend_config = backend_config
-        self._backend_module = None
-        self._backend = None
-        self._circuit = None
-        self._parameters = {}
-    
-    @property
-    def num_qubits(self):
-        return self._num_qubits
-    
-    # Expose only what consumers need
-```
-
-### Acceptance Criteria
-- [ ] Internal attributes prefixed with underscore
-- [ ] Public accessor properties defined for legitimate API surface
-- [ ] Documentation clarifies public vs. internal API
-- [ ] Backward compatibility considered (or breaking change documented)
-- [ ] Unit tests updated for new attribute names
-
-### References
-- Source Report: 15.3.1.md
-- Related: FINDING-006 (configuration scoping)
-
-### Priority
-**Low** - API design improvement, low security impact in library context
\ No newline at end of file


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@tooling.apache.org
For additional commands, e-mail: commits-help@tooling.apache.org