TECHNOLOGY

Qwen Code records Hook executions under their canonical history turn

In this article
THE QUICK TAKE

Match actual Hook invocations to execution IDs across retries and replay; distinguish unrecorded, unsupported and partial histories from a known zero count.

Qwen Code v0.27.4 adds persisted per-turn records for local main-agent Hook executions, with read-only queries, summaries and signed snapshots. The November 15 release improves evidence across replay and restarts. The implementation explicitly distinguishes unsupported managed history, unrecorded old turns and partial records; an empty list should not erase those differences.

Invocation identity differs from admission identity

Run a harmless Hook that succeeds, one that blocks and one that hands work off asynchronously. Compare actual invocations with recorded execution IDs. Retry and continue the same turn, then inspect whether the records remain attached to its canonical history identity. A new admission attempt should not automatically create a new historical turn or cause an old execution to be counted twice in a whole-turn summary.

Historical replay needs the same interpretation

Restart the daemon and query the same known turn through the supported API. Compare live metadata, persisted records and summaries. Then rewind a synthetic turn and observe a late Hook completion. Deleted history should not be silently recreated by delayed work. These proposed checks establish the application’s evidence lifecycle; they do not imply the feature records every Hook surface or every historical session that existed before the update.

Summary pages should describe one frozen turn

Create enough synthetic executions to require pagination, obtain a snapshot and compare every page’s whole-turn summary. Add activity to a different turn and verify it does not alter the requested identity set. A signed page is useful only if its scope is understood. Keep workspace identity in the test and attempt a cross-workspace snapshot reference as a negative case rather than assuming a signature alone authorizes access.

Safe metadata is intentionally incomplete content

Inspect the new records with synthetic command text, URLs and output markers. The PR excludes raw command and output content from these diagnostic fields. Preserve that boundary when exporting or presenting summaries. The feature supports counts, status and association evidence, not reconstruction of every shell byte. A useful report identifies supported local scope and known gaps, while avoiding a universal audit claim based solely on the presence of signed snapshots.

Sources

Earn rental income from GPUs

Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.

Explore GPU hosting
← All articles