instance_id
string
task_id
string
task_version
int64
tier
string
domain
string
problem_statement
string
patch
string
test_patch
string
FAIL_TO_PASS
list
PASS_TO_PASS
list
files
list
patch_policy_allowed
list
patch_policy_forbidden
list
token_budget
int64
hidden_test_count
int64
public_test_count
int64
graded_ladder_rungs
list
reward_formula
string
pdl_swe_booking_merge_007-v1
pdl_swe_booking_merge_007
1
T3
booking-interval coalescing service
Back-to-back bookings show up as separate schedule blocks instead of one continuous block. For example, a booking from 09:00 to 10:00 followed by another from 10:00 to 11:00 in the same room renders as two entries; it should render as a single 09:00-11:00 block. Bookings that actually overlap merge correctly. Expected ...
--- a/src/merge.py +++ b/src/merge.py @@ -13,7 +13,7 @@ def coalesce(bookings): blocks = [(ordered[0].start, ordered[0].end)] for booking in ordered[1:]: start, end = blocks[-1] - if booking.start < end: + if booking.start <= end: blocks[-1] = (start, max(end, booking.end))...
diff --git a/tests/hidden/test_hidden.py b/tests/hidden/test_hidden.py new file mode 100644 --- /dev/null +++ b/tests/hidden/test_hidden.py @@ -0,0 +1,32 @@ +"""Hidden evaluation tests. Never agent-visible (DEC-015). + +FAIL_TO_PASS: the buggy coalesce treats bookings that meet end-to-end as +disjoint (strict compariso...
[ "tests/hidden/test_hidden.py::test_reported_example_merges", "tests/hidden/test_hidden.py::test_touching_chain_merges_to_one_block", "tests/hidden/test_hidden.py::test_mixed_touching_overlap_and_gaps" ]
[ "tests/public/test_public.py::test_overlapping_bookings_merge", "tests/public/test_public.py::test_disjoint_bookings_stay_separate", "tests/public/test_public.py::test_unsorted_input_is_ordered", "tests/public/test_public.py::test_empty_and_invalid_bookings", "tests/public/test_public.py::test_free_slots_ar...
[ { "content": "# Present so pytest adds the repository root to sys.path, making `import src`\n# resolve from the test suite.\n", "path": "conftest.py" }, { "content": "# Pure standard library unless the environment image pre-bakes wheels.\n", "path": "requirements.lock" }, { "content": ""...
[ "src/**" ]
[ "tests/**", "requirements.lock", "pyproject.toml" ]
250,000
3
6
[ "cheat.diff" ]
0.80*hidden_pass_fraction + 0.15*public_regression + 0.05*build_health
pdl_swe_config_merge_002-v1
pdl_swe_config_merge_002
1
T2
layered configuration merging library
When a configuration source overrides one nested setting, every sibling setting in the same section is lost. For example, loading with a config file containing only a database pool size causes the database host, port, and pool timeout to disappear from the effective configuration instead of keeping their defaults. The ...
--- a/src/merge.py +++ b/src/merge.py @@ -9,5 +9,8 @@ """ result = dict(base) for key, value in override.items(): - result[key] = value + if isinstance(value, dict) and isinstance(result.get(key), dict): + result[key] = merge_layers(result[key], value) + else: + ...
diff --git a/tests/hidden/test_hidden.py b/tests/hidden/test_hidden.py new file mode 100644 --- /dev/null +++ b/tests/hidden/test_hidden.py @@ -0,0 +1,33 @@ +"""Hidden evaluation tests. Never agent-visible (DEC-015). + +FAIL_TO_PASS: on the buggy fixture, a partial nested override replaces the +whole section (shallow m...
[ "tests/hidden/test_hidden.py::test_partial_file_override_preserves_siblings", "tests/hidden/test_hidden.py::test_env_override_merges_into_defaults", "tests/hidden/test_hidden.py::test_file_then_env_layers_accumulate" ]
[ "tests/public/test_public.py::test_defaults_when_no_overrides", "tests/public/test_public.py::test_top_level_scalar_override", "tests/public/test_public.py::test_full_section_override", "tests/public/test_public.py::test_env_parsing_builds_nested_tree" ]
[ { "content": "# Present so pytest adds the repository root to sys.path, making `import src`\n# resolve from the test suite.\n", "path": "conftest.py" }, { "content": "# Pure standard library unless the environment image pre-bakes wheels.\n", "path": "requirements.lock" }, { "content": ""...
[ "src/**" ]
[ "tests/**", "requirements.lock", "pyproject.toml" ]
250,000
3
4
[]
0.80*hidden_pass_fraction + 0.15*public_regression + 0.05*build_health
pdl_swe_dst_drift_010-v1
pdl_swe_dst_drift_010
1
T3
recurring-event scheduling across timezone transitions
Since the clocks went forward on 30 March, our daily 09:00 stand-up appears at 10:00 in every agenda — it was correct all winter, and the first days of the series still show 09:00. Colleagues report the mirror problem in the other direction after the October change. Nothing about the meetings themselves was edited. Exp...
--- a/src/schedule.py +++ b/src/schedule.py @@ -12,16 +12,19 @@ def occurrences(meeting, start_date, days): the meeting's own timezone, whatever that instant is in UTC. """ meeting_zone = zone(meeting.tz_name) - first = datetime( - start_date.year, - start_date.month, - start_date...
diff --git a/tests/hidden/test_hidden.py b/tests/hidden/test_hidden.py new file mode 100644 --- /dev/null +++ b/tests/hidden/test_hidden.py @@ -0,0 +1,49 @@ +"""Hidden evaluation tests. Never agent-visible (DEC-015). + +FAIL_TO_PASS: occurrences() steps the series by fixed 24-hour UTC +increments from the first instant...
[ "tests/hidden/test_hidden.py::test_spring_transition_keeps_wall_clock", "tests/hidden/test_hidden.py::test_autumn_transition_keeps_wall_clock", "tests/hidden/test_hidden.py::test_long_series_across_spring_stays_stable" ]
[ "tests/public/test_public.py::test_winter_occurrences_utc_and_local", "tests/public/test_public.py::test_summer_occurrences_hold_local_time", "tests/public/test_public.py::test_agenda_formatting", "tests/public/test_public.py::test_next_occurrence_moves_to_the_following_day", "tests/public/test_public.py::t...
[ { "content": "# Present so pytest adds the repository root to sys.path, making `import src`\n# resolve from the test suite.\n", "path": "conftest.py" }, { "content": "python-dateutil==2.9.0.post0\nsix==1.17.0\n", "path": "requirements.lock" }, { "content": "", "path": "src/__init__.p...
[ "src/**" ]
[ "tests/**", "requirements.lock", "pyproject.toml" ]
250,000
3
6
[ "cheat.diff" ]
0.80*hidden_pass_fraction + 0.15*public_regression + 0.05*build_health
pdl_swe_journal_gap_006-v1
pdl_swe_journal_gap_006
1
T3
sequenced journal with contiguity-contract reader
Once the importer rejects a bad row, every row imported afterwards is lost: the writes return normally with no error, but the new entries never show up when the journal is read back — scans and tails behave as if the log ended just before the rejection. A journal that has never rejected anything reads back perfectly. T...
--- a/src/journal.py +++ b/src/journal.py @@ -20,9 +20,9 @@ class Journal: def append(self, record): """Append a record and return its assigned sequence number.""" + payload = encode(record) seq = self._next_seq self._next_seq += 1 - payload = encode(record) self...
diff --git a/tests/hidden/test_hidden.py b/tests/hidden/test_hidden.py new file mode 100644 --- /dev/null +++ b/tests/hidden/test_hidden.py @@ -0,0 +1,44 @@ +"""Hidden evaluation tests. Never agent-visible (DEC-015). + +FAIL_TO_PASS: on the buggy fixture, append() reserves a sequence number +before validation, so a rej...
[ "tests/hidden/test_hidden.py::test_records_after_a_rejection_remain_visible", "tests/hidden/test_hidden.py::test_rejected_records_do_not_consume_sequence_numbers", "tests/hidden/test_hidden.py::test_interleaved_rejections_keep_the_log_complete" ]
[ "tests/public/test_public.py::test_append_and_scan_round_trip", "tests/public/test_public.py::test_append_rejects_invalid_records", "tests/public/test_public.py::test_scan_stops_at_snapshot_gap", "tests/public/test_public.py::test_codec_round_trip_and_validation", "tests/public/test_public.py::test_tail_ret...
[ { "content": "# Present so pytest adds the repository root to sys.path, making `import src`\n# resolve from the test suite.\n", "path": "conftest.py" }, { "content": "# Pure standard library unless the environment image pre-bakes wheels.\n", "path": "requirements.lock" }, { "content": ""...
[ "src/**" ]
[ "tests/**", "requirements.lock", "pyproject.toml" ]
250,000
3
6
[]
0.80*hidden_pass_fraction + 0.15*public_regression + 0.05*build_health
pdl_swe_meter_rewind_016-v2
pdl_swe_meter_rewind_016
2
T5
usage metering and billing engine
Finance and support keep hitting the same wall: we cannot say what billing believed at a given moment in the past. When a customer disputed an invoice last month, reconstructing their balance and credit position as of the moment their service was suspended took a day of ad-hoc journal spelunking, the numbers were hand-...
--- a/src/rewind.py +++ b/src/rewind.py @@ -1,17 +1,39 @@ -"""Point-in-time reads over persisted artifacts (not implemented). +"""Point-in-time reads over persisted artifacts. -``rewind(config, store, as_of)`` is intended to answer the question -"what did billing look like at moment X?" from the artifact store -alone...
diff --git a/tests/hidden/test_hidden.py b/tests/hidden/test_hidden.py new file mode 100644 --- /dev/null +++ b/tests/hidden/test_hidden.py @@ -0,0 +1,577 @@ +"""Hidden acceptance suite for point-in-time rewind (never agent-visible). + +Grades rewind() on exact equivalence to the live engine across the +billing query s...
[ "tests/hidden/test_hidden.py::test_tail_replay_of_plain_usage", "tests/hidden/test_hidden.py::test_as_of_at_the_snapshot_moment", "tests/hidden/test_hidden.py::test_simple_close_and_grant_in_tail", "tests/hidden/test_hidden.py::test_accrued_stays_exact_beyond_display_precision", "tests/hidden/test_hidden.py...
[ "tests/public/test_admission_journal.py::test_lateness_window", "tests/public/test_admission_journal.py::test_journal_records_only_admitted_records", "tests/public/test_admission_journal.py::test_segment_rotation_and_names", "tests/public/test_admission_journal.py::test_arrival_clock_is_monotonic_along_the_jo...
[ { "content": "# Present so pytest adds the repository root to sys.path, making `import src`\n# resolve from the test suite.\n", "path": "conftest.py" }, { "content": "# Pure standard library unless the environment image pre-bakes wheels.\n", "path": "requirements.lock" }, { "content": "\...
[ "src/**" ]
[ "tests/**", "requirements.lock", "pyproject.toml", "src/snapshot.py" ]
500,000
25
38
[ "cheat_class_trust.diff", "cheat_export_reader.diff", "cheat_hand_replay.diff" ]
0.80*hidden_pass_fraction + 0.15*public_regression + 0.05*build_health
pdl_swe_plan_drift_013-v2
pdl_swe_plan_drift_013
2
T4
dataflow query planner/optimizer
Since we moved reporting onto the optimizing planner, some pipelines return wrong results: filters that combine with computed columns keep rows they should drop and drop rows they should keep — the surviving rows look as if the filter had been judged against the values from before the computation. One team hit a second...
new file mode 100644 --- /dev/null +++ b/src/planner/analysis.py @@ -0,0 +1,50 @@ +"""Field-level analysis for plan rewrites. + +A filter may only move to the other side of a stage if every column it +reads still means the same thing there — the name being *present* is +not enough, because a stage can rebind a name to ...
diff --git a/tests/hidden/test_hidden.py b/tests/hidden/test_hidden.py new file mode 100644 --- /dev/null +++ b/tests/hidden/test_hidden.py @@ -0,0 +1,267 @@ +"""Hidden evaluation tests. Never agent-visible (DEC-015). + +FAIL_TO_PASS: the planner decides filter pushdown by column *presence* +(is the name defined upstre...
[ "tests/hidden/test_hidden.py::test_filter_after_overwriting_derive_uses_final_values", "tests/hidden/test_hidden.py::test_filter_after_rotating_rename_reads_rebound_column", "tests/hidden/test_hidden.py::test_filter_crosses_sort_but_stops_at_overwriting_derive", "tests/hidden/test_hidden.py::test_compound_pre...
[ "tests/public/test_expr.py::test_arithmetic_and_comparison", "tests/public/test_expr.py::test_boolean_composition_and_wrapping", "tests/public/test_expr.py::test_functions", "tests/public/test_expr.py::test_references_walks_nested_trees", "tests/public/test_expr.py::test_render_is_stable", "tests/public/t...
[ { "content": "# Present so pytest adds the repository root to sys.path, making `import src`\n# resolve from the test suite.\n", "path": "conftest.py" }, { "content": "# Pure standard library unless the environment image pre-bakes wheels.\n", "path": "requirements.lock" }, { "content": ""...
[ "src/**" ]
[ "tests/**", "requirements.lock", "pyproject.toml" ]
500,000
10
26
[ "cheat_disable.diff", "cheat_partial.diff", "cheat_typelist.diff" ]
0.80*hidden_pass_fraction + 0.15*public_regression + 0.05*build_health
pdl_swe_retry_cap_001-v1
pdl_swe_retry_cap_001
1
T1
HTTP-client retry helper
Fix the retry function so that the maximum retry count is respected when the wrapped operation raises a timeout.
--- a/src/retry.py +++ b/src/retry.py @@ -14,7 +14,7 @@ """ last_exc = None attempts = 0 - while attempts <= max_attempts: + while attempts < max_attempts: try: return operation() except Exception as exc: # noqa: BLE001 - retry on any operation error
diff --git a/tests/hidden/test_retry_hidden.py b/tests/hidden/test_retry_hidden.py new file mode 100644 --- /dev/null +++ b/tests/hidden/test_retry_hidden.py @@ -0,0 +1,26 @@ +"""Hidden test — NOT visible to the agent. Mounted only for final evaluation. + +This is the FAIL_TO_PASS test: it fails on the buggy code (whic...
[ "tests/hidden/test_retry_hidden.py::test_respects_max_attempts_on_timeout" ]
[ "tests/public/test_retry.py::test_returns_first_success_without_retrying", "tests/public/test_retry.py::test_retries_until_success" ]
[ { "content": "# Present so pytest adds the repository root to sys.path, making `import src`\n# resolve from the test suite.\n", "path": "conftest.py" }, { "content": "# No third-party dependencies — this example task is pure standard library.\n# (Kept as a lockfile so the offline install path is sti...
[ "src/**" ]
[ "tests/**", "requirements.lock", "pyproject.toml" ]
250,000
1
2
[]
0.80*hidden_pass_fraction + 0.15*public_regression + 0.05*build_health
pdl_swe_retry_thread_008-v1
pdl_swe_retry_thread_008
1
T3
retry orchestration across a dispatch facade
The attempts option on execute() does nothing. An operation that fails once with a transient error fails the whole call immediately even with attempts=3, and our instrumentation shows the operation was only invoked a single time. The default behavior without the option is correct — fail fast on the first transient erro...
--- a/src/api.py +++ b/src/api.py @@ -12,4 +12,4 @@ def execute(name, op, attempts=1): """ if attempts < 1: raise ValueError("attempts must be >= 1") - return service.dispatch(name, op) + return service.dispatch(name, op, attempts) --- a/src/engine.py +++ b/src/engine.py @@ -1,6 +1,13 @@ """Ex...
diff --git a/tests/hidden/test_hidden.py b/tests/hidden/test_hidden.py new file mode 100644 --- /dev/null +++ b/tests/hidden/test_hidden.py @@ -0,0 +1,46 @@ +"""Hidden evaluation tests. Never agent-visible (DEC-015). + +FAIL_TO_PASS: the facade's attempts option is documented but never reaches +the engine, so any trans...
[ "tests/hidden/test_hidden.py::test_attempts_retry_until_success", "tests/hidden/test_hidden.py::test_attempts_stop_as_soon_as_one_succeeds", "tests/hidden/test_hidden.py::test_attempts_exhausted_reraises_after_final_try" ]
[ "tests/public/test_public.py::test_execute_success_first_try", "tests/public/test_public.py::test_execute_fails_fast_by_default", "tests/public/test_public.py::test_execute_validates_attempts", "tests/public/test_public.py::test_dispatch_wraps_and_validates", "tests/public/test_public.py::test_engine_runs_o...
[ { "content": "# Present so pytest adds the repository root to sys.path, making `import src`\n# resolve from the test suite.\n", "path": "conftest.py" }, { "content": "# Pure standard library unless the environment image pre-bakes wheels.\n", "path": "requirements.lock" }, { "content": ""...
[ "src/**" ]
[ "tests/**", "requirements.lock", "pyproject.toml" ]
250,000
3
6
[]
0.80*hidden_pass_fraction + 0.15*public_regression + 0.05*build_health
pdl_swe_route_order_009-v1
pdl_swe_route_order_009
1
T3
web-service request router (route specificity)
After we reorganized how routes are registered, some API endpoints return the wrong resource: requesting the daily report gives back the overall summary instead. Most endpoints behave normally, and the broken one worked before the reorganization — nothing about the endpoint's own handler changed. Expected behavior: a r...
--- a/src/router.py +++ b/src/router.py @@ -44,10 +44,12 @@ class Router: def resolve(self, path): """The Route covering path, or None.""" path = normalize_path(path) + best = None for route in self._routes: if matches(route.pattern, path): - return rou...
diff --git a/tests/hidden/test_hidden.py b/tests/hidden/test_hidden.py new file mode 100644 --- /dev/null +++ b/tests/hidden/test_hidden.py @@ -0,0 +1,45 @@ +"""Hidden evaluation tests. Never agent-visible (DEC-015). + +FAIL_TO_PASS: resolve() returns the first registered covering route instead +of the most specific on...
[ "tests/hidden/test_hidden.py::test_daily_report_route_dispatches_to_daily", "tests/hidden/test_hidden.py::test_specific_route_wins_when_registered_after_prefix", "tests/hidden/test_hidden.py::test_most_specific_wins_across_registration_orders" ]
[ "tests/public/test_public.py::test_users_listing", "tests/public/test_public.py::test_users_export_route", "tests/public/test_public.py::test_reports_summary", "tests/public/test_public.py::test_root_and_unknown_paths", "tests/public/test_public.py::test_admin_gate_and_request_id", "tests/public/test_publ...
[ { "content": "# Present so pytest adds the repository root to sys.path, making `import src`\n# resolve from the test suite.\n", "path": "conftest.py" }, { "content": "# Pure standard library unless the environment image pre-bakes wheels.\n", "path": "requirements.lock" }, { "content": ""...
[ "src/**" ]
[ "tests/**", "requirements.lock", "pyproject.toml" ]
250,000
3
7
[]
0.80*hidden_pass_fraction + 0.15*public_regression + 0.05*build_health
pdl_swe_rule_cascade_017-v2
pdl_swe_rule_cascade_017
2
T5
forward-chaining business-rules engine
Support escalated two automation incidents from the same customer, both involving rule cascades — automations reacting to facts that other automations modify within the same run. First incident: a notification automation ran with values that were already out of date. A higher-priority rule had updated the ticket's seve...
--- a/src/agenda.py +++ b/src/agenda.py @@ -16,7 +16,7 @@ from dataclasses import dataclass from typing import Dict, FrozenSet, List, Optional, Set, Tuple from .facts import Fact, WorkingMemory -from .matcher import Match +from .matcher import Match, guard_holds from .metrics import Metrics from .rules import Rul...
diff --git a/tests/hidden/test_hidden.py b/tests/hidden/test_hidden.py new file mode 100644 --- /dev/null +++ b/tests/hidden/test_hidden.py @@ -0,0 +1,766 @@ +"""Hidden acceptance suite for mid-drain modification semantics. + +Grades the agenda/engine contract stated across the module docs and +the issue: every firing ...
[ "tests/hidden/test_hidden.py::test_firing_uses_values_current_at_fire_time", "tests/hidden/test_hidden.py::test_withdrawn_condition_never_fires", "tests/hidden/test_hidden.py::test_cascade_modification_renews_the_justification", "tests/hidden/test_hidden.py::test_renewed_justification_sorts_by_its_new_stamp",...
[ "tests/public/test_cascades.py::test_asserted_fact_triggers_downstream_rule_in_same_drain", "tests/public/test_cascades.py::test_three_stage_assert_chain_runs_in_order", "tests/public/test_cascades.py::test_fresher_knowledge_outranks_older_at_equal_salience", "tests/public/test_cascades.py::test_mid_drain_ret...
[ { "content": "# Present so pytest adds the repository root to sys.path, making `import src`\n# resolve from the test suite.\n", "path": "conftest.py" }, { "content": "# Pure standard library unless the environment image pre-bakes wheels.\n", "path": "requirements.lock" }, { "content": "\...
[ "src/**" ]
[ "tests/**", "requirements.lock", "pyproject.toml" ]
500,000
20
31
[ "cheat_popcheck.diff", "cheat_rebuild.diff", "cheat_version_seam_only.diff", "cheat_withdraw_only.diff" ]
0.80*hidden_pass_fraction + 0.15*public_regression + 0.05*build_health
pdl_swe_schedule_until_003-v1
pdl_swe_schedule_until_003
1
T2
recurring-schedule expansion (calendar rules)
The final scheduled run of a window never fires when the window's end lands exactly on a run time. For example, a daily 09:00 job expanded over a window ending at 09:00 on the last day silently omits that day's run, and asking for the next run when the only remaining one falls exactly at the horizon returns nothing. Ru...
--- a/src/expand.py +++ b/src/expand.py @@ -21,7 +21,7 @@ bysecond=0, until=window_end, ) - return [occurrence for occurrence in rule if occurrence < window_end] + return [occurrence for occurrence in rule if occurrence <= window_end] def next_run(spec, after, horizon):
diff --git a/tests/hidden/test_hidden.py b/tests/hidden/test_hidden.py new file mode 100644 --- /dev/null +++ b/tests/hidden/test_hidden.py @@ -0,0 +1,39 @@ +"""Hidden evaluation tests. Never agent-visible (DEC-015). + +FAIL_TO_PASS: on the buggy fixture, a run landing exactly on the window end +is dropped (exclusive c...
[ "tests/hidden/test_hidden.py::test_daily_run_on_window_end_included", "tests/hidden/test_hidden.py::test_weekly_final_run_on_end_date", "tests/hidden/test_hidden.py::test_next_run_at_horizon_boundary" ]
[ "tests/public/test_public.py::test_parse_daily", "tests/public/test_public.py::test_parse_weekly", "tests/public/test_public.py::test_parse_rejects_bad_specs", "tests/public/test_public.py::test_daily_occurrences_inside_window", "tests/public/test_public.py::test_next_run_mid_window" ]
[ { "content": "# Present so pytest adds the repository root to sys.path, making `import src`\n# resolve from the test suite.\n", "path": "conftest.py" }, { "content": "python-dateutil==2.9.0.post0\nsix==1.17.0\n", "path": "requirements.lock" }, { "content": "", "path": "src/__init__.p...
[ "src/**" ]
[ "tests/**", "requirements.lock", "pyproject.toml" ]
250,000
3
5
[]
0.80*hidden_pass_fraction + 0.15*public_regression + 0.05*build_health
pdl_swe_session_split_014-v1
pdl_swe_session_split_014
1
T4
event-time session analytics
Customers whose event feeds arrive slightly out of order are getting session analytics that don't add up. Activity that was plainly one continuous session comes out split into several, with the counts and revenue divided among the pieces; some reported sessions have a recorded time span that doesn't even cover the even...
--- a/src/aggregates/base.py +++ b/src/aggregates/base.py @@ -22,3 +22,8 @@ class Aggregate(ABC): @abstractmethod def value(self): """The current result. Pure: no state change.""" + + @abstractmethod + def combine(self, other): + """Fold another aggregate of the same kind into this one (...
diff --git a/tests/hidden/test_hidden.py b/tests/hidden/test_hidden.py new file mode 100644 --- /dev/null +++ b/tests/hidden/test_hidden.py @@ -0,0 +1,177 @@ +"""Hidden FAIL_TO_PASS suite: out-of-order arrival must sessionize exactly +as in-order arrival would. Never agent-visible (DEC-015). + +Every test feeds at leas...
[ "tests/hidden/test_hidden.py::test_late_event_joins_the_session_it_belongs_to", "tests/hidden/test_hidden.py::test_bridging_event_unifies_two_sessions", "tests/hidden/test_hidden.py::test_earlier_event_extends_a_session_backwards", "tests/hidden/test_hidden.py::test_stragglers_repair_many_sessions_without_pha...
[ "tests/public/test_aggregates.py::TestBasicAggregates::test_count_and_sum", "tests/public/test_aggregates.py::TestBasicAggregates::test_min_and_max", "tests/public/test_aggregates.py::TestBasicAggregates::test_min_max_none_without_contributions", "tests/public/test_aggregates.py::TestBasicAggregates::test_mis...
[ { "content": "# Present so pytest adds the repository root to sys.path, making `import src`\n# resolve from the test suite.\n", "path": "conftest.py" }, { "content": "# Pure standard library unless the environment image pre-bakes wheels.\n", "path": "requirements.lock" }, { "content": "\...
[ "src/**" ]
[ "tests/**", "requirements.lock", "pyproject.toml" ]
500,000
10
34
[ "cheat_attach_only.diff", "cheat_bandaid.diff", "cheat_forward_only.diff" ]
0.80*hidden_pass_fraction + 0.15*public_regression + 0.05*build_health
pdl_swe_stale_calc_015-v1
pdl_swe_stale_calc_015
1
T3
spreadsheet-style formula recalculation engine
Since the derived-metrics dashboards moved onto the incremental engine, two kinds of wrong numbers keep coming in, and our own meters back both reports up. First, cells that pick their source dynamically go stale: a cell that reads whichever input its selector currently points at stops seeing edits to that input — it k...
--- a/src/graph.py +++ b/src/graph.py @@ -43,10 +43,7 @@ class Graph: refs = static_refs(ast) self._check_cycle(name, refs) cell = Cell(name, formula=ast, source=source, refs=refs) - cell.deps = frozenset(refs) self._cells[name] = cell - for dep in cell.deps: - ...
diff --git a/tests/hidden/test_hidden.py b/tests/hidden/test_hidden.py new file mode 100644 --- /dev/null +++ b/tests/hidden/test_hidden.py @@ -0,0 +1,225 @@ +"""Hidden FAIL_TO_PASS suite: dependencies are what a formula actually +READ in its latest evaluation, not what its text mentions. Never +agent-visible (DEC-015)...
[ "tests/hidden/test_hidden.py::test_dynamic_source_edits_propagate", "tests/hidden/test_hidden.py::test_retarget_tracks_the_new_source", "tests/hidden/test_hidden.py::test_pointer_chain", "tests/hidden/test_hidden.py::test_untaken_branch_edits_are_free", "tests/hidden/test_hidden.py::test_flip_rewires_the_br...
[ "tests/public/test_deps_report.py::TestDependencies::test_static_formula_reports_its_reads", "tests/public/test_deps_report.py::TestDependencies::test_input_cells_have_no_dependencies", "tests/public/test_deps_report.py::TestReport::test_format_cells", "tests/public/test_deps_report.py::TestReport::test_forma...
[ { "content": "# Present so pytest adds the repository root to sys.path, making `import src`\n# resolve from the test suite.\n", "path": "conftest.py" }, { "content": "# Pure standard library unless the environment image pre-bakes wheels.\n", "path": "requirements.lock" }, { "content": "\...
[ "src/**" ]
[ "tests/**", "requirements.lock", "pyproject.toml" ]
500,000
12
30
[ "cheat_add_only.diff", "cheat_skip_cached.diff" ]
0.80*hidden_pass_fraction + 0.15*public_regression + 0.05*build_health
pdl_swe_stale_index_012-v1
pdl_swe_stale_index_012
1
T3
catalog with derived-term search index
Search keeps returning records for values they no longer have. After editing a record's tags or title, searches for the old tag or the old title words still list the record, alongside correct results for the new values. Deleting a record cleans up properly — only edits leave residue, and re-editing several times leaves...
--- a/src/catalog.py +++ b/src/catalog.py @@ -34,13 +34,17 @@ class Catalog: def update(self, record_id, title=None, tags=None): """Change a record's title and/or tags and index the new values.""" current = self.get(record_id) + old_terms = derive_terms(current) updated = Record( ...
diff --git a/tests/hidden/test_hidden.py b/tests/hidden/test_hidden.py new file mode 100644 --- /dev/null +++ b/tests/hidden/test_hidden.py @@ -0,0 +1,101 @@ +"""Hidden evaluation tests. Never agent-visible (DEC-015). + +FAIL_TO_PASS: update() indexes a record's new terms but never removes the +terms an edit dropped, s...
[ "tests/hidden/test_hidden.py::test_removed_tag_stops_matching", "tests/hidden/test_hidden.py::test_retitled_record_stops_matching_old_words", "tests/hidden/test_hidden.py::test_repeated_edits_leave_no_residue", "tests/hidden/test_hidden.py::test_overlapping_edit_keeps_shared_terms", "tests/hidden/test_hidde...
[ "tests/public/test_public.py::test_add_and_find_case_insensitive", "tests/public/test_public.py::test_find_sorted_and_find_all", "tests/public/test_public.py::test_bulk_load_and_derivation_accounting", "tests/public/test_public.py::test_delete_cleans_search_and_unknown_raises", "tests/public/test_public.py:...
[ { "content": "# Present so pytest adds the repository root to sys.path, making `import src`\n# resolve from the test suite.\n", "path": "conftest.py" }, { "content": "# Pure standard library unless the environment image pre-bakes wheels.\n", "path": "requirements.lock" }, { "content": ""...
[ "src/**" ]
[ "tests/**", "requirements.lock", "pyproject.toml" ]
250,000
7
7
[ "cheat.diff" ]
0.80*hidden_pass_fraction + 0.15*public_regression + 0.05*build_health
pdl_swe_stock_release_018-v2
pdl_swe_stock_release_018
2
T5
multi-warehouse inventory allocation
Cancellations are bleeding us. When a customer cancels, the allocation service today simply abandons the order: earmarked units stay earmarked, picked cartons sit in staging, and customers waiting on backorders for the very same SKU keep waiting. Operations has been "fixing" this by hand, and every incident in this tic...
diff --git a/src/release.py b/src/release.py index 9dec737..3cfa328 100644 --- a/src/release.py +++ b/src/release.py @@ -1,12 +1,19 @@ -"""Order release (not implemented). - -``release(engine, order_id)`` cancels the unshipped remainder of an -order and puts its stock back to work. The agreed requirements are in -the p...
diff --git a/tests/hidden/test_hidden.py b/tests/hidden/test_hidden.py new file mode 100644 --- /dev/null +++ b/tests/hidden/test_hidden.py @@ -0,0 +1,779 @@ +"""Hidden acceptance suite for order release. + +Grades the contract stated across the module docs and the issue: +release cancels the unshipped remainder (shipp...
[ "tests/hidden/test_hidden.py::test_restock_returns_to_origin_warehouse", "tests/hidden/test_hidden.py::test_cascade_serves_class_before_age", "tests/hidden/test_hidden.py::test_release_counters_record_events_never_edits", "tests/hidden/test_hidden.py::test_shipped_units_stay_shipped", "tests/hidden/test_hid...
[ "tests/public/test_intake_allocation.py::test_single_warehouse_full_allocation", "tests/public/test_intake_allocation.py::test_cost_ranked_selection", "tests/public/test_intake_allocation.py::test_cost_tie_breaks_on_warehouse_id", "tests/public/test_intake_allocation.py::test_split_across_warehouses_when_chea...
[ { "content": "# Present so pytest adds the repository root to sys.path, making `import src`\n# resolve from the test suite.\n", "path": "conftest.py" }, { "content": "# Pure standard library unless the environment image pre-bakes wheels.\n", "path": "requirements.lock" }, { "content": "\...
[ "src/**" ]
[ "tests/**", "requirements.lock", "pyproject.toml" ]
500,000
26
37
[ "cheat_no_repair.diff", "cheat_no_self_cancel.diff", "cheat_stamp_cascade.diff", "cheat_tail_repair.diff", "cheat_unwind_only.diff" ]
0.80*hidden_pass_fraction + 0.15*public_regression + 0.05*build_health
pdl_swe_store_snapshot_004-v1
pdl_swe_store_snapshot_004
1
T3
record store with reporting layer
After a summary report is generated, the recent-activity feed goes wrong: entries come back ordered by severity instead of by when they were recorded, so the actual latest records are buried and old entries show up as recent activity. The report's own output is correct, and nothing wrote to the store afterwards — but e...
--- a/src/store.py +++ b/src/store.py @@ -13,7 +13,7 @@ class RecordStore: def all_records(self): """Return a snapshot of all records in insertion order.""" - return self._records + return list(self._records) def recent(self, n): """Return the n most recently added records,...
diff --git a/tests/hidden/test_hidden.py b/tests/hidden/test_hidden.py new file mode 100644 --- /dev/null +++ b/tests/hidden/test_hidden.py @@ -0,0 +1,50 @@ +"""Hidden evaluation tests. Never agent-visible (DEC-015). + +FAIL_TO_PASS: on the buggy fixture, all_records() hands out the store's +internal list, so the repor...
[ "tests/hidden/test_hidden.py::test_recent_unchanged_after_summarize", "tests/hidden/test_hidden.py::test_insertion_order_survives_reporting", "tests/hidden/test_hidden.py::test_snapshot_is_independent_of_the_store" ]
[ "tests/public/test_public.py::test_add_and_len", "tests/public/test_public.py::test_all_records_insertion_order", "tests/public/test_public.py::test_recent_returns_latest_in_insertion_order", "tests/public/test_public.py::test_filters_preserve_order", "tests/public/test_public.py::test_summarize_counts_and_...
[ { "content": "# Present so pytest adds the repository root to sys.path, making `import src`\n# resolve from the test suite.\n", "path": "conftest.py" }, { "content": "# Pure standard library unless the environment image pre-bakes wheels.\n", "path": "requirements.lock" }, { "content": ""...
[ "src/**" ]
[ "tests/**", "requirements.lock", "pyproject.toml" ]
250,000
3
6
[]
0.80*hidden_pass_fraction + 0.15*public_regression + 0.05*build_health
pdl_swe_sync_cursor_005-v1
pdl_swe_sync_cursor_005
1
T3
event-feed synchronization client (pagination cursors)
Our nightly sync of the event feed keeps coming up short: every so often the pull finishes normally but ends up a few events light, and a full re-pull from scratch finds the stragglers. It tends to happen on busy days when bursts of events land within the same second. Nothing errors and nothing is duplicated — the sync...
--- a/src/client.py +++ b/src/client.py @@ -5,9 +5,11 @@ def sync(feed, page_size=50): """Retrieve every event from the feed exactly once, oldest first.""" events = [] after_ts = None + after_id = None while True: - batch = feed.fetch(after_ts=after_ts, limit=page_size) + batch = fe...
diff --git a/tests/hidden/test_hidden.py b/tests/hidden/test_hidden.py new file mode 100644 --- /dev/null +++ b/tests/hidden/test_hidden.py @@ -0,0 +1,48 @@ +"""Hidden evaluation tests. Never agent-visible (DEC-015). + +FAIL_TO_PASS: the client's resume cursor carries only the timestamp, so +events sharing a timestamp ...
[ "tests/hidden/test_hidden.py::test_ties_straddling_a_page_boundary_are_delivered", "tests/hidden/test_hidden.py::test_dense_ties_are_delivered_exactly_once", "tests/hidden/test_hidden.py::test_single_event_pages_survive_ties" ]
[ "tests/public/test_public.py::test_fetch_orders_by_ts_then_id_and_respects_limit", "tests/public/test_public.py::test_fetch_after_ts_is_strictly_greater", "tests/public/test_public.py::test_fetch_after_id_resumes_within_a_timestamp", "tests/public/test_public.py::test_sync_drains_multiple_pages", "tests/pub...
[ { "content": "# Present so pytest adds the repository root to sys.path, making `import src`\n# resolve from the test suite.\n", "path": "conftest.py" }, { "content": "# Pure standard library unless the environment image pre-bakes wheels.\n", "path": "requirements.lock" }, { "content": ""...
[ "src/**" ]
[ "tests/**", "requirements.lock", "pyproject.toml" ]
250,000
3
6
[]
0.80*hidden_pass_fraction + 0.15*public_regression + 0.05*build_health
pdl_swe_undo_fence_011-v1
pdl_swe_undo_fence_011
1
T3
text-editor undo/redo transaction engine
Canceling a compound operation corrupts redo. Two reports of the same incident class: (1) after canceling an operation, Redo lights up, and pressing it re-applies the very changes that were just canceled — edits that were never committed anywhere; (2) a user who had undone some typing, then opened and canceled a compou...
--- a/src/history.py +++ b/src/history.py @@ -53,6 +53,19 @@ class History: self._undo.append(group) self._open = False + def snapshot_redo(self): + """A copy of the redo stack, for restore-exactly rollback.""" + return list(self._redo) + + def restore_redo(self, groups): + ...
diff --git a/tests/hidden/test_hidden.py b/tests/hidden/test_hidden.py new file mode 100644 --- /dev/null +++ b/tests/hidden/test_hidden.py @@ -0,0 +1,84 @@ +"""Hidden evaluation tests. Never agent-visible (DEC-015). + +FAIL_TO_PASS: rollback is implemented by replaying the normal undo path, so +every unwound operation...
[ "tests/hidden/test_hidden.py::test_canceled_changes_are_not_redoable", "tests/hidden/test_hidden.py::test_cancel_preserves_prior_redo", "tests/hidden/test_hidden.py::test_multi_step_cancel_leaves_no_ghosts", "tests/hidden/test_hidden.py::test_full_redo_stack_survives_cancel_in_order", "tests/hidden/test_hid...
[ "tests/public/test_public.py::test_buffer_edits_and_validation", "tests/public/test_public.py::test_typing_run_coalesces_into_one_undo", "tests/public/test_public.py::test_non_continuing_inserts_are_separate_steps", "tests/public/test_public.py::test_undo_redo_round_trip_and_redo_clears_on_edit", "tests/pub...
[ { "content": "# Present so pytest adds the repository root to sys.path, making `import src`\n# resolve from the test suite.\n", "path": "conftest.py" }, { "content": "# Pure standard library unless the environment image pre-bakes wheels.\n", "path": "requirements.lock" }, { "content": ""...
[ "src/**" ]
[ "tests/**", "requirements.lock", "pyproject.toml" ]
250,000
5
8
[ "cheat.diff" ]
0.80*hidden_pass_fraction + 0.15*public_regression + 0.05*build_health