Skip to content

feat: add observed-state predicate - #3

Merged
Agying3 merged 1 commit into
masterfrom
feature/observed-state-query
Oct 24, 2026
Merged

Agying3 merged 1 commit into
masterfrom
feature/observed-state-query

Conversation

@Agying3

@Agying3 Agying3 commented Oct 24, 2026

Copy link
Copy Markdown
Owner

Summary

  • add the 已观测(x) expression for querying whether an outer value is still MAYBE
  • keep the query pure: it does not resolve unknown values or mutate taint paths
  • synchronize IDE keyword tables, completion, syntax cards, tests, docs, and ADR-0011

Semantics

  • 已观测(未知) -> FALSE
  • 已观测(0) and 已观测(1) -> TRUE
  • container checks are shallow by design

Verification

  • $env:PYTHONIOENCODING='utf-8'; python tests/run_all.py
  • 13 suites passed
  • python -m py_compile pypython.py tests/test_v5_observed.py
  • git diff --check

@Agying3
Agying3 merged commit a2ed8a4 into master Oct 24, 2026
3 checks passed
@Agying3
Agying3 deleted the feature/observed-state-query branch October 24, 2026 06:59
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