Skip to content

feat(local-pages): add architecture layers with receipt evidence and deferred detail - #913

Merged
seathatflowsinourveins merged 8 commits into
mainfrom
codex/ns2604-architecture-page-20261009
Oct 10, 2026
Merged

seathatflowsinourveins merged 8 commits into
mainfrom
codex/ns2604-architecture-page-20261009

Conversation

@seathatflowsinourveins

@seathatflowsinourveins seathatflowsinourveins commented Oct 9, 2026 •

Copy link
Copy Markdown
Collaborator

Scope

Architecture now presents source-bound landscape choices, reviewed local inventory and separate native evidence while keeping unapproved user discoveries private. Unapproved entries become counts by root and kind before public inventory, custody or detail rendering; their lexical names stay only in the cache signature outside the serving root. Successful publication and cache reuse remove obsolete generated detail HTML, while ordinary unapproved discoveries continue to leave the other pages available without accessing their targets.

  • Base and merge base: 3c01bdddc66896f8e36f9f21d452710808a9557e.
  • Current head: 911d11f390f824f2e98254493a98429fffbe51c0.
  • Lane: lane:foundation.
  • This correction is ONE commit on the reviewed 42362768dab19800f7c932a4ea36f3f801ac6628, without rebasing.
  • Owned paths: Architecture source/inventory/view/builder modules and independent source policy, the local-pages publication adapter, their tests, README and dated inventory-boundary decision. Existing Fleet and sanitization behavior remain covered by the complete local-pages suite.

The independent reader authorizes exact content and metadata roles before observation, excludes protected and frozen inputs, and never turns runtime discoveries into grants. Current repository inventory has 90 reviewed selectors. The 4648 receipt permissions reproduce the union reviewed at c945ea1f011e4c7e69a0b5f19052717b2af9d46e; the current 4725-path proposal does not add permissions. Reviewed user bindings point to reachable 994ab9b279c8915cbdb637e1786aaa41d1306e57, and regression tests compare them with the pinned snapshot apart from its provenance field.

SOTA sources

  • Native repository tools/local-pages/source_policy.py, architecture_builder.py, architecture_inventory.py, architecture_view.py and build_pages.py, source 42362768dab19800f7c932a4ea36f3f801ac6628: reuse the existing independent reader, synthetic fixture harness, deferred detail documents, staged publisher and cache boundary.
  • CPython 3.13.16 descriptor APIs, pathlib and buffered I/O, pin cbc944f4bc59639a444dd971c737788ba2283a91: native no-follow reads, bounded descriptor capture, file unlink and replacement. Installed Python 3.13.16 source was inspected; no new filesystem walker or dependency is introduced.
  • Native Git 2.53.0 ls-tree, show, cat-file and merge-base --is-ancestor; repository scripts/local_pages_policy_grants.py: derive exact proposals from pinned registration metadata and verify genuine Git ancestry, without opening referenced artifact bodies.
  • Existing frozen-input eligibility declaration in tests/test_frozen_macos_variant_no_use.py, plus reviewed native metadata at c945ea1f011e4c7e69a0b5f19052717b2af9d46e: keep the independently reviewed receipt union distinct from the later proposal.
  • Landed repository Check private host names in files, commit diffs and identities #934 3c01bdddc66896f8e36f9f21d452710808a9557e, scripts/git-hooks/pre-push, scripts/validate.py and scripts/host_name_scan.py: real-host immutable-tip, outgoing-history and identity scan, with the repository registry gate.

Evidence-class table

Claim Evidence class Command / receipt
Ungranted unit, skill and Codex agent names are absent from every served output while denied operations remain zero local_integration Identical PublishedNamePrivacy test/harness bytes: immutable 4236276 gives rc 1, three failures and zero errors; corrected 911d11f gives rc 0, three tests passed
Stale generated details stop being served during rebuild and cache reuse local_integration Two full-builder regression cases; unrelated operator output and current detail outputs survive
N1/N2 checks discriminate the earlier wrong provenance and orphaned pin local_integration Six isolated wrong-value replays each give rc 1 with one assertion failure; all 20 genuine-worktree policy-grant tests pass
Final committed head builds with approved native sources and removes a seeded obsolete detail native_proven Native build and maintained privacy proof at 911d11f: 44 outputs, 42 HTML, 17794509 HTML bytes; zero identity, raw/leaf privacy or stale-HTML failures; seeded detail removed
Host receipt establishes platform or provider acceptance source_review Not claimed; source scope, organic observations and gate acceptance remain separate

Local commands run

