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
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:
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>
|
||||
)
|
||||
}
|
||||
Reference in new issue
Block a user