boundary-qa
Verifies a built Master FinHub runtime slice by comparing shapes across every boundary it touches (tool schema <-> loop call site <-> test fixture/assertion <-> CLI invocation and output), re-running pytest -q, ruff check, black --check and mypy --strict, and writing PASS/FAIL with exact failing output; also writes the final run report (built, passed, gaps, next step). Use for: QA slice N, verify the build, re-run QA, check the slice boundaries, final report, did slice N pass. Not for auditing design citations (use adversarial-audit) or reviewing code in other FinHub repos.
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-12
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- boundary-qa
- description
- Verifies a built Master FinHub runtime slice by comparing shapes across every boundary it touches (tool schema <-> loop call site <-> test fixture/assertion <-> CLI invocation and output), re-running pytest -q, ruff check, black --check and mypy --strict, and writing PASS/FAIL with exact failing output; also writes the final run report (built, passed, gaps, next step). Use for: QA slice N, verify the build, re-run QA, check the slice boundaries, final report, did slice N pass. Not for auditing design citations (use adversarial-audit) or reviewing code in other FinHub repos.
02 资源文件 1
- 参考文档references/boundary-checklist.md3.7 KB
03 SKILL.md 正文
Boundary QA
Most integration bugs live between two files that each look correct alone: the tool declares path, the loop sends file; the CLI prints result, the test asserts on output. Read both sides of each boundary together, then let the commands decide.
Per-slice steps
- Load the contract. Read slice N in
_workspace/02_strategy-architect_slices.md— its Interfaces and Proof sections are what "correct" means. Read_workspace/03_runtime-builder_slice{N}.mdfor the files touched, but do not trust its gate results. - Walk the boundaries in
references/boundary-checklist.mdthat apply to this slice. For each, open side A and side B and record both shapes in the boundary table. Mismatch = defect with file:line. - Run the gate from the repo root, each command separately, capturing exit code and output:
Then run the slice's proof command if it has one (e.g.pytest -q ruff check src tests black --check src tests mypy --strict srcpython -m master_finhub.cli "echo hi"). - Compliance sweep of files touched: no real names, emails, phone numbers, account numbers, Mercury ids, API keys or tokens in
src/ortests/. - Write
_workspace/03_boundary-qa_slice{N}.md. First lineRESULT: PASSonly if every boundary matches, all four commands exit 0, the proof command produces the expected output, at least one adversarial probe is recorded as aprobe:ormutant:row with its output (amutant:row ends inSTATE: CAUGHTorSTATE: SURVIVEDfrommutant_gate.py classify; adapted from references/openrig/packages/test-system/ci/result.mjs:33-34 (Apache-2.0)), and the sweep is clean. OtherwiseRESULT: FAIL.
Report format (slice)
RESULT: FAIL
# Boundary QA — slice 1
## Boundary table
| boundary | side A | side B | match |
|---|---|---|---|
| echo schema ↔ loop call | tools/builtins/echo.py:8 `params={"text": str}` | runtime/loop.py:54 passes `{"message": ...}` | NO |
| CLI output ↔ test | cli.py:20 prints `result.text` | tests/test_loop.py:31 asserts stdout == "hi\n" | yes |
## Gate
| command | exit | output observed (summary line on success; ≤60 lines on failure) |
|---|---|---|
| pytest -q | 1 | `FAILED tests/test_loop.py::test_echo_round_trip - KeyError: 'text'` |
| ruff check src tests | 0 | `All checks passed!` |
| black --check src tests | 0 | `3 files would be left unchanged.` |
| mypy --strict src | 0 | `Success: no issues found in 3 source files` |
| proof: python -m master_finhub.cli "echo hi" | 1 | `KeyError: 'text'` |
| probe: python -m master_finhub.cli (no argument) | 2 | `error: the following arguments are required: ...` |
## Defects
1. runtime/loop.py:54 — passes `message`, schema declares `text` (expected `text`). cause: judgment-gap
Final report (Phase 4)
Write _workspace/04_boundary-qa_report.md for Daniel, who will not read code. Re-run the gate once across the whole tree first.
# Master FinHub runtime — run report (2026-10-01 AEST)
## Built
| slice | what it gives you | files |
|---|---|---|
| 1 | Agent loop runs a tool and stops | runtime/loop.py, tools/builtins/echo.py, cli.py |
## Passed
| slice | pytest | ruff | black | mypy | proof |
|---|---|---|---|---|---|
| 1 | pass | pass | pass | pass | `echo hi` → `hi` |
## Gaps
- Slice 3 FAIL after one retry — mypy: `sandbox/workspace.py:22 Returning Any` (verbatim output in 03_boundary-qa_slice3.md).
- Claims still UNVERIFIED in code: A7 (guarded by tests/test_router.py::test_profile_fallback).
- Slices 4–11 not started.
## Next step
Re-run slice 3 after fixing the return type in sandbox/workspace.py.
Rules
- Read-only on code. Report; do not fix.
- Never mark PASS by skipping a command. A missing tool is a FAIL with the install hint (
uv pip install -e .[dev]). - Paste real output; never paraphrase an error.
- On re-run, re-check every previously listed defect plus a full gate run.
04 同仓库更多 Skills
linky
Fixture whose links and bundled-file mentions all resolve. Use to prove no false errors.
dup-one
Second owner of the name. Use for the duplicate fixture.
dup-one
First owner of the name. Use for the duplicate fixture.
nested
暂无简介
broken
Fixture with one defect per rule. Use to prove each rule fires.
notes-style
House style for client notes. Use when writing or editing a client note.