feat(steering): Kernel v0.4 Agent-Slots, Tech Debt und Review-Attention
Deploy Development / deploy (push) Successful in 47s
Test Suite / pytest-backend (push) Failing after 4m15s
Test Suite / k6 /api/health Baseline (push) Has been skipped
Test Suite / playwright-smoke (push) Has been skipped
Test Suite / lint-backend (push) Successful in 2s
Test Suite / compose-smoke (push) Has been skipped

K-Ext-4/P8 deklarative Agent-Slots; P7 tech_debt Read Model und Vokabular; Review-Attention in den Kernel verlagert.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
LarsandCursor committed 2026-07-27 11:54:48 +02:00
1 parent b747200f3a
commit a5154cbd3b
31 files changed
+954 -98

No files matched your search

@@ -0,0 +1,47 @@
import { actorRoleHintLabel, agentSlotLabel } from '../utils/agentSlots.js'
export function AgentSlotsPanel({ slots = [], loading = false }) {
if (loading) {
return (
<section className="card agent-slots-panel">
<p className="muted">Agent-Slots werden geladen …</p>
</section>
)
}
if (!slots.length) {
return null
}
return (
<section className="card agent-slots-panel">
<div className="section-header">
<div>
<h2>Agent-Slots</h2>
<p className="section-lead muted">
Deklarierte Aufgabenfenster für Actors — Ausführung über Review/Rhythmus-UI oder
auditierten Agent (nach Principle Gate). Keine Auto-Ausführung.
</p>
</div>
</div>
<ul className="agent-slots-list">
{slots.map((slot) => (
<li key={`${slot.slot_key}-${slot.scope_id}`} className="agent-slots-list__item">
<div className="agent-slots-list__main">
<strong>{slot.title || agentSlotLabel(slot.slot_key)}</strong>
<span className="badge badge-muted">{agentSlotLabel(slot.slot_key)}</span>
{slot.priority === 'high' && (
<span className="badge badge-warning">Priorität hoch</span>
)}
</div>
<p className="muted">{slot.summary}</p>
<p className="agent-slots-list__meta muted">
Rolle: {actorRoleHintLabel(slot.actor_role_hint)}
{slot.guardrail_pack ? ` · Pack: ${slot.guardrail_pack}` : ''}
</p>
</li>
))}
</ul>
</section>
)
}
@@ -1,73 +0,0 @@
import { proposalReasonLabel, sprintProposalsForCycle } from '../utils/sprintCommitProposal.js'
import { backlogKindLabel, resolveBacklogVocabulary } from '../utils/resolveBacklogVocabulary.js'
import { PriorityBadge } from './PriorityBadge.jsx'
export function SprintCommitProposalPanel({
proposals = [],
selectedWorkCycleId = '',
backlogVocabulary = null,
canManage = false,
onAcceptProposal,
busy = false,
}) {
const filtered = sprintProposalsForCycle(proposals, selectedWorkCycleId)
const vocabulary = resolveBacklogVocabulary(backlogVocabulary)
if (!selectedWorkCycleId || filtered.length === 0) {
return null
}
return (
<section className="card sprint-commit-proposals">
<div className="section-header">
<div>
<h2>Sprint-Vorschläge</h2>
<p className="section-lead muted">
Vom Steuerungskern priorisiert (Ranker:{' '}
{filtered[0]?.ranker_key || 'heuristic_v0'}) — Accept committet ins Sprint-Backlog.
Keine feste Bug-Policy; später Agent/KI wählbar.
</p>
</div>
</div>
<ol className="item-list sprint-commit-proposals__list">
{filtered.map((proposal) => (
<li key={proposal.scope_id} className="list-item card-list-item sprint-commit-proposal">
<div className="list-item-main">
<strong>
{proposal.rank}. {proposal.title}
</strong>
<p className="list-item-sub muted">{proposalReasonLabel(proposal)}</p>
{proposal.dependency_blocked && (
<p className="list-item-sub muted sprint-commit-proposal__blocked">
Abhängigkeit offen — wartet auf Feature oder Epic-Kontext
</p>
)}
</div>
<div className="list-item-meta action-controls">
{proposal.item_kind && (
<span className="badge badge--kind muted">
{backlogKindLabel(vocabulary, proposal.item_kind)}
</span>
)}
<PriorityBadge priority={proposal.priority} />
{canManage && (
<button
type="button"
className="btn btn-primary btn-sm"
disabled={busy || proposal.dependency_blocked}
onClick={() =>
onAcceptProposal?.(proposal.scope_id, {
work_cycle_id: proposal.work_cycle_id,
})
}
>
In Sprint planen
</button>
)}
</div>
</li>
))}
</ol>
</section>
)
}
+1
View File
@@ -92,4 +92,5 @@ export const ATTENTION_KIND_LABELS = {
review_due: 'Review fällig',
recurring_due: 'Wiederkehrend fällig',
action_review_required: 'Review ausstehend',
architecture_debt_stale: 'Technische Schuld veraltet',
}
@@ -2,6 +2,7 @@ import { Link } from 'react-router-dom'
import { scopedPath } from '../../utils/routes.js'
import { useInitiativeOperations } from '../../context/InitiativeOperationsContext.jsx'
import { SteeringSnapshotPanel } from '../../components/SteeringSnapshotPanel.jsx'
import { AgentSlotsPanel } from '../../components/AgentSlotsPanel.jsx'
import { CriticalPathPanel } from '../../components/CriticalPathPanel.jsx'
import { NextActionWidget } from '../../widgets/NextActionWidget.jsx'
import {
@@ -60,6 +61,17 @@ export function InitiativeOverviewPage() {
/>
)}
{capabilities.has('kairo.initiative.read') && (
<AgentSlotsPanel
slots={
steeringSnapshot?.agent_slots ||
steeringSnapshot?.steering_kernel?.agent_slots ||
[]
}
loading={steeringSnapshotLoading}
/>
)}
{(counts.actions_blocked > 0 || counts.blockers_open > 0) && (
<section className="card initiative-summary-strip">
<h2 className="card-title">Roadblocker</h2>
+30
View File
@@ -1725,6 +1725,36 @@
margin-top: 1rem;
}
.agent-slots-panel {
margin-top: 1rem;
}
.agent-slots-list {
list-style: none;
padding: 0;
margin: 0;
display: flex;
flex-direction: column;
gap: 0.75rem;
}
.agent-slots-list__item {
padding: 0.75rem 0;
border-bottom: 1px solid var(--jk-border-subtle, #e8e8e8);
}
.agent-slots-list__main {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 0.5rem;
}
.agent-slots-list__meta {
font-size: 0.875rem;
margin: 0.25rem 0 0;
}
.steering-proposals__list {
list-style: none;
padding: 0;
+19
View File
@@ -0,0 +1,19 @@
const SLOT_LABELS = {
'review.due': 'Review fällig',
'recurring.due': 'Rhythmus fällig',
'review.guardrail': 'Guardrail-Review',
}
const ROLE_LABELS = {
reviewer: 'Reviewer',
operator: 'Operator',
architecture_reviewer: 'Architektur-Reviewer',
}
export function agentSlotLabel(slotKey) {
return SLOT_LABELS[slotKey] || slotKey
}
export function actorRoleHintLabel(roleHint) {
return ROLE_LABELS[roleHint] || roleHint
}