Lists what the spec already implies (Surfex.Suggest.all/5):
- moves — a spec or test id the log knows that is gone, and a new id at the same
version: a renamed heading or an added anchor; a test whose module,
describeor file was renamed, as when a test file is split. Accepting moves each relation, and a test's red→green and baseline records, onto the new id (mix surfex.move). A version found under several ids is listed as ambiguous and never moved. - refines — each marked block and test hint refines the section or block it sits
in. A
refinesrelation whose unit no longer sits there (moved to another section) is listed as a retire; accepting retires it beside the new one. - implements — each spec unit paired with each code item it names.
- verifies — each test paired with the spec unit its
@tag verifies:names. - tests — each test paired with each code item it calls.
- excuses — each code item nothing implements, paired with the class of the first
rule in
.surfex.exsit matches. - migrated — a section's
implementsthatmix surfex.migratemoved to claims whose relations are all validated now: accepting retires the section's.
implements also pairs each claim (a block, test hint, row, rule or contract) that
nothing implements, itself or a unit it sits in, with the code its verifying tests call
directly, most specific first: only the calls fewest other claims' tests make are
listed, each with also called by the tests of N other claims when N > 0, and one line
per claim counts the rest. A reached line says, per claim, which called item reaches
more code and how much (spec §15.1). These are judgements: each is printed with the
mix surfex.relate command that records it and the command that declines it, and
--accept never records them (spec §15.5).
Once the log is established (it holds a validated implements), a code span in prose
proposes nothing outside a contract: subject headings, citing cells, contracts and a
claim's tests still do. One line counts the prose citations not proposed, when there
are any (spec §15.4).
Pairs already related, in any state, are left out.
mix surfex.suggest # list them; nothing is written
mix surfex.suggest --accept # record them
mix surfex.suggest --accept --note "adopted the relation log"
mix surfex.suggest --format json # the same lists, for tools and agents--accept only creates relations that don't exist, and carries judgements across
moves. It never confirms a dangling relation: that stays mix surfex.confirm, one named
id at a time.
An undeclared verifies resting on evidence, a review, a judgement or a baseline isn't
retired, since a tag can go by mistake and a retired relation doesn't come back on its own:
it is listed, and the status fails until the tag is restored. --accept --retire-undeclared
retires those too, for tags removed on purpose.
Adopting the relation log is mix surfex.log --init, then this with --accept.