Skip to content

Modifying WP fixes for Agent 3#17

Open
D3lK1ch1 wants to merge 12 commits into
mainfrom
fix/wp_fix_update
Open

Modifying WP fixes for Agent 3#17
D3lK1ch1 wants to merge 12 commits into
mainfrom
fix/wp_fix_update

Conversation

@D3lK1ch1

Copy link
Copy Markdown
Collaborator

Added Missing H1 tags and Image Without Alt Text into FIX_MAP.

Among issues, despite the RankMath plugin, missing canonical URL has this certain type of problem: canonical value was written but no tag is rendered on the page — looks like a RankMath output/configuration issue, not a write failure

Everything else works either fixed and can be verified manually with link pointing where, or deferred with explanations requiring human input in tickets.

@D3lK1ch1
D3lK1ch1 requested a review from abdolnabi July 16, 2026 05:45
Comment thread src/agents/fix_agent.py Fixed
Comment thread src/agents/fix_agent.py Fixed
Comment thread src/agents/fix_agent.py Fixed
Comment thread src/agents/provider.py Fixed
Comment thread main.py
# Requires BOTH the tag AND state=='QA' — a ticket carrying only one (e.g. someone
# manually retagged or restated it outside the normal Agent 3 fix flow) shouldn't
# surface as a ready-to-check candidate here.
resp = requests.post(wiql_url, headers=headers, json={"query": f"SELECT [System.Id] FROM WorkItems WHERE [System.Tags] CONTAINS '{AZURE_QA_TAG}' AND [System.State] = '{qa_state}' ORDER BY [System.Id] DESC"}, timeout=10)
Comment thread src/crawl_db.py
with get_db() as conn:
cursor = conn.cursor()
placeholders = ','.join(['?'] * len(ticket_ids))
cursor.execute(f"DELETE FROM devops_tickets WHERE ticket_id IN ({placeholders})", list(ticket_ids))
Comment thread main.py Outdated
Comment thread src/agents/url_safety.py
for the same cases assert_safe_url() does."""
parsed, ip = _resolve_and_validate(url)
with pin_dns(parsed.hostname, str(ip)):
return requests.get(url, **kwargs)
Comment thread src/agents/url_safety.py
of crawled-content-derived URLs)."""
parsed, ip = _resolve_and_validate(url)
with pin_dns(parsed.hostname, str(ip)):
return requests.post(url, **kwargs)
Comment thread src/agents/url_safety.py
for the same cases assert_safe_url() does."""
parsed, ip = _resolve_and_validate(url)
with pin_dns(parsed.hostname, str(ip)):
return requests.get(url, **kwargs)
Comment thread main.py
except ValueError as e:
return jsonify({'success': False, 'error': str(e)}), 400
token = base64.b64encode(f':{pat}'.encode()).decode()
headers = {'Authorization': f'Basic {token}', 'Content-Type': 'application/json'}
Comment thread main.py
headers = {'Authorization': f'Basic {token}', 'Content-Type': 'application/json'}
qa_state = os.getenv('AZURE_QA_STATE', 'QA')
wiql_url = f'https://dev.azure.com/{org}/{url_quote(project)}/_apis/wit/wiql?api-version=7.1'
resp = requests.post(wiql_url, headers=headers, json={"query": f"SELECT [System.Id] FROM WorkItems WHERE [System.Tags] CONTAINS '{AZURE_QA_TAG}' ORDER BY [System.Id] DESC"}, timeout=10)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants