Skip to content

Add PHM Physics Check plugin (deterministic physics plausibility checker) - #3445

Merged
crazywoola merged 5 commits into
langgenius:mainfrom
PHM-Audit:main
Oct 22, 2026
Merged

crazywoola merged 5 commits into
langgenius:mainfrom
PHM-Audit:main

Conversation

@PHM-Audit

@PHM-Audit PHM-Audit commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

Plugin information

Submission type

  • New plugin

Risk level

  • Low risk

What changed

  • Added PHM-Audit/phm-physics-check/phm-physics-check-1.0.0.difypkg (new plugin, version 1.0.0)
  • Filled all required manifest fields (icon, privacy, repo, contact, created_at, resource, meta.runner.entrypoint)
  • Added _assets/icon.svg, LICENSE, and the source-repository URL in README
  • Pinned dify-plugin==0.10.2 in requirements.txt

Local validation

  • Packaging: the difypkg is a valid zip with manifest.yaml at its root (11 files)
  • Core checker: 13/13 unit tests pass (deterministic core, Python standard library only)
  • Plugin boot: the runner entrypoint (main.py) loads the tool provider configuration without validation errors against dify-plugin==0.10.2
  • No network libraries are imported by the checker (verified by import audit: math, re, typing, json only)

Security and privacy notes

  • All computation happens locally inside the host Dify instance; input text never leaves the host
  • No telemetry, no logging of input/output content, no external domains contacted (no network block in the manifest)
  • Deterministic verdicts: identical input always yields identical output, independently recomputable
  • The checking core uses only the Python standard library

@crazywoola

Copy link
Copy Markdown
Member

Hi @PHM-Audit, thanks for submitting the PHM Physics Check plugin!

The latest pre-check-plugin run reported several blocking errors (run: https://github.com/langgenius/dify-plugins/actions/runs/39595661306):

  • manifest.yaml — missing required fields: icon, privacy, repo, contact, meta.runner.entrypoint (the installation test additionally requires created_at and resource)
  • Plugin icon — icon file not found (_assets/null)
  • README.md — must include a source repository URL from an allowed host (github.com, gitlab.com, bitbucket.org, gitee.com, codeberg.org, git.sr.ht)
  • requirements.txt — the dify_plugin dependency must be >= 0.9.0 (currently dify-plugin>=0.0.1,<0.3.0)
  • PR body — missing sections: "Plugin information", "Submission type", "Risk level", "What changed", "Local validation", and "Security and privacy notes"
  • Installation test — failed with validation errors for the same missing manifest fields

Most of these come from the package and PR body templates not being filled in — the plugin submission requirements cover each item, and comparing manifest.yaml against a recently accepted plugin can help. Once you push a fix, CI will re-run automatically. Happy to help if anything is unclear — thanks for the contribution!

…epo/contact/created_at/resource/runner.entrypoint), add _assets/icon.svg + LICENSE, bump dify-plugin>=0.9.0, source URL in README, author/plugin/version layout
@PHM-Audit

Copy link
Copy Markdown
Contributor Author

Thanks for the detailed checklist @crazywoola — all items are fixed in the new push:

  • manifest.yaml: icon, privacy, repo, contact, created_at, resource, and meta.runner.entrypoint all filled (referenced a recently accepted plugin's manifest for the schema)
  • icon added at _assets/icon.svg
  • README.md now includes the source repository URL
  • requirements.txt bumped to dify-plugin>=0.9.0
  • PR body now has all required sections
  • package relocated to PHM-Audit/phm-physics-check/phm-physics-check-1.0.0.difypkg

CI should re-run on the new commit — happy to adjust if anything else comes up.

…r yaml identity adds description+icon+tags (pydantic ToolProviderConfiguration required fields); pin dify-plugin==0.10.2
@PHM-Audit

Copy link
Copy Markdown
Contributor Author

Thanks again — the failure log pointed at three concrete things, all fixed in the new push:

  1. Tags: the manifest now uses marketplace-enum tags (utilities, productivity) — the earlier validation/safety/science values weren't valid plugin tags, which is what broke packaging.
  2. Provider yaml: the tool provider's identity block was missing description, icon, and tags — required fields for ToolProviderConfiguration in the runtime. Added, and re-verified the boot locally against dify-plugin==0.10.2.
  3. PR body: restructured to the template shapes (- [x] New plugin, - [x] Low risk, added the Contact field).

Also pinned dify-plugin==0.10.2 in requirements.txt to match the CI runner. All other checks were already passing (manifest, README, secrets, dependencies, version availability).

@github-actions github-actions Bot added risk: low Low-risk Marketplace submission and removed risk: missing Missing or invalid Marketplace risk selection labels Oct 22, 2026
…l yaml wiring); rebuilt from the verified build dir. Local preflight replays the SDK load path on the packaged file: ALL_GREEN.
@PHM-Audit

Copy link
Copy Markdown
Contributor Author

The last push was a packaging mistake on our side — the committed .difypkg was built from a stale working directory, so it shipped without the ToolProvider subclass and without the tools: wiring (that's the Missing subclass of ToolProvider in the install test; the other two failing files were the same root cause).

The rebuilt package (same path) is verified against the packaged file itself, not the working tree: unpacked, then loaded through the SDK's own path (ToolProviderConfiguration with tools as paths, load_single_subclass_from_source for both the provider and tool classes) under dify-plugin==0.10.2 — all green, plus the core checker invoked end-to-end. Apologies for the churn.

@crazywoola
crazywoola merged commit d00c2e5 into langgenius:main Oct 22, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk: low Low-risk Marketplace submission

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants