HumanCompiler-oriented scheduling models, fixtures, and planning solvers
Project description
HumanCompiler Scheduler
HumanCompiler Scheduler is a small Python package for HumanCompiler-oriented planning experiments. It provides plain dataclass models, YAML fixture loading, review tools, a daily timeline solver, and a weekly task selection solver that can be called from HumanCompiler adapter code without depending on HumanCompiler database models.
The distribution name is humancompiler-scheduler; the import package is
humancompiler_scheduler.
Installation
Install from PyPI after the first release:
uv add humancompiler-scheduler
Weekly task selection uses OR-Tools CP-SAT. Install the optional extra in
environments that call plan_weekly_selection:
uv add 'humancompiler-scheduler[cp-sat]'
Or install the current repository checkout:
uv pip install -e .
For weekly task selection from a checkout, include the same extra:
uv pip install -e '.[cp-sat]'
HumanCompiler Integration API
HumanCompiler-oriented scheduling models live under
humancompiler_scheduler.human. Use plan_daily_schedule for daily scheduling
and plan_weekly_selection for weekly task selection as stable adapter-facing
entry points. The weekly entry point requires the cp-sat extra shown above.
from humancompiler_scheduler.human import plan_daily_schedule
report = plan_daily_schedule(
{
"date": "2026-05-20",
"availability_windows": [
{"start": "09:00", "end": "12:00", "work_kind": "focused_work"},
{"start": "13:00", "end": "18:00", "work_kind": "light_work"},
],
"fixed_events": [
{"title": "Team sync", "start": "11:00", "end": "11:30"},
],
"tasks": [
{
"id": "proposal",
"title": "Draft proposal",
"remaining_minutes": 90,
"priority": 1,
"work_kind": "focused_work",
"source": "task",
},
],
"solver_config": {
"kind_match_score": 8,
"kind_mismatch_score": 1,
},
}
)
for block in report.plan.blocks:
print(block.task_id, block.start, block.end)
from humancompiler_scheduler.human import plan_weekly_selection
result = plan_weekly_selection(
{
"tasks": [
{
"id": "proposal",
"title": "Draft proposal",
"hours": 4.0,
"priority_score": 9.0,
"project_id": "project-alpha",
},
],
"project_allocations": [
{
"project_id": "project-alpha",
"target_hours": 4.0,
"priority_weight": 1.0,
},
],
"total_capacity_hours": 8.0,
}
)
print(result.selected_task_ids)
The lower-level fixture helpers and solver functions remain available for review tooling and experiments.
Known Limitations
The current release intentionally keeps the solver compact. It does not yet:
- insert break blocks automatically;
- preserve prior scheduled blocks or model current-task interruptibility for full rolling reschedule.
Fixture Review
Run one fixture:
uv run python examples/human_daily_demo.py samples/human/daily_basic.yaml
Run a batch review and save a snapshot:
uv run python examples/human_daily_review.py samples/human/*.yaml --format markdown --output human_daily_review.md
The sample review fixtures share the same synthetic HumanCompiler task database
at samples/human/data/humancompiler_common_database.yaml. The fixture files
vary the available time windows and constraints, not the underlying task set.
Apply a shared solver config override to every fixture in the review:
uv run python examples/human_daily_review.py samples/human/*.yaml --config review_config.yaml
Documentation
Sphinx documentation lives in docs/.
uv run --extra docs sphinx-build -b html docs docs/_build/html
Open docs/_build/html/index.html after the build completes.
Releasing
Releases are tag-driven. Update CHANGELOG.md, create a semantic version tag
such as vX.Y.Z, and push it. The release workflow builds the package, checks
the distribution metadata, publishes to PyPI through Trusted Publishing, and
creates GitHub release notes from the matching changelog section.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file humancompiler_scheduler-0.3.0.tar.gz.
File metadata
- Download URL: humancompiler_scheduler-0.3.0.tar.gz
- Upload date:
- Size: 159.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
362035d4870ae497d748efefe199f5507b3730fd3e7290e56c442a72ab0617d9
|
|
| MD5 |
1d55645817cea69dec1f5927e702fe20
|
|
| BLAKE2b-256 |
7e5eedd715267cabb164d4e01c7c415b376c23d7b18541b939935677f9c9bc4f
|
Provenance
The following attestation bundles were made for humancompiler_scheduler-0.3.0.tar.gz:
Publisher:
release.yml on masa10-f/Scheduler
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
humancompiler_scheduler-0.3.0.tar.gz -
Subject digest:
362035d4870ae497d748efefe199f5507b3730fd3e7290e56c442a72ab0617d9 - Sigstore transparency entry: 2083076274
- Sigstore integration time:
-
Permalink:
masa10-f/Scheduler@3dd3e7b2c5a2b443c1bcfb4cf31a80d7b5962ab3 -
Branch / Tag:
refs/tags/v0.3.0 - Owner: https://github.com/masa10-f
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@3dd3e7b2c5a2b443c1bcfb4cf31a80d7b5962ab3 -
Trigger Event:
push
-
Statement type:
File details
Details for the file humancompiler_scheduler-0.3.0-py3-none-any.whl.
File metadata
- Download URL: humancompiler_scheduler-0.3.0-py3-none-any.whl
- Upload date:
- Size: 32.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
492b1915b7511e5e9ec7b7249bd184c7e25030bd1eac8e25d926e90924aeadde
|
|
| MD5 |
f49c2eff30190f21929387251cf36dd5
|
|
| BLAKE2b-256 |
c3bdfe2b22f3a03979b2b552cf450913e01e37c98150c0407849ce90ad7d1d67
|
Provenance
The following attestation bundles were made for humancompiler_scheduler-0.3.0-py3-none-any.whl:
Publisher:
release.yml on masa10-f/Scheduler
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
humancompiler_scheduler-0.3.0-py3-none-any.whl -
Subject digest:
492b1915b7511e5e9ec7b7249bd184c7e25030bd1eac8e25d926e90924aeadde - Sigstore transparency entry: 2083076280
- Sigstore integration time:
-
Permalink:
masa10-f/Scheduler@3dd3e7b2c5a2b443c1bcfb4cf31a80d7b5962ab3 -
Branch / Tag:
refs/tags/v0.3.0 - Owner: https://github.com/masa10-f
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@3dd3e7b2c5a2b443c1bcfb4cf31a80d7b5962ab3 -
Trigger Event:
push
-
Statement type: