Skip to content

harden(dev-harness): distinguish authorized revisions from rejected history - #14408

Merged
Git-on-my-level merged 16 commits into
mainfrom
task/msd-spine-a-live-session
Sep 18, 2026
Merged

Git-on-my-level merged 16 commits into
mainfrom
task/msd-spine-a-live-session

Conversation

@Git-on-my-level

@Git-on-my-level Git-on-my-level commented Sep 17, 2026 •

Copy link
Copy Markdown
Member

What changed and why

A builder that reverted its rejected self-authorization remained permanently blocked because the checker treated every historical revision addition as authorized. Append-only protection now covers accepted target content and scope-eligible whole proposals; a rejected mixed proposal can be reverted, including when its implementation and record were separate commits. Exact oracle/revision digests remain pinned.

Explicit V1 revisions preserve all pending markers and executable assertions while reconciling the formatter output introduced on #14362. Two exact marker-free hashes also cover that branch's removal of the unused pending import; this grants no general formatting or import-edit permission. Consolidate duplicated app code-generation guidance to free shared guide budget without raising it.

Product invariants affected

none

How it was verified

Verification receipts are .local/t11-live-app.log, .local/t11-live-harness.log, .local/t11-live-spine.log, .local/t11-mechanism.log and .local/t11-chat-probe.log. The real chat tree at 9f5548474f passes against its addressability contract target in a disposable clone without editing the builder branch (48 pending / 29 protected); main and the older B0 target still need the B1 dependency to land or merge forward. V1 AST comparisons strip only pending decorators and the unused pending import before comparison against 87f2a8d. TZ=UTC bash app/test.sh: 2064 passed. Full harness: 309 passed, 7 skipped, 59 strict xfailed (including all 14 mechanism regressions). Spine check: 39 pending / 10 protected, exit 0. make preflight: 16 checks passed in 128.60 seconds. No simulator or production service contacted.

Tests

Regressions cover reverting an unauthorized record (same commit and separate commits), deleting an authorized record before/after target acceptance, and exact retired renderings with conflicting introductions, assertion tampering and marker restoration. Existing self-authorization, shared-runner and both merge-parent-order tests remain active.

Failure class (fixes)

Failure-Class: none

New guards (only when adding a check or ratchet)

No new guard; repair the existing shared mechanism against the rejected ae634e61eb / compliant 47c8801e83 incident on the B1 chat branch.

Three review risks: scope eligibility is not human review authentication; the PR target remains trusted input; exact retired renderings are exceptional reviewed pins, not permission for future builder formatting.

🤖 Generated with Claude Code

Review in cubic

Git-on-my-level and others added 16 commits September 17, 2026 13:42
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.
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.
…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.
…istory

Rejected mixed proposals can be reverted without losing exact oracle protection. Scope is checked over the whole proposal; exact retired renderings require an immutable reviewed digest.\n\nVerified: full harness 309 passed, 7 skipped, 59 strict xfailed; Dart 2064 passed; spine check clean; make preflight 16 checks passed. Real chat tree 9f5548474f passes against its addressability contract target.
Preserve all eleven pending markers and the executable AST. Exact retired digests cover the builder's already-introduced unused-import cleanup without granting general edit permission. Full harness and preflight pass; AST evidence is recorded in .local/t11-v1-format-evidence.json.
Retain every generator instruction beside the existing table and free 180 bytes for the queued contract pointers. Do not change the guide budget. make preflight passed all 16 checks.
Resolve nine conflicts without losing spine revisions or main's per-port claims and Android inventory fix. Retain all 222 manifest IDs; app guide is 11234 bytes under its 11411-byte budget.

Verified merged working tree: UTC Dart 2110 passed; harness 335 passed, 7 skipped, 59 strict xfailed; hermetic fast journeys passed. Recheck canonical preflight and both merge-parent orders after the merge commit makes main the actual merge base.
@Git-on-my-level
Git-on-my-level merged commit 66bd908 into main Sep 18, 2026
38 checks passed
@Git-on-my-level
Git-on-my-level deleted the task/msd-spine-a-live-session branch September 18, 2026 00:01
Git-on-my-level added a commit that referenced this pull request Sep 18, 2026
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]>
Git-on-my-level added a commit that referenced this pull request Sep 18, 2026
Forward-merge #14408 (authorized vs rejected revision history) plus the landed HomePage timer and accessibility work. Keep B0's ext-prefix isolate and addressability checks; take main's spine checker.

Co-authored-by: Cursor <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant