fix(infra): diagnose and resolve the facade regeneration timeout

Merged
MA
6d ago
+729-50

Versioned status and continuation handoff

Current continuation: PR #2950. This source PR is already merged into 0.12.0-dev at 046fcaae035ede5bc03bd573db66a2223b338084, after incorporating #2949 through normal merge history. Its former branch was removed. Those concurrent lifecycle changes do not establish completion of the remaining runtime acceptance.

The operator-requested Markdown was first published here at a8a01fef8c6575f894b6dad761549c59d32376ae and preserved in the integration. Historical version 1.0. Its CI 46418470593 was cancelled after the concurrent branch advance; setup and PRIMARY had passed, but it has no completed test receipt.

The reconciled document and copy-ready continuation prompt are maintained in #2950. The observed version 1.3 is flext-wip-status-2026-11-30.md at b47fca70, by Marlon Costa marlon.costa@datacosmos.com.br, Datacosmos, dated 2026-11-30. Consult that PR's current HEAD and exact-SHA checks before continuing.

The integrated baseline's CI 46419308271 passed 2,655 tests, while temporary diagnostics and installed Rope dc.9 remain. The prior synchronized head's CI 46418971776 failed on the family-flatten two-second timeout. Integrated Sonar, supplier adoption, COMPLETE/FULL, harness and final installed-consumer acceptance remain separately open.

Overall runtime delivery remains IN PROGRESS. Preserve the source merges, all WIP and the revision-bound receipts; continue forward through the existing lane. Native Beads/OpenViking and unpublished local work remain unverified.

Reviewed existing supplier delivery and unchanged consumer boundary

Revision 2026-11-30.13 — IN PROGRESS. Author: Marlon Costa marlon.costa@datacosmos.com.br, Datacosmos.

The current Rope integration dc-use@9b7bba95d2cc45e89521c7bf688617a866bb4f55 was independently read back and reviewed against the consumer's installed 5cc941b0. This session did not recreate or claim authorship of the existing #70/#71 merges. The complete comparison contains two production-file changes plus tests, documentation and version metadata.

The native correction keeps requires_header_bindings() and function-scope preparation intact. Bodies containing assignment expressions, including nested headers and comprehensions, retain eager discovery. Future-annotation modules with assignment expressions retain their original ordering. The public index still completes every body; direct construction remains complete. No Infra marker shortcut, altered C3, private provider, hardcoded model fields or duplicate cache is required by this reviewed change.

Exact supplier merge CI verifies the installed 1.15.2+dc.10 wheel outside its checkout: 53 contracts passed, then 3,520 tests passed, 55 skipped, 267 subtests. Eleven checks succeeded. This is not a claim of an entirely warning-free supplier toolchain: the native log also emits two upstream pre-commit hook-stage deprecation notices. No warning was suppressed or recategorized. It is also not proof of consumer speedup.

Consumer CI 46361958505 still installs 1.15.2+dc.9/5cc941b0; its 2,655 passing tests qualify the diagnostic only. Fresh readback confirms the original regression blob 07ad2b8df8f181e1a033b940765ee8069a1c0869, unchanged two-second budget, branch head 0a345aa8 and integration base 043a52a0. No source change is inferred from a passing run.

The exact authored pin proposal and native propagation boundary remain in the following section. Root inspection confirms the active Make template selects approval mode for GitHub Actions and explicitly rejects upgrade goals. Ordinary CI consumes committed locks. The available GitHub connector exposes no native command execution or workflow dispatch. A new maintenance execution contract is an operator decision, not an implicit environment override.

No diagnostic merge or Bead closure is authorized by these receipts. Native propagation, installed-consumer measurement, diagnostic retirement and post-merge validation remain open.

Supplier qualified; native consumer adoption remains open

Revision 2026-11-30.12 — IN PROGRESS. Author: Marlon Costa marlon.costa@datacosmos.com.br, Datacosmos. Work in this session uses only the GitHub connector and CI feedback.

Completed supplier evidence

Rope #70 integrated its native source change at e54cd0fe. Rope #71 corrected the invalid cumulative-profile attribution and integrated at 9b7bba95d2cc45e89521c7bf688617a866bb4f55. Its parents are e54cd0fe + 499cfa27, tree d0f0462d4efeb697a86ce6a0d5314025a5b68ba9; remote dc-use, ancestry and unchanged implementation were verified.

