Repository navigation
harden(app): route the four C7 exemplar events through TypedEvents - #14536
Merged
Merged
Conversation
Add strict Python/Dart pending contracts and introducing-commit protection. Reserve the live-session CLI, wire, ownership/attachment seams and failing builder acceptance tests. Add live attribution before freezing evidence v1. Verification: - bash scripts/dev-harness/run-tests.sh: 287 passed, 7 existing skips, 40 strict xfailed (24 pending V1 markers), Python 3.11.15. - make preflight: 16 checks passed, using supported PYTHON selection. - make mobile-verify fast --paths harness/session contract inputs with an absolute evidence directory: 20 executed, 20 passed, no failures/skips. - bash app/test.sh: 2014 passed, 5 skipped, one unchanged UTC+7 search_rank_grouping_test failure; affected baseline inputs match main. - Real module CLI refusals exit 2 without traceback; regression covered. - Dart SDK probe proves ext. prefix required; marker-removal formatter probe proves no incidental Dart diff. Runtime is intentionally unimplemented. App UI must repair current invalid VM extension names before live acceptance; unsupported journeys block. Simulator/emulator latency and detached-process acceptance remain V1 work. make setup installed hooks but full backend wheel sync stalled; isolated Python 3.11 harness dependencies ran the owner checks without any skip flag. Failure-Class: none
The check protects files under the spine roots and their registry, so it only needs to run when those change. A repo-wide trigger would run it, and its full-history requirement, on every unrelated contributor PR. Co-Authored-By: Claude Fable 5.1 <[email protected]>
V1 must refuse live journey execution until a shared executable adapter exists; B1 addressability alone cannot attach Dart integration tests. Pure admission contracts remain valid with injected supported IDs. Verification: harness 287 passed, 7 skipped, 40 strict xfailed; make preflight passed 20 checks.
…lities Coordinator turn-4 review authorizes the V1 fixture correction. Exact before/after digests pin the revised oracle; immutable revision records do not permit builder assertion edits. Active tests reject missing/tampered records and prove the fake machine response. Verification: full harness 289 passed, 7 skipped, 40 strict xfailed; UTC app 2020 passed; spine 24 pending/7 protected; make preflight 16 passed. No live device acceptance claimed.
Track retained marker occurrences rather than counts so retiring a second test cannot restore the first test's retired marker. The active regression covers this swap and legitimate continued retirement. Verification: full harness 290 passed, 7 skipped, 40 strict xfailed; spine 24 pending/7 protected; make preflight 16 passed. Dart sources unchanged after the earlier UTC app 2020-pass run.
…rges A squash can introduce a corrected contract and its review records in the same commit. Absorb only the revision prefix ending at that introducing file's exact digest, preserving immutable records and later marker-only edits. Active temp-repo regression covers multiple corrections in one squash and rejects restoring old or altered assertions. Verification: harness 291 passed, 7 skipped, 40 strict xfailed; B1 make preflight 20 passed; final B1 journeys 20/20. Dart unchanged after UTC app 41 opt-in and 2051 ordinary passed.
C7 keeps legacy wire names and queue behavior, requires executable consumers, and constrains raw calls only after adoption or in new files. Four example events remain behind a pending dispatch skeleton. Verified UTC app 2067, harness 306 passed/7 skipped/44 xfailed, spine 31 pending/9 protected, preflight 19 checks, and 20 hermetic journeys.
Preserve wire property spelling independently from Dart identifiers and restrict raw-call enforcement to adopted files and the one typed bridge. Revise the protected payload oracle after a Flutter matcher probe exposed map identity inside records. Verified: TZ=UTC bash app/test.sh (2069 passed); full harness (308 passed, 7 skipped, 44 strict xfailed); spine (31 pending, 10 protected); make preflight (19 passed); fast journeys (20/20); three historical commits passed scanner replay.
…nto coord/event-registry
Use the actual PR base and immutable exact scaffolding snapshots to reject mixed revision/implementation diffs. Exercise a real squash and child merge. Correct local_dev wire spelling from the simulator RPC and add adversarial V1 conformance oracles after reviewing the first broker. Verification: UTC app 2064 passed; full harness 303 passed, 7 skipped, 55 strict xfailed; spine 37 pending/9 protected; preflight 16 checks passed. Isolated reviewed-broker probes failed 9/9 as documented in the conformance report. No real app/device launch.
# Conflicts: # .github/checks-manifest.yaml # contracts/spine/files.json
…ge orders Keep exact oracle digests and immutable revision records. Traverse full reachable history and match revision payloads by digest. Shared runner metadata requires direct fail-fast suite invocation instead of pinning shared file bytes. Both new regressions fail on the old checker. UTC app 2064 passed; final harness 306 passed, 7 skipped, 59 strict xfailed; spine 39 pending/10 protected; preflight 16 passed. No protected oracle bytes or legacy scope pins changed.
Add strict pending C7 oracles for initialized and pre-init queue payloads. Legacy event privacy remains C8 scope. Verification: UTC app 2071 passed; harness 320 passed, 7 skipped, 59 strict xfailed; spine 43 pending / 13 protected; preflight 19 passed.
Four exemplar events now reach the existing queue, including the pre-init flush path, without copying caller-mutated property bags. Co-authored-by: Cursor <[email protected]>
Bring in #14408 (AGENTS.md budget), #14388 (device identity), and #14392 (Memory Created). Spine conflicts take main; analytics_manager keeps both the C7 emit seam and main's newer payload contracts. Co-authored-by: Cursor <[email protected]>
Restore the 019 revision pins from the squash-merged C7 contract, keep import narrowing to AnalyticsManager, and retire pending markers without deleting those pins. Manifest taken from main (already has mobile-event-registry); files.json is main's 30-entry registry. Co-authored-by: Cursor <[email protected]>
The merge-forward resolved seven files to this branch's older side and would have reverted other people's merged work: - scripts/failure-class and scripts/test_failure_class.py went back to the current-minus-previous scope-hint logic, undoing #14495 and deleting test_existing_dead_scope_hint_on_edited_definition_is_error outright - desktop/macos/CHANGELOG.json and releases/0.12.363.json lost eight lines each, and two unreleased changelog entries that the 0.12.363 release consolidated were re-added - product/failure-classes.md drifted None of those belong to the C7 builder. All restored to origin/main. The unique diff against main is now exactly three files: typed_events.dart for the emit routing, and the two C7 spine tests with their pending markers retired. That is what a builder PR should be. Verified after: both revision 019 pins present and byte-identical with main, the narrowed "show AnalyticsManager" import retained in both test files, spine checker exit 0 at 69 pending / 30 protected, analyzer ratchet passed. Co-Authored-By: Claude Opus 5 <[email protected]>
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Automations to automatically generate PRs for you. |
Closed
7 tasks done
This branch was successfully deployed
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.
What changed and why
TypedEvents.emitnow forwards the four C7 exemplar events throughAnalyticsManager().track, so the existing queue, flush, and missing-config no-op are the only sink. Call-site mutation of a property bag cannot put transcript or other user content onto the adapter payload.Product invariants affected
none
How it was verified
TZ=UTC bash app/test.sh— 2071 passed, including the five retired C7 contract tests (byte-identical names/properties, pre-init queue flush-once, missing-config no-op, emission-privacy initialized and queued).python3 scripts/check_spine_contracts.py— 39 pending markers, 13 protected files (four C7pendingContract('C7')source markers retired; remaining pending are V1).python3 scripts/check_event_registry.py --base origin/main—C7: 4 registered events, executable consumers, generated output current.dart format --line-length 120 --set-exit-if-changedon the three touched Dart files — 0 changed.OMI_PR_BODY_FILE=.local/pr-body-c7-registry.md make preflight— 19 checks passed in 75.76s (harness 320 passed, 7 skipped, 59 xfailed).Did not call
api.omi.me, PostHog, or any warehouse. Did not emit live. Did not touchanalytics_manager.dartevent-name literals (C8).EventCorrelation.mintstill throws (F1). Built against contract SHAd0111eddbb; a finish re-fetch showedorigin/task/msd-spine-a-event-registryat the same SHA.Tests
Core path:
c7_registry_test.dart(typed emit matches legacy names/properties through the existing queue; pre-init queue flushes once). Main error/no-op path: missing configuration queues nothing and drops nothing. Emission-privacy oracle:c7_emission_privacy_test.dartdrivesTypedEvents.emitwith a synthetic private transcript on both the initialized and pre-init queue paths and asserts the adapter payloads. Constructor/property-bag checks inc7_privacy_test.dartwere already live and stay unchanged.Failure class (fixes)
Failure-Class: none
🤖 Generated with Claude Code