Skip to content

ROADMAP: KE-2 Canonical Action Normalization (ActionContext) #856

@jpleva91

Description

@jpleva91

Source

  • Type: ROADMAP
  • Location: ROADMAP.md — "Now — Kernel Evolution Sprint" → KE-2
  • Original text: KE-2: Canonical Action Normalization (ActionContext) — Formalize a vendor-neutral action representation that decouples the policy engine from provider-specific payloads.

Task Description

Design and implement the ActionContext contract — a vendor-neutral action representation that decouples the governance policy engine from provider-specific payloads (Claude Code tool calls, Copilot CLI commands, LangGraph actions, etc.).

Subtasks from ROADMAP

  • Design ActionContext contract: actor identity (agent/session/worktree), action category, structured arguments
  • Build specialized adapter for Claude tool-calls → ActionContext mapping
  • Ensure policy engine consumes only normalized ActionContext (no provider-specific logic)
  • Benchmark: context normalization in 50–100µs

Context

KE-2 is the only untracked item in the Kernel Evolution Sprint (KE-1 ✅, KE-3 ✅, KE-4 #687, KE-5 #716, KE-6 #717). It is a critical dependency for:

  • v3.0 release — "Default-deny finalized + KE-2 ActionContext shipped" is the first v3.0 checkbox
  • Phase 7 (Capability-Scoped Sessions) — depends on KE-2
  • Phase 9 (Editor & Agent Integrations) — KE-2 provides vendor-neutral normalization

Engineering Constraints (from ROADMAP)

  • Zero I/O in the synchronous enforcement loop
  • Algorithmic determinism — structured matchers over regex
  • Context normalization target: p50 < 50µs, p95 < 100µs

Key Files

  • packages/kernel/src/aab.ts — Current AAB normalization (to be replaced/extended)
  • packages/kernel/src/kernel.ts — Kernel orchestrator
  • packages/core/src/types.ts — Shared type definitions
  • packages/adapters/src/claude-code.ts — Claude Code adapter

Labels

Created automatically by the Backlog Steward skill.


Discovered by backlog-steward (claude-code:opus:planner) on 2026-03-25T04:05:00Z

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions