Metadata-Version: 2.5
Name: cf-concept-installation
Version: 0.1.2
Summary: Cogniflow installation vocabulary and validation shapes.
Author: Cogniflow Maintainers
Requires-Python: >=3.11
Description-Content-Type: text/markdown

# cf-concept-installation 0.1.2

This stable concept package describes installation profiles, plans, historical
bootstrap processes and real package-owned installation interfaces. It installs
no consuming module and grants no permission to install or execute anything.

## Layered model

The approved **core ontology** defines the grammar: concept domains, concepts,
typed attributes, structural relations, controlled values and shapes. This
**concept package** defines reusable vocabulary and SHACL constraints. A package
**specification** supplies instances of that vocabulary, not new classes or a
new concept package per module. There is no provider/distribution-name allowlist.

The sorted `cogniflow.semantic_sources` entry point enumerates:

- `package.trig`: package metadata and stable version.
- `concept.trig`: historical profile, catalog, plan and BootstrapProcess domains.
- `shapes.trig`: their historical constraints.
- `interface.trig`: separate InstallationInterfaceDomain and
  InstallationInterfaceShapes named graphs for the new model.

The concept/shapes sources and their six named graphs preserve the approved
**0.1.1** normative baseline, including all four required SKOS profile fields.
This retains the published profile-documentation repair, not the older 0.1.0
shape bug. Source preservation uses canonical LF bytes, so LF and CRLF checkouts
are equivalent; substantive source changes fail the frozen hashes. Historical
local profile documents, indexes, adapters and released artifacts stay unchanged.
The installation-profile and catalog IRIs retain their historical meaning,
including existing profile document digests. A profile requests capabilities;
a `cf.bootstrap.plan.v2` plan describes lifecycle/source mode before artifact
selection. Existing bootstrap contracts still govern authority and handoff.
BootstrapProcess retains its original command/protocol/two-segment-method rules;
it is not retrofitted to represent every new interface.

## InstallationInterface

Exactly one generic concept has six matching typed attributes/relations:

| Attribute | Value and cardinality |
| --- | --- |
| InterfaceOwner / hasInterfaceOwner | Exactly one IRI naming an actual CfPackage in assembled data |
| InterfaceInvocationKind / hasInterfaceInvocationKind | Exactly one of JsonRpcLinesInvocation, ArgvInvocation, TerminalInvocation |
| InterfaceContract / hasInterfaceContract | Exactly one absolute model-contract IRI |
| InterfaceCommand / hasInterfaceCommand | Exactly one safe installed console-command name |
| InterfaceOperation / hasInterfaceOperation | One or more distinct string selectors |
| InterfaceWireProtocol / hasInterfaceWireProtocol | At most one actual top-level protocol string, JSON-lines only |

Each interface is an IRI with exactly the InstallationInterface type and exactly
one string each of SKOS prefLabel, definition, scopeNote and example. Interfaces
and attribute nodes are closed to unknown predicates. Each attribute has exactly
its declared type and exactly one rdf:value. Duplicate selectors in different
attribute nodes are rejected by a bounded, interface-local SHACL-SPARQL query.
The core shapes are not weakened for these attributes. The SPARQL SELECT uses
standard SHACL/SPARQL without engine-specific functions.

The contract IRI identifies documented behavior; it is **not** automatically a
wire field. JSON-lines selectors are nonempty method names with nonempty slash
segments, including multi-segment runtime methods. The safe method alphabet is
ASCII letters, digits, underscore, dot and hyphen. Argv/terminal selectors are
canonical compact JSON arrays of fixed lowercase verb/option tokens, e.g.
`["service","call-by-capability"]`, `["--help"]` or `[]` for a real no-argument
launcher. Tokens begin with a letter, optionally preceded by one or two hyphens,
and continue with letters, digits or hyphens. No whitespace, JSON escapes,
shell syntax, interpolation, executable paths or runtime paths are admitted.
Commands are lowercase letter-led names containing only letters, digits and
hyphens. Dynamic arguments, including launcher paths, belong in later typed
contract bindings, never these declarations.

## Factual boundaries (not package admission)

The tests use **explicitly synthetic fixture packages** with complete positive
interface declarations. These examples describe existing invocation forms;
they do not register the real packages or implement executors.

| Boundary | Invocation | Fixed selectors / actual wire protocol |
| --- | --- | --- |
| cf-runtime-bootstrap | JSONRPC2 JSON lines | managed-tools/provision, production/preflight, runtime/resolve-target; actual top-level protocol `cf.runtime.bootstrap.v1` |
| cf client | argparse argv | `["service","call-by-capability"]`; no top-level protocol field |
| cogniflow | argv | `[]` launcher or `["--help"]`; no protocol field |
| Native TUI console/discovery shim | terminal launcher | `[]`; forwards to its adjacent package-owned native binary |
| Existing native gateway | legacy JSON lines | runtime/identity, runtime/verified-request, tools/list, tools/call; **no outer protocol field** |

The TUI lifecycle delegation uses `--cogniflow ABSOLUTE_LAUNCHER`.
Only `["--cogniflow"]` is a fixed selector: the absolute launcher is a later
typed argument, not an embedded path. Native TUI/MCP author metadata was
explicitly selected as **Cogniflow Maintainers**; no package is edited here and
an authenticated GitLab registrator must never be inferred to be its author.

The native gateway contract is factual legacy behavior, **not** a claim of
standards-conformant MCP discovery, initialization or version negotiation.
Interoperability belongs to a later native protocol milestone.

A valid declaration proves only modeled structure, selector syntax and package
ownership references in assembled data. It cannot establish that an arbitrary
package really implements its claimed methods or top-level protocol. Actual
artifact inspection, protocol execution tests and whole-wheel verification are
separate evidence. In particular, syntactically valid but factually false
protocol claims require real boundary verification; SHACL cannot observe a
process. Never label arbitrary CLI/native calls PythonFunctionExecutor services.
There is no role/service bypass, native admission claim or installation permission.

## Verification

Run the configured `installation-interface-release-tests` gate. Tests cover the
synthetic factual forms, closed types/cardinality, ownership, kind/contract and
selector syntax, duplicate selectors, protocol/kind mismatches and historical
positive/negative behavior with frozen canonical-source and named-graph digests.
Complete synthetic package fixtures use SpecificationPackageRole and are also
validated with unchanged core/package/service vocabulary and shapes plus every
candidate installation semantic source. Focused interface-only guards remain
separate; unsupported package roles fail the assembled policy.

Canonical source SHA-256 identities for the approved baseline are:

- `concept.trig`: `d728b73a75e6c10dcedf73cc55616fbc9a3e18f794d819b3c6aa9d4836811d11`
- `shapes.trig`: `89295cc839141137b72a91bb8e215bb2f16e54cac445575ab275951845d3442d`

These are not raw published wheel-member hashes. For example, the approved
0.1.1 wheel has CRLF shapes with raw SHA-256
`e86f8b8ac316834f6421d371a2df1c726e81228673fa4630d4b86a170a954e3e`.
No artifact is rebuilt to change that evidence. The stable source identity does
not establish publication. Independent review of the exact source and release
artifacts must precede publication; public download equality and a fresh install
are separate release evidence. The focused gate does not replace that evidence.
This concept release does not activate Hub policy or grant package/native
admission or execution authority.