python3 -B -m unittest tests.test_local_pages_architecture_public_names.PublishedNamePrivacy
Immutable parent 42362768: rc 1; 3 tests, 3 failures, 0 errors
Committed fix 911d11f3: rc 0; 3 tests passed in 0.848s

python3 -B -m unittest discover -s tests -p 'test_local_pages*.py'
rc 0; all 386 tests passed in 29.088s

python3 scripts/validate.py
FULL rc 0; 70 components, 11283 hashed files, 239 receipts, 4 profiles

python3 -B replay-pr913-policy-provenance.py <genuine-task-worktree>
rc 0; six expected red cases, corrected module 20 tests passed, all_expected true

python3 tools/local-pages/build_pages.py --root <task-checkout> --state-root <native-state> --output-dir <isolated-site> --receipt <native-receipt>
rc 0 at committed head 911d11f3

python3 pr913-cc972-privacy-proof.py --root <task-checkout> --site <isolated-site> --receipt <native-receipt>
rc 0; receipt SHA-256 8671a44e65c27c8d959e231f90b63619737d691a5f51ae7caf9e9577eed3a61d

All current tests ran normally under the corrected memory policy. The immutable-parent replay overlaid only the identical new publication test and its necessary test harness; production tools/local-pages bytes remained unchanged before and after the run. The supplied canonical verdict directory contains the full GPT verdict but lacks its external review_checks.py; the repository regression reproduces the same six synthetic-name occurrences and both stale-detail failures through the actual builder.

Decision record

Architecture inventory input custody. The selected change extends the maintained native reader/publisher rather than replacing it or widening permissions. A reproduced counterexample against the complete-builder fixtures would overturn the claimed boundary.

Host evidence

No evidence/hosts files or platform-status declarations change. Native proof uses an isolated output root; it does not promote a live site, provider or platform gate. Browser acceptance is not inferred.

Checklist

  • Required SOTA sources are named and pinned.
  • No GitHub Actions change in this correction.
  • No credentials, real user-level fixture names or raw client/unit/agent bodies were added.
  • No new paid hosting, subscription or billing surface.
  • Peer-owned files, services and worktrees preserved.
  • Native repository hooks remain enabled; no --no-verify or scanner override.
  • Co-op GPT micro, then CC micro and landing.

@seathatflowsinourveins seathatflowsinourveins added the lane:foundation Foundation lane: Claude/Codex setup, hosts, memory, RAG, research, workers label Oct 9, 2026
@seathatflowsinourveins seathatflowsinourveins changed the title Render source-built architecture and per-role adoption evidence feat(local-pages): add architecture layers with receipt evidence and deferred detail Oct 9, 2026
@seathatflowsinourveins
seathatflowsinourveins force-pushed the codex/ns2604-fleet-page-20261008 branch from 7b4b25d to 8e0ddef Compare October 9, 2026 06:45
@seathatflowsinourveins
seathatflowsinourveins force-pushed the codex/ns2604-architecture-page-20261009 branch from ce4542c to d609fe2 Compare October 9, 2026 06:54
@seathatflowsinourveins
seathatflowsinourveins force-pushed the codex/ns2604-fleet-page-20261008 branch from 8e0ddef to 6c42fd6 Compare October 9, 2026 08:26
@seathatflowsinourveins
seathatflowsinourveins force-pushed the codex/ns2604-architecture-page-20261009 branch from d609fe2 to 653cec0 Compare October 9, 2026 08:39
@seathatflowsinourveins
seathatflowsinourveins force-pushed the codex/ns2604-fleet-page-20261008 branch from 6c42fd6 to 32671af Compare October 9, 2026 09:19
seathatflowsinourveins added a commit that referenced this pull request Oct 9, 2026
### Scope

The local source pages use independent exact path permissions before native or linked file access, preserve raw receipt custody and render portable text. FIX3 `0b66de07b6e1437084ab39e1f0ac7dce802f8b93` adds four permissions from current main so the default refresh continues after merge, tests policy/index parity and fail-closed policy handling, and documents the four flags' actual permitted files.

- Base commit: `e48de2e6fa1dd3b740af4793ea5824ea35476dba` (main merge base); FIX3 parent `7fac0184674168898e51787c85069fc35d2bb47f`.
- Lane: `lane:foundation`.
- This corrective head changes `tools/local-pages/source_policy.json`, its test module and README. All earlier read-boundary, port21090, redirect, sanitizer, date/reset and view corrections remain in the PR.

### SOTA sources

