Compare commits
5
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ff128df074 | ||
|
|
9a2a3efd8e | ||
|
|
c99ac96c4d | ||
|
|
5e090b82aa | ||
|
|
4000b9e944 |
No files matched your search
@@ -141,3 +141,7 @@ The pre-push `run-tests` failed 2 of 3 full runs, on a different suite each time
|
|||||||
## 2026-09-16 — A static guard covers exactly the spellings its regex models
|
## 2026-09-16 — A static guard covers exactly the spellings its regex models
|
||||||
|
|
||||||
The guard added above (`tests/test-no-pipefail-early-exit-grep.sh`) reported the tree clean the day it landed, and the tree was not clean. Its pattern could not see a multi-stage pipeline (`echo x | filter | grep -q y`), a pipeline wrapped after a trailing `|`, or `set -o errexit -o pipefail` — the last a file-level miss that silently skipped every site in that file. Five live vulnerable sites sat in `tests/test-apm-current-hook.sh` while the suite reported green, and the fixtures carried 4 of the 12 vulnerable spellings that turned out to exist. A clean verdict from a static scanner is a claim about its regex, not about the tree. Fix: before trusting one, enumerate the spellings of the defect and measure the miss surface against them; and write the scanner's remit and its known false-positive shapes into the gate's own documentation, so the next reader knows what the green covers.
|
The guard added above (`tests/test-no-pipefail-early-exit-grep.sh`) reported the tree clean the day it landed, and the tree was not clean. Its pattern could not see a multi-stage pipeline (`echo x | filter | grep -q y`), a pipeline wrapped after a trailing `|`, or `set -o errexit -o pipefail` — the last a file-level miss that silently skipped every site in that file. Five live vulnerable sites sat in `tests/test-apm-current-hook.sh` while the suite reported green, and the fixtures carried 4 of the 12 vulnerable spellings that turned out to exist. A clean verdict from a static scanner is a claim about its regex, not about the tree. Fix: before trusting one, enumerate the spellings of the defect and measure the miss surface against them; and write the scanner's remit and its known false-positive shapes into the gate's own documentation, so the next reader knows what the green covers.
|
||||||
|
|
||||||
|
## 2026-11-13 — Hook-exported GIT_DIR turned test fixtures loose on the real repo
|
||||||
|
|
||||||
|
Under the `run-tests` pre-push hook, git exports `GIT_DIR` to the hook, so a bats fixture's `git -C "$tmp" init/commit/update-ref` hit this repo instead of its temp dir: 84 failures, `core.bare=true` and an emptied index on every push. The 2026-07-05 "repo root is a bare checkout" entry was likely this bug's symptom, not the repo's real shape. Fix: `tests/run-tests.sh` unsets git's repo-locating env vars before any suite runs. Rule: a test that builds its own repo must never inherit the caller's git environment.
|
||||||
@@ -16,6 +16,18 @@ Use the plugin skills, which wrap the Gitea MCP tools (`mcp__gitea__*`); do not
|
|||||||
- Apply triage state with the `Status/*` labels mapped in `docs/agents/triage-labels.md`.
|
- Apply triage state with the `Status/*` labels mapped in `docs/agents/triage-labels.md`.
|
||||||
- "Publish to the issue tracker" means create a Gitea issue; "fetch the relevant ticket" means read it with `gitea-issues`.
|
- "Publish to the issue tracker" means create a Gitea issue; "fetch the relevant ticket" means read it with `gitea-issues`.
|
||||||
|
|
||||||
|
## Wayfinding operations
|
||||||
|
|
||||||
|
How the `wayfinder` skill's map and tickets map onto Gitea, which has native issue dependencies but no sub-issues.
|
||||||
|
|
||||||
|
- **Labels**: the skill's `wayfinder:<x>` labels are expressed as the Gitea scoped labels `Wayfinder/<X>`, matching the repo's `Scope/Value` convention: `wayfinder:map` is `Wayfinder/Map`, `wayfinder:research` is `Wayfinder/Research`, and so on.
|
||||||
|
- **Map**: an issue labelled `Wayfinder/Map`, paired with a milestone of the same title (`Map: <name>`).
|
||||||
|
- **Child ticket**: an issue whose body starts with `Part of #<map>`, assigned to the map's milestone, carrying exactly one type label (`Wayfinder/Research`, `Wayfinder/Prototype`, `Wayfinder/Grilling`, `Wayfinder/Task`) and no `Status/*` label.
|
||||||
|
- **Blocking**: Gitea's native issue dependencies (`issue_write` `add_dependency`, `dependency_type: blocked_by`).
|
||||||
|
- **Claim**: assign the ticket to the dev driving the map before any work.
|
||||||
|
- **Frontier query**: open issues in the map's milestone with no assignee, then drop any whose `get_blocked_by` lists an open issue.
|
||||||
|
- **Research findings**: committed on a `research/<name>` branch that is pushed but never merged; the ticket's resolution comment links it.
|
||||||
|
|
||||||
## PRs as a request surface
|
## PRs as a request surface
|
||||||
|
|
||||||
Off. Only issues feed the triage queue; PRs are not triaged as requests.
|
Off. Only issues feed the triage queue; PRs are not triaged as requests.
|
||||||
@@ -33,6 +33,14 @@
|
|||||||
# TEST_DIR — override root to search for test-*.sh (default: REPO_ROOT); used by tests.
|
# TEST_DIR — override root to search for test-*.sh (default: REPO_ROOT); used by tests.
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
|
# Git exports GIT_DIR (and can export GIT_WORK_TREE / GIT_INDEX_FILE) to the
|
||||||
|
# hooks it runs, so under the run-tests pre-push hook every `git -C "$tmp" ...`
|
||||||
|
# a fixture runs resolves to THIS repo, not the temp one -- the
|
||||||
|
# validate-provenance-skill.bats commit_as_base helper flipped core.bare=true and
|
||||||
|
# emptied the index here on every push. Suites build their own throwaway repos;
|
||||||
|
# none of them may inherit the caller's.
|
||||||
|
unset GIT_DIR GIT_WORK_TREE GIT_INDEX_FILE GIT_OBJECT_DIRECTORY GIT_COMMON_DIR
|
||||||
|
|
||||||
REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
||||||
BATS="$REPO_ROOT/tests/run-bats.sh"
|
BATS="$REPO_ROOT/tests/run-bats.sh"
|
||||||
BATS_ONLY=false
|
BATS_ONLY=false
|
||||||
|
|||||||
Reference in new issue
Block a user