diff --git a/doc/agile/versions/v0/sprint_01/surface_the_open_blame_reports/evidence/blame_analysis_sprint_31.org b/doc/agile/versions/v0/sprint_01/surface_the_open_blame_reports/evidence/blame_analysis_sprint_31.org new file mode 100644 index 00000000..73e20115 --- /dev/null +++ b/doc/agile/versions/v0/sprint_01/surface_the_open_blame_reports/evidence/blame_analysis_sprint_31.org @@ -0,0 +1,128 @@ +:PROPERTIES: +:ID: 4FF7664A-B0A7-4EB8-96D8-3FAB6EAE7692 +:END: +#+title: The blame folder of sprint 31, read for recurring breaks +#+description: The 15 blame reports ORE Studio filed in sprint 31, the kinds of break they record, and the checks that would have caught each kind before main. +#+type: investigation +#+level: s1 +#+filetags: :blame:investigation:sprint_01:v0: +#+created: 2026-12-04 +#+updated: 2026-12-04 + +* Context + +The product owner asked for "analysis of the blame folder at points during +the sprint and see if there is a way to do some proactive checks to avoid +those breaks". The folder is ORE Studio's sprint 31 in +=ores_dev_merry_newton=: 15 reports holding 17 breaks, since +=brave_hopper= carries three. + +* Methodology + +Every report under =doc/agile/versions/v0/sprint_31/blame/= was read on +2026-12-04. Each row states what the report itself states: the break, the +owner it names, the check that failed and the commit or pull request. The +kind is ours, assigned from the failure rather than from the report's prose. +The checks named as existing were read in this repository. + +* Paths taken + +** The breaks + +| Report | Break | Owner | Failing check | Kind | +|--------+-------+-------+---------------+------| +| =a-publish-notice-opens-the-act= | The notice links the act; the suite asserts the old record route | solid_dirac | =ores.marketdata.service.tests= | Stale test on old behaviour | +| =brave_hopper= (1 of 3) | =response= gained =headers=, so three-value brace-initialised callers stop compiling | brave_hopper | build | Type shape change, callers not migrated | +| =brave_hopper= (2 of 3) | Five transport cases needing an answer fail on the same member shift | brave_hopper | ctest, =ores.http.client.tests= | Type layout change | +| =brave_hopper= (3 of 3) | Three request subjects never reply | brave_hopper | subject-coverage | Gate did not know a missing responder | +| =jolly_knuth= | Two new reporting routes absent from the answer-shape corpus | jolly_knuth | answer-shapes | Corpus out of sync with the routes | +| =the-ingest-bursts-fail-when-the-machine-is-loaded= | Two cases assume an idle machine | bright_faraday | ctest, =ores.marketdata.service.tests= | Load-dependent test | +| =the-memcheck-leg-reports-112-entries-not-its-cases= | The split reads =Test.xml=, which =ctest_memcheck= never writes | eager_maxwell | CDash memcheck split | CI reporting harness | +| =the-provider-validation-rejects-derived= | The validation rejects =derived=; the fixture writes the retired provider | clever_dijkstra | =ores.marketdata.service.tests= | Stale fixture on retired data | +| =the-publications-screen-is-untranslated-and-outside-the-menu= | A new screen has no i18n keys and its permission is absent from the menu | solid_dirac | web shell tests | Registration omitted | +| =the-readiness-pair-is-not-in-the-answered-corpus= | The run-readiness route is absent from the corpus | jolly_knuth | answer-shapes | Corpus out of sync | +| =the-schema-gate-refuses-two-new-scheduler-tables= | Two tables keyed =(id, sampled_at)= carry no tenant in the key | not stated | SQL schema validation | Schema tenant key | +| =the-surfaces-hold-reason-is-not-in-the-answered-corpus= | A new gateway member is absent from the corpus | bright_faraday | answer-shapes | Corpus out of sync | +| =the-surfaces-seeds-state-a-family-and-a-pattern-nothing-holds= | A seed family is unregistered, and a codec reads a =LIKE= wildcard as a name | bright_faraday | pgTAP identity-shape, =ores.marketdata.core.tests= | Registration omitted, codec false positive | +| =the-surface-writes-are-unclassified-for-agents= | Two new permission codes are in no withhold rule nor =agent_reviewed_writes= | bright_faraday | =ores.iam.core.tests= | Registration omitted | +| =the-synthetic-handler-aborts-inside-calibrate-class= | SIGABRT and a double free in =calibrate_class= under glibc | eager_maxwell | ctest, memcheck | Memory ownership | +| =the-valgrind-leg-reads-a-freed-term-history= | The test builds spans over destroyed temporaries; twelve invalid reads | bright_faraday | memcheck | Use after free in a test | +| =two-scheduler-subjects-answer-where-they-were-recorded-as-unserved= | Two subjects now answer but stay excused as unserved | solid_dirac | subject-coverage | Stale gate exception | + +* Conclusions + +** The recurring kinds + +** Corpus or registry out of sync with the code (5 breaks) + +Three answer-shape reports and two subject-coverage reports. Route +registration is already checked, by +=projects/compass.crosscheck/tests/codecs_route_inventory_tests.cpp= and +=projects/compass.http/tests/openapi_document_tests.cpp=, and subject +conformance by +=projects/compass.crosscheck/tests/codecs_subject_conformance_tests.cpp=. +What none does is compare a recorded answer shape, or re-check that an +exception still holds its premise, so a route added without its corpus entry +and an exception outliving its cause both pass. + +** A new artefact not registered in the list that enumerates it (3 breaks) + +A permission code missing from the withhold rules, a seeded family missing +from the registry, a screen missing its translations and its menu entry. Some +of each is checked today, by +=projects/compass.sql/tests/codecs_handler_permissions_tests.cpp=, +=projects/compass.crosscheck/tests/codecs_marketdata_identity_columns_tests.cpp= +and =projects/compass.web/packages/web/src/Shell.test.tsx=, but none asserts +the cardinality the break needed: every code classified, every family +registered, every card's keys present in all three languages and its +permission in the menu. + +** Stale test or fixture on retired behaviour (2 breaks) + +A suite asserting the old link, a fixture writing a retired provider. ctest +catches both once the tree builds; a referential check that every fixture +literal exists in the catalogue would catch them at check time, by extending +=codecs_registry_gates_tests.cpp=. + +** A type or API shape change whose callers were not migrated (2 breaks) + +Both in one report. Warnings as errors catches each caller as it builds; the +gap is only ordering, so no new check is proposed. + +** Memory safety (2 breaks) + +A double free in production code and a dangling span in a test, both found by +the memcheck leg after merge. The machinery exists +(=build/scripts/run_memcheck.sh=, =check_valgrind_suppressions.py=, +=CTest.cmake=); what is missing is a memcheck run over the touched targets +before a merge. + +** Schema tenant key, and the CI reporting harness (one each) + +A table keyed without its tenant, which =projects/compass.sql/src/codecs/rls_coverage.cpp= +checks in another form, and the memcheck split reading a file ctest does not +write, which nothing checks. + +* Recommendations + +** The checks worth building first + +1. *Answer-shape and exception completeness.* One rule in + =route_inventory.cpp=: every registered route has a corpus entry, compared + or skipped with a reason, and every exception still fails its premise. + Prevents four reports. One test beside the existing + =codecs_route_inventory_tests.cpp=. +2. *Registry coverage for new identifiers.* Extend + =codecs_handler_permissions_tests.cpp= so every seeded permission is + reviewed or withheld, and add one vitest over the web card list asserting + each title and lead key exists in en, fr and pt and each permission + appears in the menu. Prevents three reports. +3. *Tenant-first primary key.* A small codec mirroring =rls_coverage.cpp= + that fails a table whose =tenant_id= is not the first parsed + =primary_key= entry, with an ignore file for the ones that must differ. + Prevents one report. + +* See also + +- [[id:686B61EC-0AD8-4AEB-ADA7-1F9EAB504AC6][List the open blame reports]], the + task that makes the folder readable from a checkout. diff --git a/doc/agile/versions/v0/sprint_01/surface_the_open_blame_reports/story.org b/doc/agile/versions/v0/sprint_01/surface_the_open_blame_reports/story.org index 55abf41b..452b95ce 100644 --- a/doc/agile/versions/v0/sprint_01/surface_the_open_blame_reports/story.org +++ b/doc/agile/versions/v0/sprint_01/surface_the_open_blame_reports/story.org @@ -41,10 +41,10 @@ would have caught the breaks before they reached main. |---------------+----------------------------------------| | State | STARTED | | Parent sprint | [[id:850C1BC8-FE02-4EE0-A5D6-6085DC34CE27][Sprint 1]] | -| Now | =compass blames= lists the open reports and =check= and the git hooks show the current environment's; in review. | -| Waiting on | The pull request's review. | -| Next | ORE Studio applies the data patch in the first task's evidence once a compass release carries the command; then the analysis task. | -| Last touched | 2026-11-29 | +| Now | =compass blames=, =check= and the git hooks show the open reports, the current environment's first and marked; the folder is analysed and three checks are proposed. The service query and the environment naming remain. | +| Waiting on | Nothing. | +| Next | Serve the open reports over HTTP and MCP; unify the environment names. | +| Last touched | 2026-12-04 | * Acceptance @@ -66,8 +66,8 @@ would have caught the breaks before they reached main. | Task | State | Start | End | Description | |------+-------+-------+-----+-------------| -| [[id:686B61EC-0AD8-4AEB-ADA7-1F9EAB504AC6][List the open blame reports]] | STARTED | 2026-11-29 | | A compass blames command that lists the open reports of the types a project names, the current environment's first and marked, and the same short summary from check and the git hooks. | -| [[id:62A4D200-9C15-4D37-A47C-CB593BD51D64][Analyse the blame reports during the sprint]] | BACKLOG | | | Read the blame folder at points during the sprint, class the breaks it records, and find the proactive checks that would have caught them before they reached main. | +| [[id:686B61EC-0AD8-4AEB-ADA7-1F9EAB504AC6][List the open blame reports]] | DONE | 2026-11-29 | 2026-12-04 | A compass blames command that lists the open reports of the types a project names, the current environment's first and marked, and the same short summary from check and the git hooks. | +| [[id:62A4D200-9C15-4D37-A47C-CB593BD51D64][Analyse the blame reports during the sprint]] | DONE | | 2026-12-04 | Read the blame folder at points during the sprint, class the breaks it records, and find the proactive checks that would have caught them before they reached main. | | [[id:BFCA17AF-5BDD-4B4B-8B07-5325F191C472][Serve the open blame reports]] | BACKLOG | | | Answer the open reports over the document service, as an HTTP read route and an MCP tool generated from the route models, so agents that read compass through it see them too. | | [[id:8DFD6766-E279-4496-AAE6-A9CD7AC6457A][Unify environment names]] | BACKLOG | | | Give an environment one name everywhere compass and its projects state one, by a migration that renames corpus.environment.name and the environment columns of activity in one transaction, not by naming it differently on the next sync. | diff --git a/doc/agile/versions/v0/sprint_01/surface_the_open_blame_reports/task_analyse_the_blame_reports_during_the_sprint.org b/doc/agile/versions/v0/sprint_01/surface_the_open_blame_reports/task_analyse_the_blame_reports_during_the_sprint.org index 4c48140a..8c36b05c 100644 --- a/doc/agile/versions/v0/sprint_01/surface_the_open_blame_reports/task_analyse_the_blame_reports_during_the_sprint.org +++ b/doc/agile/versions/v0/sprint_01/surface_the_open_blame_reports/task_analyse_the_blame_reports_during_the_sprint.org @@ -35,12 +35,12 @@ alone. | Field | Value | |--------------+----------------------------------------| -| State | BACKLOG | +| State | DONE | | Parent story | [[id:1874A6CC-3640-4A89-B07F-C9A5F6AAD5F2][Surface the open blame reports]] | | Now | Not yet started. | -| Waiting on | Nothing. | -| Next | Begin implementation. | -| Last touched | 2026-11-29 | +| Waiting on | Nothing. | +| Next | Nothing. | +| Last touched | 2026-12-04 | * Acceptance @@ -92,3 +92,19 @@ via its "Verifies task" field. | | | | | | * Result + +The folder of ORE Studio's sprint 31 was read on 2026-12-04: 15 reports, +17 breaks. The breaks fall into six kinds, and three checks would have +prevented eight of them before main: + +1. Answer-shape and exception completeness, in =route_inventory.cpp=, + prevents the three corpus reports and the stale subject exception. +2. Registry coverage for new identifiers, in the permissions test and a web + card test, prevents the unclassified writes, the unregistered seed family + and the untranslated screen. +3. A tenant-first primary-key codec, mirroring =rls_coverage.cpp=, prevents + the scheduler tables. + +The table of every report, the kinds, and the reasoning are in +[[id:4FF7664A-B0A7-4EB8-96D8-3FAB6EAE7692][The blame folder of sprint 31, +read for recurring breaks]]. diff --git a/doc/agile/versions/v0/sprint_01/surface_the_open_blame_reports/task_list_the_open_blame_reports.org b/doc/agile/versions/v0/sprint_01/surface_the_open_blame_reports/task_list_the_open_blame_reports.org index 8d6b3ca7..fbe83ebe 100644 --- a/doc/agile/versions/v0/sprint_01/surface_the_open_blame_reports/task_list_the_open_blame_reports.org +++ b/doc/agile/versions/v0/sprint_01/surface_the_open_blame_reports/task_list_the_open_blame_reports.org @@ -31,12 +31,12 @@ ORE Studio's. | Field | Value | |--------------+----------------------------------------| -| State | STARTED | +| State | DONE | | Parent story | [[id:1874A6CC-3640-4A89-B07F-C9A5F6AAD5F2][Surface the open blame reports]] | | Now | Review fixes in: the owner prefix bridges owner names and renames no environment, owner cells split on blanks and =and= and unwrap links, the hooks skip amends and list once per rebase. In review. | | Waiting on | The pull request's review. | | Next | Merge; ORE Studio applies =evidence/ore_open_reports.patch= once a compass release carries =blames=. | -| Last touched | 2026-11-29 | +| Last touched | 2026-12-04 | * Acceptance @@ -149,3 +149,16 @@ via its "Verifies task" field. | 7 | Nits: local settings read for every command, output prefixes, "0 owned", several =#+todo:= lines, "this branch" as a commit, the ORE contract hand-off. | several | Fixed | | * Result + +=compass blames= lists the open reports a project names, the current +environment's first and marked =*=, with a count line and a next action; +=--brief=, =check= and the git hooks show this environment's own and a count +of the rest. The kinds, the owner field and the open states come from the +project's =* Open reports= table in =.compass.org=; compass names none of +them. Delivered in #223. + +The acceptance's last line, on the ORE Studio snapshot, holds: with the +data patch applied at =511f238a53=, the checkout =ores_dev_eager_maxwell= +marks the two =eager_maxwell= reports and =ores_dev_solid_dirac= the three +of =solid_dirac=, as =evidence/blames_ore_511f238a53.txt= records, including +the =--brief= output and both commands' timings.