Skip to content

docs: v2.0 research specs for #228 wonder-consolidation + #229 promotion-trigger - #259

Merged
robotrocketscience merged 2 commits into
mainfrom
docs/v2-research-specs-228-229
Apr 28, 2026
Merged

docs: v2.0 research specs for #228 wonder-consolidation + #229 promotion-trigger#259
robotrocketscience merged 2 commits into
mainfrom
docs/v2-research-specs-228-229

Conversation

@robotrocketscience

Copy link
Copy Markdown
Owner

Summary

Two specs covering the last truly-undrafted v2.0 needs-spec issues.

Issue Spec Shape
#228 docs/v2_wonder_consolidation.md Research-plan spec — adopts aelfrice-lab pre-registration as public commitment, defines four adoption criteria for ship/ensemble/defer/drop
#229 docs/v2_phantom_promotion_trigger.md Decision spec — rejects three naive triggers, recommends explicit-acknowledgment rule (`aelf:validate` + lock-text-match), labeled-corpus benchmark gates ship

Companion to PR #257 (the substrate-cascade addenda for #193, #197, #198, #199, #201). After both PRs merge, the v2.0 `needs-spec` queue is fully drained.

Notes

Test plan

  • Each memo reviewed against its issue body. Recommendations adopted, modified, or overridden per Decision asks.
  • On adoption: `needs-spec` label removed; downstream sub-issues filed (`wonder_ingest`, `wonder_gc`, `aelf:validate` surface) per memo § Out of scope.
  • No code changes; CI is docs-only.

Adopts aelfrice-lab/experiments/wonder-consolidation/HYPOTHESES.md
pre-registration as the public research plan. Defines four adoption
criteria (single-strategy ship / ensemble / defer / drop) and
public-side commitments. Substrate-compatible with Option B.
Rejects three naive triggers (N-feedback, retrieval-count,
user_corrected adjacency) per the four-constraint test from issue
body. Recommends explicit-acknowledgment rule via aelf:validate
slash command + aelf:lock content-match. Labeled-corpus benchmark
gates v2.0 ship (recall >=70%, precision >=90%).
@robotrocketscience
robotrocketscience merged commit 9c9d355 into main Apr 28, 2026
8 checks passed
@robotrocketscience
robotrocketscience deleted the docs/v2-research-specs-228-229 branch April 28, 2026 23:48
robotrocketscience added a commit that referenced this pull request Apr 29, 2026
## Summary

Three cascade addenda to `docs/design/write-log-as-truth.md`, one per
post-#205 chain issue. Drafts the formal spec memos called for by the
`needs-spec` label on each.

- `docs/v2_replay.md` — issue #262 (`replay_full_equality`
flip-readiness probe)
- `docs/v2_derivation_worker.md` — issue #264 (derivation worker)
- `docs/v2_view_flip.md` — issue #265 (view-flip — \`ingest_log\`
becomes canonical)

Pattern matches the substrate-cascade addenda merged via #257 / #259:
each memo states what's being decided, recommendation, decision asks,
downstream impact, out-of-scope, provenance. Recommendations only;
ratification is a separate sweep.

## Recommendations at a glance

| Issue | Memo | Recommendation |
|---|---|---|
| #262 | v2_replay.md | Shape-equality at ingest time, not bit-equality.
Posterior drift and legacy-origin backfill bucketed separately, not
flagged as drift. |
| #264 | v2_derivation_worker.md | Single-transaction ingest,
idempotency on (derived_belief_ids non-empty AND beliefs exist),
recover-by-replay between batches, edges in same pass as beliefs. |
| #265 | v2_view_flip.md | \`WRITE_LOG_AUTHORITATIVE\` flag with
two-release soak before default-on. \`aelf rebuild\` preserves
alpha/beta and replays feedback. \`--rule-set\` and \`--as-of\` ship as
stubs in v2.x. Drift alarm wires \`replay_full_equality\` into \`aelf
doctor\`. |

## Cross-links

- Source-of-truth design memo: \`docs/design/write-log-as-truth.md\`
(already on main).
- Substrate dependency: \`docs/substrate_decision.md\` (#196 ratified
Option B). Beta-Bernoulli's posterior drift behavior motivates
shape-equality over bit-equality in #262.
- Federation cross-link: \`docs/design/federation-primitives.md\` (the
log row is the federation atom in v3).
- Chain order: #205 (merged) → #261#262#264#265.

## Test plan

- [ ] Memos render on GitHub without broken cross-links.
- [ ] Each memo's Decision asks section is reviewable in isolation
(don't need to read the whole chain to ratify a single ask).
- [ ] Recommendations are consistent across the three memos (the
equality contract in v2_replay.md matches the worker's invariants in
v2_derivation_worker.md, which match the rebuild semantics in
v2_view_flip.md).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant