File size: 3,913 Bytes
a6a5d8e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
# Hugging Face publishing

A11oy publishes a Hugging Face payload as a discovery and diligence mirror. The
canonical source, release tags, SBOMs, SLSA provenance, and CI checks remain on
GitHub.

## Payload contents

Run:

```bash
pnpm hf:ecosystem:write
pnpm payload:huggingface
```

The command writes `dist/huggingface/a11oy/` with:

- a Hugging Face model card (`README.md`);
- showcase, investor, verification, quickstart, deep-dive, and receipt-sample files;
- `HF_ECOSYSTEM_MANIFEST.json`, generated from the public Hugging Face API;
- source README, roadmap, changelog, and repo map;
- deployment payload metadata under `payloads/deploy/`;
- `a11oy-metadata.json` with source commit and verification commands.

The publisher prunes stale remote files by default before uploading the
generated folder. This prevents old unsupported model-wrapper files, stale
product names, or non-reproducible hand edits from surviving on Hugging Face.

## Ecosystem audit

Run:

```bash
pnpm hf:ecosystem:write
pnpm hf:ecosystem:audit
```

The generated [`huggingface-ecosystem-manifest.json`](huggingface-ecosystem-manifest.json)
records the public `SZLHOLDINGS` Hugging Face inventory, current counts, source
links, guardrails, and unsafe flags. Keep this file GitHub-backed; do not
hand-edit Hugging Face cards with counts that cannot be regenerated.

## Operational bundle

Run:

```bash
pnpm payload:bundle
pnpm payload:bundle:verify
```

The bundle command is Python-native. It builds doctrine package outputs, refreshes
`deploy/MANIFEST.json`, prepares the Hugging Face payload, and writes:

- `dist/payload/a11oy-operational-payload.tar.gz`
- `dist/payload/a11oy-operational-payload.tar.gz.sha256`

The Doctrine Build workflow uploads those files as the
`a11oy-operational-payload` GitHub Actions artifact on every matching PR or main
push. Do not paste Hugging Face tokens into chat or commit them to the repo; use
GitHub secret `HF_TOKEN` for live publishing.

## Publish from GitHub Actions

Add repository secret `HF_TOKEN` with write access to the target Hugging Face
organization or user namespace. Then run the `Publish Hugging Face Payload`
workflow manually.

Recommended inputs:

| Input | Value |
| --- | --- |
| `repo_id` | `SZLHOLDINGS/a11oy-v19-substrate` |
| `repo_type` | `model` |

The workflow creates the target repo if needed and uploads
`dist/huggingface/a11oy/`.

## Local publish

For local operator publishing:

```bash
pnpm install
pnpm test:doctrine
pnpm typecheck:doctrine
pnpm build:doctrine
pnpm ecosystem:audit
pnpm hf:ecosystem:audit
pnpm payload:manifest
pnpm hf:ecosystem:write
pnpm payload:huggingface
python -m pip install --upgrade huggingface_hub
python - <<'PY'
import os
from huggingface_hub import HfApi

api = HfApi(token=os.environ["HF_TOKEN"])
api.create_repo("SZLHOLDINGS/a11oy-v19-substrate", repo_type="model", exist_ok=True)
api.upload_folder(
    repo_id="SZLHOLDINGS/a11oy-v19-substrate",
    repo_type="model",
    folder_path="dist/huggingface/a11oy",
    commit_message="publish a11oy operational payload",
)
PY
```

Do not commit `dist/`; the payload is generated from tracked source and deploy
metadata.

## Direct publish helper

When `HF_TOKEN` is available in the environment, publish the prepared payload with:

```bash
pnpm payload:publish:huggingface -- --repo-id SZLHOLDINGS/a11oy-v19-substrate --repo-type model
```

The helper does not print the token. GitHub Actions remains the preferred path
for secrets. Pass `--no-delete-stale` only for emergency diagnostics; normal
publishes should prune remote files that are absent from `dist/huggingface/a11oy/`.

## Naming policy

The A11oy Hugging Face packet uses the real GitHub ecosystem names and does not
use stale KORA, LUMINA, PARAGON, or active Lyte framing. Counsel, Terra, and
Carlota Jo are marked as funded-roadmap/excluded in the readiness report rather
than presented as live demo surfaces.