Skip to content

Add delegation timestamps and refresh worktree hints#491

Merged
dmoliveira merged 1 commit intomainfrom
feat/delegation-timestamp-injection
Mar 14, 2026
Merged

Add delegation timestamps and refresh worktree hints#491
dmoliveira merged 1 commit intomainfrom
feat/delegation-timestamp-injection

Conversation

@dmoliveira
Copy link
Owner

Summary

  • add a delegated_at timestamp to delegated task focus headers so hook/plugin-based delegation carries visible timing context
  • prevent WORKTREE CONTEXT headers from accumulating when agent-model-resolver reshapes a delegation across worktrees
  • extend gateway-core hook tests to cover timestamp injection and rerouted worktree context replacement

Validation

  • npm exec --yes eslint src/hooks/agent-context-shaper/index.ts
  • npm run build && node --test test/agent-context-shaper-hook.test.mjs
  • npm exec --yes eslint src/hooks/agent-model-resolver/index.ts test/agent-model-resolver-hook.test.mjs
  • npm run build && node --test test/agent-model-resolver-hook.test.mjs

@dmoliveira dmoliveira merged commit a3afa8a into main Mar 14, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant