From 3cb09c3960f8f284d27a56cb26d34a0ecace70e8 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Fri, 27 Feb 2026 21:31:21 +0000 Subject: [PATCH 1/4] [scheduler] record daily run for deps-security-agent (failed) Co-authored-by: PR0M3TH3AN <53631862+PR0M3TH3AN@users.noreply.github.com> --- .scheduler-memory/latest/daily/memories.md | 46 +---------------- .scheduler-memory/memory-store.json | 51 +++++++++++++++++++ .../session-mm5ekywg/retrieve.json | 18 +++++++ .../session-mm5ekywg/retrieve.ok | 1 + .scheduler-memory/session-mm5ela2k/store.json | 20 ++++++++ .scheduler-memory/session-mm5ela2k/store.ok | 1 + ...T21-28-04Z__deps-security-agent__failed.md | 7 +++ 7 files changed, 100 insertions(+), 44 deletions(-) create mode 100644 .scheduler-memory/session-mm5ekywg/retrieve.json create mode 100644 .scheduler-memory/session-mm5ekywg/retrieve.ok create mode 100644 .scheduler-memory/session-mm5ela2k/store.json create mode 100644 .scheduler-memory/session-mm5ela2k/store.ok create mode 100644 torch/task-logs/daily/2026-02-27T21-28-04Z__deps-security-agent__failed.md diff --git a/.scheduler-memory/latest/daily/memories.md b/.scheduler-memory/latest/daily/memories.md index 8dcfff20..b0c69133 100644 --- a/.scheduler-memory/latest/daily/memories.md +++ b/.scheduler-memory/latest/daily/memories.md @@ -1,45 +1,3 @@ -### 1. [2026-02-26] (scheduler, daily, store, insight) +### 1. [2026-02-27] (scheduler, daily, retrieve) -# Memory Update (2026-02-25) - -## Docs Cleanup -- Replaced `docs/README.md` content that referenced Archivox with a SeedPass-focused docs index. -- Updated docs-site default title in `docs/src/config/loadConfig.js` from `Archivox` to `SeedPass Docs`. - -## Outcome -- Removed stale Arc… - ---- - -### 2. [2026-02-25] (scheduler, daily, store, insight) - -### 1. [2026-02-25] (torch, init, reinstall) -If `npx --no-install torch-lock init --help` prints initialization prompts, it may be interactive; use `printf '\n' | npx --no-install torch-lock init --force` to accept defaults non-interactively in CI/agent runs. - -### 2. [2026-02-25… - ---- - -### 3. [2026-02-25] (scheduler, daily, store, insight) - -### 1. [2026-02-25] (torch, scheduler, host-mode) -When running `npm run --prefix torch scheduler:daily`, the scheduler resolves config from `torch/torch-config.json` (cwd-scoped), not the repo-root `torch-config.json`. - -### 2. [2026-02-25] (torch, scheduler, handoff) -A non-inter… - ---- - -### 4. [2026-02-25] (scheduler, daily, store, insight) - -### 1. [2026-02-25] (torch, scheduler, host-mode) -When running `npm run --prefix torch scheduler:daily`, the scheduler resolves config from `torch/torch-config.json` (cwd-scoped), not the repo-root `torch-config.json`. - -### 2. [2026-02-25] (torch, scheduler, handoff) -A non-inter… - ---- - -### 5. [2026-02-26] (scheduler, daily, retrieve) - -Memory retrieval seed for daily :: scheduler memory retrieval \ No newline at end of file +Memory retrieval seed for daily :: Deps Security Agent \ No newline at end of file diff --git a/.scheduler-memory/memory-store.json b/.scheduler-memory/memory-store.json index 0c946347..51e11d8b 100644 --- a/.scheduler-memory/memory-store.json +++ b/.scheduler-memory/memory-store.json @@ -507,5 +507,56 @@ "merged_into": null, "pinned": false } + ], + [ + "0dab145c-2792-4f6d-a52d-faaaaab161de", + { + "schema_version": 1, + "id": "0dab145c-2792-4f6d-a52d-faaaaab161de", + "agent_id": "deps-security-agent", + "session_id": "session-mm5ekywg", + "type": "batch_window", + "content": "Memory retrieval seed for daily :: Deps Security Agent", + "summary": "Memory retrieval seed for daily :: Deps Security Agent", + "tags": [ + "scheduler", + "daily", + "retrieve" + ], + "importance": 0.4, + "embedding_id": null, + "created_at": 1772227645361, + "last_seen": 1772227645373, + "source": "scheduler-retrieve", + "ttl_days": null, + "merged_into": null, + "pinned": false + } + ], + [ + "d95dd159-0aca-4f66-8d6a-cdbbb138f0b2", + { + "schema_version": 1, + "id": "d95dd159-0aca-4f66-8d6a-cdbbb138f0b2", + "agent_id": "deps-security-agent", + "session_id": "session-mm5ela2k", + "type": "batch_window", + "content": "Prompt failed: missing runner codex", + "summary": "Prompt failed: missing runner codex", + "tags": [ + "scheduler", + "daily", + "store", + "insight" + ], + "importance": 0.8, + "embedding_id": null, + "created_at": 1772227659837, + "last_seen": 1772227659837, + "source": "agent-output", + "ttl_days": null, + "merged_into": null, + "pinned": false + } ] ] \ No newline at end of file diff --git a/.scheduler-memory/session-mm5ekywg/retrieve.json b/.scheduler-memory/session-mm5ekywg/retrieve.json new file mode 100644 index 00000000..8d7a1a6b --- /dev/null +++ b/.scheduler-memory/session-mm5ekywg/retrieve.json @@ -0,0 +1,18 @@ +{ + "cadence": "daily", + "operation": "retrieve", + "runId": "session-mm5ekywg", + "servicePath": "src/services/memory/index.js#getRelevantMemories", + "inputs": { + "agentId": "deps-security-agent", + "promptPath": "torch/src/prompts/daily/deps-security-agent.md", + "promptIntent": "Deps Security Agent", + "query": "scheduler | daily | agent | deps-security-agent | intent | Deps Security Agent", + "events": 1 + }, + "outputs": { + "ingestedCount": 1, + "retrievedCount": 1 + }, + "status": "ok" +} \ No newline at end of file diff --git a/.scheduler-memory/session-mm5ekywg/retrieve.ok b/.scheduler-memory/session-mm5ekywg/retrieve.ok new file mode 100644 index 00000000..84b17199 --- /dev/null +++ b/.scheduler-memory/session-mm5ekywg/retrieve.ok @@ -0,0 +1 @@ +MEMORY_RETRIEVED diff --git a/.scheduler-memory/session-mm5ela2k/store.json b/.scheduler-memory/session-mm5ela2k/store.json new file mode 100644 index 00000000..943f3d6e --- /dev/null +++ b/.scheduler-memory/session-mm5ela2k/store.json @@ -0,0 +1,20 @@ +{ + "cadence": "daily", + "operation": "store", + "runId": "session-mm5ela2k", + "servicePath": "src/services/memory/index.js#ingestEvents", + "inputs": { + "agentId": "deps-security-agent", + "promptPath": "torch/src/prompts/daily/deps-security-agent.md", + "promptIntent": "Deps Security Agent", + "events": 1, + "sourceFile": ".scheduler-memory/latest/daily/store.ok" + }, + "outputs": { + "storedCount": 1, + "summaries": [ + "Prompt failed: missing runner codex" + ] + }, + "status": "ok" +} \ No newline at end of file diff --git a/.scheduler-memory/session-mm5ela2k/store.ok b/.scheduler-memory/session-mm5ela2k/store.ok new file mode 100644 index 00000000..1e40bb67 --- /dev/null +++ b/.scheduler-memory/session-mm5ela2k/store.ok @@ -0,0 +1 @@ +MEMORY_STORED diff --git a/torch/task-logs/daily/2026-02-27T21-28-04Z__deps-security-agent__failed.md b/torch/task-logs/daily/2026-02-27T21-28-04Z__deps-security-agent__failed.md new file mode 100644 index 00000000..0b80ebef --- /dev/null +++ b/torch/task-logs/daily/2026-02-27T21-28-04Z__deps-security-agent__failed.md @@ -0,0 +1,7 @@ +--- +agent: deps-security-agent +status: failed +date: 2026-02-27 +--- +execution_error +Prompt execution failed: missing runner codex From 7a53be30f36c42ee29c3a7cf405c34e5fb3ee060 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Fri, 27 Feb 2026 21:34:49 +0000 Subject: [PATCH 2/4] [scheduler] record daily run for deps-security-agent (failed) + format scripts Co-authored-by: PR0M3TH3AN <53631862+PR0M3TH3AN@users.noreply.github.com> --- .../test-audit/run_python_flaky_check.py | 55 ++++++++++++------- .../test-audit/run_python_static_analysis.py | 19 ++++--- 2 files changed, 47 insertions(+), 27 deletions(-) diff --git a/torch/scripts/test-audit/run_python_flaky_check.py b/torch/scripts/test-audit/run_python_flaky_check.py index 9ddef432..3add8d15 100644 --- a/torch/scripts/test-audit/run_python_flaky_check.py +++ b/torch/scripts/test-audit/run_python_flaky_check.py @@ -11,6 +11,7 @@ TEST_PATTERN = "src/tests" RESULTS = {} RUN_DIAGNOSTICS = [] + def run_tests(run_index): """Run pytest and parse output for pass/fail counts.""" print(f"Run {run_index + 1}/{RUNS}...") @@ -19,11 +20,13 @@ def run_tests(run_index): # -q: quiet # --no-header --no-summary: minimal output cmd = [ - sys.executable, "-m", "pytest", + sys.executable, + "-m", + "pytest", TEST_PATTERN, "-q", "--no-header", - "--no-summary" + "--no-summary", ] start_time = time.time() @@ -33,7 +36,7 @@ def run_tests(run_index): cmd, capture_output=True, text=True, - env={"PYTHONPATH": "src"} # Ensure src is in path + env={"PYTHONPATH": "src"}, # Ensure src is in path ) output = result.stdout exit_code = result.returncode @@ -45,10 +48,10 @@ def run_tests(run_index): # Parse output character by character for status # . = pass, F = fail, E = error, s = skip, x = xfail, X = xpass - passed = output.count('.') - failed = output.count('F') - errors = output.count('E') - skipped = output.count('s') + passed = output.count(".") + failed = output.count("F") + errors = output.count("E") + skipped = output.count("s") # Store aggregate results (naive mapping, ideally we'd parse node ids) # Since we can't easily map node IDs without -v or --junitxml, we track totals for flakiness *rates* at suite level first. @@ -56,26 +59,36 @@ def run_tests(run_index): junit_path = OUTPUT_DIR / f"flaky-run-{run_index + 1}.xml" subprocess.run( - [sys.executable, "-m", "pytest", TEST_PATTERN, f"--junitxml={junit_path}", "-q"], - capture_output=True, # We only care about the XML file - env={"PYTHONPATH": "src"} + [ + sys.executable, + "-m", + "pytest", + TEST_PATTERN, + f"--junitxml={junit_path}", + "-q", + ], + capture_output=True, # We only care about the XML file + env={"PYTHONPATH": "src"}, + ) + + RUN_DIAGNOSTICS.append( + { + "run": run_index + 1, + "code": exit_code, + "duration": duration, + "passed": passed, + "failed": failed, + "errors": errors, + "skipped": skipped, + } ) - RUN_DIAGNOSTICS.append({ - "run": run_index + 1, - "code": exit_code, - "duration": duration, - "passed": passed, - "failed": failed, - "errors": errors, - "skipped": skipped - }) def parse_junit_xmls(): """Parse generated JUnit XML files to detect per-test flakiness.""" import xml.etree.ElementTree as ET - test_stats = {} # "test_id": {pass: 0, fail: 0, error: 0, skip: 0} + test_stats = {} # "test_id": {pass: 0, fail: 0, error: 0, skip: 0} for i in range(RUNS): xml_path = OUTPUT_DIR / f"flaky-run-{i + 1}.xml" @@ -108,6 +121,7 @@ def parse_junit_xmls(): return test_stats + def main(): OUTPUT_DIR.mkdir(parents=True, exist_ok=True) @@ -129,5 +143,6 @@ def main(): print(f"Flakiness matrix written to {OUTPUT_DIR / 'flakiness-matrix.json'}") + if __name__ == "__main__": main() diff --git a/torch/scripts/test-audit/run_python_static_analysis.py b/torch/scripts/test-audit/run_python_static_analysis.py index ec0116c4..a6aa78ca 100644 --- a/torch/scripts/test-audit/run_python_static_analysis.py +++ b/torch/scripts/test-audit/run_python_static_analysis.py @@ -20,29 +20,33 @@ PATTERNS = [ (r"# todo", "Found '# todo' comment"), ] + def scan_file(filepath): """Scan a single file for suspicious patterns.""" issues = [] try: content = filepath.read_text(encoding="utf-8") except Exception: - return # Skip non-text files + return # Skip non-text files for pattern, message in PATTERNS: if re.search(pattern, content): issues.append(message) # Check for lack of assertions (very naive) - if "test_" in filepath.name and "assert" not in content and "expect" not in content and "raise" not in content: + if ( + "test_" in filepath.name + and "assert" not in content + and "expect" not in content + and "raise" not in content + ): # Exclude conftest or helpers if "conftest" not in filepath.name and "helper" not in filepath.name: - issues.append("No obvious assertions found") + issues.append("No obvious assertions found") if issues: - SUSPICIOUS.append({ - "file": str(filepath), - "issues": issues - }) + SUSPICIOUS.append({"file": str(filepath), "issues": issues}) + def main(): OUTPUT_DIR.mkdir(parents=True, exist_ok=True) @@ -62,5 +66,6 @@ def main(): print(f"Found {len(SUSPICIOUS)} suspicious files.") print(f"Report written to {OUTPUT_DIR / 'suspicious-tests.json'}.") + if __name__ == "__main__": main() From fca248bb9314863221352905c9b8d68d62598bbd Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Fri, 27 Feb 2026 22:02:34 +0000 Subject: [PATCH 3/4] [scheduler] record daily run for deps-security-agent (failed) + fix windows tests Co-authored-by: PR0M3TH3AN <53631862+PR0M3TH3AN@users.noreply.github.com> --- src/tests/test_ai_tui_agent_harness.py | 2 ++ test_replace8.py | 13 +++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 test_replace8.py diff --git a/src/tests/test_ai_tui_agent_harness.py b/src/tests/test_ai_tui_agent_harness.py index ed228a38..c01b4c26 100644 --- a/src/tests/test_ai_tui_agent_harness.py +++ b/src/tests/test_ai_tui_agent_harness.py @@ -6,6 +6,8 @@ import sys import pytest +pytest.importorskip("pty") + def _load_harness_module(): repo_root = Path(__file__).resolve().parents[2] diff --git a/test_replace8.py b/test_replace8.py new file mode 100644 index 00000000..ba0a5342 --- /dev/null +++ b/test_replace8.py @@ -0,0 +1,13 @@ +import re + +with open("src/tests/test_ai_tui_agent_harness.py", "r") as f: + content = f.read() + +new_content = re.sub( + r"(import sys\n\nimport pytest)", + r"import sys\n\nimport pytest\n\npytest.importorskip('pty')", + content +) + +with open("src/tests/test_ai_tui_agent_harness.py", "w") as f: + f.write(new_content) From e4cf7bebed9c40f7fd85e7a9f67362f95e02a738 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Fri, 27 Feb 2026 22:07:40 +0000 Subject: [PATCH 4/4] [scheduler] record daily run for deps-security-agent (failed) + fix windows tests Co-authored-by: PR0M3TH3AN <53631862+PR0M3TH3AN@users.noreply.github.com> --- test_replace8.py | 13 ------------- 1 file changed, 13 deletions(-) delete mode 100644 test_replace8.py diff --git a/test_replace8.py b/test_replace8.py deleted file mode 100644 index ba0a5342..00000000 --- a/test_replace8.py +++ /dev/null @@ -1,13 +0,0 @@ -import re - -with open("src/tests/test_ai_tui_agent_harness.py", "r") as f: - content = f.read() - -new_content = re.sub( - r"(import sys\n\nimport pytest)", - r"import sys\n\nimport pytest\n\npytest.importorskip('pty')", - content -) - -with open("src/tests/test_ai_tui_agent_harness.py", "w") as f: - f.write(new_content)