Repository navigation
test: delete tests that guard removed features, unreleased schemas and test harnesses - #524
Merged
Merged
Conversation
…he always-None harness parameter
…harness test and the ignored R4 diagnostic
…he novel-read runtime run
…l compaction test
…stead of migrating them Schema 25 shipped in v0.0.1. Steps 1-24 only served unreleased builds, so they go together with their tests, and opening an older store now fails with SessionRuntimeError::UnsupportedStoreSchema.
Seeds at unreleased schemas (27, 29-31, 40-42, 45-49, 51-57, 60-63) move to the nearest released schema below them (26, 28, 39, 43, 50, 58). Tests whose seeded state never existed in a released store (goal rows before 58, the experimental 48 notice build) are deleted.
Collaborator
Author
|
@codex review |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex Review: Didn't find any major issues. Another round soon, please! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stacked on #523.
Change
This deletes tests that guard removed features, unreleased store schemas, or test harnesses (findings C1–C15). It also removes the production code that only those tests used:
add_*helpers that no remaining path calls. A new store now runs the creation steps directly and stamps schema 25. Opening a store older than 25 now fails withSessionRuntimeError::UnsupportedStoreSchema { found, oldest }: "session store schema 12 predates the oldest supported schema 25 (qq v0.0.1); move the store aside to start a new one". The store is left untouched.AgentPlanDescriptor::canonical_bytesencodes onlyDESCRIPTOR_VERSION(16). The only production reader, process-evidence validation, already rejected every other version. The projection test that faked a v14 descriptor now edits the stored JSON instead of encoding v14.retained_versionsstill asserts that N−1 exists.QQ_UPDATE_FIXTURES=1still regenerates v42 with no diff.historical_fixtures_still_decodeno longer needs its removed-feature skip list, because no v41 fixture uses those features. It now decodes every fixture strictly. The qq-client replay test reads the identical v42 copies of its v17 inputs.grant_authority→policy_authority(C10, cheap: 40 mechanical sites). It now matchesWorkspacePolicyAuthority.docs/design/architecture.md(oldest migrated schema),docs/design/protocol.md(retained fixtures, descriptor encodings) anddocs/runbooks/perf-recording.md(the deleted ignored soak modes).Deleted tests
Released schemas per tag (from
git show <tag>:crates/qq-core/src/sessions/store/schema.rs): v0.0.1=25, v0.0.2=26, v0.1.0=28, v0.1.1=32, v0.1.2=33, v0.1.3=34, v0.1.4=35, v0.1.5=39, v0.1.6=43, v0.1.7=50, v0.1.8=58, v0.1.9=64, v0.1.10=65. Goal tables first ship in schema 58.tests::a_root_prompt_and_tools_change_only_by_the_brief_guidance(C1)plan::tests::the_root_prompt_matches_its_golden,tools::tests::built_in_tool_declarations_keep_their_order_and_schema_identityplan::tests::historical_descriptor_15_digest_is_preserved,…_13_prompt_20_through_22_…,…_14_prompt_20_…,…_14_prompt_22_…(C2)plan::tests::canonical_encoding_and_digest_are_stable(v16 bytes and digest)approval_delegaterow inevery_behavior_affecting_field_changes_the_digest(C2)None; approval delegation was removedapproval::tests::ab1_*verdict tables (C4):configured_helpers_…,read_scan_bounds_…,shell_read_verdicts_preserve_progress_and_audit(92 rows),git_filters_…,git_help_…,trailing_separators_…,tree_recursive_…,joined_sed_…,output_only_sed_…,inherited_sort_…,workspace_sort_…,lazy_fetch_…read_only_shell_commandnow only feeds the undo-snapshot decision (may_change_files). Merged into one 20-row table plus the scan boundsapproval::tests::shell_read_verdicts_decide_whether_a_command_may_change_files.ab1_sed_extended_regex_…(theread_only_argvprocess-verification cases),ab1_literal_exec_arguments_remain_readsand the Windowsab1_cmd_separators_…are keptreviewer_model/supervised approvalabsence asserts indelegation_authority_guidance_matches_the_spawn_schemaandspawn_agent_authority_guidance_matches_write_capability(C5)scripted_soak_completes_across_context_windows,forty_in_run_compactions_…,forty_mib_of_streamed_text_…(C6)#[ignore]d, so never run; 2–8 s eachsoak::goal_enabled_soak_measures_real_notices_across_compaction,compaction::one_run_spanning_several_windows_…streamed_text_hard_guard_rejects_a_single_oversized_turn,process_kill_preserves_the_side_effect_without_reexecution(C6)tools::tests::ab3_six_default_read_results_characterize_turn_budget_pressure(C7)eprintlncharacterization with loose boundsread_file_stops_at_its_byte_budget_…sessions::tests::shared_session_harnesses_accept_an_aliased_temporary_base(C8)migrations::r4_append_only_chunk_scaling_diagnosticand its sampler/child runner (C9)cargo bench -p qq-core --bench store_output_batchqq-tui bench_support::tests::every_scene_builds_at_every_golden_size_and_paints_every_row(C11)goldens::every_golden_frame_fits_the_terminal(stricter: per-row message)docs_truth::tests::root_stall_reports_are_in_architecture_and_report_queries(C12)matchblocks inglossary_defines…are not tautologies (they make the test fail to compile when anApprovalMode/DelegationRolevariant is added), and### Trustis still a shipping concept (qq trust)tools::tests::a_command_that_leaves_its_group_still_stops_on_timeout(C13)cancel_and_timeout_kill_descendants_that_left_the_group(timeout +setsidtree)tests::progress::ab1_cd_prefixed_failing_cargo_test_restarts_the_stall_count(C13)a_failing_command_before_the_threshold_means_no_reporttests::loop_guard::ac4_runtime_1500_novel_reads_complete_and_keep_reporting(C13)ac4_runtime_novel_reads_complete_and_keep_reportingruntime::loop_guard::tests::fifteen_hundred_novel_reads_…keeps N=1500approvals::shell_prefix_denial_precedes_auto_and_full_and_allows_continuation(C13)execand wrappedsh -ccases run the sameshell_prefix_deniedgateapproval::classify::tests::shell_prefix_denies_match_literal_commands…(wrappers), 2 modes kept end to endcompaction::maximum_goal_is_verbatim_immediately_after_three_in_run_summaries(C13)goals::maximum_goal_notice_keeps_verbatim_fields_and_reserves_the_check_tailmigrations::version_{one,five,six,seven,ten,eleven,twelve,thirteen,fourteen×2,fifteen,seventeen,eighteen,nineteen,twenty,twenty_two,twenty_five}_migration_…,version_fourteen_store_missing_audit_columns_is_rejected,partially_applied_version_{fourteen,seventeen,eighteen}_…,failed_version_{fourteen,seventeen,eighteen}_…(C14)migrations::a_store_older_than_the_first_release_fails_to_open_naming_its_schema(schemas 1 and 24 → typed error, store left unmigrated).version_twenty_five…seeded 24settlement::version_sixteen_active_auto_compaction_backfills_exact_attempt_ownership(C14)goal_upgrade::goal_upgrade_preserves_owned_helper_prefix_and_dispatch_uncertainty(51/54, 4.3 s),goal_upgrade::goal_check_schema56_upgrade_…(C15)goal_admission::legacy_pending_model_work_restores_chargeable_proof_before_recovery(51/53),legacy_no_turn_dispatch_stays_unknown_…(51/54),legacy_dispatch_repair_distinguishes_…(54),legacy_dispatch_repair_invalid_required_event_…(54) (C15)goals::goal_parent51_upgrade_retains_notices_and_process_receipts,goals::paid_owner_upgrade_reconstructs_pending_child_through_settled_ancestor(C15)goals::goal_policy_migration_retains_legacy_unknown_and_rolls_back_bad_shapes(57) (C15)goals::goal_policy_schema_rejects_bad_shapes_without_advancing_the_versionprogress::ab5_experimental_schema48_root_notice_survives_projection_upgrade(C15)migrations::ab5_schema_forty_five_migrates_once_to_fifty(C15)migrations::migrating_a_v0_1_6_store_keeps_its_structure_and_store_identity(wasab5_schema_forty_nine_…, now seeded at 43)C15: tests rebased onto the nearest released schema. Each one still passes and still crosses the step it names.
migrations::version_twenty_eight…27→26,version_thirty…29→28,version_thirty_one…30→28,version_thirty_two…31→28,version_forty…/forty_one…/forty_two…40/41/42→39.tests::owned_compaction_index_*45/46→43;execution_context::ab1_historical_context…45→43.projection::ab2_projection_migration…47/48/49→43/50: the 48 branch is dropped, and the "missing projection column" refusal now runs at 50.projection::checkpoint_without_exact_projection…60→58;feeds::*60/61/62→58.goals::goal_upgrade_preserves_deployed_notice_and_projection_bytes[47,48,49,50]→[43,50].goals::goal_claim_storage_upgrades…46→43;goals::goal_request_migration_refuses_bad_shapes…andpaid_owner_schema_upgrades…51/52→50 (no goal rows, shape only).goal_admission::legacy_model_work_repair_rolls_back_on_invalid_turn53→50 (model_goal_claimonly creates a run).goal_upgrade::goal_check_migration_rejects_incompatible_acknowledgment_storage…56/57→50, with the rollback asserted at 56.migrations::a_store_with_retired_supervised_mode…61/63→58.Verification
cargo xtask check --full: passed ond198e3e4(.config/changed).metadatatable withschema_version=12into an isolated home and ranqq run --model openai/gpt-5 hi. Output:Error: session store schema 12 predates the oldest supported schema 25 (qq v0.0.1); move the store aside to start a new one, exit 4.schema_versionwas still12afterwards.QQ_UPDATE_FIXTURES=1 cargo nextest run -p qq-protocol -p qq-client: no fixture diff.grep -rnagainst.configand.github. I removedgoal_upgrade_preserves_owned_helper_prefix_and_dispatch_uncertaintyfrom the.config/nextest.tomlpriority filter. The platform lists, thereal-processfilter andquarantine.tomlname none of the deleted tests.xtask/src/legacy-sleeps.txtline numbers moved (count unchanged, 11/11).cargo nextest list --workspace --all-features)/tmp/opencode/test-times.tsv(CI)--profile ci, same 32-core host, 2 runs eachmaximum_goal_is_verbatim_…(local)shell_prefix_denial_precedes_…ac4_runtime_*novel_reads*crates/qq-protocol/tests/fixtures/Known impact
SessionRuntimeErrorgains theUnsupportedStoreSchemavariant. qq-host maps it toServerHandlerError::Internal, likeStoreBusy.UnresolvedPlan; nothing changes.docs/adr/0061alone. It still mentions descriptor 13/14 domains, and ADRs are records of past decisions.