Skip to content

Codex/verified residual intelligence foundry v1 - #200

Merged
endomorphosis merged 68 commits into
mainfrom
codex/verified-residual-intelligence-foundry-v1
Aug 26, 2026
Merged

Codex/verified residual intelligence foundry v1#200
endomorphosis merged 68 commits into
mainfrom
codex/verified-residual-intelligence-foundry-v1

Conversation

@endomorphosis

Copy link
Copy Markdown
Owner

No description provided.

endomorphosis and others added 30 commits August 21, 2026 07:50
…oups for family, repository, language, framework, risk, model, quantization, hardware, and context tier and six closed dispositions.

Attempt: 1
…sor:generated-protected-board]"

This reverts commit 2f535b4.
…oups for family, repository, language, framework, risk, model, quantization, hardware, and context tier and six closed dispositions.

Attempt: 1
…ervative family, schema, effect, authority, repository, calibration, capability, and context boundary checks.

Attempt: 1
…nkings, and bounded linear/logistic baseline contracts before any learned or remote route, with complete abstention and cost receipts.

Attempt: 1
…, input/output schemas, grammar, token/output limits, risk ceiling, privacy, capabilities, validation, errors, and abstention behavior.

Attempt: 1
…rified-residual-intelligence-foundry-v1

# Conflicts:
Implementation Daemon and others added 29 commits August 21, 2026 21:53
Repair-Schema: ipfs_accelerate_py.agent_supervisor.post-merge-declared-output-repair@1
Candidate-Commit: 632d348
Failed-Integration: efe6bf2
Managed daemon child env only carried non-secret program bindings, so
Quack attach depended on ambient inheritance. Forward the already-admitted
env:// credential into trusted daemon env, resolve the same handle at
ATTACH, fingerprint auth failures, and probe vault attach before launch.
…ilures

Crash-looping attaches can leave the live owner rejecting even the admitted
token. Retry a bounded number of ATTACH attempts before fail-closed.
Portal attempt projections queued onto the shared markdown merge
consumer were rejected as foreign boards, leaving VRIF-010 blocked and
the remaining tasks with no_ready_tasks.

Recognize the same DuckDB task across a sealed projection and the
canonical board, revive leftover cross_board quarantines when declared
outputs are already on the target, skip merging stale side-branch
commits, and rearm blocked database tasks when the latest terminal is
only a merge-completion authority failure. Tampered attempt projections
still fail closed.
Database-portal merge candidates carry empty cross-board completion
authority fields, so the shared-board consumer quarantines them as
metadata invalid even after the declared outputs are already on the
target. Revive those rows and complete them as already merged without
merging the stale candidate or re-entering the foreign-board rejection.
Tampered attempt projections still fail closed.
…ticks

DuckDB lanes never consumed the merge train, so portal projections
quarantined for empty cross-board authority metadata sat forever. Those
lanes also died on Quack attach before later recovery ran.

Settle invalid-metadata portal quarantines whose declared outputs are
already on the target at the start of each database run_once, before
DuckDB reconciliation. If attach then fails, keep the settlement and
idle instead of crashing the pass. Tampered attempt projections still
fail closed.
Quack reports Authentication failed when its listen backlog is overrun.
Each DuckDB query opened a new ATTACH, and a failed pass crashed the
daemon so the supervisor immediately relaunched four more attaches.

Serialize ATTACH behind a process-shared lock, retry transient auth and
connect failures with jitter, reuse one Quack read connection per
IntentRepository, and idle a database run_once on attach failure instead
of exiting nonzero.
ATTACH serialization held attach.lock across retry sleeps, so sibling
lanes timed out and crashed instead of idling. TimeoutError was not
mapped as quack_attach_failed.

Hold the lock only around the ATTACH syscall, wrap lock timeouts as
DuckDBConnectionPolicyError, and idle run_once on those timeouts.
Native Quack listen backlog does not need to be widened once ATTACH
syscalls are sequential.
Idle daemon passes compact away the attach failure detail, so four live
lanes could sit on quack_attach_failed with no token or exception class
in the operator log. Keep control_plane_error in the bounded heartbeat.
… catalog SQL

ATTACH with a matching token succeeds, then unqualified FROM tasks is
rejected as Authorization failed. That traceback killed the daemon, and
the restart storm wedged the owner so the next wave could not attach.