- [Current native source index](https://github.com/seathatflowsinourveins/native-agent-stack/blob/958a6d1ab770c807c5ee59748475a5c14df7ba52/tools/north-star/sources.json), pin `958a6d1ab770c807c5ee59748475a5c14df7ba52`, SHA-256 `4cdfe0a722a8e2a620551f5b092e2db762555deb06eef085686623561996dcd2`: independently approved exact root/path declarations for `cc_g2_started`, `cc_g2_started_correction`, `cc_g5_closure` and `cc_g6_f9`.
- [Maintained native readiness](https://github.com/seathatflowsinourveins/native-agent-stack/blob/958a6d1ab770c807c5ee59748475a5c14df7ba52/tools/north-star/build_readiness.py), same pin, reader SHA-256 `59428d63e09bab10e216e86af377891f8546aca6b3f9cc08c59d0803573b57b0`: original reader/portable export APIs under a module-local version-bound guard.
- [Maintained CI selector](https://github.com/seathatflowsinourveins/native-agent-stack/blob/958a6d1ab770c807c5ee59748475a5c14df7ba52/scripts/validate_shards.py), same pin, `discover()`/module assignment and `.github/workflows/validate.yml:265`; installed CPython `3.13.16` [unittest discovery](https://docs.python.org/3.13/library/unittest.html#test-discovery) is the native harness.
- Existing CPython3.13 descriptor `os.open/fstat/O_NOFOLLOW`, urllib redirect-handler and zoneinfo interfaces remain the implementation sources for safe reads, loopback collection and New York timestamps.
- Exact CC FIX2 micro SHA-256 `e4a149c1fa20ab42647f71090aa6e1442369605a89cdb22121d242ebf95a8eba`; prior policy/read-boundary evidence retained. No dependency, installation or upstream fork introduced.

### Evidence-class table

| Claim | Evidence class | Command / receipt |
| --- | --- | --- |
| FIX3 policy approves every exact declaration in the current main28-key index | `local_integration` | Metadata-only old7facpolicy RED/currentpolicy GREEN; no state bodies followed |
| Every committed index key requires exact root/path approval | `local_integration` | New committed-index parity regression; in-memory omitted grant makes it fail |
| Ordinary unlisted names cannot bypass role permissions; invalid/missing policy fails before native opens | `local_integration` with synthetic inputs | Policy18tests with actual open watchers; existing protected cases retained |
| Local-page modules already run through maintained CI selection | `local_integration` | Native bounded discovery5modules/69cases,0loader errors,each assignedonce; selector13tests |
| Earlier view/collector/native behavior remains compatible | `local_integration` with synthetic inputs | Composer27/current10/sanitizer6/workstation8/native32 |
| Repository integrity/scope | `source_review` | Validator0 and diff0 |

### Local commands run

Each test command used `nice -n 10 ionice -c2 -n7 timeout 600`:

```sh
python3 -B -m unittest discover -s tests -p test_local_pages.py               # rc0,27
python3 -B -m unittest discover -s tests -p test_local_pages_current_view.py  # rc0,10
python3 -B -m unittest discover -s tests -p test_local_pages_sanitization.py  # rc0,6
python3 -B -m unittest discover -s tests -p test_local_pages_workstation.py   # rc0,8
python3 -B -m unittest discover -s tests -p test_local_pages_source_policy.py # rc0,18
python3 -B -m unittest discover -s tests -p test_north_star_readiness.py       # rc0,32
python3 -B -m unittest tests.test_validate_shards                            # rc0,13
python3 scripts/validate.py                                                # rc0
git diff --check                                                          # rc0
bash command-center/cc-tools/base_tests_at_head.sh <repo> e48de2e 0b66de0 unittest
# rc0; modified_existing_test_files=0; every failing ID:none.
```

**114 tests PASS**:101page/native and13selector. The maintained pre-cue tool has no existing modified testfiles at the main merge base because these page modules are new in this PR; it does not replace executed tests. No expectation change in FIX3.

CI-selection investigation corrects the omission claim: the workflow runs eight native shards; `discover()` uses `test*.py` without an allowlist and already selects all five local-page modules. Workflow/selector bytes equal both7fac018 and fetched main958a6d1, so duplicate selection was unnecessary.

### Decision record

`research/fullspeed-20261008/g5-stars-gap/local-pages/architecture/stack-891-fix3-review.md` under the local state root records the exact source grants, old-policy failure/new-policy parity, tests and CI-selection proof. Policy SHA-256 `872bf19a9469e519cc1d4e08331689b5cdcf05db8c2bd7d9ccf85bcafb43886a`:28direct roles, with the existing exact index/supporting/SDK/override sets preserved. Missing/malformed policy and all unlisted input refusals happen before native file access.

### Host evidence

No registered host evidence changes or component/provider E2E inferred from fixtures. #899/#913 rebase onto FIX3; both reader micros, required CI/pre-cue and bottom-up CC landing cues through5f remain mandatory. F5 pruning remains separate.

### Checklist

- [x] CI selection verified through its maintained harness; workflow pins/permissions preserved.
- [x] No secrets printed/logged/committed; no required secret added.
- [x] No paid hosting or billing surface introduced.
- [x] Peer files/supplied worktrees preserved; generated pages uncommitted.
@seathatflowsinourveins
seathatflowsinourveins force-pushed the codex/ns2604-fleet-page-20261008 branch from 32671af to 698c658 Compare October 9, 2026 10:55
@seathatflowsinourveins
seathatflowsinourveins force-pushed the codex/ns2604-architecture-page-20261009 branch from 653cec0 to ddb7a2a Compare October 9, 2026 11:14
@seathatflowsinourveins
seathatflowsinourveins force-pushed the codex/ns2604-fleet-page-20261008 branch from d7d02b4 to 4537fb6 Compare October 9, 2026 16:47
Base automatically changed from codex/ns2604-fleet-page-20261008 to main October 9, 2026 17:02
@seathatflowsinourveins
seathatflowsinourveins force-pushed the codex/ns2604-architecture-page-20261009 branch from 9724ed3 to c225909 Compare October 9, 2026 20:20
…eipts

P2-1: remove two unused frozen input grants. Derive the eligible receipt
union from pinned registration metadata and the tripwire's own eligibility
declaration, excluding frozen/protected paths; 4650 becomes 4648. No artifact
body use, descriptive-pin waiver or runtime-discovered permission.

P2-2: pass the independent reader through the complete inventory build and
cache signature. Authorize exact canonical content inputs before opening or
hashing; protect both lexical and canonical aliases; parse/hash the same
captured bytes. Newly discovered unlisted sources stop publication/cache
reuse without changing the previous published page or receipt.

User agent and service configurations use separate exact metadata grants
and native descriptor-relative no-follow stat, never content hashes. Only
exact installed SKILL.md assets receive user content approval. Bounded
64KiB capture avoids allocating a logical large bound for a small payload.

Full-builder regressions reproduce both reported forbidden reads at ddb,
then verify zero forbidden opens and prior publication preservation; cached
discovery, aliases, unlisted metadata, late symlinks, growth budgets and
unknown hash comparisons are covered. Prior immutable Adoption/source and
evidence boundaries remain intact. No rebase; ONE authorized fix commit.

Reference GPT verdict SHA256
9c4ed3c41e4e678981b75a71a398df373d0c6798a3d6b5ddb5403f85a1f94e59;
native reader ddb7a2a and CPython3.13.16
cbc944f4bc59639a444dd971c737788ba2283a91 os/pathlib/io with native Git metadata.
…reads

CC P2-1: ordinary unapproved inventory discoveries are names-only records,
with no target stat/resolve/open/hash or fabricated asset presence. Cache
signatures track names, while canonical content reads retain exact approval.
Known aliases bind an independently approved canonical target. Optional
Architecture failures retain the last page or explicit UNREPORTED placeholder
and allow the other six pages to refresh.

CC P2-2: Adoption attribution metadata uses the maintained protected-name,
bounded no-follow descriptor reader and guarded directory enumeration. Raw
co-op registry/parking/capacity payloads are never read during derivation;
unsafe/missing metadata remains UNREPORTED with no fabricated attribution.

P3: add reproducible names-only user grant/alias observations and a CI
repo-grant parity test against git ls-files, replace vacuous selector test,
fix root-dependent mapping provenance and documentation spacing/semantics.
Host-label masking remains the CC's separate repository-wide decision.

Preserve both GPT P2 corrections: frozen receipt eligibility exclusion and
exact source/evidence/inventory readers. Meaningful red/green regressions
cover unlisted stat/open traps, composer degradation, alias retargeting,
Adoption parent/leaf redirects, source limits and measured counters.

ONE authorized commit on 6480927, no rebase.
Landing-head grants and full host build/privacy receipt are owed only after
the authorized rebase, following #926, #935 and #915. CC owns Claude reads.
Source CC read SHA256 dfd30c957ffc8c87fd2283b87dfa4ca097917492ccce69e00e79216609e37c6c.
Native reference: CPython3.13.16 cbc944f4bc59639a444dd971c737788ba2283a91,
existing source_policy descriptor reader and native Git filename metadata.
@seathatflowsinourveins
seathatflowsinourveins marked this pull request as ready for review October 10, 2026 00:20
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@seathatflowsinourveins
seathatflowsinourveins merged commit f96f2cd into main Oct 10, 2026
38 of 49 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lane:foundation Foundation lane: Claude/Codex setup, hosts, memory, RAG, research, workers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant