Commit Graph
41 Commits
Author SHA1 Message Date
Lauri Ojansivu a833d95adc Use WeKan as the translation source for its prototypes 2026-11-19 00:21:55 +02:00
Lauri Ojansivu 879627c641 Move TODO Later from the changelog to TODO.md.
The changelog now says only what changed. What is not done yet, with
why, is in TODO.md at the repository root; Status links it. When an
item is done it is removed from TODO.md and its entry goes into the
Upcoming section of CHANGELOG-big.md. CLAUDE.md and AGENTS.md say so,
tests/changelogFormat.test.cjs checks the changelog no longer carries
TODO Later, and tests/todoFile.test.cjs checks TODO.md's shape.

TODO.md also records three maintainer decisions left open by
ListLockBulkBleed: whether per-list role exceptions should apply to
dependency lines, to the rules engine's own actions, and to deleting,
archiving or moving whole lists and swimlanes.

Thanks to xet7 !
2026-11-18 22:32:52 +02:00
Lauri Ojansivu 11bed26788 Companion repositories are found in .tools/w, .tools/xet7 and .tools/Secretchronicles.
The repositories under .tools/ are now grouped by their GitHub owner:
github.com/wekan/* in .tools/w/, github.com/xet7/* in .tools/xet7/ and
github.com/Secretchronicles/* in .tools/Secretchronicles/. build.sh,
build.bat, the release and debug scripts, the tests and the docs looked
for .tools/FerretDB, .tools/wekan.fi, .tools/charts, .tools/node-patches,
.tools/mongo-tools-patches and .tools/TSC, and now use the new places.

ensure_tool_repo takes the owner from the clone URL through a new
tool_repo_dir, so a missing companion repository is cloned into the same
place the scripts read it from. tests/toolsDirectoryRepos.test.cjs runs the
mapping and checks that nothing lands flat in .tools/ any more.

Finding the website checkout again let securityRegressionCoverage compare
the Hall of Fame, which it had been skipping: CreateBleed is published and
is now in the inventory with its unit and UI tests. The exceljs fork test
reads npm-packages/exceljs, the copy WeKan builds with, instead of a clone
under .tools that is not part of the build.

Thanks to xet7 !
2026-11-07 23:32:43 +02:00
Lauri Ojansivu b4cb989391 Move weba instructions into its own repository
Remove the weba-specific section from the instruction twins now that the companion repository maintains its own scoped AGENTS.md and CLAUDE.md.
2026-11-06 17:01:28 +02:00
Lauri Ojansivu 1ef7a57ce4 Added weba info to AGENTS.md and CLAUDE.md.
Thanks to xet7 !
2026-11-06 16:49:47 +02:00
Lauri Ojansivu 016b4bf3bd CLAUDE.md, AGENTS.md: only maintainer mode commits directly and updates changelogs; one pull request per feature or fix.
A pull request contributor, in wekan/wekan and in the maintainer's
repositories under .tools/, sends each feature or fix as its own pull
request, with only related changes in it, and changes no changelog: the
maintainer writes the entry after merging, when there is a commit to link.
The CHANGELOG section and the security CRITICAL entry say they are
maintainer mode only, and "good practice for everyone" no longer includes
the CHANGELOG structure. tests/changelogFormat.test.cjs checks both files.

Thanks to xet7 !
2026-11-05 20:55:28 +02:00
Lauri Ojansivu 1af642069c The short CHANGELOG.md starts with the upcoming release's In short.
CHANGELOG.md showed only the five newest releases, so what was about to be
released was only in CHANGELOG-big.md. changelog-short.mjs now puts the
unreleased # Upcoming WeKan ® release first - its In short and a link to
its full section - and the five newest releases below it; right after a
release, when there is no Upcoming yet, none is invented.

CLAUDE.md and AGENTS.md say what "update wekan changelog" means: find the
commits not in the changelog yet, add an Upcoming section when a release
was cut meanwhile, write the entries and the In short into
CHANGELOG-big.md, run changelog-short.mjs, run the changelog tests, and
commit both files.

tests/changelogShort.test.cjs: Upcoming first, whole, above the releases,
its link resolves, and no Upcoming appears after a release.

Thanks to xet7 !
2026-10-30 03:56:11 +02:00
Lauri Ojansivu f1c0db247a CHANGELOG.md is the short changelog, written from CHANGELOG-big.md.
CHANGELOG-big.md is the changelog as it was: # Status, # Upcoming and every
release in full, with its <details> entries. Everything that writes or edits
the changelog uses it - release-all.sh, release-notes.sh and the release
workflow, the commit-link repair in build.sh and fix-changelog-hashes.sh,
the archive, the wrapper, the version scripts - and the release notes'
"More details at ChangeLog" link goes to its section. remote-release.py,
shared with FerretDB and the patch repositories, takes the file from its
config, and only WeKan's names CHANGELOG-big.md.

CHANGELOG.md is new: no Status and no Upcoming, only the In short paragraph
of each of the five newest releases and a link to its full section, in plain
Markdown - no <details>, <summary>, </summary> or </details>, and HTML links
written as Markdown links. releases/changelog-short.mjs writes it;
release-all.sh runs it right after naming the release, so it is in the
release commit, and changelog.sh does too. The Sandstorm App Market keeps
embedding CHANGELOG.md, now the short one.

old-CHANGELOG/'s headers say they moved out of CHANGELOG-big.md. References
to Upcoming or TODO Later in code comments and docs name CHANGELOG-big.md.
CLAUDE.md and AGENTS.md describe both files: CHANGELOG-big.md is written,
CHANGELOG.md is generated and never edited by hand.

tests/changelogShort.test.cjs: CHANGELOG.md is exactly what the generator
writes, the five newest releases with their whole In short, links that
resolve, and none of the four tags or an HTML link; the changelog tests
read CHANGELOG-big.md.

Thanks to xet7 !
2026-10-30 03:29:48 +02:00
Lauri Ojansivu ae13eab23e SECURITY.md, CLAUDE.md, AGENTS.md: a report without a GHSA goes from 3 to 5 stars when its GHSA arrives.
A researcher who sent a report to security@wekan.fi, or some other way, and
is later able to add it as a GitHub security advisory: the maintainer
requests the CVE through that GHSA, and the Hall of Fame row's 3 stars
become 5. SECURITY.md says so to researchers. CLAUDE.md and AGENTS.md tell
an AI updating or auditing the Hall of Fame to check each such 3-star row
against the advisories, match by the report's subject and reporter, and
upgrade the index row, its own page, the CVE cell, the Process cell and the
star audit together.

Thanks to xet7 !
2026-10-29 21:52:15 +02:00
Lauri Ojansivu 41bc82713e Use only the one-program mongo-tools-<platform> from mongo-tools-patches.
fetch-mongo-tools.sh, the local build-release-bundle.sh and the
check-arch-binaries.sh preflight fell back to the eight separate
<tool>-<platform> binaries when a release had no mongo-tools-<platform>.
wekan/mongo-tools-patches now publishes only the one program, so every
bundle, image and snap gets that or no tools, and says so. The Windows and
macOS jobs also remove the inherited amd64 mongo-tools with the launchers.

tests/fetchMongoTools.test.cjs serves a release that has only the per-tool
binaries and checks that none is installed or even requested, and fails on
any script or workflow that builds a per-tool download address.

Thanks to xet7 !
2026-10-12 02:25:32 +03:00
Lauri Ojansivu fea58e1312 Document which databases WeKan supports, and how each is tested.
docs/Databases/Supported.md is the one list: FerretDB v1 with SQLite (the
default everywhere), PostgreSQL (works), MySQL, MariaDB and SAP HANA
(experimental), FerretDB 2 (not tested), and MongoDB 6, 7, 8 and 9 - with
what checks each: the 110-query conformance catalogue answers the same on
all of them, and WeKan's own tests run on Meteor's bundled MongoDB 8 and on
FerretDB. It also says what to know about MongoDB versions: the Linux
kernel 6.19-7.0.13 refusal and its fixes, AVX, the driver, and upgrades.

The README and the Status section of CHANGELOG.md gain a Databases list,
docs/Databases/README.md links the page, the Meteor 2.14 compatibility guide
is marked historical, and the conformance page counts 110 cases and the
MongoDB backends. CLAUDE.md and AGENTS.md describe the new Status block.

Thanks to xet7 !
2026-10-10 19:07:14 +03:00
Lauri Ojansivu 5029b65382 Keep CHANGELOG.md under GitHub's 500 KiB Markdown limit, so GitHub shows it.
At 2.1 MB, GitHub showed "Sorry about that, but we can't show files that
are this big right now" for CHANGELOG.md. GitHub renders Markdown up to
500 KiB, shows only plain text above that, and nothing above about 2 MB;
the July to September archives, 683 KB to 2 MB, were shown as text only.

releases/changelog-archive.mjs now cuts by size instead of by month:
CHANGELOG.md keeps Status, Upcoming and the newest releases that fit in
450,000 bytes (345 KB now, two releases), and the rest move to
old-CHANGELOG/<year>/<MM>.md, a month over the same budget continuing in
<MM>-part2.md and on, whose parts link each other. Every archive part now
renders, except v12.13, one release of 537 KB in a part of its own. No
release section is changed: all 1,225 are where they were, byte for byte.

release-all.sh runs the archive after renaming Upcoming, keeping the newest
release, which release-notes.sh reads. tests/changelogArchive.test.cjs fails
when CHANGELOG.md or a part is over the budget. CLAUDE.md and AGENTS.md
describe the size rule instead of the current month.

Thanks to xet7 !
2026-10-10 16:11:51 +03:00
Lauri Ojansivu 3ec85c82d6 Release notes: a Translations group may give the count of its languages.
When too many languages were updated to list - more than 20 - the
Translations group gives "**Languages updated:** 172 languages." and the
release notes say "Updated translations at 172 languages." instead of a list
of one "172 languages" item. A listed language name loses a trailing full
stop. CLAUDE.md and AGENTS.md describe the count, and that a part of the
Upcoming section with nothing to say is left out.

Thanks to xet7 !
2026-10-10 16:05:47 +03:00
Lauri Ojansivu f7def463be Restrict release notes to summary security and language updates
Emit only In short, Security, translation language names, thanks and the exact changelog anchor. Keep other details in the changelog and verify security retention, omitted developer entries and version-specific links offline.

Thanks to xet7 !
2026-09-14 13:39:32 +03:00
Lauri Ojansivu 8db16132cb Summarize release-note translations as updated languages
Keep detailed translation entries in the changelog and audit, but list only affected languages in release notes. Require explicit language metadata, preserve other topic details, and anchor release heading extraction. Verify nested detail removal and missing-metadata failure offline.

Thanks to xet7 !
2026-09-14 13:26:55 +03:00
Lauri Ojansivu ccfceb7b77 Exclude binary provenance tables from release notes
Generate initial and refreshed release notes solely from the changelog. Retain checksum verification and build provenance artifacts separately. Update build entry points, release instructions and regression guards.

Thanks to xet7 !
2026-09-14 13:22:19 +03:00
Lauri Ojansivu c02e4e995f Update CLAUDE.md/AGENTS.md and the format test for the new Status heading.
The maintainer restructured the top of CHANGELOG.md by hand: "# Platforms"
and "# TODO Later" are no longer their own top-level headings. Both are now
<details> blocks nested inside a single "# Status" heading, which also
gained a "More status info" block linking https://wekan.fi/status/, and the
platform/install links moved into their own "Newest WeKan at these
platforms" details instead of sitting directly under the heading.

Updated CLAUDE.md's/AGENTS.md's "file's shape" spec and every other mention
of "# Platforms"/"# TODO Later" as literal headings to describe the new
nesting. tests/changelogFormat.test.cjs's structural checks all located
"# TODO Later" by exact heading text, which no longer exists; replaced with
a shared `todoAt` lookup of `<summary>TODO Later</summary>` used everywhere
those checks anchor themselves. releases/changelog-archive.mjs needed no
change: it already finds the header by "everything above the first release
heading" and the "Older releases:" bullet by content, not by position
relative to "# Platforms" specifically.

Thanks to xet7.
2026-09-09 00:44:14 +03:00
Lauri Ojansivu 7883cf2ac4 Remove the Platform/Binary/From/Version/SHA256 table from CHANGELOG.md.
The maintainer removed this table by hand from the current month's
CHANGELOG.md - it was tried right under each release's "In short" summary,
then moved to a "Binaries in these bundles" label at the end, and both times
made every release's entry mostly a giant table nobody read. Update
CLAUDE.md/AGENTS.md's CHANGELOG spec and the docs template to stop
prescribing it, and change tests/changelogFormat.test.cjs's binaries-table
test into a negative one. tests/newestBundledBinaries.test.cjs is updated to
verify the same data instead through the GitHub Release notes, which
releases/provenance-table.sh still builds fresh from
releases/record-provenance.sh's recordings on every release - that mechanism
is unchanged, only the CHANGELOG copy is removed.

Thanks to xet7.
2026-09-09 00:17:38 +03:00
Lauri Ojansivu 83fa2d341c Stop leaving an empty Upcoming placeholder, move the binaries table to the end.
CHANGELOG.md no longer carries an empty "# Upcoming WeKan (R) release" section
with an "In short: nothing here yet." placeholder between releases.
release-all.sh used to auto-create one immediately after renaming a release
(via the now-deleted releases/changelog-open-next.mjs), so the file always
had a section that said nothing until the first real entry replaced it.
Add the Upcoming section yourself, by hand, the moment there is a real entry
for it, using the skeleton at
docs/DeveloperDocs/Changelog-Upcoming-Template.md. What actually prevents an
entry from landing inside an already-published release -
tests/changelogEntriesBelongToTheirRelease.test.cjs asking git which commits
a release contains - never depended on the placeholder existing first, so
removing it costs nothing.

Also reorders each release section: the binaries table used to sit right
under the "In short" summary; it now comes LAST, under its own "Binaries in
these bundles:" label, after every content subsection and right before the
closing "Thanks to above GitHub users" line. A reader opens a release to see
what changed; the platform/SHA256 table is reference material, not the
second thing anyone reads.

Updated CLAUDE.md/AGENTS.md's CHANGELOG format spec and
tests/changelogFormat.test.cjs to match both changes, and
tests/buildScriptParity.test.cjs now that changelog-open-next.mjs is gone.

Thanks to xet7.
2026-09-08 23:03:22 +03:00
Lauri Ojansivu bf8ce99924 Keep temporary files under .tools 2026-09-07 13:30:52 +03:00
Lauri Ojansivu 7290ed0360 Say what _build is, and ignore what is not source in every ignore file
Two build directories exist and their names are one character apart, which is
how one of them got scanned as source by a test earlier today:

  .build/  the RELEASE bundle, from `meteor build .build --directory`.
           .build/bundle is what is deployed, tested and packaged.
  _build/  rspack's compiled output, written by ANY Meteor compile. Meteor reads
           the app's main modules from _build/main-prod/, so it is a HANDOFF,
           not a leftover - which is why .meteorignore must NOT ignore it, as
           the note in that file has said since the Meteor 3.4 migration.

Both are now described where somebody meets them: the build.sh and build.bat
headers, Directory-Structure.md, Build-from-source.md, Meteor-bundle.md,
Build-and-Create-Pull-Request.md (as "what not to add to a pull request"), and
CLAUDE.md/AGENTS.md - the last with the warning that _build holds a bundled
second copy of every source file, so anything walking the repository must skip
it. That is not hypothetical; a source-scanning test read it and reported the
bundler's rewritten imports as a source file breaking a rule.

_build was in .gitignore and .meteorignore only. It is now in .dockerignore,
.eslintignore and .prettierignore too.

The same pass aligned the rest. Nothing in client/, server/, models/, imports/,
config/ or packages/ imports anything from docs/, meta/, old-CHANGELOG/,
openapi/, sandstorm-src/, snap-src/, snap-base-debian/, stacksmith/, releases/,
scripts/, tools/ or secrets/ - checked, not assumed - so Meteor no longer
watches them. It watches what it does not ignore, one inotify watch per
directory, against a per-user limit shared with every other watcher on the
machine: the same limit .tools/ was added for. The Docker context no longer
carries them either, since everything in it is sent to the daemon whether the
image uses it or not.

Four things are deliberately NOT ignored, each for a reason now written down:
config/ is imported by the app in nine places; private/ and public/ are Meteor's
own asset directories; packages/ holds the local Meteor packages; and _build/
breaks the build if ignored. releases/ stays in the Docker context because the
Dockerfile COPYs several scripts out of it.

.meteorignore now also ignores .build/, which answers a warning Meteor prints on
every release build - "The output directory is under your source tree. Your
generated files may get interpreted as source code!" Unlike _build/, nothing
hands .build/ back to the compiler; it is finished output read by the deploy and
test steps.

Thanks to xet7 !
2026-09-04 23:47:14 +03:00
Lauri Ojansivu bbfc139b72 Say where the maintainer's AI is credited: the sponsors page, and only there
The attribution rule said an AI working for a human is invisible, which read as
"never acknowledged anywhere". It is acknowledged - once, deliberately, in one
place - and a rule that omits the exception invites somebody to add the credit
back where it was removed from.

It lives at https://wekan.fi/sponsors , under "AI donated by. All code and PRs
verified by xet7", where Claude, Codex and GitHub Copilot sit alongside the
people and companies that donate hosting, servers, grants and testing. That is
the whole of the credit, and the reason it is there rather than in the commits
is that a per-commit trailer put the same fact on thousands of lines and drowned
out the humans the entries exist to name. Moving it to the page that says who
gives WeKan what is what fixed that, so acknowledging it anywhere else is not
extra politeness - it undoes the fix, and both files now say so in those terms.

Maintainer mode carries the same pointer, since that is where an AI is most
likely to feel a commit is unattributed and reach for a trailer. CODE_OF_CONDUCT
carries it in its own plain register, next to the two rules it already gained.

Thanks to xet7 !
2026-09-04 21:29:32 +03:00
Lauri Ojansivu ac18670360 Credit the AI that opened a pull request, never the one that helped a human
"Never attribute a commit to an AI" was one rule where there are two, and it
gave the wrong answer to half the cases it met.

The test is whether a person is behind the change, not whether an AI touched it:

  a human's AI  -> invisible. The maintainer or a contributor using Claude
                   Code, Codex, Copilot or any other model is the author; the
                   tool appears nowhere - no Co-Authored-By trailer, no
                   "Generated with", no model name in the commit, the pull
                   request body or the CHANGELOG.
  an AI on its  -> the contributor, named. GitHub CodeQL raising a fix for
  own             something it found, Copilot Autofix, Dependabot: no human
                  wrote those, so crediting a human would be false and
                  crediting nobody would leave the change unattributed.

So the same word - "Copilot" - is forbidden in one commit and required in
another, and this now says which is which instead of leaving it to be guessed.
The second half is not new practice: the dependency sections have always closed
with "Thanks to dependabot.", and the Hall of Fame has always named GitHub
CodeQL as a reporter. Those were the rule being followed without being written
down, and that bullet now says why the bot is credited there.

Maintainer mode also now says the thing it only implied: the AI ITSELF makes the
commit, directly on main, authored Lauri Ojansivu <x@xet7.org> - not as a
co-author, not as a second author, but as that author and no other. Contributor
mode gains the case where the contributor IS an AI, which is still a branch and
a pull request; what differs is that the pull request names it.

CODE_OF_CONDUCT.md carries the same rule, in its own plain register, because it
is where a contributor looks first and it was the document being cited for the
half that was written down. The sentence CLAUDE.md quotes from it is unchanged,
so that citation still reads true.

Thanks to xet7 !
2026-09-04 21:29:32 +03:00
Lauri Ojansivu c873972671 Say plainly which of the two roles commits where
The previous commit got the contributor half wrong. It read the "commits go
directly on main" rule as applying to everyone, and rewrote contributor mode to
match - so the file told somebody with no write access to wekan/wekan to commit
on main, and dropped the pull request that is the only way their work can
actually arrive.

There are two roles and two answers, and the file now leads with both in a table
rather than leaving either to be inferred:

  the maintainer, Lauri Ojansivu <x@xet7.org>  -> directly on main, never a
                                                  branch, never a pull request
  a contributor, anybody else                  -> a branch in their own fork,
                                                  then a pull request, never a
                                                  commit on main

Each half is given its reason, because a rule with a reason survives a tool that
offers something else. The maintainer's is the release flow: release-all.sh cuts
a release from whatever is on main, so work parked on a branch is work that
misses it. The contributor's is review: nobody else commits to main in
wekan/wekan, so a change from anyone else arrives as a pull request, which is
also the only place it can be discussed first.

Contributor mode is back to what it said before, and the two later places that
had been reconciled the wrong way - the General practices bullet and the
directory-structure entry - now say the same thing as the table. The never-push
boundary is unchanged and applies to both roles: an AI makes the local commit
and stops, whether that commit is on main or on a contributor's branch. Pushing
it and opening the pull request are the human's.

Thanks to xet7 !
2026-09-04 21:29:32 +03:00
Lauri Ojansivu f72f361bb3 Say that commits go directly on main, and where the checkout is
Two things an agent had to infer and could get wrong.

WHICH BRANCH. Every commit goes directly on main - not a feature branch, not a
topic branch, never a pull request - and the reason is the release flow rather
than taste: releases here are frequent, releases/release-all.sh cuts one from
whatever is on main taking its version from the Upcoming section of
CHANGELOG.md, and work parked on a branch is work that is not in the next
release. An agent harness that offers to branch the work off, or to run it in
its own git worktree, is offering exactly the thing that strands it: a worktree
cannot be on main, because git allows one checkout per branch, so its work
belongs back on main before it is committed.

WHERE. The checkout is at a fixed place per operating system - ~/repos/wekan on
Linux, ~/Documents/repos/wekan on macOS, Downloads\repos\wekan on Windows - so
"the WeKan repo" no longer means "wherever you happen to be".

Both files were already identical apart from their first three lines, and still
are. Two places contradicted the new rule and were reconciled rather than left
to be discovered: maintainer mode said "the current branch" where it meant main,
and contributor mode said to work on a branch and open a pull request. A
contributor commits on main too - what differs is the author and that no release
step is theirs to run - and how the work then reaches wekan/wekan is a human
step, which the never-push boundary at the top already keeps out of an agent's
hands. That boundary is unchanged: committing directly is not permission to
push, in this repository or in any of the companion ones under .tools/, which
follow the same rule on their own default branch (main-v1 for the FerretDB fork,
devel for TSC).

Thanks to xet7 !
2026-09-04 21:29:32 +03:00
Lauri Ojansivu 7d993b2881 Keep AI git operations local
Prohibit AI assistants from pushing, publishing, updating remote refs, or using remote credentials. Reserve all remote writes for a human maintainer and remove SSH_AUTH_SOCK from integrated Linux terminals as defense in depth.

Thanks to xet7 !
2026-09-02 20:46:31 +03:00
Lauri Ojansivu 0e12a467a6 Merge Transifex humans over local translation fills
Snapshot translations before pulling, prefer valid target-language Transifex values per key, and restore pre-pull local machine or human translations wherever Transifex has no valid translation. Reject the known Russian-seeded Mongolian values, repair protected tokens, and never push provenance-unknown local fills back to Transifex.

Merge 47 current human translations across 29 non-English locale files while retaining every available local fallback. English variants also receive four current source keys.

Thanks to translators and xet7 !
2026-08-28 16:16:55 +03:00
Lauri Ojansivu b6b0381110 Document VSCodium sandbox and test auth boundaries. 2026-08-26 22:50:18 +03:00
Lauri Ojansivu 403a0ad7a2 Clarify changelog summary hierarchy 2026-08-25 04:37:29 +03:00
Lauri Ojansivu 65d86b4420 Protect translation placeholders from translation.
Require underscore-delimited and percent-prefixed placeholders to match the corresponding English source token exactly. Any translated, renamed, missing or malformed placeholder must be restored from en.i18n.json, including inside otherwise human translations, and regression coverage must compare token inventories.\n\nThanks to xet7 !
2026-08-24 08:33:48 +03:00
Lauri Ojansivu 775c56df97 Require each locale file to use its declared language.
Clarify that human-preference protection applies only to correct-language translations. Mixed and wrongly seeded values must be replaced with the locale tag's language, including same-script cases such as Russian text in Mongolian, with vocabulary review and regression coverage.\n\nThanks to xet7 !
2026-08-24 08:06:24 +03:00
Lauri Ojansivu e8388314ab Document sandbox-local task toolchains.
Keep version-matched development tools and RapidOCR under the ignored .tools directory when the Flatpak sandbox lacks them.\n\nThanks to xet7 !
2026-08-22 23:50:27 +03:00
Lauri Ojansivu c9b88b32a4 Update instruction file tool paths.
Point website and test-log guidance at .tools/wekan.fi and .tools/log in both repository instruction files.

Thanks to xet7 !
2026-08-22 23:50:26 +03:00
Lauri Ojansivu 9ac138aa03 Require regression coverage for Upcoming changes.
Thanks to xet7 !
2026-08-17 15:18:49 +03:00
Lauri Ojansivu b06a0714b2 Sync current repository instructions.
Bring the changelog archive, frequent release, failed release, and security event guidance from CLAUDE.md into AGENTS.md.\n\nThanks to xet7 !
2026-08-16 15:42:27 +03:00
Lauri Ojansivu 5ab4b74310 Update newest changes from CLAUDE.md to AGENTS.md .
Thanks to xet7 !
2026-08-15 03:58:01 +03:00
Lauri Ojansivu 2e1f4c8824 CLAUDE.md/AGENTS.md: a commit that fixes an issue ends with Fixes #NNNN.
The format was in the file, in the 'Fix open issues' process and in the commit
template, but not as a rule with its edges: when it applies, when it must NOT,
and what a commit with no issue behind it looks like. Those edges are where it
goes wrong - #6586 was closed by the umlaut fix and REOPENED for the five
follow-ups in its next comment, so it is fixed again only when those are done,
and #6585 has a reporter who is still stuck, so a commit that improves its
diagnostics references it and does not close it.

Thanks to xet7 !
2026-08-13 16:03:12 +03:00
Lauri Ojansivu bf1f7aea47 CLAUDE.md and AGENTS.md: TSC is xet7's too, under another organisation.
The previous commit read Secretchronicles/TSC's remote, saw it was not a wekan/
repository, and concluded it was somebody else's project xet7 contributes to. It
is his: the organisation is Secretchronicles rather than wekan, and that is the
only difference. His GitHub profile says it in three words - "WeKan and TSC
maintainer" - and the files now cite it, so the next reader checks a source
instead of inferring from a remote URL as this one did.

So maintainer mode covers it - commit directly to devel, no pull request, same
author, no AI attribution - and the files say which .tools/ repository actually
is somebody else's: sandstorm-io/sandstorm, cloned for reference.

What does NOT follow from maintaining it is WeKan's house style. TSC keeps its
own GNU ChangeLog file and its own release process, exactly as the CHANGELOG
section below already said, because a project is read on its own terms.

Thanks to xet7 !
2026-08-10 02:04:31 +03:00
Lauri Ojansivu d077948115 CLAUDE.md and AGENTS.md: what is in .tools/, and each repository's changelog format.
THE LAYOUT OF .tools/. It was one sentence naming three clones. It is now the two
kinds of thing that directory actually holds, because they are treated
differently. Companion git repositories - wekan/FerretDB on main-v1,
wekan/node-patches and wekan/mongo-tools-patches on main, Secretchronicles/TSC on
devel, sandstorm-io/sandstorm - each with their own history, branches, changelog
and release flow, cloned on demand by build.sh's ensure_tool_repo; a commit in
WeKan is never a commit in one of them. And unpacked toolchains that are
downloads rather than repositories: node-v<version>-linux-<arch>, go with its
gopath/gomodcache/gocache, .meteor when HOME points at .tools, the TSC AppImage.
Delete and re-fetch those freely.

TSC and sandstorm are NOT xet7's repositories, and the ownership paragraph at the
top no longer implies they are. The commit author is the same there; the branch,
the contribution process and the changelog format are that project's call.

NO CLAUDE.md OR AGENTS.md UNDER .tools/. node-patches and mongo-tools-patches
each had a pair, and they were removed: the rules are identical for all of these
repositories and a second copy drifts from the first. These two files are where
they live. A fact true of one repository only belongs in that repository's own
README.md or docs/ - and an instruction file found there is to be removed rather
than updated.

CHANGELOG FORMAT, PER REPOSITORY. A table of the five that come up, because they
are not all the WeKan format: wekan/wekan, node-patches and mongo-tools-patches
use it; wekan/FerretDB keeps UPSTREAM FerretDB's (## [v1.48.0](tag) (date) with
### New Features/Fixed/Other Changes bullets ending "by @xet7"); and TSC uses GNU
ChangeLog - a "YYYY-MM-DD  Name  <email>" header over tab-indented "* Fix: ..."
entries ending "(by Name)", in a file called CHANGELOG with no extension. The
reason is the reader: a FerretDB release is read beside upstream's, and a TSC
entry beside a decade of GNU ChangeLog entries. When this file and the file being
edited disagree, the file being edited wins.

AGENTS.md had drifted from CLAUDE.md - it still described a FerretDB subdirectory
at the repo root and told the release step to run from there. The two files are
now identical apart from their first and third lines, which name the tool that
reads them.

Thanks to xet7 !
2026-08-10 01:55:46 +03:00
Lauri Ojansivu 35dd10b89f CLAUDE.md and AGENTS.md: who maintains these repositories, and who commits.
The instruction files opened with an identity CHECK - "maintainer mode only when
the identity is exactly Lauri Ojansivu <x@xet7.org>" - which says what to do with
an identity but never says whose repositories these are. They are xet7's: WeKan,
the FerretDB v1 fork, node-patches and mongo-tools-patches. That is now the first
thing both files say, and the commit author follows from it rather than from a
conditional.

Two rules are spelled out under it. No commit, pull-request body or CHANGELOG
line ever attributes work to an AI - no Co-Authored-By, no "Generated with", no
assistant or model name - and CODE_OF_CONDUCT.md is cited as where that comes
from ("mention only those participants that are human"); a "Thanks to ... and
xet7 !" line credits people. And a missing or wrong git identity in one of these
checkouts is to be SET, not worked around: the .tools/ clones build.sh makes can
come up with no user.name/user.email at all - mongo-tools-patches did - which
would author a commit as whatever the machine's default is.

Contributor mode is unchanged in substance: a different person's identity, in
their own fork or clone, still means a branch and a pull request, and that pull
request carries no AI attribution either.

Thanks to xet7 !
2026-08-10 01:45:21 +03:00
Lauri Ojansivu 8b2e0038df LDAP: groups may live in their own subtree, not only under the user base.
#5539: WeKan could not authenticate LDAP users whose groups sit in a different
ou than the users themselves.

Both group searches - getUserGroups, which feeds the login restriction, admin
status sync, group->role sync and org/team sync, and isUserInGroup - searched
this.options.BaseDN. That is the USER base. A directory that keeps ou=groups
beside ou=people, which is a common layout and the reporter's, has no groups
under it, so every group search came back empty; with LDAP_GROUP_FILTER_ENABLE
on, isUserInGroup concluded "not a member" and refused the login. Nothing in the
package could say where the groups were - there was no setting for it.

LDAP_GROUP_BASEDN says where. Unset, or set to a blank string, it falls back to
BaseDN, so a directory that keeps users and groups in one subtree behaves exactly
as it did; a present-but-empty env var is one somebody meant to fill in, not a
search base, and searching "" would silently search the directory root.

The three USER searches - searchUsers, getUserById, getUserByUsername - keep
BaseDN. Pointing those at a group subtree would break login for everyone, so the
test pins which searches moved and which did not, in both directions.

Documented beside the settings it belongs with, in docs/Login/LDAP.md and
docker-compose.yml: a setting nobody can find is one that does not exist.

tests/ldapGroupBaseDn.test.cjs pins all of it, including the fallback and the
documentation. Six of its nine assertions fail on the previous commit; the three
that pass there are the user searches, which is the point of asserting them.

Not verified against a directory - this sandbox has none. The defect is read from
the source: two group searches, one user base, no way to say otherwise.

Thanks to leandro-cyberproject and xet7 !

Fixes #5539,
2026-08-08 02:16:04 +03:00