Qualify FROM/JOIN tables with the attached catalog, and idle run_once on
Authorization failed so lanes stay up instead of crashing.
A live ATTACH was closed on every SQL exception, so the next tick
opened a new ATTACH. That reconnect storm failed authentication even
with a valid token and starved post-merge recovery, so blocked tasks
never rearmed and dependents stayed unready.

Keep the attached session unless a keepalive probe fails or the error
is session death (authentication / connection reset). Query-level
Authorization failed no longer forces a new ATTACH.
Task-status lookup swallowed every exception as \"not this lane's row\",
so attach failures advanced the recovery cursor past blocked tasks and
the DuckDB frontier never rearmed.

Reraise attach and authorization errors so recovery retries the same
completed repair row once the control-plane session is live again.
…n HEAD

VRIF-010 stayed blocked after its declared outputs were restored, so
013+ never became ready. Post-merge recovery sent a large typed owner
command that the Quack owner rejected, then attach died and the
frontier stayed empty.

Compact the recovery CAS receipt and, when claim_next is idle, rearm
blocked tasks whose declared files already exist on HEAD. Any database
lane can apply that compact CAS so supervisors keep coordinating
through DuckDB instead of stalling the board.
Blocked tasks may not carry predicted-file metadata in DuckDB. Use
completed post_merge_declared_outputs_repaired merge rows, prove those
blobs on HEAD, and apply the same compact retrying CAS so a restored
task can be claimed through the shared control plane.
Attach storms left VRIF-010 blocked and claim_next idle because unstall
listed blocked rows over Quack before it could CAS. Clients now submit a
typed rearm_blocked_task owner command from merge-queue repair receipts,
and the exclusive owner reads the current revision on its bound DuckDB
connection.

Run that unstall before attach-using reconcile so lanes keep coordinating
through the DuckDB control plane until the board is finished.
Eight ATTACH retries after Authentication failed fill Quack's listen
backlog and wedge the exclusive owner, so every lane idles even with a
live token. Fail that error closed on the first attempt and keep retries
for connect-time refusals while the owner is still binding its port.
Launch-time ATTACH shared Quack's listen backlog with the four lanes and
left VRIF-010 blocked even though repair receipts were already on disk.
Read those completed JSON files for the owner-command rearm, skip the
launch probe, and cool down ATTACH after a failure so lanes keep
coordinating through the DuckDB owner instead of wedging it.
A later completed merge row for the same VRIF-010 identity hid the
post_merge_declared_outputs_repaired receipt, so owner-command rearm
never ran and dependents stayed unselectable. Load every completed JSON
receipt and let the repair-reason filter choose the unstall row.
Database wait_for_wake slept at most one second, so four lanes retried
ATTACH continuously after the first authentication failure and wedged
the exclusive owner. Sleep the configured interval and remaining attach
cooldown instead, and keep declared-output rearm on the idle heartbeat.
VRIF-010 rearm was rejected as a generic owner_error, which hid the
bound-connection failure and left the DuckDB frontier blocked. Include
the exception type in the owner-command response and owner log so lanes
can diagnose and retry the compact blocked-to-retrying CAS.
Updating VRIF-010 from blocked to retrying fatally failed inside the
tasks_status_idx ART index and invalidated the exclusive control-plane
connection. Drop those status indexes at owner start; a 33-row board
does not need them for exact scans.
…, local specialists/general, remote standard/strong, and human using hard family/risk/capability/privacy/validation constraints plus budget and expected decision value.

Attempt: 1
… for admitted low/medium-risk classification and ranking families with batching, abstention, OOD, calibration, and independent validation.

Attempt: 1
…undry-v1

VRIF-013 cascade router landed on a side branch while VRIF-014 merged first.
Bring cascade.py, router.py, and test_router.py onto the execution branch.
Keep MAIN fail-closed supervisor policy (auto-clear, namespaced boards,
Codex default, inflight wait, recovery-unavailable pin identity) and the
process-shared Quack attach.lock landed on main.
The merge kept a dead shared-checkout auto-clear method and a mangled
ATTACH import block. Restore process-shared attach.lock from main and
delete the untyped-foreign-recovery terminal test.
@endomorphosis
endomorphosis merged commit c342223 into main Aug 26, 2026
18 of 30 checks 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