Skip to content

archetypes: retire feature_flags and project the file brain without it (Part of #4111) - #5487

Merged
squid-protocol merged 3 commits into
mainfrom
churn/4111-20261018T0514Z
Oct 18, 2026
Merged

squid-protocol merged 3 commits into
mainfrom
churn/4111-20261018T0514Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #4111 (does NOT close it: the retrain itself is still owed).

What

Owner OK (2026-10-18): retire the feature_flags signal now via a projection of the file brain, instead of waiting for the retrain.
feature_flags has no detector in any language (tests/signal_coverage_baseline.json listed it as NO DETECTOR). Removed from SIGNAL_SCHEMA, SURFACE_FAMILIES['debt'], the arch_feature_flags column, and GENERAL_FILE_INFERENCE_MODEL (FEATURE_NAMES, FEATURE_WEIGHTS, SCALER_MEDIANS, SCALER_IQRS, DNA_SOURCES, all 18 centroids). 83 -> 82 dims.

Why classification is unchanged

It is a projection, not a retrain: the dropped dimension was median 0.0, IQR 1.0, weight 1.0 and centroid coordinate 0.0 in all 18 centroids, and the signal is always 0. The golden bless confirms it: only the Feature Flags signature part (deleted) and the GPU JSON hit vector moved; no archetype field changed.

Golden drift attribution

Both fixtures: feature_flags.json part deleted; 12_scan_output_snapshots/gpu_json.json re-hashed (hit vector one slot shorter). 6710 differences in each leg, all of those two kinds.

archetype_validation.json

Deviation from "rebaseline": archetype_drift.py rebaseline needs a fresh crucible audit and wipes levels/measured/history, and would claim a retrain that did not happen. Instead only trained.brain_fingerprints.file was updated (via the tool's own brain_fingerprint); the trained-state baseline and engine commit are untouched. Reviewer: say if you want a full rebaseline.

Tests

New in test_archetype_parity.py: file-model vector widths agree and every density has a DNA source in the schema; feature_flags absent from schema, debt family, file model. test_surface_families_contract.py pins 98->97 / 64->63.

Gates

pr_gates --fast 6/6; --ratchets 8 pass, 0 skipped; golden bless via golden-lock (both legs); tree-wide guard tests + signal coverage + parity: 199 passed.

Remaining slices / sibling gaps

Retrain in gitgalaxy-population-analyses (fleet scan, trainers, freeze); re-map function cluster_names; new brains + EXPECTED_CONTRACT_SHA; rebaseline. composition_file DEGRADED / composition_repo INVALID label mismatches remain until then. File brain has 18 unnamed file_cluster_N. No burned-estate program involved.

🤖 Generated with Claude Code

squid-protocol and others added 2 commits October 18, 2026 11:23
…n without it (Part of #4111)

feature_flags has no detector in any language. Drop it from SIGNAL_SCHEMA, the debt family,
the arch_feature_flags column and the file brain (FEATURE_NAMES, weights, medians, IQRS, DNA
source, all 18 centroids). Every dropped value was 0.0/1.0, so classification is unchanged.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Drift is the removed Feature Flags signature part and the GPU JSON hit vector (one slot shorter); no archetype field moved.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 18, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol marked this pull request as ready for review October 18, 2026 15:37
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-protocol
squid-protocol enabled auto-merge (squash) October 18, 2026 15:47
@squid-protocol squid-protocol added shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md and removed shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md labels Oct 18, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

1 similar comment
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol merged commit aa65b60 into main Oct 18, 2026
42 checks passed
@squid-protocol
squid-protocol deleted the churn/4111-20261018T0514Z branch October 18, 2026 16:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant