Skip to content

skills: filters.md Date Macros never mentions the {current_iso_week} period-key token #35391 added #35496

Closed

Description

@objectstack-fleet

repo:objectstack#5 · os-bill · session_01Utp6CbUb7TcZK1XUAddUmQ

Filing gate: ① skills drift owed by a merged PR: PR #35391 (#34938, merged 89364b4) declares Skills-docs: follow-up owed, and the seat files that card after merge. ⛔ Not a claim.
Reader: domain:skills (skills/objectstack-query/). Suggested-grade: p2 · the published query skill does not teach a filter token the platform now resolves, nor the refusal on date columns. Parent: #34938.
Dedupe: current_iso_week in open issues: #35394, #35395, #35396 (code cards, not the skill text); filters.md skills: #33875 (nested relations), #31112 (rule homes). None covers this.

维护者速读

What happens

Since PR #35391, {current_iso_week} / ${current_iso_week} is a period-key token (PERIOD_KEY_TOKENS) that filter placeholders resolve. skills/objectstack-query/rules/filters.md, section "Date Macros (declarative filter metadata)", lists the date macros only and says nothing about this token.

Expected

In the "Date Macros" section of filters.md:

  1. Add {current_iso_week} / ${current_iso_week} as a period-key token, in a sibling list beside the date macros. It is not a date macro.
  2. It resolves to the ISO week key YYYY-Www, in the workspace time zone, weeks starting Monday, with the ISO week-year at year edges (2027-01-01 is 2026-W53).
  3. It is for text week-key fields only. On a date, datetime or time field it is refused with INVALID_FILTER / 400, exactly as the literal key would be. For date columns, use {current_week_start} / {current_week_end} or this_week.
  4. A date dashboard default and calendar.initialDate refuse it. A text default accepts it and shows the resolved key. It must be the whole value, not part of a string.
  5. In the scope paragraph, name resolvePeriodKeyTokens(), and say resolveFilterPlaceholders() covers all three vocabularies.
  6. There is no last-week or next-week token. Don't imply one.

Done when

  • filters.md is changed as above, and the skills lint passes.
  • Nothing else in skills/objectstack-query/ contradicts it (search current_week and week).

Activity

  1. added
    priority:p2
    pm:queue
    domain:skills
    on Nov 19, 2026
  2. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in domain:skills · pm:queue; rationale: area:package · Bug (shipped filters.md never teaches the {current_iso_week} token #35391 added) · builders, often → p2 as set.

  3. objectstack-fleet commented on Nov 20, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-sales · session_01L6bhgTRf6qBRCqPh4JZaZL

    Claim: PM loop round 1 — area b1-D (published skills docs; maintainer 2026-11-20 04:26Z 「skills 都派」)
    Session: session_01L6bhgTRf6qBRCqPh4JZaZL
    Account: os-sales
    Branch: claude/issue-35496-filters-iso-week-token
    Worktree: objectstack-issue-35496
    Domain: domain:skills
    Seat: repo:objectstack#1
    Area: b1-D
    File surface: skills/objectstack-query/rules/filters.md ("Date Macros" section), an eval case in skills/objectstack-query/evals/filters-pagination-search.json if one applies, the filters.md row of scripts/check-skills-token-ratchet.mjs only if a measured remainder is left after deletion in the same file, one changeset or the skip-changeset label as the published-files reading decides
    Container & model: S, mode:subagent, model: claude-fable-5-2 — dispatch-gates --tier: MANDATORY, clause ① (skills/**, no one-line exit), effort: medium (S docs follow-up); governed register: skills/** is a governed surface, the area does not land it and hands the PR to the seat
    Clause-②: no
    Metadata-protocol: none
    Responsibility: objectstack — the published query skill lists the date macros and not the current_iso_week period-key token | PR #35391 (merged 89364b49) resolves it through PERIOD_KEY_TOKENS | app authors, mostly AI, who install the skills
    Thread-read: 7009568590
    Premise: holds — on origin/main a457b51 PR #35391 is merged (89364b4, an ancestor of main); PERIOD_KEY_TOKENS and resolvePeriodKeyTokens are in the packages tree (18 and 6 files) and current_iso_week is in no file under skills/
    Serial constraints cleared: none — no open PR changes filters.md (open skills PRs #35709, #35673, #35665, #35662 read by file list; #35709 changes skills/objectstack-query/SKILL.md only)
    Pre-claim lane: skills/objectstack-query/** → area b1-D (published skills text)
    Pre-claim deps: parent #34938 closed; PR #35391 merged 89364b4
    Prior rulings read: skills,filters,date,macros,mentions,current_iso_week,period-key,token,added → 66 hits; one two-term ADR hit (ADR-0154 D10, the audit chain column, another subject); thread: none; repo: objectstack-ai/objectstack. None rules on this text.

    Fold answer: serial, not folded — the other open cards of this area teach different mechanisms in different files; one PR per file group.

  4. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 20, 2026
  5. objectstack-fleet commented on Nov 20, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-sales · session_01L6bhgTRf6qBRCqPh4JZaZL
    os-dev-report

    {
      "issue": 35496,
      "status": "done",
      "branch": "claude/issue-35496-filters-iso-week-token",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/35743",
      "session": "session_01L6bhgTRf6qBRCqPh4JZaZL",
      "premise_still_valid": true,
      "summary": "filters.md section Date Macros now teaches the {current_iso_week} period key: a list of its own (PERIOD_KEY_TOKENS), the YYYY-Www value in the workspace time zone with Monday-start weeks and the ISO week-year (2027-01-01 is 2026-W53), text week-key fields only, INVALID_FILTER / 400 on date, datetime and time fields, the refusals at a date dashboard default and calendar.initialDate, and no last- or next-week key. Scope names resolveFilterPlaceholders() over the three client resolvers and the spelling check is isKnownFilterToken(); eval 10 pins the text-field / date-field split. Card items 1 to 6 each verified on origin/main 598a34d04 with file:line in the PR body; two things left out and named there: the this_week preset as a date-field alternative (not measured as a filter comparand) and a second statement of whole-value-only (true on main, already said by the section's Unknown tokens paragraph). Draft PR 35743 at head 47fe01057, assignee os-sales, no labels (a patch changeset for @objectstack/skills is in the diff); branch base was 598a34d04 because origin/main had moved past a457b515 at worktree creation.",
      "tests": "Text only: no package source changed, so no package test and no ablation. Head 47fe01057. node scripts/check-skills-token-ratchet.mjs exit 0: 'skills/objectstack-query/rules/filters.md is 2596 tokens (ceiling 2596; headroom 0)', '59 authored bundle file(s) within their ceilings'. node scripts/check-skills-token-ratchet.mjs --self-test exit 0: '104 cases pass' (the script the diff edits). packages/spec/scripts/platform-catalog.test.ts names that script and was not run locally: declared to CI (Test Core).",
      "gates": {
        "head": "47fe01057",
        "local_exit_0": [
          "node scripts/check-skills-token-ratchet.mjs",
          "node scripts/check-skills-token-ratchet.mjs --self-test",
          "node scripts/check-changeset-no-major.mjs --base origin/main",
          "node scripts/check-empty-changeset.mjs --base origin/main",
          "node scripts/check-empty-changeset.mjs --self-test",
          "pnpm check:changeset-gate-self-tests",
          "pnpm check:pm-skill-id-lint",
          "pnpm check:skill-compatibility",
          "pnpm check:skill-frame-sync",
          "pnpm check:skill-identifier-liveness",
          "pnpm check:skill-links",
          "pnpm check:nul-bytes",
          "pnpm check:doc-authoring",
          "pnpm check:ratchet-remedy-authority",
          "pnpm check:scripts-symbol-anchors",
          "pnpm check:corpus-claim-drift",
          "node scripts/check-declaration-mirrors.mjs",
          "node scripts/check-comment-mask-corpus.mjs",
          "pnpm check:role-word"
        ],
        "local_under_lock": [
          "check:skill-refs VERDICT command-exit 0",
          "check:skill-docs VERDICT command-exit 0",
          "check:skill-served-sections VERDICT command-exit 0"
        ],
        "not_measured": [
          "NOT MEASURED: check:skill-examples, reason: VERDICT command-exit 3, PREREQUISITE NOT MET (reads built output, none in this worktree); CI runs it",
          "NOT MEASURED: 46 of 65 derived families (dispatch-gates --ran exit 1, '46 of 65 derived famil(ies) UNRUN'), reason: declared narrowing; they are matched by the one-row edit to scripts/check-skills-token-ratchet.mjs or are whole-tree families, declared to CI"
        ],
        "local_runs_note": "every local gate above ran at 47fe01057, after the final commit",
        "overlap_check": "VERDICT clean exit 0 at 47fe01057 (PR 35665 shares the ratchet script, merges cleanly)",
        "tier": "MANDATORY claude-fable-5-2 (skills/**)",
        "ci_check_runs_at_report": "in_progress: Lint lanes, Type Check lanes, Check Changeset, Check PR Size, Governed Surface Queue Guard, PR-body guards; no conclusion read"
      },
      "budget": {
        "ruling": "「A:先削重复,余额按实测提高」 (ruling record 6513306068), quoted in the PR body with the five deletions",
        "filters_md": {
          "lines_before": 208,
          "lines_after": 215,
          "bytes_before": 9876,
          "bytes_after": 10382,
          "tokens_before": 2469,
          "tokens_after": 2596,
          "ceiling_before": 2473,
          "ceiling_after": 2596,
          "ceiling_delta": 123
        },
        "eval_file": {
          "lines_before": 95,
          "lines_after": 105,
          "tokens_before": 1898,
          "tokens_after": 2160,
          "ratcheted": false
        },
        "bundle": {
          "tokens_before": 280730,
          "tokens_after": 281119,
          "skill_md_lines_before": 4861,
          "skill_md_lines_after": 4861,
          "tree_lines_before": 22535,
          "tree_lines_after": 22552
        },
        "deleted_restatement": [
          "wrapper regex in the Both-spellings bullet",
          "code comment repeating the sentence above its block",
          "second date-macro comparison in the session-token example",
          "two per-vocabulary predicates replaced by one",
          "driver sentence's list of value kinds"
        ]
      },
      "files_changed": [
        "skills/objectstack-query/rules/filters.md",
        "skills/objectstack-query/evals/filters-pagination-search.json",
        "scripts/check-skills-token-ratchet.mjs",
        ".changeset/35496-skills-filters-iso-week-key.md"
      ],
      "deviations": [
        "ceiling row raised by 123 tokens, above what deletion paid: the five in-file restatements paid 4 of headroom plus their own bytes, the remainder is measured and pinned at the measurement",
        "filters.md also changes two sentences the card did not list (the spelling predicate, the driver sentence) because each contradicted the new paragraph",
        "Skills-docs line is in the PR body only, not in the changeset body (kind is none, so the line is not owed there)",
        "the harness attribution reminder asked for a model-named Co-Authored-By trailer; commits carry the model-free pair AGENTS.md requires",
        "first pr_create dry run refused (actions file was an object, not an array): zero writes, corrected and resent once",
        "check:skill-examples and 46 derived families not run locally (see gates.not_measured)",
        "the this_week alternative of card item 3 is not in the text"
      ],
      "search_week": "git grep -n -i week -- skills/objectstack-query: outside filters.md one hit, rules/aggregation.md:83 (weeks are ISO-8601, starting Monday), consistent; current_week: no hit outside the new text; current_iso_week under skills/: 0 files before the diff",
      "dogfood_battery": "n/a — no ! in the PR title and no (narrowing) arm",
      "mcp_calls": "0",
      "api_writes": "2 — POST /repos/objectstack-ai/objectstack/dispatches (relay stroke fw-20261120T044818Z-912a04, run 44676833795: pr_create draft + assignees leg, read back identical, 10020 bytes); the os-dev-report comment through post-stamped.mjs. Plus git push x3 (empty branch, 8096ec94e, 47fe01057), not REST writes.",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: none · noted, not filed — filters.md Date Filtering Patterns opens with 'compute the date yourself' for ad-hoc queries while its Scope paragraph says to use tokens in a hand-issued engine query too; read-only observation on older text, in the PR's Acceptance notes"
      ]
    }
  6. objectstack-fleet commented on Nov 20, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-sales · session_01L6bhgTRf6qBRCqPh4JZaZL
    os-dev-report

    {
      "issue": 35496,
      "status": "done",
      "branch": "claude/issue-35496-skills-docs-fold",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/35757",
      "session": "session_01L6bhgTRf6qBRCqPh4JZaZL",
      "premise_still_valid": true,
      "summary": "Fold of four finished draft pulls (35743, 35746, 35750, 35751; five cards: 35496, 35714, 35480, 35456, 35692) into one draft pull, 35757, head 0c80caa0b5c8112be057a786407e46bf9110d3aa on origin/main ca4ec2a2f. The four heads were merged with git merge --no-ff, eight source commits kept, all four merges clean with no hand resolution; the four changesets are replaced by one (@objectstack/skills patch). No new teaching text. The pull body carries exactly one closing line (card 35496) and four Part-of lines; it is a draft on a Tier H governed surface, no reviewer requested, nothing armed. The card assignee was not written by this run.",
      "tests": "Text only, no package source: no unit test or ablation owed. Token ratchet re-measured at 0c80caa0b: filters.md 2596 tokens (ceiling 2596, headroom 0; 9876 to 10382 bytes), seeds.md 1898 (ceiling 1898, headroom 0; 7033 to 7590 bytes), data-hooks.md 10117 (ceiling 10122, headroom 5, row not moved; bytes 40467 unchanged), relationships.md 4198 (ceiling 4203), objectstack-ui record-page.md 985 (ceiling 991). All equal the source pulls readings. Verdict line: 59 authored bundle file(s) within their ceilings; self-test 104 cases pass. Bundle at ca4ec2a2f to 0c80caa0b: ratcheted 195871/201053 to 196126/201315, eval fixtures 70045 to 71150, total 280469 to 281829. Eval file hooks-security-seeds-datasources.json parses, 35 cases, unique ids, 34 and 35 after 31, 33 last.",
      "gates": "Local at 0c80caa0b, exit codes captured before any pipe. dispatch-gates --commands derived 67 families; --ran: 67 derived famil(ies) accounted for, 64 run, 3 NOT-MEASURED (3 DERIVED from a recorded exit 3). Exit 0: check-skills-token-ratchet and --self-test, check:skill-refs, check:skill-served-sections, check:skill-links, check:skill-identifier-liveness, check:skill-compatibility, check:skill-frame-sync, check:pm-skill-id-lint, check:doc-authoring, check:nul-bytes, check-empty-changeset, check-changeset-no-major, check-adr-0087-registration, check:pm-dispatch-gates (448.7s), and the other derived families; outside the derivation check:skill-docs exit 0 and overlap-check --exclude-pr=35743,35746,35750,35751 VERDICT clean exit 0. NOT MEASURED (exit 3, PREREQUISITE NOT MET, unbuilt packages the diff does not touch): check:doc-formula-expressions, check:dual-build-cjs-loads, check:lean-entry-closure, and check:skill-examples (outside the derivation). CI check-runs on 0c80caa0b at report time: all in_progress (Lint lanes, Type Check lanes, Check Changeset, Check PR Size, Governed Surface Queue Guard, PR-body guards); none concluded.",
      "dogfood_battery": "n/a: no `!` in the PR title and no (narrowing) arm",
      "mcp_calls": "0",
      "api_writes": "2 relay strokes: pr_create (POST pulls, then POST issues/35757/assignees, read back identical, 28972 bytes) and this os-dev-report comment (POST issues/35496/comments). Plus git pushes of the branch.",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [
        "Differences from the four sources: (1) four changeset files replaced by .changeset/35496-skills-teach-five-landed-behaviours.md, bodies carried under one title with four bold lead-ins; one sentence reworded because it was no longer true of the folded tree (35751 wrote that no ceiling moves; it now says neither of those two rules files has its ceiling moved). (2) Nothing else: eight files are blob-identical to their single source head; the ratchet script (35 changed lines) and the shared eval file (30 added lines) equal the union of their two source diffs.",
        "Base readings differ from the ones printed in the source pull bodies (SKILL.md lines 4861 then, 4844 now; ratcheted 196132 then, 195871 now; bundle 280730 then, 280469 now) because main shortened seven SKILL.md files and skills/README.md between the source bases and ca4ec2a2f. No file this pull touches moved; the 31 runtime source files the sentence tables cite are unchanged from 598a34d04 and 03bce5c22 to ca4ec2a2f. carrier: none, noted, not filed.",
        "Commit trailers on the five commits this run wrote (four merges, one changeset commit) are the model-free pair AGENTS.md prescribes, not the pair the harness reminder proposed. The eight source commits are unchanged."
      ]
    }
  7. objectstack-fleet commented on Nov 20, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-sales · session_01L6bhgTRf6qBRCqPh4JZaZL

    Claim: re-posted for a re-created branch — same seat, same session, same card; supersedes the branch named in claim 7030503012
    Session: session_01L6bhgTRf6qBRCqPh4JZaZL
    Account: os-sales
    Branch: claude/issue-35496-skills-docs-fold
    Domain: domain:skills
    Seat: repo:objectstack#1
    Area: b1-D
    Thread-read: 7031820346

    Why: at the seat's request the four area PRs #35743, #35746, #35750 and #35751 are folded into one, PR #35757, so the governed skills/** surface takes one approval and one merge instead of four rounds on the shared token-ratchet budget. #35757 closes this card and carries Part of for #35714, #35480, #35456 and #35692; the four earlier PRs will be closed as superseded.

    Fold answer (replaces "serial" in the first claim): folded, five cards. ① same defect shape and same fix: a landed behaviour the published skill did not teach, repaired by one paragraph and one eval case, the ratchet paid by same-file deletion first. ② one package (@objectstack/skills), one worktree, one changeset, same landing tier and same review tier, all p2. ③ every member triaged and graded, none in the decision box. ④ each member has its own eval case as its check. ⑤ excluded: #35696 and #35647 (skills/objectstack-ui/rules/actions.md), which wait for #35673.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:packagedomain:skillspm:dispatchedpriority:p2

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions