Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Miguok/fable-harness
/ functions
Functions
32 in github.com/Miguok/fable-harness
⨍
Functions
32
◇
Types & classes
0
↓ 12 callers
Function
_user
(text)
tests/test_verify_gate.py:68
↓ 11 callers
Function
_tool_result
()
tests/test_verify_gate.py:77
↓ 11 callers
Function
_tool_use
(name, tool_input)
tests/test_verify_gate.py:72
↓ 11 callers
Function
run_gate
以生產介面(stdin JSON → stdout)呼叫 gate,回傳 (stdout, returncode)。
tests/test_verify_gate.py:82
↓ 6 callers
Function
multiply
(a, b)
sandbox/calc.py:9
↓ 5 callers
Function
subtract
(a, b)
sandbox/calc.py:13
↓ 3 callers
Function
_path_matches
(root: Path, rel: str, kind: str)
scripts/detect_harness.py:104
↓ 1 callers
Function
_keyword_pattern
(keyword: str)
scripts/detect_harness.py:131
↓ 1 callers
Function
_scan_layer1
回傳 {"harnessmith": [命中路徑...], "superpowers": [命中路徑...]}。
scripts/detect_harness.py:115
↓ 1 callers
Function
_scan_layer2
(root: Path)
scripts/detect_harness.py:127
↓ 1 callers
Function
_scan_layer3
只掃頂層指定 .md,各檔讀取上限 MAX_READ_BYTES,回傳命中證據字串清單。
scripts/detect_harness.py:140
↓ 1 callers
Function
detect
對 root 執行三層只讀掃描,回傳符合 ROADMAP §4.1 schema 的 dict。
scripts/detect_harness.py:161
↓ 1 callers
Function
main
(argv=None)
scripts/detect_harness.py:217
Function
add
(a, b)
sandbox/calc.py:5
Function
test_t10_nontest_commands_still_block
T10:形似測試的日常指令不得被誤認為測試(R4 紅隊:假放行面實證)。
tests/test_verify_gate.py:220
Function
test_t1_edit_py_without_test_blocks
(tmp_path)
tests/test_verify_gate.py:98
Function
test_t1_positive_subtraction
()
tests/test_calc_subtract.py:53
Function
test_t1_positive_times_positive
()
tests/test_calc_multiply.py:54
Function
test_t2_edit_py_with_pytest_allows
(tmp_path)
tests/test_verify_gate.py:112
Function
test_t2_negative_result
()
tests/test_calc_subtract.py:57
Function
test_t2_zero
()
tests/test_calc_multiply.py:58
Function
test_t3_negative_times_positive
()
tests/test_calc_multiply.py:63
Function
test_t3_stop_hook_active_soft_allows
(tmp_path)
tests/test_verify_gate.py:125
Function
test_t3_zero
()
tests/test_calc_subtract.py:61
Function
test_t4_commutative
()
tests/test_calc_multiply.py:67
Function
test_t4_md_only_edit_allows
(tmp_path)
tests/test_verify_gate.py:136
Function
test_t4_negative_operands
()
tests/test_calc_subtract.py:66
Function
test_t5_pure_qa_allows
(tmp_path)
tests/test_verify_gate.py:147
Function
test_t6_missing_or_corrupt_transcript_fails_open
(tmp_path)
tests/test_verify_gate.py:154
Function
test_t7_edit_in_previous_turn_allows
(tmp_path)
tests/test_verify_gate.py:166
Function
test_t8_local_command_entry_not_turn_boundary
(tmp_path)
tests/test_verify_gate.py:178
Function
test_t9_multi_ecosystem_test_commands_allow
T9:非 Python/JS 生態的測試指令必須被 TEST_CMD_RE 識別(R1 紅隊:全域假攔面)。
tests/test_verify_gate.py:193