Exact-merge CI46361578798/job141657708667 authenticated this SHA and ran native setup/check/build/test. The built rope1.15.2+dc.10 was installed outside the checkout: 53 installed-package contracts / 0.39s, 3520 tests / 55 skips / 267 subtests / 60.16s. All 11 merge checks passed, including nine Python/platform combinations and Black. This is supplier proof, not Infra adoption or performance proof.

The #71 delivery branch remains at the integrated 499cfa27 and is eligible for cleanup. This connector exposes no branch-ref deletion or native ai-hub wip clean; no deletion is claimed.

Latest consumer receipt

The concurrent 0a345aa88c47a5ac6d4850421203632cf188eeab advances db355308 with temporary strict source-member spans only. Review confirms it preserves preparation, receiver election, complete C3, declaration order, first errors and returned binding. CI46361958505/job141658898679 passed setup, PRIMARY and 2655 tests / 154.20s, warnings0. Preview c9ef8211534523f2e56d1eb2e5d6f5caeb8a4bb9 has parents 043a52a0 + 0a345aa8 and identical tree 9a37f950d6224a1e9297643fa9f7f7f487cd0f37. COMPLETE/FULL were skipped.

The original facade case reports planning1.130s, first TypedDict query0.681s and ModelType binding0.341s. Within that binding: preparation0.004s, receiver0.029s, strict lineage0.273s, declaration election0.035s; normalization0.036s. These are inclusive wall intervals, with nested scopes and logging overhead. They identify measured operations but do not establish redundant work or a completed repair. The install log still explicitly selects rope1.15.2+dc.9 at 5cc941b0.

Concrete catalogue change prepared, not applied

The authorial owner is src/flext_infra/config/codegen.yaml:327–337, blob 4841ceb58b35bac1ce189c691da410e259ae4e6c. The reviewed proposal is:

       uv_override_dependencies:
-      - rope @ git+https://github.com/marlon-costa-dc/rope.git@5cc941b033d49ad710115dd4b2faa352c50b2b7d
+      - rope @ git+https://github.com/marlon-costa-dc/rope.git@9b7bba95d2cc45e89521c7bf688617a866bb4f55

A lone catalogue commit would leave generated distribution metadata and uv.lock selecting 5cc941b0/dc.9. WIP commits are allowed; preserving this as a proposal avoids that concrete inconsistency while the next writer cannot be run. No rule forbidding all intermediate WIP commits is being invented.

The admitted continuation is catalogue election → native generation/check → make upg → make setup → original consumer tests and installed-producer proof. AGENTS.md:183–198 assigns those effects to native writers and forbids manual synchronization. execution-context.md:4069–4075 requires the new supplier to be installed before its consumer receipt.

Admitted execution surface is missing

The authored Makefile.j2:135–150 makes GitHub Actions an approval context and rejects upg and internal upgrade goals. CI:142–166 installs committed locks and never resolves. None of the current workflows/post-steps provides generation-and-upgrade publication. Available connector operations cannot execute a command or dispatch a new workflow; rerun repeats the declared job.

The required next output is the coherent catalogue, generated metadata and native lock on this same PR, produced by the existing writers. An admitted native maintenance execution must provide it. Preserving the connector/CI-only constraint would require an explicit operator decision before adding a maintenance route and changing this execution contract. The ordinary frozen approval, source-owned generation, exact-head publication and later installed-consumer proof must remain.

No architecture/rule change, environment-flag bypass, hand-built lock or manual projection was made. The supplier route is blocked at execution; remaining read-only owner investigation is viable but has not yet proved an additional Infra algorithm defect. The original timeout, diagnostic removal, final merge/runtime receipt, FULL when required, native Beads/OpenViking and unpublished local WIP remain open. Do not merge the temporary diagnostics as a repair or close the Bead.

supplier | native make lifecycle + platform matrix | Rope dc-use/isolated wheel | 0 | 11 merge checks green;53 installed contracts;3520 tests | 46361578798/141657708667/9b7bba95 | FORK-TRACKING.md:66-98
consumer | make setup/check PRIMARY/tests | flext-sh/flext-infra | 0 | 2655passed;old supplierdc.9;diagnostic only;FULL skipped | 46361958505/141658898679/0a345aa8 | source_bases_runtime.py:192-231;AGENTS.md:183-198
adopt | catalogue election + native generation/upg publication | existing PR2948 | blocked execution contract | one-line proposal prepared;no generated or lock edits | codegen blob4841ceb5 → supplier9b7bba95 | Makefile.j2:135-150;.github/workflows/ci.yml:142-166

Cold native lookups measured; repair still in progress

Revision 2026-11-30.10 — IN PROGRESS. Author: Marlon Costa marlon.costa@datacosmos.com.br, Datacosmos.

6f8c93db passed CI 46359981621 / job 141652727620: 2,655 passed in 121.46 s, zero warnings. Its target planning span was 0.945 s; first model-contract classification was 0.746 s and the second was 0.001 s.

db355308 separates that existing model path without changing its queries, cache epoch, public contract, lazy verdict or errors. CI 46360844450 / job 141655413594 passed setup, PRIMARY and 2,655 tests in 116.42 s. Required release-plan, Sonar PR and Semgrep checks succeeded. Cubic is neutral because its review quota is exhausted.

Target operationInclusive native wall span
Rewrites0.304 s
Initializer settlement0.002 s
Planning0.978 s
Initial TypedDict query, within planning0.562 s
Model resolver factory, within planning0.000 s rounded
Public p.ModelType binding, within planning0.318 s
Model contract members, within planning0.023 s
Model candidate attributes and verdict0.000 s rounded each
Rendering / normalization / final ordering0.007 / 0.029 / 0.009 s

These are diagnostic wall intervals, including start-output overhead and scheduling. Nested intervals must not be added to the planning total, and variation across runs is not a controlled speedup. No production optimization has yet been applied.

The public contract binding traverses the strict source-backed C3 of flext_core.p. The pinned Core publishes ModelType through an inherited provider; replacing this election with a tolerant native attribute lookup, a private provider reference or hardcoded member names would not preserve the current validation. The next repair investigation is unnecessary/repeated work in the native marker and source-member owners, preserving candidate-source and inheritance failures.

The original regression test remains byte-identical to integration (blob 07ad2b8), with its full public operation, assertions and two-second budget. All diagnostic spans and temporary -raP must be removed before final validation and merge. This green diagnostic is not ready to merge. COMPLETE/FULL, integrated Sonar findings, original Beads and unpublished local WIP are not qualified here.

Wall measurements narrowed the investigation to planning

Revision 2026-11-30.9 — IN PROGRESS. Author: Marlon Costa marlon.costa@datacosmos.com.br, Datacosmos.

7869330a removed two diagnostic-only Result temporaries, preserving both callbacks and all stages. CI 46359143395 / job 141650077816 then passed setup and PRIMARY, including lint and Pyrefly. The original regression still failed at two seconds: 1 failed, 900 passed in 47.93 s, zero runtime warnings.

The elapsed values embedded in captured native stage messages were:

StageCompleted wall span
Rewrites0.456 s
Initializer settlement0.002 s
Planning1.448 s
Rendering0.014 s
Normalization0.060 s
Final orderingStarted; interrupted, no completed duration

The traceback stopped during final ordering, while the source-view exit invalidated native Rope data. The time spent before that interruption was dominated by planning. These spans are independent of the rejected cProfile caller ranking and include the previously declared logging overhead. They do not yet identify a class-marker or model-contract repair.

6f8c93dbb38003e4f4707e218943a5fb8442f7bf, tree ce0b47a5d805794261c8f1c548a7557e3367cdc1, adds bounded temporary wall spans to the existing classification blocks: native bases, TypedDict queries, strict C3 ancestry, Enum queries, direct Protocol queries and the structural model contract. Removing only this diagnostic code recovers the prior classifier literally. All SDK queries, object-identity comparisons, lazy any() evaluation and failure propagation remain. There is no new filter, cache or semantic shortcut.

The original test remains blob 07ad2b8; no timeout, population, worker, workflow or generated file changed. CI on this exact diagnostic head is pending. Do not merge this checkpoint. Remove all spans and temporary -raP, then qualify the actual production repair and integration SHA.

Earlier checkpoints below remain revision-specific.

Native wall stages — diagnostic only, not ready to merge

Revision 2026-11-30.9 — IN PROGRESS. Author: Marlon Costa marlon.costa@datacosmos.com.br, Datacosmos.

Concurrent forward commit 7869330a071e8a57173ecf7296919f87db6b2941 was reviewed and retained. Its only change is facade_components.py +6/-6: the existing rendered Result carries both unchanged flat_map operations, reducing assignment locals from 16 to 14. Callbacks, arguments, order, short-circuiting, all six stage pairs, and the original test blob 07ad2b8df8f181e1a033b940765ee8069a1c0869 are preserved. No duplicate alternative commit was published.

The preceding run 46358595787 reported one lint finding without its raw diagnostic text. Ruff 0.17.5 source independently establishes PLR0914 at 16 locals > default 15; PLR0915 was refuted (40 statements < 50). This is source derivation, not a recovered CI message. Native rule, defaults.

CI 46359143395 / job 141650077816 ran preview 76f395b0ff18794d2ce002b2956447e3a4cba9e8, parents 043a52a0 + 7869330a, with tree 201be6749a7bbe6e8eaf0b9f9e866533b87efdfb identical to the head. Setup and PRIMARY passed (lint 0 / Pyrefly 0). The unchanged selection was 2,655 items, three workers, a two-second call-only deadline, and testmon selection disabled. Tests ended 1 failed, 900 passed in 47.93 s, warnings=0. COMPLETE/FULL were skipped.

The captured stdout of test_removed_provider_leaves_the_regenerated_facade (job lines 2375–2385) reports inclusive wall durations: rewrites 0.456 s, initializers 0.002 s, planning 1.448 s, rendering 0.014 s, normalization 0.060 s, all success=True. Final ordering has input_success=True and a start but no end. The timeout interrupted exit from its candidate source view while Rope invalidated concluded module data (lines 2337–2370). This is the interrupted operation, not proof that final ordering dominated total latency. Planning is the largest completed measured interval and is the next causal scope to inspect. No duration is inferred from capture-delivery timestamps or from the earlier crossed cProfile caller graph.

The unchanged init case passed at 1.84 s in this run; that does not close its earlier timeout. Gate-receipts artifact 15349592186 and reports artifact 15349038268 were enumerated, not unpacked.

The six spans came from 46386674, using the existing time.monotonic() + u.Cli.info owner pattern (codegen/_conform/plan.py:1160–1171, existing_plan.py:1788–1815). These intervals include synchronous start-output cost and scheduling. A start without an end is incomplete evidence; flat_map input_success=False would not prove callback execution. No classifier, MRO, marker, contract, cache, worker, selector, timeout, workflow or generated file has been changed as a performance repair.

Temporary spans and -raP must be removed before final ordinary validation and merge. The unpublished alternative diagnostic object 78e964ae is superseded by the preserved concurrent instrumentation and was never attached to a branch or CI. No FULL qualification, Bead closure, final public-runtime proof or unpublished local-WIP validation is claimed.

reconcile | connector compare 46386674...7869330a | flext-sh/flext-infra | 0 | one authored file; same callbacks; 14 locals | 7869330a071e8a57173ecf7296919f87db6b2941 | src/flext_infra/_utilities/facade_components.py:765-795
validate | canonical make setup / check PRIMARY / tests | flext-sh/flext-infra | tests=2 | setup and PRIMARY green; 1 failed, 900 passed; original 2s budget | run46359143395/job141650077816; preview76f395b0; tree201be674 | src/flext_infra/_utilities/facade_components.py:689-795
measure | captured native wall stages | flext-sh/flext-infra | incomplete | planning1.448s; rewrites0.456s; normalization0.060s; ordering interrupted | run46359143395/job141650077816:2375-2385; head7869330a | src/flext_infra/_utilities/facade_components.py:1080-1247

Earlier checkpoints below are revision-specific.

Profiler documentation reconciled with the installed owner

Revision 2026-11-30.7 — IN PROGRESS. Author: Marlon Costa marlon.costa@datacosmos.com.br, Datacosmos.

Commit 8ef9d981865b1827069bfe1b02bade9e5603c231 changes only the authored docs/guides/execution-context.md. It removes the retired callback/thread-gating description, describes native interpreter capture and publishing-thread ownership, and preserves immutable receipts, original failures, qualified measurement and supplier-adoption requirements. The current testing.md is a generated projection and was not manually edited; its historical wording in 68e62cb is history, not current-source evidence.

Tree 6a7cebd263c8b1537223d6e3cf944e778ef94c39 was compared against parent 242d976924cce22288280a71f7d0e1619267e768: one changed path, all 3,295 leaves retained. No productive code, test, timeout, workflow, config, lock, rule or ADR changed. The temporary diagnostic remains present and this head must not be merged as a timeout fix.

The capture in CI 46356201714/job141640755907 shows the interrupted stack, but its crossed caller graph does not qualify the cumulative ranking. No optimization of Rope or Ruff has been published from it. The apparent Rope eager-index cost is a source hypothesis pending valid measurement. CI 46358046368/job141646641870 completed with failure on the exact preview cd98aa83856ee18756799adeefc43e5507614550, parents 043a52a0 + 8ef9d981, and identical tree 6a7cebd263c8b1537223d6e3cf944e778ef94c39. Setup and PRIMARY passed: lint=0, Pyrefly=0. The unchanged selection was 2,655 items / three workers / two-second call budget. The first failure was the already-open test_init_command timeout while the authenticated Makefile renderer was inside Jinja template compilation (log 1926–1985). The run stopped with 1 failed, 650 passed in 42.11 s, warnings=0, suite timed_out=False; the facade-removal case was not reached, so this run provides no new operation profile. The interruption point does not establish the dominant cost.

Release-plan 46358125809/job141646922527 passed (bump=none, current/next 0.12.3, releasable=False). Sonar PR and Semgrep checks passed; cubic returned neutral after exhausting its review allowance and is not an independent code-review receipt. COMPLETE/FULL and post-merge runtime proof remain missing.

The existing measurement transports all use the same native clock. No valid alternative causal cProfile route has been established through this connector and unchanged runtime. Native monotonic/perf-counter intervals already exist in the codebase and can provide supplementary inclusive latency; treating them as a replacement for the canonical causal-profile requirement would require an operator decision under flext/AGENTS.md:92–94, docs/standards/performance-profiling.md:20–31, and law 1. The timeout repair remains IN PROGRESS.

reconcile | native source/history and documentation review | flext-sh/flext-infra | 0 | removed descriptions of retired callback gates; retained evidence requirements | 68e62cb / 242d9769 | src/flext_infra/_pytest/clock.py:63-73,189-194,427-434
publish | connector blob/tree/forward commit and compare-and-set ref | flext-sh/flext-infra | success | one authored doc path; 3295 tree leaves preserved | 8ef9d981865b1827069bfe1b02bade9e5603c231 | AGENTS.md:275-304
validate | canonical CI on exact new head | flext-sh/flext-infra | 2 | PRIMARY green; test_init_command timeout; 1 failed/650 passed | 46358046368/141646641870/cd98aa83856ee18756799adeefc43e5507614550 | log:485,490,1926-1985,3185

Bead identity and unpublished local WIP remain unverified. Earlier checkpoints below are revision-specific.

Visible native capture — causal attribution remains open

Revision 2026-11-30.5 — IN PROGRESS. Author: Marlon Costa marlon.costa@datacosmos.com.br, Datacosmos.

CI 46356201714 / job 141640755907, attempt 1, tested preview 61cfced56e4125f14e1784e91946dc0dc51ee582, parents 043a52a0 + 242d9769, tree 0edeab2ac87554e02fe1e5e7fd6f7e7f5d22a784. Setup and PRIMARY passed; lint and Pyrefly reported zero findings. Native selection remained 2,655 items / three workers / 2 s call deadline. The result was 1 failed, 900 passed in 48.11 s, with zero runtime warnings; COMPLETE and FULL were skipped.

The diagnostic presentation now works through captured stderr teardown. Log 2456–2758 renders the exact immutable capture route-49ff338793c448718f756ccb59d6f830.pstats; the native report states SHA-256 f68821b406d65f0ac30a885df9e3fd4682f076a379c9c2cf6269bb5fc6abc135. This digest was read from the native report, not independently recomputed from a downloaded raw file. The operation itself timed out within facade classification before reaching normalization in this run. partial=False describes the final snapshot, not successful operation completion.

The printed ranking is not qualified causal timing. The report crosses unrelated stacks: Rope _visit is attributed to queue.get / threading.wait (log 2566–2567), and queue.get to Rope _visit_node (2707). The job also shows a distinct async-log-writer thread (2428–2440). CPython 3.13.18 uses one currentProfilerContext per native profiler and interpreter-level monitoring callbacks: _lsprof.c:47–57,776–794, instrumentation.c:944–959. The Infra publisher ID does not filter captured events. Two independent read-only reviews confirmed this limitation. Neither lambda 2/1 nor zero-count caller entries alone proves duplicate execution or corruption.

The source history matters: 68e62cb, integrated through #2258, deliberately removed monitoring wrappers and changed the report and testing guide to native interpreter scope. The retained execution-context.md:4020–4068 still describes the older thread-gated design. Do not silently restore the retired gate or optimize Rope/Ruff from the crossed caller costs. Current work is reconciling the authority and any already-supported measurement route without altering productive behavior.

Artifacts were enumerated, not unpacked: gate receipts 15348502886 / SHA-256 9bb6dbd17f960a0144883aec600b994c2b1b00279d324dcee4cec256431d81b0; reports 15347944148 / SHA-256 df08b2b5c47059a6c780dc22a67608bdf04961e586f93373b2ed67f2fdfece37.

observe | canonical CI on deferred native report | flext-sh/flext-infra | 2 | PRIMARY green; 1 failed/900 passed; teardown report visible | 46356201714/141640755907/242d976924cce22288280a71f7d0e1619267e768 | tests/unit/codegen/test_facade_provider_removal.py:44-74
qualify | inspect native profile and exact CPython sources | flext-sh/flext-infra | attribution rejected | interpreter-wide caller crossings; publisher identity is not isolation | profile:f68821b406d65f0ac30a885df9e3fd4682f076a379c9c2cf6269bb5fc6abc135 | src/flext_infra/_pytest/clock.py:63-73; CPython3.13.18 Modules/_lsprof.c:47-57
reconcile | source history and current measurement authorities | flext-sh/flext-infra | in progress | deliberate gate retirement preserved; no speculative production repair | 68e62cb16ffa9ea5db3ed74a8eba1dadb2d7a4f8 / 242d976924cce22288280a71f7d0e1619267e768 | AGENTS.md:275-304; docs/guides/execution-context.md:4073-4080

All diagnostic code remains temporary. No merge, timeout repair, Bead closure, FULL qualification or unpublished-local-WIP validation is claimed. Earlier checkpoints below remain revision-specific.

Native report lifecycle — diagnostic only, not ready to merge

Revision 2026-11-30.4 — IN PROGRESS. Author: Marlon Costa marlon.costa@datacosmos.com.br, Datacosmos.

CI 46355590513 / job 141638812920 checked preview cc94962ccdc946826f7da05e6805280f8facb784 (parents 043a52a0 + 99f50a34; tree b1e5ae781d7eac5ad24ffaef15465987eea575f6). Setup and PRIMARY passed, with zero lint/Pyrefly findings. The runner selected 2,655 items / three workers / unchanged 2 s call deadline; it stopped with 1 failed, 906 passed in 37.15 s, zero runtime warnings.

The timed case published an immutable capture (route-25196ab8a7ae421fb1e910ba7f9cdd41.pstats, partial=False, log 2401). The timeout then interrupted the diagnostic presentation at report_capture -> pstats.Stats -> marshal.load (log 2346–2369), before any costs table was printed. This evidence does not identify the facade hotspot. The artifact ZIP has not been inspected.

242d976924cce22288280a71f7d0e1619267e768 changes one authored test path, +18/-1. The existing callback now records the exact immutable Path in a function-scoped typed fixture list. Its finally calls the same public CProfileReport.report_capture during teardown. The public operation, native capture publication (including its own native summary), result check, syntax parsing and both provider assertions remain inside the original timed call. The checkout fixture is byte-identical. Pytest 9.2.0's existing -raP route prints teardown capture for passed and failed cases.

A report failure now appears as a separate teardown error instead of participating in the operation callback's first-failure handling. It is not suppressed and cannot establish a green delivery. Teardown remains within the suite budget. These diagnostic durations are not directly comparable to the previous call that included report presentation.

Two independent read-only reviews confirmed the callback and pytest lifecycle contracts. No production normalization behavior, timeout, capture mode, population selector, worker count, workflow or generated file was changed. Remove this fixture, the profiling wrapper and the temporary report flag before final ordinary validation and merge. Native Bead identity/closure and unpublished local WIP remain unverified.

observe | canonical CI on report-visible diagnostic | flext-sh/flext-infra | 2 | PRIMARY green; 1 failed/906 passed; report loading exceeded call budget | 46355590513/141638812920/99f50a34 | src/flext_infra/validate/cprofile_report.py:51-71
separate | GitHub forward commit and compare-and-set ref | flext-sh/flext-infra | success | one test path; immutable-path callback; native report in teardown | 242d976924cce22288280a71f7d0e1619267e768 | src/flext_infra/_pytest/clock.py:181-234; pytest9.2 terminal.py:1180-1219
measure | canonical CI on this diagnostic head | flext-sh/flext-infra | pending | require actual costs/callers before selecting production repair | 242d976924cce22288280a71f7d0e1619267e768 | docs/guides/execution-context.md:4073-4080

Earlier checkpoints below remain revision-specific.

Native profile visibility — diagnostic only, not ready to merge

Revision 2026-11-30.3 — IN PROGRESS. Author: Marlon Costa marlon.costa@datacosmos.com.br, Datacosmos.

50bcc884 passed CI 46354456669 / job 141635187429: lint and Pyrefly were clean, 2,655 tests passed in 119.18 s, and runtime warnings were zero. The profiled case passed at 2.00 s rounded, but no cProfile table appeared in the log. Success artifacts did not contain the operation profile.

99f50a34a5181d25cbe2b91cb705c2f6a95a43fc changes only the authored src/flext_infra/config/tooling.yaml:535 report option from -ra to -raP. Native pytest reports captured output from passed cases; xdist transfers the ordinary test reports to the controller. Capture remains enabled, and no test result, selection, worker, timeout or assertion is changed.

The typed runner reads this YAML directly in validate/_pytest_runner/command.py:565–581. The generated Makefile's declared report variable is not consumed by that tests recipe; no generated file is manually edited. This option is temporary: the final production-repair commit must retire it together with the test instrumentation, leaving the original reporting declaration and test body intact. Do not merge a diagnostic head.

The required profile must expose actual cumulative costs and call counts before choosing the production optimization, per flext/AGENTS.md:92–94 and docs/standards/performance-profiling.md:20–23,31. The subsequent uninstrumented CI and resulting merge SHA must prove the repair under the unchanged budget.

qualify | canonical CI on typed diagnostic | flext-sh/flext-infra | 0 | 2655 passed; zero warnings; profile table not exposed | 46354456669/141635187429/50bcc88441867476465aa11e3eafa6915d2980a5 | src/flext_infra/_pytest/clock.py:181-187
expose | GitHub single-owner config commit and compare-and-set ref | flext-sh/flext-infra | success | -raP adds passed captures; execution policies preserved | 99f50a34a5181d25cbe2b91cb705c2f6a95a43fc | src/flext_infra/config/tooling.yaml:535
measure | canonical CI and native cProfile report | flext-sh/flext-infra | pending | read actual hotspots before production change | 99f50a34a5181d25cbe2b91cb705c2f6a95a43fc | flext/AGENTS.md:92-94

Earlier descriptions below are revision-specific checkpoints.

Diagnostic boundary correction — exact-head validation pending

Revision 2026-11-30.2 — IN PROGRESS. Author: Marlon Costa marlon.costa@datacosmos.com.br, Datacosmos.

The original diagnostic 8bc5e6de stopped in PRIMARY: CI 46353736443 / job 141632886194 reports one lint and one Pyrefly finding. Tests and profiling never ran. Logs identify the raw-report artifact but do not include the individual messages; no unsupported attribution of those messages is made.

50bcc88441867476465aa11e3eafa6915d2980a5 fixes two concrete source-contract violations in the temporary diagnostic:

  • Uses the existing public FlextInfraFlextInfraPytest facade, already re-exported by tests, instead of importing the private _pytest package across the package boundary.
  • Supplies a named p.Result[str] -> bool predicate to the profiler's generic callable boundary, following the documented strict-typing correction in docs/guides/codemod-rules.md:233–238.

