diff --git a/torch/KNOWN_ISSUES.md b/torch/KNOWN_ISSUES.md new file mode 100644 index 00000000..777b6910 --- /dev/null +++ b/torch/KNOWN_ISSUES.md @@ -0,0 +1,4 @@ +# Known Issues + +### [ISSUE_daily_style-agent_innerhtml] +**Status:** Open diff --git a/torch/examples/reproducers/ISSUE_daily_style-agent_innerhtml/repro.py b/torch/examples/reproducers/ISSUE_daily_style-agent_innerhtml/repro.py new file mode 100644 index 00000000..1c080e07 --- /dev/null +++ b/torch/examples/reproducers/ISSUE_daily_style-agent_innerhtml/repro.py @@ -0,0 +1,24 @@ +import sys +import os + +target_file = "torch/landing/index.html" +print(f"Checking {target_file} for innerHTML usage...") + +if not os.path.exists(target_file): + print(f"Error: {target_file} not found.") + sys.exit(1) + +with open(target_file, "r") as f: + content = f.read() + +if "innerHTML" in content: + print("FAILURE: innerHTML found in file.") + # Print lines with innerHTML + lines = content.splitlines() + for i, line in enumerate(lines): + if "innerHTML" in line: + print(f"Line {i+1}: {line.strip()}") + sys.exit(1) +else: + print("SUCCESS: No innerHTML found.") + sys.exit(0) diff --git a/torch/package.json b/torch/package.json index d422047f..be4982e8 100644 --- a/torch/package.json +++ b/torch/package.json @@ -4,7 +4,12 @@ "description": "", "main": "index.js", "scripts": { - "test": "echo \"Error: no test specified\" && exit 1" + "test": "echo \"Error: no test specified\" && exit 1", + "lock:check:weekly": "torch-lock check --cadence weekly --json", + "lock:check:daily": "torch-lock check --cadence daily --json", + "lock:lock": "torch-lock lock", + "lock:complete": "torch-lock complete", + "lock:health": "torch-lock health" }, "keywords": [], "author": "", diff --git a/torch/src/context/CONTEXT_2026-02-16T11:47:38Z.md b/torch/src/context/CONTEXT_2026-02-16T11:47:38Z.md new file mode 100644 index 00000000..27fcf670 --- /dev/null +++ b/torch/src/context/CONTEXT_2026-02-16T11:47:38Z.md @@ -0,0 +1,15 @@ +# Context: bug-reproducer-agent run 2026-02-16T11:47:38Z + +- Agent: bug-reproducer-agent +- Cadence: weekly +- Run-Start: 2026-02-16T11:47:38Z +- Prompt: src/prompts/weekly/bug-reproducer-agent.md + +## Goal +Reproduce innerHTML issue. + +## Scope +torch/landing/index.html + +## Constraints +None. diff --git a/torch/src/decisions/DECISIONS_2026-02-16T11:47:38Z.md b/torch/src/decisions/DECISIONS_2026-02-16T11:47:38Z.md new file mode 100644 index 00000000..27dddbea --- /dev/null +++ b/torch/src/decisions/DECISIONS_2026-02-16T11:47:38Z.md @@ -0,0 +1,12 @@ +# Decisions: bug-reproducer-agent run 2026-02-16T11:47:38Z + +- Agent: bug-reproducer-agent +- Cadence: weekly +- Run-Start: 2026-02-16T11:47:38Z +- Prompt: src/prompts/weekly/bug-reproducer-agent.md + +## Decision +Confirmed innerHTML usage. + +## Rationale +Reproduction script found the string "innerHTML" in the file. diff --git a/torch/src/issues/ISSUE_daily_style-agent_innerhtml.md b/torch/src/issues/ISSUE_daily_style-agent_innerhtml.md index 010eb5dd..d66a0a62 100644 --- a/torch/src/issues/ISSUE_daily_style-agent_innerhtml.md +++ b/torch/src/issues/ISSUE_daily_style-agent_innerhtml.md @@ -16,3 +16,14 @@ The `style-agent` detected usage of `innerHTML` in `landing/index.html`, which v ## Recommendation Refactor the code to use `document.createElement` or `textContent` where possible. + +## Reproduction Attempt (2026-02-16T11:47:38Z) +Ran reproduction script: `torch/examples/reproducers/ISSUE_daily_style-agent_innerhtml/repro.py` +``` +Checking torch/landing/index.html for innerHTML usage... +FAILURE: innerHTML found in file. +Line 865: contentDiv.innerHTML = marked.parse(text); +Line 869: contentDiv.innerHTML = `
Error loading documentation: ${error.message}
`; +Line 931: const originalContent = btn.innerHTML; +Line 937: btn.innerHTML = originalContent; +``` diff --git a/torch/src/test_logs/TEST_LOG_2026-02-16T11:47:38Z.md b/torch/src/test_logs/TEST_LOG_2026-02-16T11:47:38Z.md new file mode 100644 index 00000000..66d9d862 --- /dev/null +++ b/torch/src/test_logs/TEST_LOG_2026-02-16T11:47:38Z.md @@ -0,0 +1,12 @@ +# Test Log: bug-reproducer-agent run 2026-02-16T11:47:38Z + +- Agent: bug-reproducer-agent +- Cadence: weekly +- Run-Start: 2026-02-16T11:47:38Z +- Prompt: src/prompts/weekly/bug-reproducer-agent.md + +## Log +- Command: python3 torch/examples/reproducers/ISSUE_daily_style-agent_innerhtml/repro.py +- Result: Failure (innerHTML found). + +Related Issue: [ISSUE_daily_style-agent_innerhtml] diff --git a/torch/src/todo/TODO_2026-02-16T11:47:38Z.md b/torch/src/todo/TODO_2026-02-16T11:47:38Z.md new file mode 100644 index 00000000..3ca72ad6 --- /dev/null +++ b/torch/src/todo/TODO_2026-02-16T11:47:38Z.md @@ -0,0 +1,9 @@ +# TODO: bug-reproducer-agent run 2026-02-16T11:47:38Z + +- Agent: bug-reproducer-agent +- Cadence: weekly +- Run-Start: 2026-02-16T11:47:38Z +- Prompt: src/prompts/weekly/bug-reproducer-agent.md + +## Completed Tasks +- [x] Reproduce innerHTML issue diff --git a/torch/task-logs/weekly/2026-02-16T11:47:38Z__bug-reproducer-agent__completed.md b/torch/task-logs/weekly/2026-02-16T11:47:38Z__bug-reproducer-agent__completed.md new file mode 100644 index 00000000..7b9cd723 --- /dev/null +++ b/torch/task-logs/weekly/2026-02-16T11:47:38Z__bug-reproducer-agent__completed.md @@ -0,0 +1,11 @@ +--- +agent: bug-reproducer-agent +cadence: weekly +start: 2026-02-16T11:47:38Z +--- +# bug-reproducer-agent: Completed + +- Reproduced innerHTML issue. +- Updated issue report: torch/src/issues/ISSUE_daily_style-agent_innerhtml.md +- Created reproducer: torch/examples/reproducers/ISSUE_daily_style-agent_innerhtml/repro.py +- Created artifacts: src/context/CONTEXT_2026-02-16T11:47:38Z.md, src/todo/TODO_2026-02-16T11:47:38Z.md, src/decisions/DECISIONS_2026-02-16T11:47:38Z.md, src/test_logs/TEST_LOG_2026-02-16T11:47:38Z.md