durability 3a: one report per raw revision; detect before a failed restore; narrow the parked skips
Task 5 fix round 1, Astra's three P2s. 1. The detector keeps the raw revisions it has reported per host, apart from its inspection cache (rawSecretBook.claim under its lock), so a revision is told once whatever order it is seen in, and by one of any number of concurrent observers. TestEachRawRevisionIsReportedOnce (R, R+1, R again; 16 concurrent observers of R+2). 2. hostfiles.RestoreRootBaselineObserved hands the manifest to a callback once it is read and validated, before anything is removed, fetched or written; restoreFilesClean detects there, so a restore that then fails still reports. No request added. TestARawItemIsReportedWhenTheRestoreFails (a raw revision with a missing payload object; 2 GETs, the restore's own). 3. The parked skips are narrowed so every check outside the refused installation runs. Before: 263 tests skipped whole. After: 65 run in full (two renamed: TestEstablishDropsTheRawEnvAndTheAdoptionItem, TestReleaseFlushFilesCarriesTheLastWakeState), 68 skip only their refused subtests (skipParkedSecretSubtests), 45 skip only from the first statement the refusal reaches, after their earlier checks, and 85 still skip whole: their fixture's own setup installs the refused prepared manifest. The un-skipped unit tests use env-absent fixtures: movesfiles_test.go's preparedFixture is now a pre-3a build's prepared manifest (a raw env item), so the establishment writes and the replay tests exercise the rewritten establishedOver; the moves phase 1 harness gains sourceEnvAbsent(); the claim seed, claim files, flush and relocation probe fixtures place no env file. RefuseSecretsAt now walks with its own descent over the same no-follow primitives, judging each entry once: through SyncDirAt's skip it asked the classifier again for every directory above a path, and a tree past the cap took over 20 s to refuse (TestRefuseSecretsAtRefusesATreePastTheCapQuickly). Census: claims for restoreFilesClean and Restore; census-propose re-run. Un-skipped tests (file: tests): buildstate_moves_test.go: TestTheReturnInstallPlacesTheBuildState claimfilesseed_assembly_linux_test.go: TestClaimServingAssemblyWithoutMoves claimfilesseed_integration_linux_test.go: TestFilesSeedPreparationChangedController, TestFilesSeedRealOriginPreparation, TestFilesSeedReportsSkippedPaths claimfilesseed_stage_linux_test.go: TestFilesSeedCreateConflictChecksBytesBeforeCommit, TestFilesSeedMaterializeUsesRealAdmittedPrefix claimfiles_test.go: TestClaimFilesReadTheBucketThroughTheRequestStore movesbuildstatepark_test.go: TestADirtyReturnOverAPreMoveBuildStateClassifies movescarries_test.go: TestFailedRenderAckIsParkedByCleaning, TestRenderCrashAfterThePrunedJournal, TestRenderCrashBeforeItsRecordIsParkedByCleaning, TestRenderReplayKeepsEveryIntendedHash, TestRenderTempIsRemovedByCleaning, TestReturnRenderRetriesStayBounded movesfilescap_test.go: TestCutPreflightAndRecoveryAgreeOnTheCap movesfileslive_test.go: TestDirtyReturnAtProbingWithoutAdmissionKeepsTheResidue, TestDirtyReturnWithoutAdmissionKeepsThePreMoveGeneration, TestReturnResidueParkRunsThroughTheInstall, TestReturnResidueParkWaitsOnATransientRefusal movesfiles_test.go: TestClaimProofRefusesAFreeStandingGeneration, TestEstablishCopiesTheNewestValidManifestByExactVersion, TestEstablishHostThatNeverPublishedFiles, TestEstablishKeepsOriginsPastAdmissionPruning, TestEstablishNeverBootstrapsEmpty, TestEstablishOnThePreparedGenerationContinuesFromSequenceZero, TestEstablishProvesAndCarriesOnlyReferencedOrigins, TestEstablishProvesEveryOriginThroughTheProof, TestEstablishPublishesOnlyOverTheBytesItChecked, TestEstablishPublishesOutsideTheStartsWork, TestEstablishRefusesAForeignEnvEntryOnPreparedReplay, TestEstablishRefusesANeverAdmittedOrigin, TestEstablishSeedsALegacyLocationsOriginSet, TestPreparedBuildBoundsEveryRead, TestPreparedManifestIsCreateOnlySequenceZeroAndBound, TestPreparedManifestReplayReusesObjects, TestPreparedReplayOrdersOriginsLikeTheCarriedSet, TestRecoveryEstablishesFromTheRecordedSourceGeneration, TestRecoveryRestartTakesTheNewestRecoveryManifest movesheldclaim_test.go: TestConfiguredRendersUnderTheHeldConfigSelection movesinstall_test.go: TestDirtyReturnCorruptBuildIsStuck, TestDirtyReturnInstallsUnderTheSourceStamp, TestDirtyReturnNeverInstallsOverWhatItDidNotPark, TestDirtyReturnReplaysFromTheJournal, TestDirtyReturnRetiresRetiredStampLeftovers, TestDirtyReturnUnknownStampIsStuckUntilRetried movesland_finalfix_test.go: TestLandingCutDeadlineMarksRollback, TestLandingInstallRefusesASuccessor movesland_test.go: TestLandingCorruptBuildMarksRollback, TestLandingDeadlineBeforeTheInstallTransition, TestLocalRefusesAForeignPreparedManifest movesrollback_finalfix_test.go: TestDirtyReturnWritesPassThePolicy, TestLandingWritesPassThePolicy relocationflush_adoption_test.go: TestReleaseFlushPublishesOnlyTheReleasingWritersAdoption relocationflush_saferead_linux_test.go: TestReleaseFlushPublishesTheDirectoryItOpenedNotALinkSwappedInAfter, TestReleaseFlushRefusesALinkedFilesDirectory, TestReleaseFlushRefusesATreePastTheWalksCaps, TestReleaseFlushRefusesWhatTheTenantPlantsAtTheEnvAndAdoptionRecord relocationprobefiles_linux_test.go: TestRelocationEmptyDatabaseProbeConsumesPsFiles, TestRelocationFirstProbeEstablishesThroughTheC8Provider, TestRelocationPreparedBindingIsRelocationsOwn, TestRelocationReplacementActivationRefuses, TestRelocationReplacementProbeEstablishesPsFiles Narrowed to subtests: movesclose_order_test.go: TestBoxClosesAreRecordFirst movesenvpin_lifetime_test.go: TestCapturedEnvPinLivesWithItsWake movesenvpin_test.go: TestProbeEnvPinCoversAnInstanceBoxVariable, TestProbeEnvPinIsMovePortable, TestProbeEnvPinRefusesAnInstanceChange, TestRecoveryEnvCheckIsTheWholeLocalEnv movesenvskew_test.go: TestOlderTargetCannotMatchANewerPin, TestProbeRefusesAnOlderPin movesevents_test.go: TestRealWritersLogEveryTransition movesfileslive_test.go: TestLandingResidueParkKeepsTheFilesLiveSet movesfinal_test.go: TestSourceParkSurvivesACrashAfterTheRowDelete, TestSourceParkWaitsForCommit movesheldclaim_test.go: TestCheckingRefusesUntilTheWakeSourceRegisters, TestConfiguredPublishesTheReleaseUnderHeldRelease moveshome_fixture_test.go: TestIntoHomeFixtureIsAHomeTarget moveshome_target_test.go: TestHomeRegionalAcknowledgesBothSpellings, TestHomeTargetFreshStateShowsOnlyTheHomeToken, TestHomeTargetRetainedChoresKeepTheirSpelling movesland_finalfix_test.go: TestLandingNeverDeletesFilesItDidNotCreate movesland_probe_test.go: TestLandingConfigChangedDuringTheProbeRollsBack movesland_test.go: TestLandingCheckingRequiresClaimEvidenceAndTouch, TestLandingReplaysArePhaseIdempotent, TestLandingRestoredCatchesTheClaimUp movesloss_test.go: TestDeclaredLossNeverAdmitsCleanReturn, TestFencedTargetReturnAsksUncovered, TestLaterSourceSessionStaysUncovered, TestLossAdmissionEndToEndThroughTheWriter, TestLossSourcesValidatesEachFrozenBaseline, TestLostTargetReturnDeclaresEverySessionOnce, TestRecordAndClaimDisagreeWaits movespaging_test.go: TestPagingIsRateLimited movesparks_test.go: TestSourceFinalizationRenameIsGuarded movespass_lost_test.go: TestReturningLostBoxRefusesEveryMoveStep movesprobeowners_committed_test.go: TestMovesProbeOwnersRepairVerifiesTheFilesContent movesprobeowners_fix1_test.go: TestMovesProbeOwnersAdmissionEvidenceChecksTheLanding movesprobeowners_test.go: TestMovesProbeOwnersPinTheLaunchInputs, TestMovesProbeOwnersValidateThePreparedInputs, TestProbeRefusesUnheldRowOrForeignExec movesrecover_test.go: TestCleanReturnWarmDatabaseMarker, TestDirtyReturnInstallsFromTheLane, TestSourceJournalsParkedAfterTheClose, TestSourceRecoveryRefusesARowHeldByAnotherOp, TestSourceRecoveryReplays, TestSourceWaitsForTargetEvidence, TestVerifyMismatchIsStuck movesrecoveryowners_test.go: TestRecoveryMaterializeRendersTheRecordedInputsUnderHeldWork, TestRecoveryOpAdmitsNoOutsideWriter, TestRecoveryProbeNeverMintsAnInstanceKey, TestRecoveryPublicationRelabelsTheRecoverysOwnTree, TestRecoveryStartGateRefusesATreeChangedBeforeTheFirstStart movesretry_test.go: TestRetryEventIsLoggedByThePass movesrevert_test.go: TestRevertProbedRefusesAForeignWrite, TestRevertProbedRefusesAnUnreplayableAdmission movesrollback_finalfix_test.go: TestRollbackCleaningOwnsDatabaseSiblingsOnlyWhenRecordedAbsent, TestRollbackCleaningParksWhatTheOpCreated movesrollback_test.go: TestDirtyReturnGoesStuck, TestRollbackDecisionConvertsTheMark, TestTargetCleaningReplays, TestTargetCleaningWaitsForRecoveredAt, TestTargetRollbackReplays movesrollback_witness_test.go: TestDirtyReturnAfterALostGuardRecord movessources_test.go: TestLandingResidueParkUnderItsOwnLease, TestNoArmRunsParkLocalWithoutTheClaimsLocalAuthorizer, TestNoArmRunsWithoutTheThreeParkHooks movesstuckpage_test.go: TestStuckMarksPageAnOperator moveswakesource_linux_test.go: TestDirtyReturnThroughAfterRecoveryOnRealRows, TestRecoveryAdmissionAfterTargetSession plan10_j2_adapter_test.go: TestPlan10J2AdapterDrivesTheRecoveryPass Skip moved after their earlier checks: buildstate_carry_test.go: TestTheReturnLaneCarriesTheRequest buildstate_moves_test.go: TestALandingWithNoBuildStatePlacesNone, TestALandingWithNoBuildStateRemovesALeftoverOne, TestTheLandingPlacesTheBuildStateBeforeTheProbe, TestTheLandingPlacesTheSealedVersionNotALaterOne, TestTheReturnLaneCarriesTheBuildState, TestTheSourceLocationParkAcknowledgesWithABuildState movesbuildstatepark_test.go: TestALandingOntoALocationHoldingABuildStateCompletes, TestAReturnPastProbingTakesTheTargetsStateWithoutTheInstallStep movescarries_test.go: TestInstalledDatabaseIsRegisteredAfterTheInstall movesfileslive_test.go: TestRollbackReturnCleanupKeepsTheFilesLiveSet, TestSourceCleanupKeepsTheFilesLiveSetUntilTheCommit movesfinal_test.go: TestSourceLocationParkScopeCoversTheFinalCheckpoint movesinstall_test.go: TestDirtyReturnParksAnUnregisteredSource movesland_finalfix_test.go: TestLandingInstallRemovesAStaleSeedMarker movesland_test.go: TestCrossRegionLandingManifestNamesDestinationObjects, TestLandingBuildIsCancelledWhenTheLeaseIsLostMidRequest, TestLandingBuildsInstallsAndRestores, TestLandingBuildStopsWhenTheLeaseIsLost, TestLandingConfiguredPinsInputs, TestLandingDeadlineRollsBack, TestLandingFirstStayQueuesNoLocalPark, TestLandingInventoryOrder, TestLandingMarkersAreWrittenLast, TestLandingParkingWaitsForTheManifest, TestLandingPhaseCatchUp, TestLandingRebuildNeedsTheLease, TestLocalBindsThePreparedManifestToTheNewGeneration, TestPreparedBuildRechecksAuthorityBeforeEveryWrite, TestSkippedManifestStepIsBuiltOnReplay movesloss_test.go: TestLossSourcesReadOnlyTheRestorePlan, TestLostTargetGenerationOutsideTheRestoreDeclaresAllItsWrites, TestRecoveryAdmissionEvidenceAcceptsTheFrozenMaximum movesrecover_test.go: TestRolledBackFinalizationReleasesTheClaim movesrecoveryowners_test.go: TestMovesOwnersDispatchByKind movesrevert_test.go: TestRevertProbedAfterARealAdmission movesrollback_finalfix_test.go: TestPreInstallReplayLooksAgain movesrollback_test.go: TestDirtyReturnSnapshotsTheStoppedDatabase, TestReleaseIsCleanWhenNothingChanged, TestReleaseIsDirtyWithoutSrcCovered, TestReturnLaneWriterIsGuarded, TestRollbackCASLosesToCommit movesrollback_witness_test.go: TestRollbackBaselineSurvivesTheCleanReturn moveswakesource_linux_test.go: TestLostTargetRecoveryRunsAgainstARealDeclaration plan10_j2_adapter_test.go: TestPlan10J2MissingWakeKeepsRecoveryAtProbing
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
docs/superpowers/notes/census-durability-3a-escrow-claims.md+2 −2docs/superpowers/notes/census-proposal-durability-3a-escrow.md+3 −3internal/activator/hafiles.go+47 −22internal/activator/hawake.go+4 −2internal/activator/rawsecret_test.go+111 −0internal/host/buildstate_carry_test.go+1 −1internal/host/buildstate_moves_test.go+7 −8internal/host/claimfiles_test.go+0 −2internal/host/claimfilesseed_assembly_linux_test.go+0 −4internal/host/claimfilesseed_integration_linux_test.go+0 −6internal/host/claimfilesseed_select_linux_test.go+0 −3internal/host/claimfilesseed_stage_linux_test.go+3 −5internal/host/movesbuildstatepark_test.go+3 −4internal/host/movescarries_test.go+8 −14internal/host/movesclose_order_test.go+4 −1internal/host/movesenvpin_lifetime_test.go+4 −1internal/host/movesenvpin_test.go+7 −4internal/host/movesenvskew_test.go+2 −2internal/host/movesevents_test.go+2 −1internal/host/movesfiles_test.go+85 −173internal/host/movesfilescap_test.go+0 −3internal/host/movesfileslive_test.go+7 −11internal/host/movesfinal_test.go+16 −12internal/host/movesheldclaim_test.go+12 −4internal/host/moveshome_fixture_test.go+12 −1internal/host/moveshome_target_test.go+3 −3internal/host/moveshome_test.go+1 −1internal/host/movesinstall_test.go+12 −18internal/host/movesland_commit_test.go+9 −9internal/host/movesland_finalfix_test.go+15 −13internal/host/movesland_probe_test.go+11 −11internal/host/movesland_test.go+32 −24internal/host/movesloss_test.go+23 −10internal/host/movespaging_test.go+27 −1internal/host/movesparks_test.go+6 −6internal/host/movespass_lost_test.go+3 −1internal/host/movesphase1_harness_test.go+13 −2internal/host/movesprobeowners_committed_test.go+1 −1internal/host/movesprobeowners_fix1_test.go+1 −1internal/host/movesprobeowners_test.go+3 −3internal/host/movesrecover_test.go+15 −10internal/host/movesrecoveryowners_test.go+7 −6internal/host/movesretire_byop_test.go+1 −1internal/host/movesretry_test.go+7 −5internal/host/movesrevert_test.go+6 −3internal/host/movesrollback_finalfix_test.go+9 −7internal/host/movesrollback_test.go+20 −16internal/host/movesrollback_witness_test.go+2 −2internal/host/movessources_test.go+6 −4internal/host/movesstuckpage_test.go+4 −1internal/host/moveswakesource_linux_test.go+4 −3internal/host/parkedrefusals_linux_test.go+1 −4internal/host/parkedsecretflow_test.go+16 −1internal/host/plan10_j2_adapter_test.go+2 −2internal/host/relocationflush_adoption_test.go+2 −4internal/host/relocationflush_saferead_linux_test.go+38 −16internal/host/relocationflush_wake_linux_test.go+17 −28internal/host/relocationprobefiles_linux_test.go+22 −18internal/hostfiles/refuse.go+66 −17internal/hostfiles/refuse_test.go+30 −0internal/hostfiles/restore.go+17 −4internal/provision/testdata/plan14-root-reads-chain.tsv+1 −1internal/provision/testdata/plan14-root-reads-durability-3a-escrow.tsv+6 −6
Intent
<task-notification> <task-id>a687a4341ffd05b6a</task-id> <tool-use-id>toolu_01D9vgZCWbuaErLxje3CiShD</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/953e7524-2e06-4308-b9ce-fd1b38579971/tasks/a687a4341ffd05b6a.output</output-file> <status>completed</status> <summary>Agent "Implement Task 5: parked-path refusals" finished</summary> <note>A task-notification fires each time this agent stops with no live background children of its own. The user can send it another message and resume it, so the same task-id may notify more than once.</note> <result>Status: DONE. None of the four refusal sites can be reached with every dormant switch off, so all four refusals stay. The offline moves, both the operator's `carlos move` and the self-serve console door, call none of the four sites. Their archive carries `<host>.env`, but sealed, so they are not a raw publisher. That is why I added no readiness-checklist line. Commits: 14f582d0 on durability-3a-escrow (parent 1ead41b1). Tests: the full suites pass for `internal/host` (run with `TMPDIR=/tmp/g`), `internal/activator` and `internal/hostfiles`, and so do the census tests in `internal/provision`. gofmt and vet are clean, and the darwin and windows builds pass. Concerns: - **263 tests skipped, not 166.** The full `internal/host` run broke 263 tests; my earlier narrower run found 166. With the three parked files put back to the parent's bytes, all 263 pass, so each skip comes from the refusals. Each now starts with `skipParkedSecretFlow(t, reason)`, which cites plan 3a Task 5 and Paul's ruling. Every skipped test is listed in the commit message and the report. - **Establish choice accepted.** `Establish` is reachable only with CARLOS_HOST_CLAIM on, so the accepted choice applies: a missing env file proceeds and drops the raw env item from the baseline. - **Census review still owed.** I appended claims for every changed unit and re-ran `census-propose`; the #280 verdict is still needed. - **Detector memory is per process.** A restarted agent reports a raw revision it already reported once more. - **"critical" maps to `alerting.LevelIncident`.** The alert sinks have no critical level. - **One test has no captured RED.** `TestARawSecretReportPagesAnOperator` was written after the wiring. Report (call chain per site, skip list, census): /home/paulca/amadan.net/carlos/platform/.claude/worktrees/durability-3a/.superpowers/sdd/2026-10-30-durability-step3-escrow-fence-restore/task-5-report.md</result> <usage><subagent_tokens>348237</subagent_tokens><tool_uses>164</tool_uses><duration_ms>4745794</duration_ms></usage> </task-notification>
<task-notification> <task-id>b8exnabtf</task-id> <tool-use-id>toolu_01WAxhQorFhKD2tHVGZFbWX1</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/953e7524-2e06-4308-b9ce-fd1b38579971/tasks/b8exnabtf.output</output-file> <status>completed</status> <summary>Background command "Wait for Astra's Task 5 review" completed (exit code 0)</summary> </task-notification>
how much left on this session?
Just aware of token use.
I have a bunch of Codex usage, so if you have any tasks that might draw a bunch of tokens, you can delegate some of that to Astra
Also Fable and Opus draw from the same pool, Fable just draws it faster.
Reviews can go to Opus
Attributed to this commit: 37.4 g CO₂e (4,877,847 tokens). This is an attribution, not a measurement — usage counted from this commit's own marker forward to the next one on durability-3a-escrow, never backward from it. A turn that produced more than one commit books all of its tokens to the last one, and a concurrent session on this branch can add to the same figure. Some of it was priced using the shared default rate, because no model-specific factor row exists yet for at least one model involved. The Carbon view has the repo total, which is never derived from this attribution.
docs/superpowers/notes/census-durability-3a-escrow-claims.mdLoading diff…
docs/superpowers/notes/census-proposal-durability-3a-escrow.mdLoading diff…
internal/activator/hafiles.goLoading diff…
internal/activator/hawake.goLoading diff…
internal/activator/rawsecret_test.goLoading diff…
internal/host/buildstate_carry_test.goLoading diff…
internal/host/buildstate_moves_test.goLoading diff…
internal/host/claimfiles_test.goLoading diff…
internal/host/claimfilesseed_assembly_linux_test.goLoading diff…
internal/host/claimfilesseed_integration_linux_test.goLoading diff…
internal/host/claimfilesseed_select_linux_test.goLoading diff…
internal/host/claimfilesseed_stage_linux_test.goLoading diff…
internal/host/movesbuildstatepark_test.goLoading diff…
internal/host/movescarries_test.goLoading diff…
internal/host/movesclose_order_test.goLoading diff…
internal/host/movesenvpin_lifetime_test.goLoading diff…
internal/host/movesenvpin_test.goLoading diff…
internal/host/movesenvskew_test.goLoading diff…
internal/host/movesevents_test.goLoading diff…
internal/host/movesfiles_test.goLoading diff…
internal/host/movesfilescap_test.goLoading diff…
internal/host/movesfileslive_test.goLoading diff…
internal/host/movesfinal_test.goLoading diff…
internal/host/movesheldclaim_test.goLoading diff…
internal/host/moveshome_fixture_test.goLoading diff…
internal/host/moveshome_target_test.goLoading diff…
internal/host/moveshome_test.goLoading diff…
internal/host/movesinstall_test.goLoading diff…
internal/host/movesland_commit_test.goLoading diff…
internal/host/movesland_finalfix_test.goLoading diff…
internal/host/movesland_probe_test.goLoading diff…
internal/host/movesland_test.goLoading diff…
internal/host/movesloss_test.goLoading diff…
internal/host/movespaging_test.goLoading diff…
internal/host/movesparks_test.goLoading diff…
internal/host/movespass_lost_test.goLoading diff…
internal/host/movesphase1_harness_test.goLoading diff…
internal/host/movesprobeowners_committed_test.goLoading diff…
internal/host/movesprobeowners_fix1_test.goLoading diff…
internal/host/movesprobeowners_test.goLoading diff…
internal/host/movesrecover_test.goLoading diff…
internal/host/movesrecoveryowners_test.goLoading diff…
internal/host/movesretire_byop_test.goLoading diff…
internal/host/movesretry_test.goLoading diff…
internal/host/movesrevert_test.goLoading diff…
internal/host/movesrollback_finalfix_test.goLoading diff…
internal/host/movesrollback_test.goLoading diff…
internal/host/movesrollback_witness_test.goLoading diff…
internal/host/movessources_test.goLoading diff…
internal/host/movesstuckpage_test.goLoading diff…
internal/host/moveswakesource_linux_test.goLoading diff…
internal/host/parkedrefusals_linux_test.goLoading diff…
internal/host/parkedsecretflow_test.goLoading diff…
internal/host/plan10_j2_adapter_test.goLoading diff…
internal/host/relocationflush_adoption_test.goLoading diff…
internal/host/relocationflush_saferead_linux_test.goLoading diff…
internal/host/relocationflush_wake_linux_test.goLoading diff…
internal/host/relocationprobefiles_linux_test.goLoading diff…
internal/hostfiles/refuse.goLoading diff…
internal/hostfiles/refuse_test.goLoading diff…
internal/hostfiles/restore.goLoading diff…
internal/provision/testdata/plan14-root-reads-chain.tsvLoading diff…
internal/provision/testdata/plan14-root-reads-durability-3a-escrow.tsvLoading diff…