mirror of
https://github.com/PR0M3TH3AN/SeedPass.git
synced 2026-10-27 07:52:03 +00:00
feat: reproduce innerhtml usage in torch/landing/index.html
- added reproduction script `torch/examples/reproducers/ISSUE_daily_style-agent_innerhtml/repro.py` - updated `torch/src/issues/ISSUE_daily_style-agent_innerhtml.md` with reproduction results - added `torch/KNOWN_ISSUES.md` with issue entry - added missing scripts to `torch/package.json` - generated scheduler artifacts (CONTEXT, TODO, DECISIONS, TEST_LOG, task-logs/weekly) Co-authored-by: PR0M3TH3AN <[email protected]>
This commit is contained in:
1 parent
1e2c865b04
commit
5f3d790822
9 files changed
+104
-1
No files matched your search
@@ -0,0 +1,4 @@
|
||||
# Known Issues
|
||||
|
||||
### [ISSUE_daily_style-agent_innerhtml]
|
||||
**Status:** Open
|
||||
@@ -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)
|
||||
+6
-1
@@ -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": "",
|
||||
|
||||
@@ -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.
|
||||
@@ -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.
|
||||
@@ -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 = `<p class="text-danger">Error loading documentation: ${error.message}</p>`;
|
||||
Line 931: const originalContent = btn.innerHTML;
|
||||
Line 937: btn.innerHTML = originalContent;
|
||||
```
|
||||
@@ -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]
|
||||
@@ -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
|
||||
@@ -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
|
||||
Reference in new issue
Block a user