Only tests/unit/codegen/test_facade_provider_removal.py changed. The native profiler, output setting, report callback, public action, fixture, assertions and two-second budget are preserved. This is still a diagnostic checkpoint, not a completed runtime repair.

failure | make check CHECK_PHASE=primary via CI | flext-sh/flext-infra | 2 | lint=1; pyrefly=1; tests not reached | 46353736443/141632886194/8bc5e6dede984f4422adcdb89de5de00f5851828 | .github/workflows/ci.yml:148
correct | GitHub blob/tree/commit and compare-and-set branch update | flext-sh/flext-infra | success | one test path; public facade; typed predicate | 50bcc88441867476465aa11e3eafa6915d2980a5 | src/flext_infra/pytest.py:17-23; docs/guides/codemod-rules.md:233-238
validate | canonical CI on corrected diagnostic | flext-sh/flext-infra | pending | require actual profile evidence, then production repair and uninstrumented validation | 50bcc88441867476465aa11e3eafa6915d2980a5 | src/flext_infra/_pytest/clock.py:181-187

The original diagnostic scope and completion criteria below remain in force.

Failure and purpose

The current integration commit 043a52a0 failed its ordinary CI: 1 failed, 885 passed in 50.39 s. test_removed_provider_leaves_the_regenerated_facade exceeded the existing two-second call budget inside source normalization. The same case failed in the preceding Release candidate.

The fixture already prepares its real checkout and Rope workspace. The timed body contains one public regeneration operation, syntax parsing and the two provider assertions. Moving the operation outside that budget would not repair its cause. The interruption in the third Ruff pass identifies the active call, not the cumulative cost.

Current checkpoint — diagnostic, not ready to merge

Commit 8bc5e6de, based on 043a52a0, changes one authored test file, +9/-2. It wraps the unchanged public action with the existing native FlextInfraPytestClock.profile_operation, reuses the profile destination declared by Make, and invokes the existing bounded CProfileReport.report_capture callback.

The real fixture, existing assertions, capture policy, three-worker population and two-second deadline remain unchanged. Profiling and finalization are themselves inside the call budget, so the resulting timings are diagnostic evidence, not acceptance of ordinary runtime. The owner preserves the original operation result or first failure and publishes an immutable capture in finally.

The normal pytest capture will expose the report for a failing item. A passing item may leave it only in artifacts. No capture override, forced failure, timeout relaxation, manual generated-file edit, workflow change or unchanged-head rerun is introduced.

Completion criteria

Use the existing canonical CI on this head to obtain causal evidence; repair the responsible source owner while preserving the complete normalization contract; remove this temporary instrumentation in a forward commit; then validate the default action and the resulting integration SHA through CI and Release. Do not merge this diagnostic checkpoint as a completed timeout repair.

The separately observed codegen init timeout, COMPLETE/FULL qualification and integrated Sonar findings remain open. This PR does not close Beads or claim verification of unpublished local WIP.

Revision 2026-11-30.1 · Author: Marlon Costa marlon.costa@datacosmos.com.br · Datacosmos.


Summary by cubic

Adds stage-level timing to diagnose the test_removed_provider_leaves_the_regenerated_facade timeout, replacing the earlier cProfile diagnostic whose interpreter-wide caller graph crossed unrelated threads and could not qualify a hotspot.

  • Times the six facade regeneration stages in facade_components.py with time.monotonic spans logged via u.Cli.info; planning dominated at 1.448s and final ordering was interrupted.
  • Delimits the class-kind classification blocks inside planning in facade_members.py, and times native preparation, receiver resolution, C3 linearization, and declaration election in source_bases_runtime.py.
  • Removes the temporary cProfile wrapper and teardown fixture, restoring the original test body, assertions, worker population, and two-second deadline.
  • Reuses the single rendered result across the two flat_map callbacks to stay under the PLR0914 local-name limit.
  • Keeps pytest's -raP report option temporarily so stage timing appears in CI output.
  • Adds docs/guides/flext-wip-status-2026-11-30.md, a revision-bound handoff recording supplier, consumer, and cross-repository evidence and the next acceptance step.
  • Reconciles execution-context.md to drop the retired thread-gating description; native capture ownership does not establish thread isolation.

Instrumentation and documentation only, not a timeout repair; remove the spans and report option after the cause is fixed.