From ae826f935bb03657a2a4498efba9865afcaabd4f Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 7 Apr 2026 08:57:39 +0000 Subject: [PATCH] fix: add auth headers to curl commands and stack_lock field (#342) - Add Authorization header to read-findings curl calls (private Forgejo) - Add Authorization + Content-Type headers to decompose curl call - Add stack_lock placeholder to [project] extension section Co-Authored-By: Claude Sonnet 4.6 --- formulas/triage.toml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/formulas/triage.toml b/formulas/triage.toml index cc83665..eb3bc3a 100644 --- a/formulas/triage.toml +++ b/formulas/triage.toml @@ -60,6 +60,10 @@ data_flow = "UI → API → backend → data store" # Example: "GraphQL /graphql, REST /api/v1, RPC ws://localhost:8545" api_endpoints = "" +# Stack lock configuration (leave empty for default behavior). +# Example: "full" to hold a full stack lock during triage. +stack_lock = "" + # --------------------------------------------------------------------------- # Steps # --------------------------------------------------------------------------- @@ -71,8 +75,10 @@ description = """ Before doing anything else, parse all prior evidence from the issue comments. 1. Fetch the issue body and all comments: - curl -sf "${FORGE_API}/issues/${ISSUE_NUMBER}" | jq -r '.body' - curl -sf "${FORGE_API}/issues/${ISSUE_NUMBER}/comments" | jq -r '.[].body' + curl -sf -H "Authorization: token ${FORGE_TOKEN}" \ + "${FORGE_API}/issues/${ISSUE_NUMBER}" | jq -r '.body' + curl -sf -H "Authorization: token ${FORGE_TOKEN}" \ + "${FORGE_API}/issues/${ISSUE_NUMBER}/comments" | jq -r '.[].body' 2. Identify the reproduce-agent comment (look for sections like "Reproduction steps", "Logs examined", "What was tried"). @@ -172,6 +178,8 @@ For each root cause found: 2. Create a backlog issue for each root cause: curl -sf -X POST "${FORGE_API}/issues" \\ + -H "Authorization: token ${FORGE_TOKEN}" \\ + -H "Content-Type: application/json" \\ -d '{ "title": "fix: ", "body": "## Root cause\\n\\n\\n## Fix suggestion\\n\\n\\n## Context\\nDecomposed from #${ISSUE_NUMBER} (cause N of M)\\n\\n## Dependencies\\n<#X if this depends on another cause being fixed first>",