Skip to content

feat(architecture): delete machine authorization, parity, guardSemantics (PR 3/6) - #296

Merged
hzcheng merged 2 commits into
mainfrom
agent-pivot/arch-refact
Aug 19, 2026
Merged

feat(architecture): delete machine authorization, parity, guardSemantics (PR 3/6)#296
hzcheng merged 2 commits into
mainfrom
agent-pivot/arch-refact

Conversation

@hzcheng

@hzcheng hzcheng commented Aug 19, 2026

Copy link
Copy Markdown
Owner

Summary

PR 3/6 of the Harness Simplification program (docs/architecture/harness-simplification-decision.md). Deletes the old machine-authorization chain now that the trusted kernel has taken over: run-guard-mutation-parity.js, guardSemantics, and Architecture Change record consumption. Net -797 lines.

This PR is classified relaxing (it deletes guard machinery), so it requires owner architecture approval — see the Owner approvals section.

What changed

  • Delete scripts/run-guard-mutation-parity.js; remove parity from tests, protected paths, and release packaging.
  • Remove guardSemantics from the record schema and delta flags; Architecture Change records are historical ADRs only.
  • checkArchitectureChange.js: no record matching; a relaxing/re-partition classification is authorized only by the owner's approve-architecture <full-head-sha> comment (consumption wired in transition PR feat(architecture): wire approve-architecture consumption (transition to PR 3/6) #297).
  • describeArchitectureChange.js: diff reporter only.
  • run-trusted-kernel.js: materialize the head via git ls-tree + git show; consume the owner's approve-architecture comment via the GitHub API (fail-closed).
  • trustedKernel.js: drop the deleted parity script from protected paths (kernel evaluator fixes landed separately in fix(architecture): make the trusted kernel evaluate real heads #298).

Skill harvest

none — both lessons from this rescue (default-branch check ownership, owner-approvals convention) were already recorded in #297 and #299.

Owner approvals

Copy each line into a separate PR comment below (both bind the exact head SHA and expire when the head moves):

approve-architecture 6af42109faaf686b8d6d8a1f107b243bb22a745a
approve 6af42109faaf686b8d6d8a1f107b243bb22a745a

Change impact declaration

{
  "headSha": "6af42109faaf686b8d6d8a1f107b243bb22a745a",
  "capabilities": [
    "MAIN-ARCHITECTURE-HARNESS"
  ],
  "modules": [],
  "invariants": [],
  "policyDelta": "relaxing",
  "baselineWaiverDelta": "zero",
  "newFiles": [],
  "behaviors": [
    "ARCH-CHANGE-GATE-001",
    "ARCH-CLOSED-WORLD-001",
    "ARCH-INVARIANT-CATALOG-001",
    "ARCH-MODULE-BOUNDARY-001",
    "ARCH-MODULE-CYCLE-001",
    "ARCH-POLICY-SCHEMA-001",
    "ARCH-PROGRAM-LEDGER-001",
    "ARCH-SINGLE-WRITER-001",
    "ARCH-WEBVIEW-MANIFEST-001"
  ],
  "semanticImpact": {
    "stateAuthority": false,
    "writerSet": false,
    "protocol": false,
    "persistence": false,
    "identity": false,
    "recovery": false
  },
  "coordinators": [],
  "verification": "npm run test-compile; node --test tests/unit/architecture/** tests/unit/tooling/** (549 pass); ARCHITECTURE_APPROVED=true npm run test:architecture-policy; node scripts/run-trusted-kernel.js: passes with approval, fails closed without; npm run test:behavior-contracts; npm run lint"
}

@hzcheng

hzcheng commented Aug 19, 2026

Copy link
Copy Markdown
Owner Author

approve-architecture 88553fb

@hzcheng

hzcheng commented Aug 19, 2026

Copy link
Copy Markdown
Owner Author

approve 88553fb

chenghongze added 2 commits August 19, 2026 23:24
…ics (PR 3/6)

Net -846 lines. The trusted kernel has taken over.

- Delete scripts/run-guard-mutation-parity.js
- Remove guardSemantics from the record schema and delta flags
- checkArchitectureChange.js: no record matching; a relaxing or
  re-partition classification is authorized only by the owner's
  approve-architecture <full-head-sha> comment (consumption wired in
  the transition PR #297)
- describeArchitectureChange.js: diff reporter only
- run-trusted-kernel.js: materialize the head via git ls-tree +
  git show (no symmetric diff against unfetched objects); consume the
  owner's approve-architecture comment from the GitHub API (fail-closed)
- trustedKernel.js: drop the deleted parity script from protected paths
- Remove parity from tests, protected paths, and release packaging
@hzcheng
hzcheng force-pushed the agent-pivot/arch-refact branch from 88553fb to 6af4210 Compare August 19, 2026 15:26
@hzcheng

hzcheng commented Aug 19, 2026

Copy link
Copy Markdown
Owner Author

approve-architecture 6af4210

@hzcheng

hzcheng commented Aug 19, 2026

Copy link
Copy Markdown
Owner Author

approve 6af4210

@hzcheng
hzcheng merged commit 6b906a7 into main Aug 19, 2026
13 of 16 checks passed
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