Skip to content

Leftness: report the F-Obs-Counters invocation counts alongside the profile, instead of megabytes #177

Open

Description

@lex00

test/leftness (chant#1084) reports "definition-library code on the path | 0 MB | about 1.7 MB" from a node --cpu-prof recording. A CPU-profile figure has a sampling floor, so 0 MB means "nothing the profiler could see", not "nothing ran" — and per #173 something does run: F-Val-Fate revival constructs entities through the real lexicon classes.

The exact instrument is already required. L10.1 specifies FoldExecutionCounts with factoryInvocations, projectFactoryInvocations and factoryInterpretations, "process-wide, monotonic, resettable", and rationale.md calls them "how this requirement is checked rather than trusted". An invocation count has no sampling floor.

Reporting the counters beside the profile would turn the site's weakest-supported figure into its best-supported one:

0 MB, which is everything the profiler could see

becomes

n constructor invocations, each holding props, against CDK's synthesis running in-process

and it stops degrading if lexicon constructors ever get heavier.

The one reason to keep megabytes is presentational: CDK has no invocation counter, so a count has no CDK-side number to sit beside. That argues for reporting both, not for reporting only the one with a floor.

Cheapest evidence upgrade on the site. The harness lives in the chant repo, so this needs a change there plus the figure wiring here.

Activity

  1. added
    area:docs
    P3
    on Sep 14, 2026
  2. lex00 commented on Sep 14, 2026

    @lex00
    ContributorAuthor

    Filed the chant-side half as INTENTIUS/chant#2475, which covers the harness change in test/leftness. This issue keeps the figure wiring on this side, per the last line above. The chant issue also asks the table to state whether 0 MB is an absolute zero or below the sampling threshold.

  3. lex00 commented on Sep 16, 2026

    @lex00
    ContributorAuthor

    chant half is up: INTENTIUS/chant#2478.

    chant build --verbose prints [fold:counts] with L10.1's three counters, analyze.mjs reads them out of the build log capture.sh already writes, and analysis.json carries them as foldExecutionCounts. No second run and no new capture plumbing, since the log was already being grepped for [fold:fold].

    What is not done, and cannot be from here. The number itself. The captures are not committed, so analyze.mjs cannot be re-run locally and the field is null in the committed analysis until the next capture. The site's leftness sentence — "0 MB of definition-library code on the path, against about 1.7 MB for cdk synth" — is hand-written prose in docs/content/what-it-enables/no-execution.md rather than a figure, so it wants updating once a capture produces a count to put beside it.

    So this issue stays open on its second half: run a capture, then put the count in the sentence.

    Partly served already. #178's recording delivers the same instrument on this side and the corpus page publishes it: an exact per-invocation ledger against the reference, two independent counts agreeing, every invocation mapped to a named rule. That is the "no sampling floor" property this issue asks for, measured — just against the reference rather than against chant in the cdk synth comparison.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3area:docs

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions