History and architecture

Historical observations · 2026-10-16

What did the gates actually catch?

Known work-order faults were probed, mitigations were added, and an offline comparison checked selected gate behaviour. These are bounded observations, not a current security certification.

Read the evidence at its own scope

A public manifest acknowledgement is not author authentication. A green gate checks named rules; it does not prove correct requirements, general prompt-injection resistance or universal protection of every execution path.

The findings and results below predate the current package. No new benchmark, remote mutation or model run was performed to generate this page.

9 reviewed trust-boundary findings

The table describes the historical gaps, not current vulnerabilities. Mitigation status below is the report's later observation, not a fresh retest of every release.

IDHistorical severityPathHistorical gap
WOTB-01hightyped orderscommand_argv executes any argv. safety: READ_ONLY is a label and is not enforced. remote-next/rn and typed-next run the queued order without an --execute step.
WOTB-02mediumtyped orderscockpit_action passes the order's own allow_bounded to run_cockpit_action, so an order authorises its own BOUNDED actions, for example dialog.rnc (commit and push closeout paths) or dialog.rn (run the next order).
WOTB-03mediumtyped orders, work-order runlog_path is checked with startswith("docs/reports/terminal/") only; docs/reports/terminal/../../../../x writes outside the repository.
WOTB-04lowwork-order runThe required gates are substring checks on the command; echo pytest ruff check check-docs doctor; … satisfies the contract without running a gate. This defeats the gate contract, not a security boundary, because the lane executes shell by design.
WOTB-05mediumtransfer run_commandRaw git/gh and interpreters are recognised only by literal argv[0] or text prefix. env git push --force, /usr/bin/git push, git -c … push, git -C . push, env gh pr merge, /usr/bin/python3 -c, .venv/bin/python -c pass parsing and lint; git -c/git -C produce only a WARN. This contradicts transfer_safety_rules.yaml ("Do not put raw gh … into LLM-to-local payloads").
WOTB-06hightransfer write_text_filePaths are checked lexically; symlinks are followed. A payload symlink copies any readable file into the repository, where a later commit can publish it, and a symlinked directory makes the write land outside the repository.
WOTB-07mediumtransfer freshness guard_head_matches accepts any prefix of HEAD, including one character (short_head.startswith(value)), so an anchor matches about one HEAD in sixteen without any knowledge of the current state.
WOTB-08hightransfer remote-next / transfer continue(a) The freshness guard (status, kind, expected branch, anchor) runs only when no branch is given; transfer continue always passes the inferred branch, so on the canonical path the guard is skipped. (b) Without a branch, the guard validates the order in the current checkout, and the order executed is re-read after git switch and git pull of the order's branch, with no re-validation.
WOTB-09lownext-turn.py laneThe validator is a text denylist over an arbitrary Python script ('git push', 'os.system(', …). subprocess.run(["git", "push", …]) or __import__("o"+"s") pass. The lane is unrestricted by nature; the validator must not be presented as a safety boundary.

Mitigations recorded in that review

WOTB-01, WOTB-02, WOTB-03, WOTB-05, WOTB-06

Typed command_argv and transfer run_command run READ_ONLY Kit commands and read-only git/gh queries. BOUNDED Kit commands, BOUNDED cockpit actions and commands outside the manifest need the local --allow-unlisted flag on transfer continue, transfer remote-next, transfer apply, transfer run-local, remote-next/rn, work-order typed-next and work-order typed-run. DESTRUCTIVE Kit commands, raw git/gh mutations and interpreters are refused even with the flag. The refusal happens before any action of the order runs.

WOTB-07, WOTB-08

The anchor must be a full 40-character hash. It must equal HEAD for an uncommitted order, and otherwise the first parent of the commit that last changed the order file. transfer remote-next checks status, kind, branch and anchor again after switch and pull, on every path including an explicit or inferred branch (transfer continue). The order that runs is therefore the order that was checked. transfer order-validate uses the same binding.

WOTB-04, WOTB-09

work-order run --execute, the next-turn.py fixed slot (next_turn_runner, GUI work-order run) and current.sh (agent_command_runner) no longer execute anything. They report BLOCKED_RETIRED_LANE, keep their evidence and point to typed work orders, transfer orders and the planner executor. The validators stay as format checks. The commands are removed after the deprecation window.

Some unrestricted execution lanes were retired rather than made into sandboxes. Format validation must not be mistaken for command authorization. See the dated review for the individual probes and limitations.

Offline fault injection: different denominators

Released baseline: agentic-kit 1.0.25

5 of 10 applicable scenarios detected.

1 of 11 scenarios could not be injected. A failed control or absent gate counts as not detected, not a successful refusal.

Sandbox revision: 4e784b6a751ccdddf6cbc7636c6ad4b3b65326bd.

Dated development observation

11 of 11 applicable scenarios detected, with clean controls.

Sandbox revision: 04976227b4e36dc75cf2520dd99f06e136e65cde.

Editable development runtime; exact runtime revision not recorded. The sandbox revision does not independently pin the editable runtime.

ScenarioFault classReleased baselineDevelopment observation
S01stale command authorityDetected with clean controlDetected with clean control
S02raw git bypassNot detectedDetected with clean control
S03path escapeNot detectedDetected with clean control
S04stale orderNot detected; control failed or gate absentDetected with clean control
S05order self-authorisationNot detectedDetected with clean control
S06projection driftNot applicable (not injected)Detected with clean control
S07stale entrypointDetected with clean controlDetected with clean control
S08invalid planning stateDetected with clean controlDetected with clean control
S09unregistered documentDetected with clean controlDetected with clean control
S10direct git mutationNot detected; control failed or gate absentDetected with clean control
S11commit on mainDetected with clean controlDetected with clean control

What this does not establish

Scoped claims · Architecture, work and handoff

Inspect the pinned sources

Self-hosting and Brownfield development cases

Self-hosting case: KIT-GF-078

CI needed longer than the release waited

The 300-second CI wait interrupted DOI and archive closeout in an earlier release. The finding records the repair in 1.1.4: a 900-second wait and bounded resume checks.

Regression boundary: CI-wait regression tests. Release 1.4.1: completed release steps B4, D4 and D5. Archive merge: no matching retained Git/PR observation.

This does not prove every recovery branch ran, general failure prevention, or a consumer retest.

Finding report · Release-step evidence

Historical Brownfield maintenance

Five maintenance cycles in one familiar repository

Five real maintenance cycles in one familiar private Brownfield repository reached the B0 evaluability threshold: five real cycles, four merge-boundary cycles, legacy seams reduced from 72 to 58, and full-suite runs stayed green across cycles that ran them, growing from 1,483 to 1,490 tests. Cycle 005 changed CI configuration and has remote CI evidence but no historical local full-suite entry.

Status B1_EVALUABLE · Source report

This case does not establish general portability to unrelated repositories.

Observed work-finish sequence

This is a bounded observation from the Kit repository, not a run in every generated project.

Observed work-finish sequence; text alternative follows.
Text description and source boundaries
  1. 1. repo-status: Observed direct callback entry.
  2. 2. protected-diff-plan: Observed direct callback entry.
  3. 3. rules acknowledge: Observed direct callback entry.
  4. 4. commit (work): Observed direct callback entry.
  5. 5. rules acknowledge: Observed direct callback entry.
  6. 6. chat-switch-complete: Observed direct callback entry.
  7. 7. rules acknowledge: Observed direct callback entry.
  8. 8. commit (handoff): Observed direct callback entry.
  9. 9. rules acknowledge: Observed direct callback entry.
  10. 10. push-current: Observed direct callback entry.
  11. 11. pr-create-complete: Observed direct callback entry.
  12. 12. sync-main: Observed direct callback entry.
  13. 13. post-merge-check: Observed direct callback entry.
  14. 14. repo-status: Observed direct callback entry.

CLI callback entries observed in a network-denied local sandbox. Fake GitHub and always-green test CI are model assumptions. Entries include plans and dry runs. Entry does not imply successful completion; no live release or complete command coverage is claimed. Source: 7a6173cab704d57322e3ad22ddf4c02096314b1d. Run status: BOUNDED_COMPLETE. No release publication. K0c historical static may-reachability (source 99e5038b2d7b88488561fb14b19b96dcbc71da09) supplies the validator note, not the callback trace.