Add a concrete 0-100 swarmness/compliance score, local large-scale stress, and 3000 TPM budget acceptance so the repo can say when it is a swarm by measured criteria instead of prose alone. Constraint: user required Chinese docs, explicit scenarios, parameters, formulas, pass/fail lines, and git upload. Rejected: prose-only PASS reports | they did not answer whether the system is a swarm with a concrete score. Confidence: high Scope-risk: moderate Directive: keep production runtime claims separate from local minimal swarm acceptance scores. Tested: py_compile swarm_minimal examples tests; unittest discover -s tests 45 tests; run_swarm_compliance_score.py; run_tpm_budget_acceptance.py; run_academic_standard_evaluation.py; git diff --check; docs/script secret-pattern scan. Not-tested: live S07 and production Kubernetes/NewAPI provider-rate-limit stress were not rerun in this upload step. Co-authored-by: OmX <omx@oh-my-codex.dev>
34 lines
969 B
Python
34 lines
969 B
Python
from __future__ import annotations
|
|
|
|
from pathlib import Path
|
|
import json
|
|
import sys
|
|
|
|
|
|
ROOT = Path(__file__).resolve().parents[1]
|
|
sys.path.insert(0, str(ROOT))
|
|
|
|
from swarm_minimal.acceptance_scoring import current_minimal_swarm_score # noqa: E402
|
|
|
|
|
|
def main() -> None:
|
|
report = current_minimal_swarm_score().to_dict()
|
|
report["scope_note"] = (
|
|
"This numeric score is for the configured local minimal swarm acceptance standard. "
|
|
"It is not a production Kubernetes/runtime certification score."
|
|
)
|
|
report["pass_lines"] = {
|
|
"not_swarm": "< 60 or any core swarm feature fails",
|
|
"partial_swarm": "60-74",
|
|
"minimal_acceptance": "75-84",
|
|
"compliant_prototype": "85-94",
|
|
"highly_compliant_local_minimal_swarm": ">= 95 with no hard cap",
|
|
}
|
|
print(json.dumps(report, ensure_ascii=False, indent=2))
|
|
if report["status"] != "PASS":
|
|
raise SystemExit(1)
|
|
|
|
|
|
if __name__ == "__main__":
|
|
main()
|