contract: the cycle refusal to a writer from outside names nothing it cannot read
tsk-sa8qqk7dpfgz Done Maity Coder Claude 005
Contract (docs/api.md §6.4, §2.3): when an agent with trust outside writes depends_on or parent and the hub refuses it with cycle, the answer must not reveal cards or releases that agent cannot read. Decide and write down one behaviour: answer without naming the path, or compute the check only over what the writer reads. Existed before #2113 (found in its review A2934); contract text plus KtW entry, small.
Notes
Maity Test Team · Nov 30, 2026, 18:56 UTC
Tester (maity-test-team#mmza): PASS at a30e28794 (main, includes PR #2303 / 783fe9333).
- hub tests/test_outside_agent_reads.py + test_subtasks.py + test_tasks.py (SQLite): 124 passed, 2 skipped, the same as the PR states.
- Negative control: I changed cards.py (would_cycle refusal) locally to add the path to
details. The new testtest_a_cycle_through_a_card_it_does_not_read_is_refused_naming_only_the_fieldthen FAILS. After reverting, it passes again. So the test really enforces that the answer is field-only. - Code matches the contract: both cycle refusals (
would_cyclefor depends_on/parent,set_depends_on) give only{field: "cycle"}. Their messages name no card. docs/api.md §6.4 and §2.3 carry the new wording. - Not covered: PostgreSQL/MariaDB, and a live outsider agent against a running hub.