Skip to content

test methodology - #11487

Closed
gunbai-bot[bot] wants to merge 9 commits into
mainfrom
session/proud-tern-736-test-refusal
Closed

gunbai-bot[bot] wants to merge 9 commits into
mainfrom
session/proud-tern-736-test-refusal

Conversation

@gunbai-bot

@gunbai-bot gunbai-bot Bot commented Sep 17, 2026

Copy link
Copy Markdown
Contributor

Auto-opened by session-dashboard for session proud-tern-736.
Pushing to session/proud-tern-736-test-refusal advances this PR.

Worker attestation

Before flipping this PR to ready for review, confirm each item:

  • Title describes the change (not the session id or branch).
  • PR body summarises what and why (replace the TODO below).
  • Tests run: name the command (e.g. npm test, cargo test) and the result.
  • If this closes a work item, the body contains a Closes #N directive.
  • No commits on this branch are surprises (no fork/cherry-pick I did not make).
  • No secrets / credentials / large binaries staged.

Summary

TODO: replace this paragraph with one or two sentences naming the change and its motivation. Reviewers read this first.

Test plan

  • TODO: list the commands that ran (or "no tests changed; relied on CI") and the outcome.

gunbc-ci-auto-heal and others added 9 commits September 16, 2026 19:16
`test fn` / `test data` now parse to ModuleItemTestFunction / ModuleItemTestDataValue
rather than being stripped by drop_leading_test_marker. A `test` marker before any
other item form is refused instead of silently ignored. Consumers that only ask what
shape an item has read module_item_kind_shape, so emission and extdeps data reading
are unchanged. Prerequisite for refusing references to a test fn at resolve.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
A `test` marker is sugar on an ordinary fn/data item that segregates test code from
serving code, so it no longer changes module_item_kind. Node carries
declaration_marker: Unmarked | TestMarked; rebuilds copy it, everything else is
Unmarked. Emitters and cli_run.rs are back to main. The annotation now states the
resolver refusal as a declared frontier instead of an existing behavior (review 66985).

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
…ed kind

`pattern` and `interface` are BlockBody forms whose constructor stamps
ModuleItemFunction, so checking the parsed kind admitted `test pattern` and
`test interface`. Admissibility now reads the ItemForm body_kind before the item
is parsed (ExprBody = fn, ValueBody = data); the refusal test covers both forms.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
v1.compiler.compile test_reference_diagnostics runs after inference over the typed graph:
a call to a TestMarked declaration from anywhere (including another test) and an import of
a test-declaring module by a module that declares none are TestCodeReferenced (blocking).
Existing references are admitted per (module, referrer) with an exact count in
test_reference_debt (153 rows, 1175 references across dag and src/v2); a row whose observed
count differs in either direction is TestCodeReferenceBudgetMismatch (blocking).

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
…advisory class

Addresses review 67156: ledger rows key on (module, referrer, target) with a dissolution
condition (1135 rows); TestCodeReferenceAdmitted has an advisory_class_ceilings row;
a TestMarked declaration used as a function value or named in an import is a reference;
the boolean marker helper is gone; the DeclarationMarker frontier annotation now names
its consumer.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
…dratic fold (review 67195)

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
…6-test-refusal

# Conflicts:
#	src/v1/stage0/src/v1_compiler_emit_rust.rs
#	src/v1/stage0/src/v1_compiler_infer_method.rs
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@gunbai-bot

gunbai-bot Bot commented Sep 17, 2026

Copy link
Copy Markdown
Contributor Author

Duplicate auto-draft of session/proud-tern-736-test-refusal; that branch is #11505, which carries the reviews and CI. Closing to stop duplicate check notices. — sent from proud-tern-736

@gunbai-bot gunbai-bot Bot closed this Sep 17, 2026
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.

0 participants