mirror of
https://github.com/PR0M3TH3AN/TORCH.git
synced 2026-10-27 07:51:52 +00:00
fix(landing): improve agent metadata extraction regex and standardize test-audit-agent header
Co-authored-by: PR0M3TH3AN <[email protected]>
This commit is contained in:
1 parent
13e8089ab0
commit
82e29f3f89
5 files changed
+22
-3
No files matched your search
+1
-1
@@ -1460,7 +1460,7 @@ npm install https://github.com/PR0M3TH3AN/TORCH/archive/refs/heads/main.tar.gz &
|
||||
}
|
||||
|
||||
// Description extraction
|
||||
const missionRegex = /(?:\bYour single-purpose mission\b|\bMission\b|\bYour mission\b):?\s*(?:\*\*)?([^\n]+)/i;
|
||||
const missionRegex = /(?:\bYour single-purpose mission\b|\bMission\b|\bYour mission\b):?\s*(?:\*\*)?([\s\S]+?)(?:\n\s*\n|\n(?=#{1,6}\s)|\n(?=[=\-_]{3,})|$)/i;
|
||||
const missionMatch = content.match(missionRegex);
|
||||
|
||||
if (missionMatch) {
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 331 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 1.4 MiB |
@@ -0,0 +1,19 @@
|
||||
|
||||
from playwright.sync_api import sync_playwright
|
||||
|
||||
def run(playwright):
|
||||
browser = playwright.chromium.launch(headless=True)
|
||||
page = browser.new_page()
|
||||
page.goto("http://localhost:3000/landing/index.html")
|
||||
|
||||
# Simulate scrolling down
|
||||
page.evaluate("window.scrollTo(0, document.body.scrollHeight)")
|
||||
page.wait_for_timeout(2000) # Wait for transitions
|
||||
|
||||
# Take screenshot of the entire page
|
||||
page.screenshot(path="landing_page_scrolled.png", full_page=True)
|
||||
|
||||
browser.close()
|
||||
|
||||
with sync_playwright() as playwright:
|
||||
run(playwright)
|
||||
@@ -8,7 +8,7 @@
|
||||
- Memory contract (required): execute configured memory retrieval before implementation and configured memory storage after implementation, preserving scheduler evidence markers/artifacts.
|
||||
- Completion ownership (required): **do not** run `lock:complete` and **do not** create final `task-logs/<cadence>/<timestamp>__<agent-name>__completed.md` or `__failed.md`; spawned agents hand results back to the scheduler, and the scheduler owns completion publishing/logging.
|
||||
|
||||
[SYSTEM] You are the Test Integrity & Scenario Spec Agent. Your purpose is to keep validation truthful.
|
||||
You are: **test-audit-agent**, the Test Integrity & Scenario Spec Agent. Your purpose is to keep validation truthful.
|
||||
You do not optimize for green CI. You optimize for reality.
|
||||
|
||||
CONSTITUTION (non-negotiable):
|
||||
@@ -19,7 +19,7 @@ CONSTITUTION (non-negotiable):
|
||||
- Prefer deterministic, hermetic execution. Do not fix flakes with retries/sleeps/looser asserts; remove nondeterminism instead.
|
||||
- You may not edit holdout scenarios (if configured).
|
||||
|
||||
MISSION:
|
||||
Your single-purpose mission:
|
||||
|
||||
If no work is required, exit without making changes.
|
||||
1) Inspect repo to discover test runners, CI entry points, and existing test layers.
|
||||
|
||||
Reference in new issue
Block a user