From f0251567dcbef4abbdb41c433105dfb7e846aad1 Mon Sep 17 00:00:00 2001 From: alexruidan <41616537+xLagerFeuer@users.noreply.github.com> Date: Thu, 26 Nov 2026 19:48:01 +0300 Subject: [PATCH] Revert VSM OSS-specific Upstream reference exception (#121) --- AGENTS.md | 2 +- CHANGELOG.md | 2 - PROTOCOL.md | 6 +- README.md | 4 +- docs/CAPABILITY_ROADMAP.md | 2 +- docs/EXPERIMENTAL_ROADMAP_TARGETS.md | 38 ++--------- scripts/validate_capability_roadmap.py | 72 ++++++--------------- scripts/validate_experimental_roadmap.py | 5 +- scripts/validate_roadmap_publication.py | 10 ++- tests/test_reference_realization_roadmap.py | 59 ----------------- 10 files changed, 38 insertions(+), 162 deletions(-) delete mode 100644 tests/test_reference_realization_roadmap.py diff --git a/AGENTS.md b/AGENTS.md index 3f105aa..d9872c1 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -16,7 +16,7 @@ **Competing-PR coverage is not established by existence or passing tests.** For every VSM-derived/informed Upgrade hypothesis, use [the function-ownership/overlap receipt](PROTOCOL.md#existing-work-functional-overlap-and-vsm-ownership-gate): pin historical assessment plus current original source and competing PR head/diff, identify the decisive VSM decision owner and closure, compare matched native cases, and explicitly assess the remaining user task. An S2 tab router, static limit, or health check is not S3; current-task retry or accumulated helpers is not S4. Evaluate continuation/dependent work before opening a duplicate, but never mutate another author's PR branch or post to an external repo without the separate exact public consent. A partial/uncertain overlap does not close the single-harness search; preserve `EVIDENCE_INSUFFICIENT` where functional proof is absent. -**Explicit experimental target dispatch:** Named `upstream roadmap OWNER/REPO --target A` / `--target P` follows [the experimental extension](docs/EXPERIMENTAL_ROADMAP_TARGETS.md), local draft-only. C (including explicit --target C) remains the ordinary full cycle. Experimental dispatch takes precedence over named default persistence/outreach rules; keep accepted Index, six-function census, Track A/B, rights and consent gates. Never relabel P/A as C or count an experiment as a canonical case. Sole exception to the Index input: explicitly named `opensiro/vsm-oss-organization` uses the [local reference route](docs/EXPERIMENTAL_ROADMAP_TARGETS.md#vsm-oss-only-reference-realization) for C/P/A, before any production dispatch; no other repository or Upgrade is exempt. +**Explicit experimental target dispatch:** Named `upstream roadmap OWNER/REPO --target A` / `--target P` follows [the experimental extension](docs/EXPERIMENTAL_ROADMAP_TARGETS.md), local draft-only. C (including explicit --target C) remains the ordinary full cycle. Experimental dispatch takes precedence over named default persistence/outreach rules; keep accepted Index, six-function census, Track A/B, rights and consent gates. Never relabel P/A as C or count an experiment as a canonical case. **Unspecified `upstream roadmap` / `upstream roadmap select` — Index-first discovery:** First use [scripts/roadmap_select.py](scripts/roadmap_select.py) to pin the accepted included Index cohort and produce source-native candidates; verify original repo/license/contributor formalities, issue bodies, competing PR heads, fork parent, owner PAUSE/STOP, live original head and prior roadmap before locking one original. `select` is read-only research leads only. Unnamed `upstream roadmap` continues from the first source-validated qualified original into the normal named full cycle, with no automatic publication. Missing grades and matching issue titles are not demonstrated C needs, and a ranking is not a scheduler or new contribution. [Selection protocol](PROTOCOL.md#index-first-upstream-roadmap-selection-unspecified-source-read-only-lead-screen) · [existing case view](scripts/roadmap_view.py). diff --git a/CHANGELOG.md b/CHANGELOG.md index ffe9a6f..a75c26d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,8 +6,6 @@ ## Unreleased -- **VSM OSS-only local reference Roadmap:** Exact named `opensiro/vsm-oss-organization` C/P/A plans may use attributable source-pinned Organization-local assessment evidence with a verified local digest instead of Index admission. No other source, Upgrade, production case, selection or publication is exempt. - - **Experimental A/P Roadmap targets:** Explicit named opt-in local draft route with target-family/mode-preservation checks and Human/AI templates; C remains the unchanged default. Experimental drafts cannot pass production case/publication gates. See [experimental extension](docs/EXPERIMENTAL_ROADMAP_TARGETS.md). - **Native Idea feature-request form (PATCH, 2026-11-26):** Recognize a first-party YAML feature_request/feature-request form explicitly named Idea (Filament); retain declared-name checks, required fields, ambiguous-channel and exact consent gates. A filename alone or an unrelated Idea form does not establish a feature route. diff --git a/PROTOCOL.md b/PROTOCOL.md index 003a2ab..30430c8 100644 --- a/PROTOCOL.md +++ b/PROTOCOL.md @@ -10,9 +10,7 @@ ## Mandatory accepted-assessment prerequisite — fail closed -**Sole reference-realization exception — VSM OSS only.** Explicitly named `upstream roadmap opensiro/vsm-oss-organization` (default C, or `--target C|P|A`) takes the [VSM OSS reference route](docs/EXPERIMENTAL_ROADMAP_TARGETS.md#vsm-oss-only-reference-realization) before the ordinary Index/fork route. It requires a source-pinned, attributable Organization-local six-function assessment, not an Index admission; missing or inadequate local evidence fails closed. This exception is PLAN_ONLY / LOCAL DRAFT ONLY for that exact repository and bounded system, not other OpenSiro repos, aliases, forks, Upgrade, selection, queue, canonical persistence or publication. All external cases retain the accepted included Index requirement. - -**Prerequisite for all other original-specific Upstream interactions.** Before starting or continuing `upstream roadmap OWNER/REPO`, `upstream upgrade`, a target-specific upgrade batch, capability selection, feature decision, implementation or a new fork-local roadmap/upgrade Issue, verify an **accepted canonical `status: included` general VSM assessment** in [`opensiro/vsm-harness-index`](https://github.com/opensiro/vsm-harness-index) at a recorded Index commit. Match the *exact original repository* URL, `harness_id`, and `review_ref` against the accepted Index `data/catalog.psv` row and confirm the 40-character source revision resolves in that original repository. Record the accepted assessment blob SHA, `reviewed_at`, Profile and Methodology versions, Index SHA and current original HEAD separately. A newer HEAD triggers a source-relevance/freshness check, not a silent rewrite of the historical `review_ref`. +**Prerequisite for all original-specific Upstream interactions.** Before starting or continuing `upstream roadmap OWNER/REPO`, `upstream upgrade`, a target-specific upgrade batch, capability selection, feature decision, implementation or a new fork-local roadmap/upgrade Issue, verify an **accepted canonical `status: included` general VSM assessment** in [`opensiro/vsm-harness-index`](https://github.com/opensiro/vsm-harness-index) at a recorded Index commit. Match the *exact original repository* URL, `harness_id`, and `review_ref` against the accepted Index `data/catalog.psv` row and confirm the 40-character source revision resolves in that original repository. Record the accepted assessment blob SHA, `reviewed_at`, Profile and Methodology versions, Index SHA and current original HEAD separately. A newer HEAD triggers a source-relevance/freshness check, not a silent rewrite of the historical `review_ref`. **No assessment, no further Upstream work.** An unmerged Index PR or `status: proposed` artifact, a locally drafted assessment, a predecessor's grades (Gas Town is NOT Gas City), a remembered/chat-only verdict, an excluded assessment or a fork-local `.opensiro` note does **not** pass. Stop further target-specific roadmap evaluation, new upgrade/implementation decisions, and public fork/original publication as **`ASSESSMENT_REQUIRED / BLOCKED`**. Only lawful source, license and authority preflight and the **Index-owned single-target assessment/intake/admission process** are permitted until the canonical assessment is accepted. That process must follow Profile/Skills, the Index lifecycle, catalog reconciliation, synthesis/derived views, structural validation, CI and ordinary review. Do not substitute `NEEDS_EVIDENCE`, `NO_USEFUL_CHANGE`, a new draft or a local model judgment for an accepted Index record. @@ -69,7 +67,7 @@ Example: `python3 scripts/validate_public_issue_payload.py --kind fork --case-di 4. Check native **need, mechanism, counterfactual and scope**. Unsupported claims remain pending. No mandatory six-function S1–S5 scan or per-session batch. 5. Before implementation, apply the [material capability-delta gate](#material-capability-delta-gate-before-implementation). An Index link, a new configuration flag, a passing unit test or an absence in a VSM function vector is not independently a useful Upgrade. -**Experimental target dispatch (opt-in):** Named `upstream roadmap OWNER/REPO --target A` or `--target P` uses [Experimental Capability Roadmap targets](docs/EXPERIMENTAL_ROADMAP_TARGETS.md) and its local draft-only boundary instead of production C persistence/publication. Unqualified or explicit C remains the existing route. No change to Index admission for other sources, legal/owner control, default selection or public consent. The sole VSM OSS reference exception above takes precedence. +**Experimental target dispatch (opt-in):** Named `upstream roadmap OWNER/REPO --target A` or `--target P` uses [Experimental Capability Roadmap targets](docs/EXPERIMENTAL_ROADMAP_TARGETS.md) and its local draft-only boundary instead of production C persistence/publication. Unqualified or explicit C remains the existing route. No change to Index admission, legal/owner control, default selection or public consent. ## Mandatory Roadmap case-write Human/AI template gate diff --git a/README.md b/README.md index c0d16c3..ea384b1 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ ## Mandatory assessment prerequisite -Except for the [VSM OSS-only local reference route](docs/EXPERIMENTAL_ROADMAP_TARGETS.md#vsm-oss-only-reference-realization), every named `upstream roadmap OWNER/REPO`, `upstream upgrade` and original-specific contribution requires a **canonical accepted included** general VSM assessment in the [Index](https://github.com/opensiro/vsm-harness-index) first, matching the original repository and `data/catalog.psv` `review_ref`. A proposed assessment, unmerged PR, predecessor-only vector or missing row means **`ASSESSMENT_REQUIRED / BLOCKED`**: complete the Index assessment/admission path first; no new roadmap verdict, upgrade implementation or public issue. Then re-evaluate against the accepted Index main and preserve all separate public consent gates. [Protocol](PROTOCOL.md#mandatory-accepted-assessment-prerequisite--fail-closed). +Every named `upstream roadmap OWNER/REPO`, `upstream upgrade` and original-specific contribution requires a **canonical accepted included** general VSM assessment in the [Index](https://github.com/opensiro/vsm-harness-index) first, matching the original repository and `data/catalog.psv` `review_ref`. A proposed assessment, unmerged PR, predecessor-only vector or missing row means **`ASSESSMENT_REQUIRED / BLOCKED`**: complete the Index assessment/admission path first; no new roadmap verdict, upgrade implementation or public issue. Then re-evaluate against the accepted Index main and preserve all separate public consent gates. [Protocol](PROTOCOL.md#mandatory-accepted-assessment-prerequisite--fail-closed). ## I'm human @@ -26,7 +26,7 @@ Upstream is the **operational S1 domain** of [OpenSiro VSM OSS](https://github.c **Protocol:** [v0.18.3](VERSION) · [How work proceeds](PROTOCOL.md) · [Fork metadata](docs/FORK_METADATA.md) · [Architecture](docs/ARCHITECTURE.md) · [History](CHANGELOG.md) · [Releases](https://github.com/opensiro/upstream/releases) -**Experimental explicit targets:** `upstream roadmap OWNER/REPO --target P` or `--target A` selects a [local draft-only experimental extension](docs/EXPERIMENTAL_ROADMAP_TARGETS.md). C remains the default; no experimental canonical case write or external publication. Only explicitly named `opensiro/vsm-oss-organization` uses the local reference assessment route for C/P/A. +**Experimental explicit targets:** `upstream roadmap OWNER/REPO --target P` or `--target A` selects a [local draft-only experimental extension](docs/EXPERIMENTAL_ROADMAP_TARGETS.md). C remains the default; no experimental canonical case write or external publication. ## Command navigation — choose the owning read-only projection first diff --git a/docs/CAPABILITY_ROADMAP.md b/docs/CAPABILITY_ROADMAP.md index 34b1c1d..4d2e802 100644 --- a/docs/CAPABILITY_ROADMAP.md +++ b/docs/CAPABILITY_ROADMAP.md @@ -10,7 +10,7 @@ The normative [Profile](https://github.com/opensiro/vsm-harness-profile/blob/mai ## Mandatory Index assessment gate for named roadmaps -A named original is **not exempt** from Index-first admission, except the [exact VSM OSS local reference route](EXPERIMENTAL_ROADMAP_TARGETS.md#vsm-oss-only-reference-realization), which is draft-only and does not enter the production route below. Before continuing an original-specific `upstream roadmap OWNER/REPO`, read a canonical **accepted included** standalone general assessment in `opensiro/vsm-harness-index` and its matching `data/catalog.psv` repository and `review_ref` at a pinned Index commit. Capture the assessment blob SHA, Profile/Methodology versions and review date, while independently recording the current original HEAD. `status: proposed`, an excluded row, unmerged PR, predecessor assessment or `NOT_ASSESSED` placeholder is insufficient. Missing → **`ASSESSMENT_REQUIRED / BLOCKED`**: complete only lawful preflight and the Index-owned assessment/admission path, **not** another `NEEDS_EVIDENCE` roadmap, speculative `NO_USEFUL_CHANGE` verdict, fork Issue or upgrade. Re-run the roadmap after independent accepted Index `main` readback. This is separate from exact public publication consent. +A named original is **not exempt** from Index-first admission. Before continuing an original-specific `upstream roadmap OWNER/REPO`, read a canonical **accepted included** standalone general assessment in `opensiro/vsm-harness-index` and its matching `data/catalog.psv` repository and `review_ref` at a pinned Index commit. Capture the assessment blob SHA, Profile/Methodology versions and review date, while independently recording the current original HEAD. `status: proposed`, an excluded row, unmerged PR, predecessor assessment or `NOT_ASSESSED` placeholder is insufficient. Missing → **`ASSESSMENT_REQUIRED / BLOCKED`**: complete only lawful preflight and the Index-owned assessment/admission path, **not** another `NEEDS_EVIDENCE` roadmap, speculative `NO_USEFUL_CHANGE` verdict, fork Issue or upgrade. Re-run the roadmap after independent accepted Index `main` readback. This is separate from exact public publication consent. ## Selecting the next original from the accepted Index diff --git a/docs/EXPERIMENTAL_ROADMAP_TARGETS.md b/docs/EXPERIMENTAL_ROADMAP_TARGETS.md index 0ebedd7..3bb1d8f 100644 --- a/docs/EXPERIMENTAL_ROADMAP_TARGETS.md +++ b/docs/EXPERIMENTAL_ROADMAP_TARGETS.md @@ -14,43 +14,19 @@ These are conversational commands, not implemented Upstream CLI subcommands. | `upstream roadmap OWNER/REPO --target P` | Explicit experimental P-family, one named original, local draft only. | | `upstream roadmap OWNER/REPO --target A` | Explicit experimental A-family, one named original, local draft only. | -Except for the exact VSM OSS reference route below, unspecified-source selection, independent rerun cohort, Upgrade, portfolio statistics and all existing canonical cases remain C-route compatible. P/A experiments require a named original and explicit family selection; do not silently fall back to C or change targets after locking the original. Unknown targets and unnamed P/A requests do not start an experiment. No automatic experiment in a default or queue-driven invocation. - -## VSM OSS only reference realization - -**Sole exception: `opensiro/vsm-oss-organization`**, explicitly named, at its declared bounded public organizational recursion (including its operational domains, not unrelated OpenSiro projects). Resolve the actual canonical identity and current default HEAD through START_HERE and ECOSYSTEM. This is a self-study of the intentional reference realization, not an original maintainer contribution. The named command with no target defaults to C; explicit C/P/A are permitted. No other repository, fork, alias, selector, batch, Upgrade or external interaction inherits this exception. No implicit dispatch from an unnamed command. - -Use the same whole-system six-function research, Track A/B, source checks, priorities, and target-specific sufficiency as ordinary Roadmap; distinguish historical local baseline from current source and do not claim independent assessment if not independent. In place of accepted Index evidence, require an attributable, dated Organization-local six-function assessment of the exact bounded system under pinned Profile and Skills versions, with the underlying Organization source SHA and exact assessment bytes digest. An Organization issue may serve as a source-pinned local baseline only if its assessment text, source SHA, date, method and scope are explicit; record its observed SHA-256 and preserve the exact observed assessment text in local evidence attachment `local-assessment-source.md` (not a fifth case document or canonical record). A milestone target or an unsupported conversation vector cannot substitute. Missing or inadequate local evidence is ASSESSMENT_REQUIRED / BLOCKED. Review material source drift; local preliminary evidence remains preliminary, never an Index grade or admission. - -The local four-file draft follows the experimental templates (same headings; substitute LOCAL REFERENCE ASSESSMENT for ACCEPTED HISTORICAL INDEX, Historical local state for Historical Index state, and local provenance for Index provenance). Receipt fields replace the four Index pin fields and Accepted VSM vector with: - -- Local assessment source: exact Organization issue URL or immutable Organization blob URL -- Local assessment SHA-256: digest of exact observed assessment text -- Local assessed ref: full Organization source commit SHA -- Local assessed at: YYYY-MM-DD -- Profile ref: immutable Profile commit blob URL -- Methodology ref: immutable Skills commit blob URL -- Local VSM vector: six ordered Skills states - -Use the marker LOCAL REFERENCE ASSESSMENT in Human and the experimental-proposal-gate receipt contract. For C use the ordinary function-specific constructor threshold and default exclusions (already A/C, including composite; no S1=C; P retained unless a separately justified hypothetical replacement); preserving a P mode may yield C(P). For P/A use the unchanged family rules below. The local validator is explicit: - -```sh -python3 scripts/validate_experimental_roadmap.py --reference-realization --target A /path/to/case-dir -``` - -Replace A with C or P for that explicit reference case only. Structural validation checks exact identity, provenance format and the local evidence attachment digest, not evidence truth. Production validators and the ordinary A/P validator reject this local reference receipt. No canonical persistence, fork provisioning, public issue/comment/PR/Discussion, statistics, implementation, grant or milestone closure; any later Organization-native action uses its separate owning governance contract. No automatic transfer of S5 rights. +Unspecified-source selection, independent rerun cohort, Upgrade, portfolio statistics and all existing canonical cases remain C-route compatible. P/A experiments require a named original and explicit family selection; do not silently fall back to C or change targets after locking the original. Unknown targets and unnamed P/A requests do not start an experiment. No automatic experiment in a default or queue-driven invocation. ## Same Roadmap methodology; different target sufficiency -Follow the same current [protocol](../PROTOCOL.md), accepted Index prerequisite (sole VSM OSS local exception above), license/formality checks, verified current original source and existing owner PAUSE/STOP boundaries. Separate the accepted historical Index vector (or VSM OSS local baseline) from current source findings. Apply the whole-repository six-function census, neutral target ranking, Track A (shipped code, native workarounds, Issues, PR heads) and independent Track B (minimum complete on-top native change) on the same task and revision. Select one function after comparing plausible candidates; keep P0/P1/P2 and Human/AI/canonical receipt aligned. No target from a missing historical grade alone; inspect current source and resolve material unknowns. No requirement to maximize autonomy, create all six functions, or first create C before A. +Follow the same current [protocol](../PROTOCOL.md), accepted Index prerequisite, license/formality checks, verified current original source and existing owner PAUSE/STOP boundaries. Separate the accepted historical Index vector from current source findings. Apply the whole-repository six-function census, neutral target ranking, Track A (shipped code, native workarounds, Issues, PR heads) and independent Track B (minimum complete on-top native change) on the same task and revision. Select one function after comparing plausible candidates; keep P0/P1/P2 and Human/AI/canonical receipt aligned. No target from a missing historical grade alone; inspect current source and resolve material unknowns. No requirement to maximize autonomy, create all six functions, or first create C before A. -- **A family:** propose a function-specific, complete first-party standard-distribution operating mode in which an autonomous agent owns the decisive choice/feedback right, has legitimate authority and relevant information, and closes it through actual subsequent operation. Configuration, model/provider selection and a compatible external runtime may remain user-provided; the developer must not still need to construct the decisive autonomous actor, authority or material closure loop. Generic automation or code examples are insufficient. Eligible functions follow Skills; accepted Index admission remains mandatory except for the exact VSM OSS local reference route, which still follows Skills semantics and S1 rules. +- **A family:** propose a function-specific, complete first-party standard-distribution operating mode in which an autonomous agent owns the decisive choice/feedback right, has legitimate authority and relevant information, and closes it through actual subsequent operation. Configuration, model/provider selection and a compatible external runtime may remain user-provided; the developer must not still need to construct the decisive autonomous actor, authority or material closure loop. Generic automation or code examples are insufficient. Eligible functions follow Skills; accepted Index admission remains mandatory, including S1 inclusion rules. - **P family:** propose a distinct, function-specific first-party parent-governed mode for **S3, S4 or S5 only**, with a legitimate parent decision owner at the declared recursion, information channel, authoritative choice, returned decision and effect/feedback. An ordinary approval, kill switch, config edit or external oversight alone is not P. Do not equate any parent decision with S5. - Apply the actual function-specific Profile witness, not a generic actor checklist: e.g. S2 inter-S1 interference, S3 whole-system current regulation, S3* independent complementary evidence, S4 prospective environment and two-way S3 conversation, S5 legitimate ultimate policy. Cite the applicable pinned Skills Methodology, do not redefine states. ## Target transition and preservation -For ordinary P/A experiments, the family is the requested new ownership mode, not necessarily the final notation. The VSM OSS-only C route applies its separate C rule above. Record exact historical state -> proposed after-state for the same function and the independently reconstructed current state. Example: historical S4=—, current S4=C, requested P with preservation means `S4=— -> S4=C(P)`. +The family is the requested new ownership mode, not necessarily the final notation. Record exact historical state -> proposed after-state for the same function and the independently reconstructed current state. Example: historical S4=—, current S4=C, requested P with preservation means `S4=— -> S4=C(P)`. | Observed current mode | A family, preserving modes | P family, preserving modes | | --- | --- | --- | @@ -61,13 +37,13 @@ For ordinary P/A experiments, the family is the requested new ownership mode, no | A | Already established | A(P) | | A(P) | Already established | Already established | -Preserve independent modes by default. A hypothetical A/P replacement may target standalone A or P only with explicit source-grounded rationale and prospective legitimate authority; no replacement, revocation or grant occurs during Roadmap. For A, retaining an existing C interface is an engineering compatibility question, not a new autonomy modifier. A(P)/C(P) require independently supported mode-specific witnesses and reconstructable ownership in each actual run, not shared simultaneous authority or exceptional human intervention alone. Record trigger/mode selection, decision owner, rights, return, conflicts and preservation. Check cross-function and cross-recursion compatibility (S5=A does not automatically require S3/S4=A; parent S3/S4 does not imply S5=P). Escalation of reserved S5 matters is not parent ownership of another function by itself. +Preserve independent modes by default. A hypothetical replacement may target standalone A or P only with explicit source-grounded rationale and prospective legitimate authority; no replacement, revocation or grant occurs during Roadmap. For A, retaining an existing C interface is an engineering compatibility question, not a new autonomy modifier. A(P)/C(P) require independently supported mode-specific witnesses and reconstructable ownership in each actual run, not shared simultaneous authority or exceptional human intervention alone. Record trigger/mode selection, decision owner, rights, return, conflicts and preservation. Check cross-function and cross-recursion compatibility (S5=A does not automatically require S3/S4=A; parent S3/S4 does not imply S5=P). Escalation of reserved S5 matters is not parent ownership of another function by itself. For each eligible proposed mode provide a concrete observed or hypothetical application scenario, source-native alternatives, complete proposed chain, precise falsifier, and positive/negative acceptance tests. Discuss expected benefits and matched costs as hypotheses, NOT_MEASURED. Use source-grounded design GO + NEEDS_EVIDENCE when appropriate; do not impose proven benefit, product demand or maintainer agreement as an extra GO criterion. NO_GO is scoped to equivalent target ownership already established, incoherent/incomplete construction, binding impossibility or justified absence of a qualified target. BLOCKED is for an indispensable unresolved fact after permitted attempts, with owner/unlock. Distinguish hypothetical legitimate authority construction from an operative grant. No proposal-stage assessment changes or native test success. ## Experimental case draft -For VSM OSS reference drafts substitute the local baseline fields above; other experiments retain Index fields. Use the usual four filenames **locally**, as a single experimental draft, not a parallel canonical case. Reuse the standard receipt's nine sections and Parallel contribution-on-top review; fill all current proposal-gate fields except replace `Proposed C construction` and `C sufficiency falsifier` with `Proposed target construction` and `Target sufficiency falsifier`. Use these explicit receipt fields: +Use the usual four filenames **locally**, as a single experimental draft, not a parallel canonical case. Reuse the standard receipt's nine sections and Parallel contribution-on-top review; fill all current proposal-gate fields except replace `Proposed C construction` and `C sufficiency falsifier` with `Proposed target construction` and `Target sufficiency falsifier`. Use these explicit receipt fields: ```text - Receipt contract: experimental-proposal-gate @@ -82,7 +58,7 @@ For VSM OSS reference drafts substitute the local baseline fields above; other e These example values are illustrative, not assessed evidence. With no qualified target use `NO_QUALIFIED_A_TARGET` or `NO_QUALIFIED_P_TARGET`, NO_GO, current NONE, preservation NOT_APPLICABLE, and explain the census/authority disposition. With a material unresolved current state use ?, BLOCKED, preservation UNRESOLVED and name the missing fact; do not guess a positive state. For a selected resolved state use PRESERVE or REPLACE, with mode rationale. The target family, current state, preservation, prospective authority, cross-function compatibility, target transition and both verdicts must match the receipt in Human and AI. -- README.md links the three other files, pinned source and Index (or the VSM OSS local assessment) and original identity, explicitly marks EXPERIMENTAL — DRAFT ONLY. +- README.md links the three other files, pinned source/Index and original identity, explicitly marks EXPERIMENTAL — DRAFT ONLY. - Human `issue.md`: [experimental eight-section template](../templates/EXPERIMENTAL_ROADMAP_HUMAN.md). - AI `constructor-sufficiency.md`: [experimental six-section template](../templates/EXPERIMENTAL_ROADMAP_AI.md); stable filename retained for compatibility, not a claim of C. - `roadmap.md`: canonical decision receipt **within this local experiment only**, same historical pins, source map, six dispositions, P0/P1/P2, decision, proposed validation and source-backed limitations. diff --git a/scripts/validate_capability_roadmap.py b/scripts/validate_capability_roadmap.py index 5350559..d49366a 100644 --- a/scripts/validate_capability_roadmap.py +++ b/scripts/validate_capability_roadmap.py @@ -3,7 +3,6 @@ from __future__ import annotations -import hashlib import re import sys from pathlib import Path @@ -29,11 +28,6 @@ "Accepted reviewed at", "System in focus", ) -REFERENCE_REPO = "opensiro/vsm-oss-organization" -REFERENCE_FIELDS = ("Local assessment source", "Local assessment SHA-256", - "Local assessed ref", "Local assessed at", "Profile ref", "Methodology ref") -INDEX_FIELDS = ("Accepted Index assessment", "Accepted assessment blob SHA", - "Accepted review ref", "Accepted reviewed at") HEX40 = re.compile(r"[0-9a-f]{40}\Z") DATE = re.compile(r"\d{4}-\d{2}-\d{2}\Z") REPO = re.compile(r"[A-Za-z0-9_.-]+/[A-Za-z0-9_.-]+\Z") @@ -75,7 +69,7 @@ def parse_vector(vector: str) -> dict[str, str] | None: ) -def experimental_transition_errors(contents: str, target: str, *, reference_realization: bool = False) -> list[str]: +def experimental_transition_errors(contents: str, target: str) -> list[str]: """Check proposed ownership transition; never attest source truth or authority.""" errors = [] if value(contents, "Target family") != target: @@ -90,18 +84,18 @@ def experimental_transition_errors(contents: str, target: str, *, reference_real return errors match = re.fullmatch( r"(S1|S2|S3\*|S3|S4|S5)=(—|\?|A|C|P|A\(P\)|C\(P\))\s*->\s*" - r"(S1|S2|S3\*|S3|S4|S5)=(A|C|P|A\(P\)|C\(P\))", + r"(S1|S2|S3\*|S3|S4|S5)=(A|P|A\(P\)|C\(P\))", transition or "", ) if not match or match[1] != match[3]: return errors + ["invalid experimental Target transition: same function required"] fn, before, _, after = match.groups() - vector = parse_vector(value(contents, "Local VSM vector" if reference_realization else "Accepted VSM vector") or "") + vector = parse_vector(value(contents, "Accepted VSM vector") or "") if vector and vector[fn] != before: errors.append("Target transition disagrees with accepted historical VSM vector") if (target == "A" and after not in ("A", "A(P)")) or ( target == "P" and after not in ("P", "A(P)", "C(P)") - ) or (target == "C" and (not reference_realization or fn == "S1" or after not in ("C", "C(P)"))): + ): errors.append("transition does not match experimental Target family") parent_eligible = fn in ("S3", "S4", "S5") if not parent_eligible and (target == "P" or "P" in after or "P" in (current or "")): @@ -117,51 +111,29 @@ def experimental_transition_errors(contents: str, target: str, *, reference_real # An already-established target may be a scoped NO_GO, not a new GO. existing_a = current in ("A", "A(P)") existing_p = current in ("P", "A(P)", "C(P)") - if decision == "GO" and ((target == "A" and existing_a) or (target == "P" and existing_p) or (target == "C" and (existing_a or current in ("C", "C(P)")))): + if decision == "GO" and ((target == "A" and existing_a) or (target == "P" and existing_p)): errors.append("GO cannot propose an already established target mode") if preservation not in ("PRESERVE", "REPLACE"): errors.append("resolved mode preservation must be PRESERVE or REPLACE") if preservation == "PRESERVE": - expected = ("C(P)" if existing_p else "C") if target == "C" else ("A(P)" if existing_p else "A") if target == "A" else ( + expected = ("A(P)" if existing_p else "A") if target == "A" else ( "A(P)" if existing_a else "C(P)" if current in ("C", "C(P)") else "P" ) if after != expected: errors.append("target transition conflicts with preserved current modes") if preservation == "REPLACE" and after != target: - errors.append("REPLACE must target standalone selected family") + errors.append("REPLACE must target standalone A or P") if not value(contents, "Mode rationale"): errors.append("missing Mode rationale: source-grounded preservation or hypothetical replacement") return errors -def validate(contents: str, *, experimental_target: str | None = None, reference_realization: bool = False) -> list[str]: +def validate(contents: str, *, experimental_target: str | None = None) -> list[str]: errors = [] for section in SECTIONS: if not re.search(r"^## "+re.escape(section)+r"\s*$", contents, re.M): errors.append("missing section: "+section) - if reference_realization: - if experimental_target not in ("C", "P", "A") or value(contents, "Original repository") != REFERENCE_REPO: - return errors + ["reference route requires exact VSM OSS identity and explicit C/P/A target"] - if any(value(contents, key) is not None for key in (*INDEX_FIELDS, "Accepted VSM vector")): - errors.append("reference receipt must not assert accepted Index fields") - local_source = value(contents, "Local assessment source") or "" - if not re.fullmatch(r"https://github\.com/opensiro/vsm-oss-organization/(?:issues/[1-9][0-9]*|blob/[0-9a-f]{40}/[^\s]+)", local_source): - errors.append("local assessment source must be an Organization issue or immutable blob") - for key, pattern in ( - ("Local assessment SHA-256", re.compile(r"[0-9a-f]{64}")), - ("Local assessed ref", HEX40), ("Local assessed at", DATE), - ("Profile ref", re.compile(r"https://github\.com/opensiro/vsm-harness-profile/blob/[0-9a-f]{40}/[^\s]+")), - ("Methodology ref", re.compile(r"https://github\.com/opensiro/vsm-harness-skills/blob/[0-9a-f]{40}/[^\s]+")), - ): - if not pattern.fullmatch(value(contents, key) or ""): - errors.append("invalid or missing local provenance: " + key) - fields = tuple(key for key in FIELDS if key not in INDEX_FIELDS) + REFERENCE_FIELDS - else: - if any(value(contents, key) is not None for key in (*REFERENCE_FIELDS[:4], "Local VSM vector")): - errors.append("local reference receipt cannot enter ordinary Roadmap gates") - fields = FIELDS - vector_key = "Local VSM vector" if reference_realization else "Accepted VSM vector" - for field in fields: + for field in FIELDS: if not value(contents,field): errors.append("missing field: "+field) @@ -178,10 +150,10 @@ def validate(contents: str, *, experimental_target: str | None = None, reference errors.append("invalid format: "+field) on_top = value(contents, "Receipt contract") if experimental_target is not None: - if experimental_target not in (("C", "A", "P") if reference_realization else EXPERIMENTAL_TARGETS) or on_top != EXPERIMENTAL_CONTRACT: - return errors + ["explicit experimental target requires experimental-proposal-gate"] + if experimental_target not in EXPERIMENTAL_TARGETS or on_top != EXPERIMENTAL_CONTRACT: + return errors + ["explicit experimental A/P target requires experimental-proposal-gate"] elif on_top == EXPERIMENTAL_CONTRACT or value(contents, "Target family") in EXPERIMENTAL_TARGETS: - return errors + ["experimental receipt is not a production C Roadmap"] + return errors + ["experimental A/P receipt is not a production C Roadmap"] if on_top in ("contribution-on-top", "proposal-gate", EXPERIMENTAL_CONTRACT): if not re.search(r"^## Parallel contribution-on-top review\s*$", contents, re.M): errors.append("missing section: Parallel contribution-on-top review") @@ -191,7 +163,7 @@ def validate(contents: str, *, experimental_target: str | None = None, reference errors.append("missing field: " + key) if on_top in ("proposal-gate", EXPERIMENTAL_CONTRACT): for key in ("Repository-wide source map", "Priority rationale", - vector_key, "Target transition", "P1 dependencies", + "Accepted VSM vector", "Target transition", "P1 dependencies", "P2 optional", "Proposed target construction" if experimental_target else "Proposed C construction", "Target sufficiency falsifier" if experimental_target else "C sufficiency falsifier", @@ -202,9 +174,9 @@ def validate(contents: str, *, experimental_target: str | None = None, reference for fn in ("S1", "S2", "S3", "S3*", "S4", "S5"): if not value(contents, fn + " disposition"): errors.append("missing field: " + fn + " disposition") - historical = value(contents, vector_key) + historical = value(contents, "Accepted VSM vector") if historical and not parse_vector(historical): - errors.append("invalid " + vector_key + ": require six ordered Skills states") + errors.append("invalid Accepted VSM vector: require six ordered Skills states") disposition = value(contents, "Research disposition") if disposition and disposition not in ("DECISION_READY", "NEEDS_EVIDENCE", "NO_USEFUL_CHANGE"): errors.append("invalid Research disposition") @@ -213,7 +185,7 @@ def validate(contents: str, *, experimental_target: str | None = None, reference for key in EXPERIMENTAL_FIELDS: if not value(contents, key): errors.append("missing experimental field: " + key) - errors.extend(experimental_transition_errors(contents, experimental_target, reference_realization=reference_realization)) + errors.extend(experimental_transition_errors(contents, experimental_target)) elif transition == "NO_QUALIFIED_C_TARGET": if value(contents, "Proposal-stage decision") != "NO_GO": errors.append("NO_QUALIFIED_C_TARGET requires NO_GO") @@ -264,7 +236,7 @@ def display_value(text: str, label: str) -> str | None: return m.group(1).strip().strip("`") if m else None -def validate_case_dir(directory: Path, *, experimental_target: str | None = None, reference_realization: bool = False) -> list[str]: +def validate_case_dir(directory: Path, *, experimental_target: str | None = None) -> list[str]: """Structural consistency: three public-source case files, no GitHub lookups.""" needed = {name: directory / name for name in ("roadmap.md", "issue.md", "constructor-sufficiency.md")} @@ -273,13 +245,7 @@ def validate_case_dir(directory: Path, *, experimental_target: str | None = None if errors: return errors receipt = needed["roadmap.md"].read_text(encoding="utf-8") - errors.extend(validate(receipt, experimental_target=experimental_target, reference_realization=reference_realization)) - if reference_realization: - evidence = directory / "local-assessment-source.md" - if not evidence.is_file(): - errors.append("missing local-assessment-source.md evidence attachment") - elif hashlib.sha256(evidence.read_bytes()).hexdigest() != value(receipt, "Local assessment SHA-256"): - errors.append("local assessment evidence digest mismatch") + errors.extend(validate(receipt, experimental_target=experimental_target)) expected_contract = EXPERIMENTAL_CONTRACT if experimental_target else "proposal-gate" if value(receipt, "Receipt contract") != expected_contract: return errors # grandfather historical read-only receipts @@ -303,7 +269,7 @@ def validate_case_dir(directory: Path, *, experimental_target: str | None = None errors.append("issue.md must link constructor-sufficiency.md") if "[issue.md](issue.md)" not in ai: errors.append("constructor-sufficiency.md must link issue.md") - vector = parse_vector(value(receipt, "Local VSM vector" if reference_realization else "Accepted VSM vector") or "") + vector = parse_vector(value(receipt, "Accepted VSM vector") or "") if vector: for fn in FUNCTIONS: pat = r"(?m)^\|\s*\*\*" + re.escape(fn) + r"\s*·[^|]*\|\s*([^|]+)\|" diff --git a/scripts/validate_experimental_roadmap.py b/scripts/validate_experimental_roadmap.py index b9a40f9..c40a357 100644 --- a/scripts/validate_experimental_roadmap.py +++ b/scripts/validate_experimental_roadmap.py @@ -10,11 +10,10 @@ def main(argv: list[str] | None = None) -> int: parser = argparse.ArgumentParser(description=__doc__) - parser.add_argument("--target", required=True, choices=("A", "P", "C")) - parser.add_argument("--reference-realization", action="store_true", help="exact VSM OSS local baseline only") + parser.add_argument("--target", required=True, choices=("A", "P")) parser.add_argument("case_dir", type=Path) args = parser.parse_args(argv) - errors = check_case_structure(args.case_dir, experimental_target=args.target, reference_realization=args.reference_realization) + errors = check_case_structure(args.case_dir, experimental_target=args.target) if errors: for error in errors: print("EXPERIMENTAL_DRAFT_INVALID: " + error) diff --git a/scripts/validate_roadmap_publication.py b/scripts/validate_roadmap_publication.py index bfd75fc..66befb9 100644 --- a/scripts/validate_roadmap_publication.py +++ b/scripts/validate_roadmap_publication.py @@ -146,13 +146,13 @@ def unfilled_placeholders(body: str, filename: str) -> list[str]: return errors -def check_case_structure(case_dir: Path, *, experimental_target: str | None = None, reference_realization: bool = False) -> list[str]: +def check_case_structure(case_dir: Path, *, experimental_target: str | None = None) -> list[str]: """Shared Human/AI structure. Experimental use is draft-only, never publication readiness.""" errors = [f"missing required roadmap case file: {n}" for n in REQUIRED_FILES if not (case_dir / n).is_file()] if errors: return errors - errors.extend(validate_case_dir(case_dir, experimental_target=experimental_target, reference_realization=reference_realization)) + errors.extend(validate_case_dir(case_dir, experimental_target=experimental_target)) human = (case_dir / "issue.md").read_text(encoding="utf-8") ai = (case_dir / "constructor-sufficiency.md").read_text(encoding="utf-8") readme = (case_dir / "README.md").read_text(encoding="utf-8") @@ -195,18 +195,16 @@ def check_case_structure(case_dir: Path, *, experimental_target: str | None = No for fn in FUNCTIONS: if len([x for x in ROW.findall(human) if x == fn]) != 1: errors.append(f"issue.md: expected exactly one central six-function row for {fn}") - historical = value(receipt, "Local VSM vector" if reference_realization else "Accepted VSM vector") + historical = value(receipt, "Accepted VSM vector") if historical and historical not in human: errors.append("issue.md: central historical accepted Index vector missing or mismatched") - for phrase in ("LOCAL REFERENCE ASSESSMENT" if reference_realization else "ACCEPTED HISTORICAL INDEX", "ownership categories", "not quality ranks"): + for phrase in ("ACCEPTED HISTORICAL INDEX", "ownership categories", "not quality ranks"): if phrase.lower() not in human.lower(): errors.append(f"issue.md: missing template interpretation: {phrase}") if "NOT_MEASURED" not in human or "NOT_MEASURED" not in ai: errors.append("issue.md/constructor-sufficiency.md: cost hypothesis must be NOT_MEASURED") if "[roadmap.md](roadmap.md)" not in readme or "[issue.md](issue.md)" not in readme or "[constructor-sufficiency.md](constructor-sufficiency.md)" not in readme: errors.append("README.md: missing canonical Human/AI/receipt links") - if reference_realization and "accepted historical index" in human.lower(): - errors.append("local reference Human draft must not claim accepted Index provenance") # Do not let a populated template masquerade as external communication permission. return list(dict.fromkeys(errors)) diff --git a/tests/test_reference_realization_roadmap.py b/tests/test_reference_realization_roadmap.py deleted file mode 100644 index 2eb8541..0000000 --- a/tests/test_reference_realization_roadmap.py +++ /dev/null @@ -1,59 +0,0 @@ -"""VSM OSS only: source-pinned local drafts never enter production gates.""" -import hashlib -import re -import tempfile -import unittest -from pathlib import Path -from test_experimental_roadmap_targets import make_case, receipt -from validate_capability_roadmap import validate, validate_case_dir -from validate_roadmap_publication import check_case_structure, check_publication_ready - -REPO = "opensiro/vsm-oss-organization" -EVIDENCE = b"synthetic local assessment evidence" -LOCAL = { - "Local assessment source": "https://github.com/" + REPO + "/issues/346", - "Local assessment SHA-256": hashlib.sha256(EVIDENCE).hexdigest(), - "Local assessed ref": "b" * 40, - "Local assessed at": "2026-11-26", - "Profile ref": "https://github.com/opensiro/vsm-harness-profile/blob/" + "c"*40 + "/PROFILE.md", - "Methodology ref": "https://github.com/opensiro/vsm-harness-skills/blob/" + "d"*40 + "/METHODOLOGY.md", -} - -def localize(body): - body = re.sub(r"(?m)^- Original repository:.*$", "- Original repository: "+REPO, body) - body = re.sub(r"(?m)^- Accepted (?:Index assessment|assessment blob SHA|review ref|reviewed at):.*\n", "", body) - body = body.replace("Accepted VSM vector:", "Local VSM vector:") - return body.replace("## Function ownership", "\n".join(f"- {k}: {v}" for k,v in LOCAL.items())+"\n\n## Function ownership", 1) - -class ReferenceRoadmapTests(unittest.TestCase): - def test_c_p_a_exact_reference_and_ordinary_rejection(self): - for target in ("C", "P", "A"): - with self.subTest(target=target), tempfile.TemporaryDirectory() as tmp: - path = Path(tmp) - make_case(path, target) - (path/"local-assessment-source.md").write_bytes(EVIDENCE) - r = path/"roadmap.md" - r.write_text(localize(r.read_text())) - h = path/"issue.md" - h.write_text(h.read_text().replace("ACCEPTED HISTORICAL INDEX", "LOCAL REFERENCE ASSESSMENT").replace("Historical Index state", "Historical local state")) - self.assertEqual(validate_case_dir(path, experimental_target=target, reference_realization=True), []) - self.assertEqual(check_case_structure(path, experimental_target=target, reference_realization=True), []) - self.assertTrue(check_case_structure(path, experimental_target=target)) - self.assertTrue(check_publication_ready(path)) - (path/"local-assessment-source.md").write_bytes(b"tampered") - self.assertTrue(any("digest mismatch" in e for e in check_case_structure(path, experimental_target=target, reference_realization=True))) - def test_identity_provenance_and_no_index_laundering(self): - body = localize(receipt("A")[0]) - for bad in (body.replace("- Original repository: "+REPO, "- Original repository: opensiro/upstream"), - body.replace("- Original repository: "+REPO, "- Original repository: opensiro-contributions/vsm-oss-organization"), - body.replace(LOCAL["Local assessment source"], "https://github.com/other/project/issues/1"), - body.replace(LOCAL["Profile ref"], "https://github.com/opensiro/vsm-harness-profile/blob/main/PROFILE.md"), - body.replace(LOCAL["Local assessment SHA-256"], "unknown"), - body+"\n- Accepted Index assessment: fake\n"): - self.assertTrue(validate(bad, experimental_target="A", reference_realization=True)) - self.assertTrue(validate(receipt("A")[0], experimental_target="A", reference_realization=True)) - def test_reference_c_boundary(self): - self.assertTrue(validate(localize(receipt("C", fn="S1", historical="A")[0]), experimental_target="C", reference_realization=True)) - body=localize(receipt("C", current="P", after="C(P)")[0]) - self.assertEqual(validate(body, experimental_target="C", reference_realization=True), []) - self.assertTrue(validate(body.replace("S4=C(P)", "S4=C"), experimental_target="C", reference_realization=True))