harness-everything 0.43.0 → 0.43.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -10,7 +10,7 @@
10
10
  "name": "harness-everything",
11
11
  "source": "./",
12
12
  "description": "Harness OS: an orchestrated agent operating system — tier routing, circuit breaker guardrails, verification gates, WAL session memory, and self-evolving workspace rules.",
13
- "version": "0.43.0",
13
+ "version": "0.43.1",
14
14
  "author": {
15
15
  "name": "Miya Daniel"
16
16
  },
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "harness-everything",
3
3
  "description": "Harness OS: an orchestrated agent operating system — tier routing, circuit breaker guardrails, verification gates, WAL session memory, and self-evolving workspace rules.",
4
- "version": "0.43.0",
4
+ "version": "0.43.1",
5
5
  "author": {
6
6
  "name": "Miya Daniel"
7
7
  },
@@ -9,12 +9,8 @@ on:
9
9
  workflow_call:
10
10
 
11
11
  jobs:
12
- self-regression:
13
- strategy:
14
- fail-fast: false
15
- matrix:
16
- os: [ubuntu-latest, windows-latest, macos-latest]
17
- runs-on: ${{ matrix.os }}
12
+ doc-governance:
13
+ runs-on: ubuntu-latest
18
14
  steps:
19
15
  - uses: actions/checkout@v7
20
16
  with:
@@ -95,6 +91,19 @@ jobs:
95
91
  process.exitCode = 1;
96
92
  }
97
93
  })();'
94
+ self-regression:
95
+ strategy:
96
+ fail-fast: false
97
+ matrix:
98
+ os: [ubuntu-latest, windows-latest, macos-latest]
99
+ runs-on: ${{ matrix.os }}
100
+ steps:
101
+ - uses: actions/checkout@v7
102
+ with:
103
+ fetch-depth: 0
104
+ - uses: actions/setup-node@v7
105
+ with:
106
+ node-version: 24
98
107
  - name: Install dependencies for regression suite
99
108
  run: npm ci
100
109
  - name: Run hermetic self-regression suite
package/CHANGELOG.md CHANGED
@@ -2,6 +2,18 @@
2
2
 
3
3
  All notable changes to this project are documented in this file.
4
4
 
5
+ ## [0.43.1](https://github.com/dyphn1/Harness-everything/compare/v0.43.0...v0.43.1) (2026-10-27)
6
+
7
+ ### Bug Fixes
8
+
9
+ * **governance:** let the guard pass governed content revisions ([31af03d](https://github.com/dyphn1/Harness-everything/commit/31af03d02475e150210cc6b5ba0e5b90fea0163e))
10
+
11
+ ## [Unreleased]
12
+
13
+ ### Fixed
14
+
15
+ - **doc-governance:** allow regular governed-content revisions while retaining review for structural, policy, trust-surface, fixture, and derived-output changes; run the guard in its own CI job.
16
+
5
17
  ## [0.43.0](https://github.com/dyphn1/Harness-everything/compare/v0.42.2...v0.43.0) (2026-10-27)
6
18
 
7
19
  ### Features
@@ -1779,22 +1779,72 @@ checkCase('2ax. frozen Git-object guard with bootstrap and tamper controls', ()
1779
1779
  if (mutation === 'mode') assert.notStrictEqual(item.base.mode, item.candidate.mode, 'oracle mode change is reported');
1780
1780
  }
1781
1781
 
1782
- for (const relativePath of ['docs/architecture.md', 'docs/governed-index.md']) {
1782
+ const unchanged = runFrozenGuard(fixture, fixture.base, fixture.base);
1783
+ assert.strictEqual(unchanged.status, 0, 'an unchanged tree passes');
1784
+ assert.strictEqual(unchanged.report.verdict, 'PASS');
1785
+
1786
+ const rawIdentity = entry => ({ mode: entry.mode, type: entry.type, oid: entry.oid });
1787
+ const configuredIdentity = (commit, relativePath) => {
1788
+ const tree = parseTreeOracle(fixtureGit(fixture.root, ['ls-tree', '-r', '-z', '--full-tree', commit]));
1789
+ return rawIdentity(tree.get(Buffer.from(relativePath).toString('base64')));
1790
+ };
1791
+ resetFixture(fixture);
1792
+ writeRelative(fixture.root, 'docs/architecture.md', 'changed governed document content\n');
1793
+ const revisedGovernedCandidate = commitFixture(fixture.root, 'revise governed document');
1794
+ const revisedGoverned = runFrozenGuard(fixture, fixture.base, revisedGovernedCandidate);
1795
+ const fixtureStatusBeforeRepeat = fixtureGit(fixture.root, ['status', '--porcelain']);
1796
+ const revisedGovernedRepeat = runFrozenGuard(fixture, fixture.base, revisedGovernedCandidate);
1797
+ const fixtureStatusAfterRepeat = fixtureGit(fixture.root, ['status', '--porcelain']);
1798
+ assert.deepStrictEqual(revisedGovernedRepeat, revisedGoverned, 'identical Git inputs produce an identical report');
1799
+ assert.deepStrictEqual(fixtureStatusAfterRepeat, fixtureStatusBeforeRepeat, 'guard execution does not mutate the fixture repository');
1800
+ assert.strictEqual(revisedGoverned.status, 0, 'regular governed content revision passes');
1801
+ assert.strictEqual(revisedGoverned.report.verdict, 'PASS');
1802
+ const revisedEntry = revisedGoverned.report.policyPreservation.configuredPaths.paths.find(item => item.path === 'docs/architecture.md');
1803
+ assert.strictEqual(revisedEntry.state, 'revised', 'governed content revision is informational');
1804
+ assert.deepStrictEqual(revisedEntry.base, configuredIdentity(fixture.base, 'docs/architecture.md'));
1805
+ assert.deepStrictEqual(revisedEntry.candidate, configuredIdentity(revisedGovernedCandidate, 'docs/architecture.md'));
1806
+ assert.match(revisedEntry.reason, /not semantically validated by the guard/i);
1807
+ assert.ok(revisedGoverned.report.limits.some(limit => /content revisions.*not semantically validated by the guard/i.test(limit)));
1808
+ assert.strictEqual(revisedGoverned.report.policyPreservation.configuredPaths.state, 'pass');
1809
+ assert.deepStrictEqual(revisedGoverned.report.policyPreservation.configuredPaths.missingOrChanged, []);
1810
+
1811
+ resetFixture(fixture);
1812
+ writeRelative(fixture.root, 'docs/governed-index.md', 'changed derived output\n');
1813
+ const derivedCandidate = commitFixture(fixture.root, 'change derived document');
1814
+ const derivedChange = runFrozenGuard(fixture, fixture.base, derivedCandidate);
1815
+ assert.strictEqual(derivedChange.status, 2, 'derived content change still requires review');
1816
+ assert.strictEqual(derivedChange.report.verdict, 'REVIEW_REQUIRED');
1817
+ const derivedEntry = derivedChange.report.policyPreservation.configuredPaths.missingOrChanged.find(item => item.path === 'docs/governed-index.md');
1818
+ assert.ok(derivedEntry, 'derived content change remains in review-required paths');
1819
+ assert.strictEqual(derivedEntry.state, 'review_required');
1820
+ assert.deepStrictEqual(derivedEntry.base, configuredIdentity(fixture.base, 'docs/governed-index.md'));
1821
+ assert.deepStrictEqual(derivedEntry.candidate, configuredIdentity(derivedCandidate, 'docs/governed-index.md'));
1822
+
1823
+ for (const mutation of ['rename', 'mode', 'symlink']) {
1783
1824
  resetFixture(fixture);
1784
- writeRelative(fixture.root, relativePath, `changed configured document ${relativePath}\n`);
1785
- const candidate = commitFixture(fixture.root, `edit configured document ${relativePath}`);
1825
+ const relativePath = 'docs/architecture.md';
1826
+ if (mutation === 'rename') {
1827
+ fixtureGit(fixture.root, ['mv', '--', relativePath, 'docs/renamed-architecture.md']);
1828
+ } else if (mutation === 'symlink') {
1829
+ fs.rmSync(path.join(fixture.root, ...relativePath.split('/')));
1830
+ const oid = fixtureGit(fixture.root, ['hash-object', '-w', '--stdin'], Buffer.from('../outside-target.md\n')).toString('ascii').trim();
1831
+ fixtureGit(fixture.root, ['add', '-A']);
1832
+ fixtureGit(fixture.root, ['update-index', '--add', '--cacheinfo', `120000,${oid},${relativePath}`]);
1833
+ fixtureGit(fixture.root, ['commit', '--quiet', '-m', 'replace governed document with symlink']);
1834
+ }
1835
+ const candidate = mutation === 'symlink'
1836
+ ? fixtureGit(fixture.root, ['rev-parse', 'HEAD']).toString('ascii').trim()
1837
+ : commitFixture(fixture.root, `${mutation} governed document`, mutation === 'mode' ? relativePath : undefined);
1786
1838
  const result = runFrozenGuard(fixture, fixture.base, candidate);
1787
- assert.strictEqual(result.status, 2, `${relativePath} content change requires review: ${result.stderr}`);
1839
+ assert.strictEqual(result.status, 2, `${mutation} of a governed entry requires review`);
1788
1840
  assert.strictEqual(result.report.verdict, 'REVIEW_REQUIRED');
1789
1841
  const item = result.report.policyPreservation.configuredPaths.missingOrChanged.find(entry => entry.path === relativePath);
1790
- assert.ok(item, `${relativePath} identity change is reported`);
1791
- const baseTree = parseTreeOracle(fixtureGit(fixture.root, ['ls-tree', '-r', '-z', '--full-tree', fixture.base]));
1792
- const candidateTree = parseTreeOracle(fixtureGit(fixture.root, ['ls-tree', '-r', '-z', '--full-tree', candidate]));
1793
- const key = Buffer.from(relativePath).toString('base64');
1794
- const rawIdentity = entry => ({ mode: entry.mode, type: entry.type, oid: entry.oid });
1795
- assert.deepStrictEqual(item.base, rawIdentity(baseTree.get(key)), 'report includes exact baseline Git identity');
1796
- assert.deepStrictEqual(item.candidate, rawIdentity(candidateTree.get(key)), 'report includes exact candidate Git identity');
1797
- assert.notStrictEqual(item.base.oid, item.candidate.oid, 'content change is identified by blob OID');
1842
+ assert.ok(item, `${mutation} is reported for the original configured path`);
1843
+ assert.strictEqual(item.state, 'review_required');
1844
+ assert.deepStrictEqual(item.base, configuredIdentity(fixture.base, relativePath));
1845
+ if (mutation === 'rename') assert.strictEqual(item.candidate, null);
1846
+ if (mutation === 'mode') assert.notStrictEqual(item.base.mode, item.candidate.mode);
1847
+ if (mutation === 'symlink') assert.strictEqual(item.candidate.mode, '120000');
1798
1848
  }
1799
1849
 
1800
1850
  resetFixture(fixture);
@@ -1805,6 +1855,17 @@ checkCase('2ax. frozen Git-object guard with bootstrap and tamper controls', ()
1805
1855
  assert.strictEqual(deletedGoverned.report.verdict, 'REVIEW_REQUIRED');
1806
1856
  assert.ok(deletedGoverned.report.policyPreservation.configuredPaths.missingOrChanged.some(item => item.path === 'docs/architecture.md'));
1807
1857
 
1858
+ resetFixture(fixture);
1859
+ const registeredPolicy = JSON.parse(fs.readFileSync(path.join(fixture.root, '.agents/harness-everything/project-docs.json'), 'utf8'));
1860
+ registeredPolicy.governed.push({ path: 'docs/new-governed.md', role: 'reference' });
1861
+ writeRelative(fixture.root, '.agents/harness-everything/project-docs.json', `${JSON.stringify(registeredPolicy, null, 2)}\n`);
1862
+ writeRelative(fixture.root, 'docs/new-governed.md', 'newly registered governed member\n');
1863
+ const registrationCandidate = commitFixture(fixture.root, 'register governed document');
1864
+ const registration = runFrozenGuard(fixture, fixture.base, registrationCandidate);
1865
+ assert.strictEqual(registration.status, 2, 'new-member registration requires review');
1866
+ assert.strictEqual(registration.report.verdict, 'REVIEW_REQUIRED');
1867
+ assert.ok(registration.report.policyPreservation.governed.added.some(item => item.path === 'docs/new-governed.md'));
1868
+
1808
1869
  for (const relativePath of trustedPaths) {
1809
1870
  resetFixture(fixture);
1810
1871
  if (relativePath === '.agents/harness-everything/project-docs.json') {
@@ -1872,6 +1933,71 @@ checkCase('2ax. frozen Git-object guard with bootstrap and tamper controls', ()
1872
1933
  const missingCommit = runFrozenGuard(fixture, fixture.base, '0'.repeat(40));
1873
1934
  assert.notStrictEqual(missingCommit.status, 0);
1874
1935
  assert.notStrictEqual(missingCommit.report.verdict, 'PASS');
1936
+
1937
+ checkCase('2ax. CI workflow keeps the base-owned guard in a failing standalone job', () => {
1938
+ const workflowPath = path.join(REPOSITORY_ROOT, '.github/workflows/ci.yml');
1939
+ const workflow = require('js-yaml').load(fs.readFileSync(workflowPath, 'utf8'));
1940
+ const job = workflow.jobs['doc-governance'];
1941
+ assert.ok(job, 'standalone doc-governance job exists');
1942
+ assert.strictEqual(job['runs-on'], 'ubuntu-latest');
1943
+ assert.notStrictEqual(job['continue-on-error'], true, 'the job does not mask guard failures');
1944
+ assert.ok(job.steps.some(step => step.uses === 'actions/checkout@v7' && step.with['fetch-depth'] === 0), 'job fetches base Git objects');
1945
+ assert.ok(job.steps.some(step => step.uses === 'actions/setup-node@v7' && step.with['node-version'] === 24), 'job provides Node 24');
1946
+ const guardStep = job.steps.find(step => step.name === 'Run base-owned document governance guard');
1947
+ assert.ok(guardStep, 'standalone job owns the guard step');
1948
+ assert.notStrictEqual(guardStep['continue-on-error'], true, 'the guard step propagates nonzero exits');
1949
+ assert.ok(!workflow.jobs['self-regression'].steps.some(step => step.name === guardStep.name), 'self-regression no longer runs the guard');
1950
+ const command = String(guardStep.run || '').trimEnd();
1951
+ const inline = command.match(/^node -e '([\s\S]*)'$/);
1952
+ assert.ok(inline, 'guard step remains a directly executable Node script');
1953
+
1954
+ function simulate(event, base, candidate) {
1955
+ const summaryPath = path.join(tempRoot, `guard-summary-${process.pid}-${Math.random().toString(16).slice(2)}.md`);
1956
+ const result = spawnSync(process.execPath, ['-e', inline[1]], {
1957
+ cwd: fixture.root,
1958
+ encoding: 'utf8',
1959
+ timeout: 20000,
1960
+ env: {
1961
+ ...process.env,
1962
+ HARNESS_GUARD_EVENT: event,
1963
+ HARNESS_GUARD_BASE_SHA: base || '',
1964
+ HARNESS_GUARD_CANDIDATE_SHA: candidate || '',
1965
+ GITHUB_SHA: 'checkout-control',
1966
+ GITHUB_STEP_SUMMARY: summaryPath
1967
+ }
1968
+ });
1969
+ const summary = fs.existsSync(summaryPath) ? fs.readFileSync(summaryPath, 'utf8') : '';
1970
+ fs.rmSync(summaryPath, { force: true });
1971
+ assert.ifError(result.error);
1972
+ return { status: result.status, output: result.stdout, summary };
1973
+ }
1974
+
1975
+ const uncheckedEvent = simulate('push');
1976
+ assert.strictEqual(uncheckedEvent.status, 0);
1977
+ assert.match(uncheckedEvent.output, /UNCHECKED/);
1978
+ const bootstrapEvent = simulate('pull_request', noGuardBase, noGuardCandidate);
1979
+ assert.strictEqual(bootstrapEvent.status, 0, 'missing base verifier remains bootstrap-warning only');
1980
+ assert.match(bootstrapEvent.output, /BOOTSTRAP_UNCHECKED/);
1981
+ assert.match(bootstrapEvent.summary, /BOOTSTRAP_UNCHECKED/);
1982
+ const passEvent = simulate('pull_request', fixture.base, fixture.base);
1983
+ assert.strictEqual(passEvent.status, 0);
1984
+ assert.match(passEvent.output, /"verdict": "PASS"/);
1985
+
1986
+ resetFixture(fixture);
1987
+ writeRelative(fixture.root, 'docs/governed-index.md', 'changed derived output for CI simulation\n');
1988
+ const reviewCandidate = commitFixture(fixture.root, 'simulate guard review failure');
1989
+ const reviewEvent = simulate('pull_request', fixture.base, reviewCandidate);
1990
+ assert.strictEqual(reviewEvent.status, 2, 'REVIEW_REQUIRED stays a failing workflow job');
1991
+ assert.match(reviewEvent.output, /"verdict": "REVIEW_REQUIRED"/);
1992
+
1993
+ for (const exitCode of [1, 3]) {
1994
+ resetFixture(fixture);
1995
+ writeRelative(fixture.root, 'scripts/doc-governance-guard.js', `process.exit(${exitCode});\n`);
1996
+ const base = commitFixture(fixture.root, `simulate base guard exit ${exitCode}`);
1997
+ const result = simulate('pull_request', base, base);
1998
+ assert.strictEqual(result.status, exitCode, `the standalone job propagates guard exit ${exitCode}`);
1999
+ }
2000
+ });
1875
2001
  });
1876
2002
 
1877
2003
  helper.finish();
@@ -58,7 +58,7 @@ flowchart LR
58
58
  | E1 GO | A subsequent explicit owner decision based on the independent assessment, recording rationale, allowed scope, remaining uncertainty, and rollback. Neither elapsed time nor CI nor finishing E1 creates GO. |
59
59
  | #320 promotion | Still unauthorized. Generic CDG/Router migration requires E1 GO plus #325 H1–H4/paired evidence and a separate owner decision per proven interface. |
60
60
 
61
- Current disposition for #376: governance boundaries are documented in this plan; P1 inventory/disposition is implemented; and P2 includes a base-object guard wired before `npm ci` in candidate-controlled PR CI. The reviewed PR base `e40864fc24a711b96f583caa8e82f4707152f232` has no verifier, so its first invocation is `BOOTSTRAP_UNCHECKED` and does not execute candidate bytes. The guard now includes Git identities for the `ci/fixtures/doc-lifecycle/scenarios/` oracle tree; changes to those fixtures and to configured governed or derived blobs yield `REVIEW_REQUIRED`. That means independent semantic review is required, not that the content is automatically judged invalid. Ordinary ungoverned edits and new unknown documents remain allowed as `PASS` with unknown/unchecked content validation. The independent review found the earlier fixture gap and left semantic MUST preservation unresolved; re-review of the fixed guard at final exact SHAs is pending. The CI invocation remains candidate-controlled and can be removed; no external required-status check is enabled. E1 qualification is NOT YET ESTABLISHED (0 qualifying cycles); GO is NOT ISSUED. CI evidence is not E1 credit or live-host evidence.
61
+ Current disposition for #376: governance boundaries are documented in this plan; P1 inventory/disposition is implemented; and P2 runs the base-owned guard in a dedicated `doc-governance` job, separate from `self-regression`, so the other CI gates still run when the guard is non-green. The reviewed PR base `e40864fc24a711b96f583caa8e82f4707152f232` has no verifier, so its first invocation is `BOOTSTRAP_UNCHECKED` and does not execute candidate bytes. The guard includes Git identities for the `ci/fixtures/doc-lifecycle/scenarios/` oracle tree; fixture/trust-surface, policy/config, deletion/rename, mode/type, and derived-output changes yield `REVIEW_REQUIRED`. Regular governed-content revisions with the same mode are reported as `revised` with base/candidate identities and pass; the guard does not semantically validate them. That means independent semantic review is required, not that the content is automatically judged invalid. Ordinary ungoverned edits and new unknown documents remain allowed as `PASS` with unknown/unchecked content validation. The independent review found the earlier fixture gap and left semantic MUST preservation unresolved; re-review of the fixed guard at final exact SHAs is pending. The CI invocation remains candidate-controlled and can be removed; no external required-status check is enabled. E1 qualification is NOT YET ESTABLISHED (0 qualifying cycles); GO is NOT ISSUED. CI evidence is not E1 credit or live-host evidence.
62
62
 
63
63
  ## Candidate inventory and coverage
64
64
 
@@ -230,9 +230,9 @@ Private byte-identical backups of all three queue files and this turn's scope, p
230
230
 
231
231
  | Item | Status |
232
232
  |---|---|
233
- | Integration | On `pull_request`, `.github/workflows/ci.yml` extracts the guard blob from the event base and runs those bytes against the event base/head SHAs before `npm ci`; it logs the blob OID and SHA-256 and reports `GITHUB_SHA` separately. The reviewed base `e40864fc24a711b96f583caa8e82f4707152f232` has no verifier, so the current-base result is `BOOTSTRAP_UNCHECKED`; non-PR events without an external verifier report `UNCHECKED`. Neither path executes candidate guard bytes. |
234
- | Guarded identities and outcomes | The trust surface includes every Git entry under `ci/fixtures/doc-lifecycle/scenarios/`, compared by raw Git identity (`mode`, `type`, `oid`), so fixture edits, deletions, mode changes, and candidate-only additions yield `REVIEW_REQUIRED`. Configured governed and derived paths also require baseline mode and blob OID identity; a blob change yields `REVIEW_REQUIRED` and requires independent semantic review. This is not an automatic finding that the content is invalid, and the guard does not validate natural-language MUST preservation. Ordinary ungoverned edits and new unknown documents remain `PASS`, with new paths reported `unknown`/`unchecked`. |
235
- | Verification | The Node 24 focused `ci/mechanism-2ax-doc-lifecycle.test.js` passes the fixture edit/delete/mode/add cases, unchanged-fixture positive control, governed/derived blob-change cases, and ordinary ungoverned/new-unknown controls. Node 24 `--check` on both changed JavaScript files and `git diff --check` passed. Earlier reported checks also include `ci/mechanism-325-f1-doc-check.test.js` (76 PASS), `npm run test:repo-contract`, `npm run test:docs:capabilities`, and a parsed YAML step simulation for bootstrap, push `UNCHECKED`, extracted-guard `PASS`, and `REVIEW_REQUIRED` exit-2 propagation. |
233
+ | Integration | On `pull_request`, the standalone `doc-governance` job extracts the guard blob from the event base and runs those bytes against the exact event base/head SHAs; it logs the blob OID and SHA-256 and reports `GITHUB_SHA` separately. The job does not mask guard failures and runs independently of `self-regression`. The reviewed base `e40864fc24a711b96f583caa8e82f4707152f232` has no verifier, so the current-base result is `BOOTSTRAP_UNCHECKED`; non-PR events without an external verifier report `UNCHECKED`. Neither path executes candidate guard bytes. |
234
+ | Guarded identities and outcomes | The trust surface includes every Git entry under `ci/fixtures/doc-lifecycle/scenarios/`, compared by raw Git identity (`mode`, `type`, `oid`), so fixture edits, deletions, mode changes, and candidate-only additions yield `REVIEW_REQUIRED`. Regular governed-content revisions with the same mode return `PASS` as informational `revised` entries with both Git identities; the guard does not semantically validate revised content. Deletion/rename, mode/type, policy/config or new-member registration, trust-surface/fixture, and derived-output changes still return `REVIEW_REQUIRED`; derived changes retain their regeneration/parity evidence requirement. Ordinary ungoverned edits and new unknown documents remain `PASS`, with new paths reported `unknown`/`unchecked`. |
235
+ | Verification | The Node 24 focused `ci/mechanism-2ax-doc-lifecycle.test.js` covers fixture edit/delete/mode/add, governed revision pass, deletion/rename/mode/symlink review, derived-change review, unchanged-tree and ordinary ungoverned/new-unknown controls, plus the standalone-job step simulation. Node 24 `--check` on both changed JavaScript files and `git diff --check` passed. Earlier reported checks also include `ci/mechanism-325-f1-doc-check.test.js` (76 PASS), `npm run test:repo-contract`, `npm run test:docs:capabilities`, and a parsed YAML step simulation for bootstrap, push `UNCHECKED`, extracted-guard `PASS`, and `REVIEW_REQUIRED` exit-2 propagation. |
236
236
  | Evidence / limits | These are deterministic mechanism and local step-simulation results, not hosted GitHub Actions or live-host evidence. Full `npm test` and `verify:all` are not established here. The independent review of the earlier frozen guard found the fixture-oracle gap and left semantic MUST preservation unresolved; independent re-review of the fixed guard against the final exact SHAs remains pending. Candidate-controlled `.github/workflows/ci.yml` can remove the invocation, and no external required-status check is enabled. |
237
237
  | E1 / authority | P2 is CI engineering evidence only. E1 remains at 0 qualifying cycles; status is NOT GO / owner GO is NOT ISSUED, and #320 remains unauthorized. |
238
238
 
@@ -208,8 +208,8 @@ Credited reconciliation for F4 (Claude Code only, pilot ON) is **implemented, wi
208
208
 
209
209
  ### Own-repository governance guard (PR #376)
210
210
 
211
- On `pull_request`, the self-regression workflow extracts `scripts/doc-governance-guard.js` from the event base commit and runs those bytes against the exact event base/head SHAs before `npm ci`. The ordinary test suite may still run on GitHub's PR checkout SHA, which can be a synthetic merge commit; it is reported separately. The guard never falls back to the candidate copy. The reviewed PR base lacks the verifier, so the current-base result is `BOOTSTRAP_UNCHECKED` in a warning and step summary while the regular regression suite continues; push and workflow-call events without an external PR verifier report `UNCHECKED`. A nonzero result from an extracted verifier remains nonzero.
211
+ On `pull_request`, a standalone `doc-governance` job extracts `scripts/doc-governance-guard.js` from the event base commit and runs those bytes against the exact event base/head SHAs. Its nonzero result fails that job; `self-regression` and the other CI jobs run independently. The ordinary test suite may still run on GitHub's PR checkout SHA, which can be a synthetic merge commit; it is reported separately. The guard never falls back to the candidate copy. PR #376's reviewed base lacked the verifier; that historical bootstrap reported BOOTSTRAP_UNCHECKED without executing candidate bytes. Bases containing the guard (including main at 0ef0541c) execute the base-owned verifier. If a selected PR base lacks the guard, the wrapper retains the warning/step-summary-only bootstrap path with exit 0; this is unverified governance, not PASS. Every nonzero exit from an extracted verifier, including FAIL and BOOTSTRAP_UNCHECKED, fails the governance job. Other CI jobs run independently.
212
212
 
213
- The guard's trust surface includes every Git entry under `ci/fixtures/doc-lifecycle/scenarios/`, compared by raw Git identity (`mode`, `type`, `oid`). Configured governed and derived paths also require baseline mode and blob OID identity. Fixture or configured-blob changes return `REVIEW_REQUIRED`, meaning independent semantic review is required; the guard does not judge whether edited prose still satisfies its MUST obligations. Ordinary ungoverned edits and new unknown documents remain allowed as `PASS`, with unknown content validation visible.
213
+ The guard's trust surface includes every Git entry under `ci/fixtures/doc-lifecycle/scenarios/`, compared by raw Git identity (`mode`, `type`, `oid`). A regular governed-content revision with the same mode returns `PASS` as an informational `revised` entry with both Git identities; the guard does not semantically validate revised content. Deletion/rename, mode/type, policy/config or new-member registration, trust-surface/fixture, and derived-output changes still return `REVIEW_REQUIRED`. Derived changes retain their regeneration/parity evidence requirement. Ordinary ungoverned edits and new unknown documents remain allowed as `PASS`, with unknown content validation visible.
214
214
 
215
215
  This integration lives in candidate-controlled `.github/workflows/ci.yml` and can be removed by a candidate change. The independent review found the prior fixture-oracle gap; re-review of the fixed guard at final exact SHAs is pending. No external required-status check is enabled, and no live-host evidence is established. This is package and mechanism evidence only; it does not qualify E1. E1 remains at zero qualifying cycles and owner GO is not issued.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "harness-enforcement",
3
3
  "description": "Repository inventory for the opencode enforcement plugin and its standalone helper",
4
- "version": "0.43.0",
4
+ "version": "0.43.1",
5
5
  "runtime": "index.mjs",
6
6
  "hooks": {
7
7
  "verify": "hooks/verify.js"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "harness-everything",
3
- "version": "0.43.0",
3
+ "version": "0.43.1",
4
4
  "description": "Harness OS: An Orchestrated Agent Operating System for AI-driven Development",
5
5
  "main": "harness-everything/scripts/bootstrap.js",
6
6
  "bin": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "harness-everything",
3
- "version": "0.43.0",
3
+ "version": "0.43.1",
4
4
  "description": "Invariant-first engineering harness for routing, verification, and failure recovery while preserving agent autonomy.",
5
5
  "author": {
6
6
  "name": "Miya Daniel",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json",
3
3
  "name": "harness-everything",
4
- "version": "0.43.0",
4
+ "version": "0.43.1",
5
5
  "description": "Invariant-first engineering harness for routing, verification, and failure recovery while preserving agent autonomy.",
6
6
  "author": {
7
7
  "name": "Miya Daniel",
package/sbom.cdx.json CHANGED
@@ -2,23 +2,23 @@
2
2
  "$schema": "https://cyclonedx.org/schema/bom-1.7.schema.json",
3
3
  "bomFormat": "CycloneDX",
4
4
  "specVersion": "1.7",
5
- "serialNumber": "urn:uuid:1bad1acf-3464-511b-b36b-492f1409c976",
5
+ "serialNumber": "urn:uuid:e4de25fd-21a9-593b-841e-c8e0c3a9d6ad",
6
6
  "version": 1,
7
7
  "metadata": {
8
- "timestamp": "2026-10-27T06:46:51.060Z",
8
+ "timestamp": "2026-10-27T09:10:22.642Z",
9
9
  "tools": [
10
10
  {
11
11
  "vendor": "Harness Everything",
12
12
  "name": "generate-sbom.js",
13
- "version": "0.43.0"
13
+ "version": "0.43.1"
14
14
  }
15
15
  ],
16
16
  "component": {
17
17
  "type": "application",
18
- "bom-ref": "pkg:npm/harness-everything@0.43.0",
18
+ "bom-ref": "pkg:npm/harness-everything@0.43.1",
19
19
  "name": "harness-everything",
20
- "version": "0.43.0",
21
- "purl": "pkg:npm/harness-everything@0.43.0"
20
+ "version": "0.43.1",
21
+ "purl": "pkg:npm/harness-everything@0.43.1"
22
22
  }
23
23
  },
24
24
  "components": [
@@ -2033,7 +2033,7 @@
2033
2033
  ]
2034
2034
  },
2035
2035
  {
2036
- "ref": "pkg:npm/harness-everything@0.43.0",
2036
+ "ref": "pkg:npm/harness-everything@0.43.1",
2037
2037
  "dependsOn": [
2038
2038
  "pkg:npm/%40commitlint/cli@19.8.1",
2039
2039
  "pkg:npm/%40commitlint/config-conventional@19.8.1",
@@ -229,11 +229,20 @@ function checkConfiguredPaths(baseTree, candidateTree, config) {
229
229
  const before = baseTree.get(key);
230
230
  const after = candidateTree.get(key);
231
231
  if (!regularBlob(before)) throw new Error(`baseline ${kind} path is missing or not a regular file: ${record.path}`);
232
- const identityPreserved = regularBlob(after) && before.mode === after.mode && before.oid === after.oid;
233
- details.push({ kind, path: record.path, state: identityPreserved ? 'pass' : 'review_required', base: identity(before), candidate: identity(after) });
232
+ const sameRegularMode = regularBlob(after) && before.mode === after.mode;
233
+ const revised = kind === 'governed' && sameRegularMode && before.oid !== after.oid;
234
+ const identityPreserved = sameRegularMode && before.oid === after.oid;
235
+ details.push({
236
+ kind,
237
+ path: record.path,
238
+ state: revised ? 'revised' : identityPreserved ? 'pass' : 'review_required',
239
+ base: identity(before),
240
+ candidate: identity(after),
241
+ ...(revised ? { reason: 'Content revisions are tracked by Git identity but are not semantically validated by the guard.' } : {})
242
+ });
234
243
  }
235
244
  }
236
- const failures = details.filter(item => item.state !== 'pass');
245
+ const failures = details.filter(item => item.state === 'review_required');
237
246
  return { state: failures.length ? 'review_required' : 'pass', paths: details, missingOrChanged: failures };
238
247
  }
239
248
 
@@ -270,7 +279,7 @@ function run(argv) {
270
279
  reviewAuthority: 'External reviewer only; candidate-controlled approval files or reports are never read.',
271
280
  limits: [
272
281
  'Candidate-owned CI is not independent enforcement; bootstrap remains unchecked until an external reviewer binds frozen guard bytes to final exact SHAs.',
273
- 'Document semantics and derived-view parity are not validated; configured documents are required to keep their baseline Git identities.'
282
+ 'Governed content revisions are visible by Git identity but are not semantically validated by the guard; derived-view parity is not validated.'
274
283
  ],
275
284
  errors: []
276
285
  };