Repository navigation
API Reference parrot.flows.dev_loop.sdd_coder.engine
SddCoderEngine — stateless-by-design orchestration kernel (FEAT-549, spec §3 M4).
Every call re-reads the per-spec index from the feature worktree. Dispatch is direct per attempt (design research S1) — NOT DevAgentPool.run_wave.
This module implements the READ side (plan, prepare_native) and the
CONSOLIDATION side (merge, cleanup, orphan discovery, journal) of the
engine. The DISPATCH side (run_chunk, wait, _run_attempt,
_research_for, _labels_for, AttemptTelemetryCollector) is stubbed here
and filled in by TASK-3121 — the signatures below are final.
Re-exported from parrot.flows.dev_loop.test_scope.datatypes.AttemptContext.
Re-exported from parrot.flows.dev_loop.sdd_coder.models.AttemptRecord.
Re-exported from parrot.flows.dev_loop.models.telemetry.AttemptTelemetry.
Duck-typed session host (dispatchers/_shared.py:92-117 -> host.apply(action)).
Captures usage + timing per attempt. dispatch() binds this object as
session_host; every dispatch event reaching the bound host is folded
into a DevLoopAction and handed to apply() — only DispatchCompleted
carries usage (session_state.py:476-484), so every other action kind is
a no-op here.
| Parameter | Type | Default | Description |
|---|---|---|---|
attempt |
int |
||
seat |
RosterSeat |
||
attempt_uid |
Optional[str] |
None |
|
job_id |
Optional[str] |
None |
|
execution_id |
Optional[str] |
None |
Attributes:
| Attribute | Type | Description |
|---|---|---|
usage |
Dict[str, Any] |
|
error_class |
Set by _run_attempt's except block alongside .error. Used by record() only as a fallback when on_attempt_telemetry never fired (a pre-dispatch failure), since AttemptTelemetry.error_class is normally the source of truth. |
|
telemetry |
Optional[Any] |
|
declared_files |
Optional[int] |
|
declared_files_known |
bool |
Receive the dispatcher's terminal telemetry (FEAT-554, spec §10 R3).
Called by LLMCodeDispatcher._emit_attempt_telemetry through the bound
session host. Separate from apply() because this payload deliberately
does NOT travel as a DispatchCompleted action: that projection copies
only seven whitelisted usage scalars and swallows validation errors,
so a per-turn series or a budget report would vanish in silence.
on_attempt_telemetry(telemetry: AttemptTelemetry) -> None
| Parameter | Type | Default | Description |
|---|---|---|---|
telemetry |
AttemptTelemetry |
Called by _apply_to_session_host for every dispatch event. Keep only usage from 'dispatch/completed'.
apply(action: Any, origin: Any = None) -> None
| Parameter | Type | Default | Description |
|---|---|---|---|
action |
Any |
||
origin |
Any |
None |
record() -> AttemptRecord
Returns: AttemptRecord
Type: int
Type: int
Type: float
Re-exported from parrot.flows.dev_loop.task_scheduler.BRIEF_INDEX_DIR.
Re-exported from parrot.flows.dev_loop.task_scheduler.BRIEF_INDEX_SUFFIX.
Re-exported from parrot.flows.dev_loop.sdd_coder.background.BackgroundBudgetExceededError.
Re-exported from parrot.flows.dev_loop.sdd_coder.background.BackgroundConflictError.
Re-exported from parrot.flows.dev_loop.sdd_coder.background.BackgroundNotFoundError.
Re-exported from parrot.flows.dev_loop.sdd_coder.optimization_models.BackgroundRegistration.
Re-exported from parrot.flows.dev_loop.sdd_coder.background.BackgroundRegistry.
Re-exported from parrot.flows.dev_loop.sdd_coder.optimization_models.BackgroundStatus.
Re-exported from parrot.flows.dev_loop.sdd_coder.roster.ChunkAssigner.
Re-exported from parrot.flows.dev_loop.sdd_coder.models.CleanupReport.
Domain failure; code ∈ ERROR_CODES (toolkit maps it to CoderResult.error).
| Parameter | Type | Default | Description |
|---|---|---|---|
code |
str |
||
message |
str |
||
**details |
Any |
{} |
Re-exported from parrot.knowledge.wiki.ledger.coder_feedback.CoderFeedback.
Re-exported from parrot.knowledge.wiki.ledger.coder_feedback.CoderFeedbackReceipt.
Re-exported from parrot.knowledge.wiki.ledger.coder_feedback.CoderFeedbackStore.
Re-exported from parrot.flows.dev_loop.sdd_coder.models.CoderJob.
Re-exported from parrot.flows.dev_loop.sdd_coder.models.CoderPlan.
Re-exported from parrot.knowledge.wiki.ledger.coder_reviews.CoderReview.
Re-exported from parrot.knowledge.wiki.ledger.coder_reviews.CoderReviewMeasurement.
Re-exported from parrot.flows.dev_loop.sdd_coder.optimization_models.CoderReviewReceipt.
Re-exported from parrot.knowledge.wiki.ledger.coder_reviews.CoderReviewReport.
Re-exported from parrot.knowledge.wiki.ledger.coder_reviews.CoderReviewStore.
Re-exported from parrot.knowledge.wiki.ledger.coder_suspensions.CoderSuspensionStore.
Re-exported from parrot.flows.dev_loop.sdd_coder.telemetry.CoderTelemetrySink.
Re-exported from parrot.flows.dev_loop.sdd_coder.complexity_models.ComplexityAssessment.
Re-exported from parrot.flows.dev_loop.sdd_coder.complexity_models.ComplexityBlock.
Re-exported from parrot.flows.dev_loop.sdd_coder.complexity.ComplexityContractError.
Re-exported from parrot.flows.dev_loop.agent_builder.DEFAULT_LLM_TURNS_PER_FILE.
Re-exported from parrot.flows.dev_loop.models.DevAgentSpec.
Re-exported from parrot.flows.dev_loop.models.DevelopmentOutput.
Re-exported from parrot.flows.dev_loop.session_state.DispatchCompleted.
Re-exported from parrot.flows.dev_loop.models.DispatchLabels.
Re-exported from parrot.flows.dev_loop.agent_builder.ENV_LLM_TURNS_PER_FILE.
Re-exported from parrot.core.events.lifecycle.EventRegistry.
Re-exported from parrot.flows.dev_loop.sdd_coder.evidence.EvidenceConflictError.
Re-exported from parrot.flows.dev_loop.sdd_coder.evidence.EvidenceCorruptionError.
Re-exported from parrot.flows.dev_loop.sdd_coder.optimization_models.EvidenceRef.
Re-exported from parrot.flows.dev_loop.sdd_coder.evidence.ExecutionEvidenceStore.
Re-exported from parrot.flows.dev_loop.sdd_coder.pool.ExecutionPool.
Re-exported from parrot.flows.dev_loop.sdd_coder.models.ExecutionPoolView.
Re-exported from parrot.flows.dev_loop.sdd_coder.models.ExecutionSnapshot.
Type: float
Re-exported from parrot.flows.dev_loop.sdd_coder.jobs.JobTable.
Type: float
Re-exported from parrot.knowledge.wiki.ledger.coder_suspensions.ModelKey.
Re-exported from parrot.flows.dev_loop.sdd_coder.models.NativeObservation.
Re-exported from parrot.flows.dev_loop.sdd_coder.models.NativePrep.
Re-exported from parrot.flows.dev_loop.sdd_coder.models.OrphanBranch.
Re-exported from parrot.flows.dev_loop.sdd_coder.telemetry.OutcomeRow.
Re-exported from parrot.flows.dev_loop.sdd_coder.models.PlannedTask.
Re-exported from parrot.flows.dev_loop.models.ResearchOutput.
Re-exported from parrot.flows.dev_loop.sdd_coder.optimization_models.ReviewArtifact.
Re-exported from parrot.flows.dev_loop.sdd_coder.models.RosterConfig.
Re-exported from parrot.flows.dev_loop.sdd_coder.roster.RosterProbe.
Re-exported from parrot.flows.dev_loop.sdd_coder.models.RosterSeat.
Re-exported from parrot.observability.recorders.spec_usage.SPEC_USAGE_SUBDIR.
See spec §3 M4 for the method contracts.
Stateless-by-design: every call re-reads the per-spec index. The only
state kept across calls is the probed roster/assigner (cached by
open()), the job table, and the SubWorktreeManager instances keyed
by "<TASK-NNN>.a<attempt>" — one manager per attempt so a merge only
ever touches that attempt's own branch.
| Parameter | Type | Default | Description |
|---|---|---|---|
roster |
RosterConfig |
||
probe |
Optional[RosterProbe] |
None |
|
redis_url |
Optional[str] |
None |
|
worktree_base_path |
Optional[str] |
None |
|
dispatcher_builder |
Callable[..., Any] |
build_dispatcher |
|
stream_ttl_seconds |
int |
3600 |
|
telemetry_dir |
Optional[str] |
None |
Attributes:
| Attribute | Type | Description |
|---|---|---|
seats |
List[RosterSeat] |
|
probe_results |
List[SeatProbeResult] |
Probe once; cache seats/assigner. Idempotent. Raises roster_empty when nothing is available.
NOTE: This is the legacy initialization path. For FEAT-559 execution pools, use begin_execution() instead, which reads history before probing.
open() -> None
Begin a new execution with history-gated startup (FEAT-559 M3).
Reads durable suspension history BEFORE probing. Binds execution_id immutably to the canonical worktree path. Only one active execution may own a canonical worktree at a time.
begin_execution(feature: str, worktree: str, execution_id: str) -> 'ExecutionPoolView'
| Parameter | Type | Default | Description |
|---|---|---|---|
feature |
str |
Feature identifier (matches per-spec index header). | |
worktree |
str |
Absolute path to the feature worktree. | |
execution_id |
str |
Caller-generated UUID for this execution. |
Returns: 'ExecutionPoolView' — ExecutionPoolView with the execution's initial state.
Raises:
-
CoderFailure with codes— - execution_in_progress: another execution already owns this worktree
- execution_scope_mismatch: resuming with different feature/worktree
- execution_config_mismatch: roster changed since execution was created
- execution_closed: trying to resume a closed execution for new work
- suspension_history_unavailable: cannot read durable history (fallback_required)
End an execution, releasing worktree ownership.
Refuses while known attempts/reservations are in flight. Records a durable close after they settle.
end_execution(execution_id: str) -> 'ExecutionPoolView'
| Parameter | Type | Default | Description |
|---|---|---|---|
execution_id |
str |
The execution to close. |
Returns: 'ExecutionPoolView' — ExecutionPoolView with final state (status='closed').
Raises:
-
CoderFailure with codes— - execution_not_found: unknown execution_id
- execution_busy: attempts/jobs still in flight
Read known state and a bounded registered log without waiting for completion (spec R8).
handle is never adopted from an unregistered value -- it only
resolves against a launch THIS engine (or a prior instance sharing the
SAME durable store) actually registered. Owning a handle string alone
does not skip the ownership check: a handle THIS engine instance
registered under a different execution_id is rejected before the
registry is even consulted.
bg_status(execution_id: str, handle: str, since_revision: Optional[int] = None, tail_bytes: int = 2048) -> BackgroundStatus
| Parameter | Type | Default | Description |
|---|---|---|---|
execution_id |
str |
The execution that must own this handle. | |
handle |
str |
The opaque handle emitted at registration time. | |
since_revision |
Optional[int] |
None |
When equal to the record's current revision, the log tail is omitted and changed=False. |
tail_bytes |
int |
2048 |
Bounded registered-log tail to read, 0..4096. |
Returns: BackgroundStatus
Raises:
-
CoderFailure with codes— - background_status_unavailable: no durable background registry is configured for this engine, or the read exceeded its 1s I/O budget
- execution_not_found: unknown execution_id
- background_scope_mismatch: handle registered under a different execution_id
- background_not_found: no registration exists for (execution_id, handle)
- background_source_unsupported: the registration is an unsupported external ("host_bridge") source with no verified receipt bridge
Block up to timeout_seconds for a background handle to leave pending/running.
bg_status is deliberately non-blocking, and wait() only accepts a
chunk job_id -- so a caller holding a coder_run_validation handle had
no sanctioned way to wait at all: a background validation is a process
this server owns, it raises no host-level task notification, and the
orchestrator prompt forbids shell sleep/ps loops. That left ending
the turn as the only option, which stalls an unattended run until a
human pokes it. This method is that missing primitive, mirroring
wait()'s own bounded-blocking contract.
Ownership, scope and existence are checked BEFORE any waiting (a
foreign or unknown handle fails immediately, it never blocks), and the
returned snapshot is always bg_status's own authoritative one:
state="finished" still reports a receipt, not success -- inspect
outcome/exit_code. Expiring the budget returns the last known
non-terminal snapshot; it never cancels the run, never kills the child
and never resurrects a state from an absent process or an empty log.
bg_wait(execution_id: str, handle: str, timeout_seconds: int = 120, since_revision: Optional[int] = None, tail_bytes: int = 2048) -> BackgroundStatus
| Parameter | Type | Default | Description |
|---|---|---|---|
execution_id |
str |
The execution that must own this handle. | |
handle |
str |
The opaque handle emitted at registration time. | |
timeout_seconds |
int |
120 |
Blocking budget, 1..300. |
since_revision |
Optional[int] |
None |
Forwarded to bg_status for the returned snapshot. |
tail_bytes |
int |
2048 |
Forwarded to bg_status, 0..4096. |
Returns: BackgroundStatus
Raises:
-
CoderFailure— every codebg_statusitself raises, plus invalid_arguments whentimeout_secondsis out of range.
Admit only a declared, protected, idempotent validation selection (spec R8).
Delegates process ownership entirely to ValidationSupervisor.start()
(protected argv, bounded log, deadline, terminal receipt); this method
only establishes feature/execution ownership and validates that
task_ids are actually declared in the current per-spec index before
anything is admitted.
run_validation(feature: str, worktree: str, execution_id: str, task_ids: List[str], tier: Literal['task', 'merge', 'feature'], timeout_seconds: int, request_id: str, *, attempt_uid: Optional[str] = None, base_ref: Optional[str] = None) -> BackgroundRegistration
| Parameter | Type | Default | Description |
|---|---|---|---|
feature |
str |
Feature identifier (matches per-spec index header). | |
worktree |
str |
Absolute path to the feature worktree. | |
execution_id |
str |
The execution that must own this worktree. | |
task_ids |
List[str] |
Declared TASK ids this validation covers. | |
tier |
Literal['task', 'merge', 'feature'] |
'task' (one task, its attempt worktree, FEAT-709), 'merge' (changed-scope) or 'feature' (full applicable set). | |
timeout_seconds |
int |
Explicit deadline, 1..7200. | |
request_id |
str |
Stable id providing idempotency for a repeated call. | |
attempt_uid |
Optional[str] |
None |
Required for tier='task': the attempt being validated. |
base_ref |
Optional[str] |
None |
Diff base for tier='task' (the fork SHA); resolved from the attempt branch when omitted. |
Returns: BackgroundRegistration
Raises:
-
CoderFailure with codes— - worktree_outside_base / feature_not_found: from
_resolve_feature - execution_not_found / execution_scope_mismatch: foreign/unknown execution
- background_status_unavailable: no durable validation supervisor configured
- validation_scope_invalid: a task_id is not declared in the index, or tier='feature' was called without the full applicable task set
- validation_request_conflict: request_id reused with a different payload
- invalid_arguments: a malformed request the supervisor itself rejected
Validate an issued native attempt and persist an observation, not acceptance.
Persists a delivery.observed WorkflowEvent (source="worker_observation")
keyed to the attempt's own task_id/attempt_uid, once identity has been
checked against THIS engine's own bookkeeping. A foreign execution, an
attempt this execution never issued for that task, or a repeated
event_id reported with different content are all rejected BEFORE
anything is written (spec R3: "Rechaza identidades ajenas y payloads
incompatibles repetidos"). Never releases the attempt's pool reservation
and never calls merge()/_consolidate -- an observation is evidence,
not acceptance (spec: "no libera reservas ... no sustituye coder_merge").
record_native_observation(feature: str, worktree: str, execution_id: str, observation: dict[str, object]) -> EvidenceRef
| Parameter | Type | Default | Description |
|---|---|---|---|
feature |
str |
Feature identifier (matches per-spec index header). | |
worktree |
str |
Absolute path to the feature worktree. | |
execution_id |
str |
The execution that must own both the worktree and the referenced native reservation. | |
observation |
dict[str, object] |
Raw MCP payload; validated here against NativeObservation independently of any upstream toolkit-level schema check (this method is also called directly by tests). |
Returns: EvidenceRef — The durable EvidenceRef for the appended (or already-idempotent) event.
Raises:
-
CoderFailure with codes— - evidence_invalid:
observationfails schema validation - execution_not_found: unknown execution_id
- execution_scope_mismatch: execution bound to a different feature/worktree
- attempt_not_found: attempt_uid is not an issued native reservation for task_id
- observation_conflict: event_id already recorded with different content
- evidence_persistence_failed: durable evidence store unavailable or write failed
Read-only snapshot of task/index/dependency/contract state (spec §3 M1b/R1b).
Delegates the actual projection to inspection.task_context once feature
resolution and execution ownership are established here -- never modifies
the per-spec index, never marks a task ready on trust, never duplicates
check_fidelity's policy.
task_context(feature: str, worktree: str, task_id: str, execution_id: str) -> Dict[str, Any]
| Parameter | Type | Default | Description |
|---|---|---|---|
feature |
str |
Feature identifier (matches per-spec index header). | |
worktree |
str |
Absolute path to the feature worktree. | |
task_id |
str |
The TASK id to inspect. | |
execution_id |
str |
The execution that must own this worktree. |
Returns: Dict[str, Any] — A bounded snapshot dict (spec AC4/AC5: "16KiB"); see inspection.task_context for its exact shape.
Raises:
-
CoderFailure with codes— - worktree_outside_base / feature_not_found: from
_resolve_feature - execution_not_found / execution_scope_mismatch: foreign/unknown execution
- evidence_persistence_failed: no durable evidence store is configured
- index_unreadable: the per-spec index is missing or unreadable
- task_not_in_plan: task_id is not declared in the per-spec index
Read-only projection of a task's latest execution-owned attempt (spec §3 M1b/R1b).
Delegates the actual projection to inspection.delivery_report once
feature resolution and execution ownership are established here.
Never runs git merge, autofix, lint, tests or a fresh validation, and
never approves a delivery -- absent evidence is reported as
"unknown", never fabricated as a pass.
delivery_report(feature: str, worktree: str, task_id: str, execution_id: str) -> Dict[str, Any]
| Parameter | Type | Default | Description |
|---|---|---|---|
feature |
str |
Feature identifier (matches per-spec index header). | |
worktree |
str |
Absolute path to the feature worktree. | |
task_id |
str |
The TASK id to inspect. | |
execution_id |
str |
The execution that must own this worktree AND the attempt branch being reported on (a foreign execution's attempt is never adopted -- see inspection._discover_attempt_branch). |
Returns: Dict[str, Any] — A bounded snapshot dict (spec AC4/AC5: "16KiB"); see inspection.delivery_report for its exact shape.
Raises:
-
CoderFailure with codes— - worktree_outside_base / feature_not_found: from
_resolve_feature - execution_not_found / execution_scope_mismatch: foreign/unknown execution
- evidence_persistence_failed: no durable evidence store is configured
- index_unreadable: the per-spec index is missing or unreadable
- task_not_in_plan: task_id is not declared in the per-spec index
- branch_not_found: no execution-owned attempt branch exists for task_id
Compute the next wave plan for a feature.
plan(feature: str, worktree: str, *, execution_id: Optional[str] = None) -> CoderPlan
| Parameter | Type | Default | Description |
|---|---|---|---|
feature |
str |
Feature identifier. | |
worktree |
str |
Absolute path to the feature worktree. | |
execution_id |
Optional[str] |
None |
Optional execution ID for FEAT-559 pools. When provided, uses the execution's private assigner and carries execution_id in the returned plan. When omitted, uses the legacy global assigner. |
Returns: CoderPlan — CoderPlan with the next wave of tasks.
Sub-worktree for a native planned task (attempt 1); branch <feature_branch>---a1[-].
FEAT-559: when execution_id is given, the native seat's model identity is
admitted through the execution's pool BEFORE the worktree is created (so a
suspended/excluded native seat is rejected up front, not discovered later),
and a duplicate call for the same (execution, task) reuses the existing
reservation/attempt instead of admitting (and worktree-creating) twice.
prepare_native(feature: str, worktree: str, task_id: str, execution_id: Optional[str] = None) -> NativePrep
| Parameter | Type | Default | Description |
|---|---|---|---|
feature |
str |
||
worktree |
str |
||
task_id |
str |
||
execution_id |
Optional[str] |
None |
Returns: NativePrep
Report a WORKER-observed failure for one of ITS OWN admitted attempts (spec §2 M3).
The target model is resolved SERVER-SIDE from attempt_uid via the pool's own
admission record (ExecutionPool._admitted) -- the caller never names a model
directly, so it cannot invent or cross-execution an arbitrary suspension target.
Delegates all local-exclusion/generation/persistence mechanics to
ExecutionPool.suspend() (TASK-3276) rather than duplicating them here.
Constrained to valid worker-report sources (spec: "constrain worker reports to
valid native/critical-review sources"): a native attempt may report any reason;
an MCP attempt may only report review_critical (any other MCP failure is the
engine's own internal _classify_and_suspend, never a worker-initiated report).
suspend_model(execution_id: str, attempt_uid: str, reason: str, evidence_ref: str) -> SuspensionReceipt
| Parameter | Type | Default | Description |
|---|---|---|---|
execution_id |
str |
The execution owning attempt_uid. |
|
attempt_uid |
str |
The attempt that failed, as issued by prepare_native/pool.admit. |
|
reason |
str |
One of SuspensionReason. |
|
evidence_ref |
str |
A short reference (log path, commit sha), never a transcript. |
Returns: SuspensionReceipt
Raises:
-
CoderFailure with codes— - execution_not_found: unknown execution_id
- attempt_not_found: attempt_uid is not an admitted reservation in this execution
- invalid_arguments: reason is not a valid SuspensionReason, or an MCP attempt reported a reason other than review_critical
Persist a reviewed correction after checking its attempt/model attribution.
FEAT-559: when execution_id is given, it is attached to feedback (rejecting
a caller-supplied feedback.execution_id that conflicts with it) before recording.
record_feedback(feature: str, worktree: str, feedback: CoderFeedback, execution_id: Optional[str] = None) -> CoderFeedbackReceipt
| Parameter | Type | Default | Description |
|---|---|---|---|
feature |
str |
||
worktree |
str |
||
feedback |
CoderFeedback |
||
execution_id |
Optional[str] |
None |
Returns: CoderFeedbackReceipt
Measure a reviewed delivery and validate its review-fix commits.
FEAT-559: when execution_id is given, it is attached to review (rejecting a
caller-supplied review.execution_id that conflicts with it) before recording.
record_review(feature: str, worktree: str, review: CoderReview, execution_id: Optional[str] = None) -> CoderReviewReceipt
| Parameter | Type | Default | Description |
|---|---|---|---|
feature |
str |
||
worktree |
str |
||
review |
CoderReview |
||
execution_id |
Optional[str] |
None |
Returns: CoderReviewReceipt
Return repository-wide review-fix rates by model and exposure cohort.
feedback_report(feature: str, worktree: str) -> CoderReviewReport
| Parameter | Type | Default | Description |
|---|---|---|---|
feature |
str |
||
worktree |
str |
Returns: CoderReviewReport
Consolidate the task's LATEST attempt branch (native tasks; re-merge after Sonnet fixed a conflict).
FEAT-559: when execution_id is given, only that execution's OWN managers
are considered -- never another execution's, nor the legacy/no-execution scope.
merge(feature: str, worktree: str, task_id: str, execution_id: Optional[str] = None) -> TaskResult
| Parameter | Type | Default | Description |
|---|---|---|---|
feature |
str |
||
worktree |
str |
||
task_id |
str |
||
execution_id |
Optional[str] |
None |
Returns: TaskResult
Remove finished sub-worktrees THIS execution created; never touches orphan branches it never adopted.
FEAT-559: when execution_id is given, only managers created under that
exact execution scope are enumerated -- another execution's (or the legacy/
no-execution scope's) managers, native reservations and jobs are untouched,
even if they belong to the same engine instance/worktree.
FEAT-584 M8/R8: also refuses (execution_busy) while THIS execution has
an admitted validation that has not settled -- same gate end_execution
applies, so a worktree a background validation is still reading is never
removed out from under it.
cleanup(feature: str, worktree: str, keep_conflicted: bool = True, execution_id: Optional[str] = None) -> CleanupReport
| Parameter | Type | Default | Description |
|---|---|---|---|
feature |
str |
||
worktree |
str |
||
keep_conflicted |
bool |
True |
|
execution_id |
Optional[str] |
None |
Returns: CleanupReport
Get job status and flush any pending execution snapshots (TASK-3282).
Retries pending suspension persistence idempotently; exposes latest pool state and degraded persistence status if applicable.
status(job_id: str) -> CoderJob
| Parameter | Type | Default | Description |
|---|---|---|---|
job_id |
str |
Returns: CoderJob
Unregister and flush the engine-scoped usage sink (FEAT-783 M7). Fail-open, idempotent.
aclose() -> None
Validate, register, RETURN. Everything slow happens inside the job (S4, AC-21).
run_chunk(feature: str, worktree: str, task_ids: List[str], execution_id: Optional[str] = None) -> CoderJob
| Parameter | Type | Default | Description |
|---|---|---|---|
feature |
str |
Feature identifier. | |
worktree |
str |
Absolute path to the feature worktree. | |
task_ids |
List[str] |
List of task IDs to dispatch. | |
execution_id |
Optional[str] |
None |
Optional execution ID for FEAT-559 pools. When provided, validates against the execution pool and carries execution ownership. |
Returns: CoderJob
Raises:
-
CoderFailure with codes— - plan_stale: cached plan's pool_generation doesn't match current pool
- execution_not_found: execution_id provided but no matching pool
wait(job_id: str, timeout_seconds: int) -> CoderJob
| Parameter | Type | Default | Description |
|---|---|---|---|
job_id |
str |
||
timeout_seconds |
int |
Returns: CoderJob
Re-exported from parrot.flows.dev_loop.sdd_coder.pool.SeatBusyError.
Re-exported from parrot.flows.dev_loop.sdd_coder.models.SeatProbeResult.
Re-exported from parrot.observability.recorders.spec_usage.SpecUsageRecorder.
Re-exported from parrot.flows.dev_loop.worktree_manager.SubWorktreeManager.
Re-exported from parrot.flows.dev_loop.worktree_manager.SubWorktreeMergeError.
Re-exported from parrot.knowledge.wiki.ledger.coder_suspensions.SuspensionReason.
Re-exported from parrot.knowledge.wiki.ledger.coder_suspensions.SuspensionReceipt.
Re-exported from parrot.knowledge.wiki.ledger.coder_suspensions.SuspensionRecord.
Re-exported from parrot.flows.dev_loop.sdd_coder.models.TaskResult.
Re-exported from parrot.flows.dev_loop.task_scheduler.TaskScheduler.
Re-exported from parrot.flows.dev_loop.models.TaskScopedBrief.
Re-exported from parrot.observability.attribution.UsageAttribution.
Re-exported from parrot.observability.recorders.subscriber.UsageRecordingSubscriber.
Re-exported from parrot.flows.dev_loop.test_scope.verdict.VERDICT_SCHEMA.
Re-exported from parrot.flows.dev_loop.sdd_coder.background.ValidationSupervisor.
Re-exported from parrot.flows.dev_loop.test_scope.datatypes.ValidationVerdict.
Re-exported from parrot.flows.dev_loop.sdd_coder.models.ValidationVerdictModel.
Re-exported from parrot.flows.dev_loop.sdd_coder.optimization_models.WorkflowEvent.
Re-exported from parrot.flows.dev_loop.sdd_coder.effort.apply_effort_to_profile.
Re-exported from parrot.flows.dev_loop.sdd_coder.roster.available_seats.
Re-exported from parrot.flows.dev_loop.sdd_coder.telemetry.build_attempt_row.
Re-exported from parrot.flows.dev_loop.agent_builder.build_dispatcher.
Re-exported from parrot.flows.dev_loop.sdd_coder.fidelity.check_banned_imports.
Re-exported from parrot.flows.dev_loop.sdd_coder.fidelity.check_fidelity.
Re-exported from parrot.flows.dev_loop.sdd_coder.complexity_collectors.collect_complexity.
Re-exported from parrot.conf.
Re-exported from parrot.flows.dev_loop.sdd_coder.pool.effective_key.
Re-exported from parrot.flows.dev_loop.sdd_coder.roster.eligible_seats.
Re-exported from parrot.knowledge.wiki.store.estimate_tokens.
Re-exported from parrot.flows.dev_loop.sdd_coder.complexity.evaluate_complexity.
Re-exported from parrot.core.events.lifecycle.get_global_registry.
Re-exported from parrot.flows.dev_loop.procs.git_env.
Re-exported from parrot.flows.dev_loop.sdd_coder.fidelity.is_protected_sdd_path.
Re-exported from parrot.flows.dev_loop.task_scheduler.iter_index_files.
Re-exported from parrot.flows.dev_loop.test_scope.runners.registry.load_registry.
Re-exported from parrot.flows.dev_loop.sdd_coder.fidelity.parse_task_files.
Re-exported from parrot.observability.recorders.spec_usage.read_spec_usage.
Re-exported from parrot.flows.dev_loop.test_scope.verdict.render_for_prompt.
Re-exported from parrot.flows.dev_loop.sdd_coder.telemetry.resolve_durable_root.
Re-exported from parrot.flows.dev_loop.sdd_coder.effort.resolve_native_effort.
Re-exported from parrot.flows.dev_loop.sdd_coder.effort.resolve_seat_effort_with_source.
Re-exported from parrot.flows.dev_loop.sdd_coder.pool.roster_fingerprint.
Re-exported from parrot.flows.dev_loop.procs.run_bounded.
Re-exported from parrot.flows.dev_loop.sdd_coder.lint.run_lint_pass.
Re-exported from parrot.flows.dev_loop.agent_builder.scaled_max_turns.
Re-exported from parrot.observability.context.usage_attribution.
Re-exported from parrot.flows.dev_loop.sdd_coder.complexity_collectors.validate_complexity_snapshot.
Re-exported from parrot.flows.dev_loop.test_scope.verdict.verdict_to_json.
Re-exported from parrot.flows.dev_loop.test_scope.context.write_attempt_context.
- 1. MCP Server — exposing tools as a service
- 2. A2A — exposing agents and orchestrators as services
- 3. Toolkits for third party services and Cloud Security composition
- 4. Interaction surface — WebSockets, audio, integrations
- 5. Hardening — anti prompt injection, PBAC and tool gating
- 6. Cross cutting concerns and reference deployment
- 7. AgentCrew — Sequential, Parallel, Flow and Loop execution
- 8. AgentsFlow — DAG first orchestration with per node FSM
- 9. Ontologic RAG — graph first retrieval, intent routing & multi tenant knowledge
- 10. Observability — OpenLIT + OpenTelemetry
- Class Catalog by Module
- Module level Functions Catalog
- AI Parrot — Exposure, Interoperability & Hardening Architecture
- Agent Mesh
- AgentService — Standalone Runtime for Autonomous Agents
- AbstractClient: The Provider Client Family
- Anthropic client
- Bedrock Mantle Client
- TypeSafe System One Client (
JevClient) - Meta Model API Client (Muse Spark)
- OpenAI Compatible Client Base (
OpenAIBaseClient) - Per Loop LLM Client Cache
- Question Token Budgets (Bedrock Converse, Nova text, Bedrock Mantle)
- Agent Configure Lifecycle
- AgentTalk Integration Guide
- Agent Configuration via
agents.yaml - AgentFactory HTTP API
- Agent Studio — API Reference
- Agent CLI Daemon (agentd)
- FirefliesInsightsAgent
- Follow up Suggestion Chips (FEAT 752)
- Agents and Chatbots: The Bot Class Hierarchy
- Agent Studio — database storage (host guide)
- Ephemeral User Agents — Frontend Integration Handoff
parrot agent— Agent Terminal Workspace- Crew Handler
- Database Agent
- Running the CVE Experts
- Domain Experts (FEAT 778)
- FEAT 437
- Technical Voice Guide (AgentTalk Voice) for Frontend
- AgentDashboard — A2UI v1.0 Technical Reference for
navigator frontend next - Semantic UI Model → Adaptive Cards (FEAT 303)
- Exposing an AI Parrot Agent as an MCP Server
- AgentCrew User Guide
- AgentsFlow User Guide
- Crew Definition Storage
- A2UI Agent Functions Runtime — the v1.0 RPC leg (FEAT 469)
- Capabilities of an AI Parrot Analytical Agent (PandasAgent)
- Agent Security Guardrails (FEAT 761)
- SpawnSubAgentTool
- Testagent
- Agentic End to End Testing (FEAT 581)
- Uiagent
- WebAgent — Browser Interaction via Chrome DevTools
- WebNavigatorAgent — Catalogued Web Navigation on Your Chrome Profile
- ExecutionMemory Integration Guide
- Agent Brain
- Agent Memory
- Conversation History Ownership
- Conversation Memory Subsystem Overview
- Dream Cycle — episodic → wiki brain consolidation
- Durable Conversation Memory
- Memory Dynamics
- Per Turn Conversation Compaction
- Recoverable Task Memory (FEAT 538)
- Task Memory — Phase 0 Integration Map (FEAT 538 / TASK 2970)
- User Memory
- Bookstore Agentic Retrieval
- Bookstore in Codex
- Bookstore Conceptual Relations — the book graph (FEAT 533)
- Bookstore notebooks
- Contracts catalog performance (FEAT 539, AC14)
- Contracts pilot acceptance — Bob's twelve cases (FEAT 539, AC15)
- Contracts Card & Ontology (FEAT 539)
- Luau parser resource policy (FEAT 532 TASK 2896)
- Glossary of Terms (FEAT 917)
- GraphIndex core seams (FEAT 540)
- GraphIndex — Structured Knowledge Graph Indexing
- Local Knowledge Base
- Procedure Graph — Assembly Manuals (FEAT 601)
- Ontology backend programme
- Ontology vocabulary store
- PageIndex Agentic Retrieval and Citations
- PageIndex Generation Publication
- PageIndex Layout Structure Builder
- PageIndex Local MCP Toolkit
- PageIndex Segment Store
- PageIndex Tree Optimizer
- PageIndex — Tree Based RAG for Document Retrieval
- ArxivTool for AI Parrot
- Accounting metrics layer
- Tool Result Compression Pipeline (FEAT 380)
- DatasetManager Implementation Walkthrough
- FredAPITool Documentation
- EmployeesTool Employee Hierarchy Tool for AI Parrot
- HoobaToolkit
- Jira text templates (JiraToolkit)
- Expose Toolkits as Local MCP (
parrot mcp local) - MultiStoreSearch Toolkit — Multi Origin Retrieval for Agents
- Supervised Obscura Browser Integration
- OdooHelpdeskToolkit — Softhealer helpdesk on Odoo 19
- OdooToolkit Capabilities
- QuerysourceToolkit
- ReadOnlyRepoToolkit (FEAT 484)
- PythonREPLTool Sandbox: Worker Process Execution Model
- Research Tools for Agents
- gVisor Installation Guide for AI Parrot Secure Sandbox
- SDD Sandbox — OS Setup
- Governed semantic layer
- Tool optimizations for Claude Code and Codex (FEAT 543)
- AbstractTool Clone Method
- Toolbar API Documentation
- AudioNoteCaptureToolkit
- ExecutionPlanToolkit — Reference
- Host toolkits for Agent Studio
- Infographic Authoring for Data Agents (FEAT 326)
- InfographicToolkit — Reference
- Tool System Internals: Tools, Toolkits and ToolManager
- AI Parrot Tools Documentation
- What If Scenario Analysis
- Workday worker history
- DecisionFlowNode Usage Guide
- Multi Agent Orchestration: AgentCrew and AgentsFlow
- Docker Tool Executor & Execution Policy
- Generic Gate Host
- HeartbeatManager — Per Agent Autonomous Heartbeat Loop
- JobManager
- Node Types Reference
- OrchestratorAgent — Multi Party Conferencing (
confer) - Planogram compliance cycle (perceive → identify → compare)
- Planogram compliance — migrating configurations to the new cycle (FEAT 574, FEAT 612)
- Planogram perception spike — FEAT 574
- Scheduler backends in multi worker deployments
- Thales User Guide
- Per tenant skills (FEAT 707)
- Skill routing and trigger caching
- Skills system: discovery, toolkits and mixin
- Contextual Embedding Headers
- DocumentDB Usage Patterns
- DocumentDB Interface Guide
- DynamoDB Local (docker compose)
- Fully offline local agent with LanceDB (FEAT 542)
- LanceDB vector, full text and hybrid store (FEAT 542)
- Loader Metadata Standard
- Document Loaders for RAG
- Matryoshka Embedding Truncation
- Parent Child Retrieval (Small to Big)
- Storage Backends Guide
- User stores (Redis by default)
- Vector Stores and Embeddings Reference
- Vector Store Handler — API Reference
- A2A Secure Communication Demo
- Agent as a Local MCP Server (parrot toolkits install agent)
- add repository:
- GitHub MCP Installation and Usage
- MCP integration: client, server and agent tools
- Create and configure agent
- Roost — local inter agent sub protocol
- Roost carriers
- Roost performatives, protocols and obligations
- Simple Mcp Server
- SimpleMCPServer Configuration
- API Endpoints Reference
- Admin UI (FEAT 468)
- Infographic Render Endpoint — Reference
- EventBus v2 Configuration Reference (
[bus]/[bus.alerts]) - EventBus v2 Migration Notes (FEAT 310)
- EventBus v2 — Unified Event Fabric (FEAT 310)
- Session file store
- A2UI Dashboard + Widget Renderer — Frontend Build Guide
- Avatar Technical Guide (LiveAvatar Phase A) for Frontend
- Frontend Guide for SvelteKit: LiveAvatar FULL Mode and VoiceBot (FEAT 248)
- DEPRECATED: Native Voice Avatar (LiveAvatar Phase C) Technical Guide for Frontend
- Technical Guide to Structured Artifacts for Frontend
- VoiceBot · VoiceChatHandler · FEAT 245 — Frontend Guide for Realtime Conversation with Agents
- Server Layer: BotManager and HTTP Handlers
- Infographic Handler — Frontend API Contract
- Interactive Artifacts — Frontend API Contract
- Google Drive file manager
- SharePoint & OneDrive file managers
- WhatsApp Integration Implementation Summary
- WhatsApp Integration for AI Parrot
- P3 — parrot admin ui inventory (canvases / A2UI / infographic / builders)
- WhatsApp + AutonomousOrchestrator Integration
- Audio Form Voice Modes — Developer Guide
- Who owns an OAuth2 (3LO) credential
- CommCenter — Bulk Notification Sender (FEAT 417)
- FormDesigner → MS Teams: Adaptive Card renderer and bot submit path (FEAT 551)
- GitHub reviewer
- Google OAuth 2.0 — AI Parrot Integration
- Fireflies Agent Examples
- HITL Tool Call Confirmation (FEAT 235)
- Teams HITL Channel Setup Guide (FEAT 205)
- JiraSpecialist Prompt Layer Stack
- JiraSpecialist — Daily Standup Lanes
- Jira Transition Actions — Activating
TRIGGER_AGENTDispatch - Jupyter Output Mode Documentation
- Knowledge upload from chat (FEAT 647)
- LiveAvatar over your own LiveKit (Cloud or self hosted)
- Matrix Bridges for the AI Parrot Swarm (FEAT 463)
- Matrix Clients for the AI Parrot Swarm (FEAT 463)
- Migration Guide: FEAT 202 — ai parrot integrations
- Connections on Microsoft Teams
- MS Teams Toolkit for AI Parrot
- Nova Sonic Voice Protocol Reference
- Office 365 OAuth 2.0 (Delegated) — AI Parrot Integration
- PR Review Command — Setup Guide
- Queued chat commands
- Runbook — the
issuesnamespace (Jira ticket corpus) - Dev loop kick off from Slack (FEAT 555)
- Telegram Auth Open Mode (webview | browser)
- Telegram connections
- Telegram Bot Integration Guide
- FEAT 536 — VoiceBot Nova Dual Output + LiveAvatar: Real Live Operational Acceptance
- FEAT 537 — Nova VoiceBot avatar broadcast: operational acceptance
- FEAT 537 — Nova PCM → LiveAvatar LITE → LiveKit multi subscriber live gate
- speech_report TTS backends
- Nova VoiceBot avatar broadcast for multiple browsers (FEAT 537)
- 🦜 AI Parrot Voice Chat
- WhisperX Setup Guide for AI Parrot
- A2UI Linked Surfaces (FEAT 598)
- A2UI v1.0 Wire (FEAT 470)
- === D3.js ===
- Backend HTML Design System (FEAT 493)
- FEAT 488
- FormDesigner Audio Renderer
- Form Designer — Autonomous FormSchema Persistence (Standalone Forms)
- Form Designer — Conditional Sections: Pre/Post Dependencies
- FormBuilder — LLM answer plausibility enforcement
- FormDesigner — orphan upload cleanup (FEAT 731)
- FormDesigner — public response controls
- Form Designer — Relational Fields
- Serving FormDesigner forms from a Teams agent
- Form Designer — Unknown Field Capture Policy for Form Submissions
- FormDesigner — validation audit trail
- Infographic Recipes (FEAT 324)
- Inline A2UI Component Routing (FEAT 755)
- Metric Definition Registry (FEAT 756)
- Smart OutputFormatter Documentation
- N4 — navigator api backend inventory (dashboards / widgets / templates / modules / programs)
- P1 — ai parrot HTTP/WS endpoint inventory (report builder lens)
- P2 — ai parrot (Python) UI components, models, renderers, persistence — inventory for a REPORT BUILDER
- P4 — ai parrot prior art for a Report Builder (SDD inventory)
- ai parrot server — Admin / Bots / Studio / misc endpoint inventory
- P1 — ai parrot HTTP/WS endpoint inventory (report builder lens) ( core)
- parrot formdesigner — HTTP/WS endpoint inventory
- Report Builder — ai parrot inventory and analysis
- WeasyPrint 69.0 CSS Support — Empirical Findings
- Identity Capability User Guide
- Layers Reference
- Output Language (FEAT 638)
- PromptBuilder — User Modifiable Variables
- PromptBuilder User Guide
- Delegated OAuth2 connections
- Delegated OAuth2 connections on the web channel — deployment recipe and live harness
- Deterministic Groundedness Scoring
- ONNX Backend for the Prompt Injection Guardrail (FEAT 439)
- PBAC Guardrails — Policy Driven Tool Call Denial (FEAT 406)
- SecurityAdvisor — SOC2 Oriented Read Only Advisory Agent
- User Profile Management
- AI Parrot MCP Server AWS Deployment Guide
- Bot Cleanup Lifecycle
- Business Automation — Operator Runbook
parrot loginand connections- CompanyInfoToolkit
- Per component and per agent LLM defaults (FEAT 796, FEAT 882)
- Answer Accuracy Metrics for the Evaluation Harness (FEAT 652)
- Infographic CSP and Signed URLs — Operations Guide
- Global install: the parrot managed runtime (reference)
- Runbook — the Fireflies Meeting Registry
- Wiki standup briefs — runbook
parrot.finance— the finance satellite- Migration — FEAT 201: ai parrot embeddings
- Migration — FEAT 203: ai parrot server
- FEAT 223 — Structured Artifact Contract: Migration Guide
- FEAT 273 — Legacy output mode deprecations → A2UI
- Migration — FEAT 315: Unified NovaClient for all Amazon Nova models
- Migration — FEAT 421: Client declared tenant in the forms URL
- Migration — FEAT 446: SaaS Auth Hardening (S0 of Parrot Research Cloud)
- Migration — FEAT 473: A2UI v1.0 for STRUCTURED_CHART / STRUCTURED_TABLE / STRUCTURED_MAP
- Migration — FEAT 523: PEP 420 LLM Client Extraction
- Gemini 2.5 retirement (FEAT 798)
- Migration — FEAT 564: Reliable video reels with Gemini Omni and Veo 3.1
- Native Claude sandbox for SDD sessions (FEAT 768)
- Complementary (collaborative) research partner (FEAT 482)
- Dev flow per seat LLM configuration (
DevFlowModelPlan) - Dev loop
novabackend (AWS Bedrock) - sdd worker as orchestrator of parallel sdd coder seats (FEAT 549)
- SDD compaction capability record
- SDD execution optimization — operation and rollout
- Proposals to Reduce SDD Execution Time
- Dev flow / dev loop telemetry accounting
- Language Agnostic Validation Runners (FEAT 709)
- Spec Driven Development in Google Gemini / Antigravity CLI
- Guide to using the SDD slash commands
- AI Parrot Spec Driven Development (SDD) Platform
- SDD on Google Antigravity (agy)
/sdd donecloseout hooks- Decision Audit (FEAT 784)
- SDD experience memory
- SDD Expert Consult
- Ledger outbox (FEAT 758)
- FEAT 580 LSP Pilot — Live Evaluation Results
- SDD LSP research pilot (FEAT 580)
- Necessity Ladder (FEAT 908)
- Procedure Graph
- Test selection in the SDD flow — the Validation Contract (FEAT 699)
- wikitoolkit Cheatsheet
- wikitoolkit inbox
- wikitoolkit lint
- LLM Wiki — an agent maintained knowledge repository
- Schema Plane — Operator Guide (FEAT 600)
- SQLite concurrency for wiki and ledger
- wikitoolkit standup
- WikiToolkit as Claude Code infrastructure
- Authentication uses Navigator Auth
- AbstractClient base changes require a decision
- Clients are memory less
- Configuration uses NavConfig
- Graph backends — retire ArangoDB for PostgreSQL + SurrealDB
- Conversation history has one writer
- HTTP stack uses aiohttp
- LangChain is not part of the stack
- Async code remains non blocking
- Concrete tools live in ai parrot tools