Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/ingest-skill-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ jobs:
- name: Install PyYAML
run: pip install pyyaml

- name: Guard dated batch paths and privacy result contracts
run: node --test packages/ingest-cli/src/batch-path.test.mjs packages/ingest-cli/src/privacy-scan.test.mjs

- name: Run vocabulary loader unit tests
run: node --test packages/ingest-cli/src/vocabulary.test.mjs

Expand Down
30 changes: 30 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,36 @@ Format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/). Version

---

## [8.0.0] — 2026-11-08

Bump category: **MAJOR**. Closed relation enum expansion and newly restrictive
adopter tooling require the [7.0 → 8.0 migration](migrations/7.0-to-8.0/).
This release remains an unpublished draft until separately approved.

Known diagnostic limitation: COMPIMP-010 retains its two historical warning/error
meanings under the explicitly renewed exemption through 2026-11-16. No renumbering,
severity change or validator weakening is included. Historical diagnostics remain
unchanged; resolve the code allocation separately before that review date.

### Added

- PRODUCT/APPLICATION requirement-scope 0.3 contract and distributed requirements-analysis skill; explicit 0.2 compatibility retained. (#633, #636)
- Person reporting relations, dated query/health contracts and retained historical evidence. (#649, #651, #652)
- Capability-map optional management-cycle, tag and technical-capability contracts and portable rendering guidance. (#658, #660)
- Document package/provenance and source-handoff guidance within its existing scope.

### Changed

- Reconcile relation-spec enum language with CONTRACT §10 and RELEASING: new closed-enum kinds require MAJOR, even without an existing-record rewrite.
- Align current methodology pins and ingest PRESETS_VERSION at 8.0.0; preserve historical migration fixtures and preset membership/defaults.
- Skill bundle 0.2.0 binds the exact CLI 2.13.0 tarball and isolated consumer qualification receipt; requirements-analysis minimum becomes 8.0.0. The exact same CLI archive is retained from packaged UI verification and bound to the Studio release commit. The earlier accepted 2.12.0 evidence remains revision-bound.
- New capability-field/view restrictions and intake profile preflight require explicit owner review, preserving absent optional fields, originals and unknown content. No automatic store split or semantic conversion.

### Fixed

- Ingest test portability: freeze the batch-date clock and assert the existing null no-redaction contract while retaining positive PII stripping controls. The two historical baseline failures remain recorded; runtime privacy behavior is unchanged.
- Reporting recurrence, aliases, temporal behavior and listing corrections retain their accepted bounded evidence. The reference-adopter companion remains proposed until separate ratification.

## [7.0.0] — 2026-09-26

Bump category: **MAJOR**. ACTION numeric lower bounds now apply to 7.0.0
Expand Down
2 changes: 1 addition & 1 deletion method/06-team-operations.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ Deliberately **not** one-file-per-record like ADR/WI: the journal is a single fi
---
### FB-0002
type: notation-gap
methodology_version: "7.0.0"
methodology_version: "8.0.0"
raised_by: modeler
date: "2026-07-27"
status: sent-upstream
Expand Down
102 changes: 102 additions & 0 deletions migrations/7.0-to-8.0/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
# Methodology 7.0 → 8.0 migration

This is a proposed MAJOR release recipe. It neither releases software nor
runs an adopter upgrade. CONTRACT §10.2 and RELEASING govern the closed relation
enum: adding `reports_to` requires MAJOR even when existing REL fields need no
rewrite. The former local MINOR language in relation spec 0.6 is superseded by
0.7; no historical acceptance or diagnostic receipt is rewritten.

## Compatibility disposition

| 7.0 form or behavior | 8.0 action |
|---|---|
| Existing valid relation kind and quoted lifecycle dates | Preserve the record, IDs and windows; update the release pin/tooling after review |
| `reports_to` unknown to the 7.0 vocabulary | Adopt the 8.0 vocabulary and qualified consumers before authoring; never infer reporting |
| Capability stage/tags not checked by the old linter | Review the new optional-field constraints; absence stays absent |
| Application technical capability payload not checked by the old linter | Review local key uniqueness, required key/name, declared capability references and lifecycle containment |
| Capability-map view config accepted without the new checks | Review scenario/selected system references and closed optional subobjects |
| Setup without Git/visible marker/disjoint profile preflight | Review explicit profile ownership/layout; unsupported, mixed, unknown, symlink or invisible-marker layouts now fail before writes |
| `methodology_version: "7.0.0"` | `methodology_version: "8.0.0"` after the manual review |

The optional-field checks are not claimed to be compatible merely because their
fields are optional: an earlier permissive linter could accept, for example,
`tags: [""]`, an unknown management stage or a reversed technical capability
window. Under the target contracts those values fail. A new error may expose
previously invalid data or constrain previously unchecked content; this MAJOR
recipe makes both cases visible rather than promising blanket old-input
acceptance. Unknown legacy payloads require owner review, never deletion or
automatic coercion. Existing 7.x pins retain their historical compatibility
promise; no validator backport or error-suppression change is made here.

## Manual procedure

1. Preserve original files, revision and diagnostics with their tool versions.
Inventory only the intended catalogue and optional fields. Keep private data
and historical UNKNOWN receipts in their original storage.
2. Review capability `management_cycle_stage` (null or Strategic, Learning,
Planning, Execution, Assurance) and nonempty string `tags`. For example,
`tags: []` stays valid; `tags: [""]` needs an author decision. Do not fill
absent fields or manufacture tags/stages.
3. Review technical capability key/name, references, unique local keys and
inclusive date windows within the APPLICATION lifetime. A same-day window is
valid; an end before its start needs correction from evidence. Preserve
custom data for review outside closed subobjects without silently moving it.
Validate the selected capability-map scenario/system references and optional
configuration against the target schema.
4. Before any later setup/migration, review profile separation and marker
visibility with the owner. Preserve all original and unknown content; select
an explicit supported layout. This recipe never splits stores, moves files,
invokes intake, creates a workspace or edits visibility rules.
5. For reporting, use explicit person→person REL records with evidence and
windows. Employment or unit membership does not imply reporting. Keep
concurrent managers valid with REL-013 warning; retain disjoint recurrence.
REL-011/012 graph/health errors remain distinct from per-file validation.
6. Only when adopting the reviewed release/tooling, change the root manifest:

```yaml
# before
methodology_version: "7.0.0"
# after
methodology_version: "8.0.0"
```

Align vocabulary/specs, skill bundle 0.2.0, ingest PRESETS_VERSION 8.0.0 and
the vendored whole-repo linter. Ingest CLI and Studio CLI are separate tools;
the requirements-analysis skill's exact 2.13.0 candidate map is not an
ingest-tool version. A changed manifest alone is not adoption or acceptance.
7. Run the pin-only postcheck below, then the release-qualified whole-repo and
applicable file/graph validators on the preserved catalogue. Inspect warnings
and unvalidated files; do not turn missing evidence into success. Qualify
profiles without running setup/intake as an implicit side effect.

## Mechanical transform and limits

Node 20+, no dependencies. The codemod changes only one unambiguous root pin;
all model bytes, comments, unknown data and history remain untouched. Re-running
is a no-op. Unexpected/duplicate pins and symlink manifests fail visibly.

```sh
node migrations/7.0-to-8.0/codemod.mjs --dry-run /path/to/model
node migrations/7.0-to-8.0/codemod.mjs /path/to/model
node migrations/7.0-to-8.0/validate.mjs /path/to/model
```

`validate.mjs` checks only the structural pin transform, not capability, graph,
intake layout or whole-catalogue conformance. Manual steps remain required.
Exit 0 means that narrow check passed; 1 is an ambiguous/incorrect pin; 2 is an
invocation/read failure. No automatic semantic rewrite is supplied because it
would require owner decisions. Synthetic tests check dry-run preservation,
idempotence, exact fixture output, duplicate/unknown pins and symlink refusal.

## Evidence and delivery boundaries

Retain the accepted requirement-scope 0.3 and explicit 0.2 adapter. Skill bundle
0.2.0 changes its required caller boundary and therefore uses methodology floor
8.0.0. Its candidate map pins an exact Studio source commit; null artifact
hashes and qualification receipt block invocation until supplied, rather than
qualifying a proposed package by its version number.

Methodology #652's two previously disclosed Node failures remain baseline
limitations pending disposition; this recipe does not relabel them successful.
The reference-adopter companion PR required by RELEASING remains a separate
reviewed pin/ADR proposal; no adopter is upgraded by this source PR.
31 changes: 31 additions & 0 deletions migrations/7.0-to-8.0/codemod.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#!/usr/bin/env node
// Only the manifest pin is mechanical. Model values and diagnostic history are never rewritten.
import { readFileSync, writeFileSync, lstatSync } from 'node:fs';
import { join, resolve } from 'node:path';

const args = process.argv.slice(2);
if (args.some(a => a.startsWith('--') && a !== '--dry-run') || args.filter(a => !a.startsWith('--')).length > 1) {
console.error('Usage: node codemod.mjs [--dry-run] [target-dir]');
process.exit(2);
}
try {
const file = join(resolve(args.find(a => !a.startsWith('--')) ?? '.'), 'transitrix.yaml');
if (!lstatSync(file).isFile() || lstatSync(file).isSymbolicLink()) throw new Error('Manifest must be a regular file, not a symlink');
const text = readFileSync(file, 'utf8');
const lines = text.match(/^methodology_version:.*$/gm) ?? [];
const pin = /^methodology_version: (["']?)(7\.0\.0|8\.0\.0)\1([ \t]*(?:#.*)?)(\r?)$/;
const candidateKeys = text.match(/(?:^|[ \t,{])[\"']?methodology_version[\"']?[ \t]*:/gm) ?? [];
if (candidateKeys.length !== 1 || lines.length !== 1 || !pin.test(lines[0])) {
console.error('Manual intervention: expected one top-level 7.0.0 or 8.0.0 methodology_version pin.');
process.exit(1);
}
const next = text.replace(/^methodology_version:.*$/m, line => line.replace(pin, (_, quote, version, comment, cr) => `methodology_version: ${quote}8.0.0${quote}${comment}${cr}`));
const changed = next !== text;
if (changed && !args.includes('--dry-run')) writeFileSync(file, next);
if (changed) console.log('transitrix.yaml: methodology_version 7.0.0 -> 8.0.0 (1 field)');
console.log(`1 file scanned; ${changed ? 1 : 0} file${changed ? '' : 's'} ${args.includes('--dry-run') ? 'would change' : 'changed'}.`);
console.log('Pin update only: complete the manual compatibility review and run validate.mjs.');
} catch (error) {
console.error(error.message);
process.exit(2);
}
3 changes: 3 additions & 0 deletions migrations/7.0-to-8.0/fixtures/after/transitrix.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Synthetic migration fixture
methodology_version: "8.0.0" # preserve comment
name: Synthetic example
3 changes: 3 additions & 0 deletions migrations/7.0-to-8.0/fixtures/before/transitrix.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Synthetic migration fixture
methodology_version: "7.0.0" # preserve comment
name: Synthetic example
44 changes: 44 additions & 0 deletions migrations/7.0-to-8.0/test.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
import { test } from 'node:test';
import assert from 'node:assert/strict';
import { mkdtempSync, readFileSync, writeFileSync, mkdirSync, symlinkSync, rmSync, cpSync } from 'node:fs';
import { tmpdir } from 'node:os';
import { join } from 'node:path';
import { fileURLToPath } from 'node:url';
import { spawnSync } from 'node:child_process';
const recipe = fileURLToPath(new URL('.', import.meta.url));
const run = (script, root, ...flags) => spawnSync(process.execPath, [join(recipe, script), ...flags, root], { encoding: 'utf8' });
test('dry-run, fixture result, idempotence and opaque model bytes', () => {
const root = mkdtempSync(join(tmpdir(), 'migration-7-8-'));
try {
cpSync(join(recipe, 'fixtures/before'), root, { recursive: true });
const model = Buffer.from([0, 255, 1, 35, 10]);
writeFileSync(join(root, 'original.bin'), model);
const before = readFileSync(join(root, 'transitrix.yaml'));
assert.equal(run('codemod.mjs', root, '--dry-run').status, 0);
assert.deepEqual(readFileSync(join(root, 'transitrix.yaml')), before);
assert.equal(run('validate.mjs', root).status, 1);
assert.equal(run('codemod.mjs', root).status, 0);
const after = readFileSync(join(root, 'transitrix.yaml'));
assert.deepEqual(after, readFileSync(join(recipe, 'fixtures/after/transitrix.yaml')));
assert.equal(run('codemod.mjs', root).status, 0);
assert.deepEqual(readFileSync(join(root, 'transitrix.yaml')), after);
assert.deepEqual(readFileSync(join(root, 'original.bin')), model);
assert.equal(run('validate.mjs', root).status, 0);
} finally { rmSync(root, { recursive: true, force: true }); }
});
test('ambiguous versions, duplicate pins and symlink manifest never write', () => {
const root = mkdtempSync(join(tmpdir(), 'migration-7-8-reject-'));
try {
for (const text of ['methodology_version: "6.0.0"\n', 'methodology_version: "7.0.0"\n"methodology_version": "6.0.0"\n', 'methodology_version: "7.0.0"\nmethodology_version: "8.0.0"\n']) {
writeFileSync(join(root, 'transitrix.yaml'), text);
assert.equal(run('codemod.mjs', root).status, 1);
assert.equal(readFileSync(join(root, 'transitrix.yaml'), 'utf8'), text);
}
rmSync(join(root, 'transitrix.yaml'));
writeFileSync(join(root, 'original.yaml'), 'methodology_version: "7.0.0"\n');
symlinkSync('original.yaml', join(root, 'transitrix.yaml'));
assert.equal(run('codemod.mjs', root).status, 2);
assert.equal(run('validate.mjs', root).status, 2);
assert.equal(readFileSync(join(root, 'original.yaml'), 'utf8'), 'methodology_version: "7.0.0"\n');
} finally { rmSync(root, { recursive: true, force: true }); }
});
18 changes: 18 additions & 0 deletions migrations/7.0-to-8.0/validate.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/usr/bin/env node
// Read-only check of the sole mechanical transform; not model qualification.
import { readFileSync, lstatSync } from 'node:fs';
import { join, resolve } from 'node:path';
try {
const args = process.argv.slice(2);
if (args.length > 1 || args.some(a => a.startsWith('--'))) throw new Error('Usage: node validate.mjs [target-dir]');
const file = join(resolve(args[0] ?? '.'), 'transitrix.yaml');
if (!lstatSync(file).isFile() || lstatSync(file).isSymbolicLink()) throw new Error('Manifest must be a regular file, not a symlink');
const text = readFileSync(file, 'utf8');
const lines = text.match(/^methodology_version:.*$/gm) ?? [];
const candidateKeys = text.match(/(?:^|[ \t,{])[\"']?methodology_version[\"']?[ \t]*:/gm) ?? [];
if (candidateKeys.length !== 1 || lines.length !== 1 || !/^methodology_version: (["']?)8\.0\.0\1[ \t]*(?:#.*)?\r?$/.test(lines[0])) {
console.error('Expected one top-level methodology_version 8.0.0 pin.');
process.exit(1);
}
console.log('PASS: manifest transform only. Model, tooling, profile and reporting qualification remain separate; see README.md.');
} catch (error) { console.error(error.message); process.exit(2); }
4 changes: 2 additions & 2 deletions notations/CONTRACT.md
Original file line number Diff line number Diff line change
Expand Up @@ -983,7 +983,7 @@ Structural layout of a view document:
```yaml
notation: dgca # §1 — required header
spec_version: "0.1" # §1 — optional header
methodology_version: "7.0.0" # manifest-pinned methodology version
methodology_version: "8.0.0" # manifest-pinned methodology version
name: "Retail strategy chain" # §1.1 — required document name

view: # view identity block — id only; name lives at root per §1.1
Expand Down Expand Up @@ -1082,7 +1082,7 @@ views/
```yaml
view_id: DGCA-RETAIL-1 # canonical ID of the view being captured
generated_at: "2026-06-20T14:30:00Z" # ISO-8601 UTC timestamp — matches the file name
methodology_version: "7.0.0" # methodology version in use at generation time
methodology_version: "8.0.0" # methodology version in use at generation time
# …notation-specific element list follows (format defined per notation spec)…
```

Expand Down
4 changes: 2 additions & 2 deletions notations/COVERAGE_PROFILES.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ A profile is declared at the repository root in `transitrix.yaml` under the `cov

```yaml
transitrix: 1
methodology_version: "7.0.0"
methodology_version: "8.0.0"
notations: [dgca, goals, activities, capability-map]
zones: [canon, field]
coverage_profile: core # short form — name a shipped preset
Expand Down Expand Up @@ -250,7 +250,7 @@ The shipped presets (`minimal`, `core`, `full`) are *re-defined per methodology
```yaml
# transitrix.yaml
transitrix: 1
methodology_version: "7.0.0"
methodology_version: "8.0.0"
notations: [dgca, goals, activities, capability-map, applications]
zones: [canon, field]
# coverage_profile omitted → defaults to `full`
Expand Down
2 changes: 1 addition & 1 deletion notations/CURRENT_VERSION.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
# placeholder allowlist in scripts/check-notations.mjs. Enforced by that
# script's V1 check. See notations/CONTRACT.md §10 for the versioning and
# compatibility policy this pin follows.
methodology_version: "7.0.0"
methodology_version: "8.0.0"
2 changes: 1 addition & 1 deletion notations/MANIFEST.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ A worked example lives at `transitrix.yaml` in the [acme-corp reference repo](ht

```yaml
transitrix: 1 # manifest schema version (integer)
methodology_version: "7.0.0" # the methodology release this repo conforms to
methodology_version: "8.0.0" # the methodology release this repo conforms to
notations: [dgca, goals, action, capability-map, codex]
zones: [canon, field, codex]
coverage_profile: full # optional — see COVERAGE_PROFILES.md
Expand Down
2 changes: 1 addition & 1 deletion notations/PACKAGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ A package is declared at the repository root in `transitrix.yaml` under the `pac

```yaml
transitrix: 1
methodology_version: "7.0.0"
methodology_version: "8.0.0"
notations: [dgca, goals, activities, capability-map]
zones: [canon, field]
coverage_profile: core
Expand Down
Loading
Loading